dc.js Class: bubbleChart (original) (raw)
dc. bubbleChart
new bubbleChart(parent [, chartGroup])
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
parent | String|node | d3.selection | |
chartGroup | String | The name of the chart group this chart instance should be placed in. Interaction with a chart will only trigger events and redraws within the chart's group. |
Mixes In:
Source:
Returns:
Type
Example
// create a bubble chart under #chart-container1 element using the default global chart group var bubbleChart1 = dc.bubbleChart('#chart-container1'); // create a bubble chart under #chart-container2 element using chart group A var bubbleChart2 = dc.bubbleChart('#chart-container2', 'chartGroupA');
Methods
elasticRadius( [elasticRadius])
Turn on or off the elastic bubble radius feature, or return the value of the flag. If this feature is turned on, then bubble radii will be automatically rescaled to fit the chart better.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
elasticRadius | Boolean | false |
Source:
Returns:
Type
Boolean|dc.bubbleChart
sortBubbleSize( [sortBubbleSize])
Turn on or off the bubble sorting feature, or return the value of the flag. If enabled, bubbles will be sorted by their radius, with smaller bubbles in front.
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
sortBubbleSize | Boolean | false |
Source:
Returns:
Type
Boolean|dc.bubbleChart