Mixin: bubbleMixin

dc. bubbleMixin

This Mixin provides reusable functionalities for any chart that needs to visualize data using bubbles.

Mixes In:
Source:

Methods


maxBubbleRelativeSize( [relativeSize])

Get or set the maximum relative size of a bubble to the length of x axis. This value is useful when the difference in radius between bubbles is too great.

Parameters:
Name Type Argument Default Description
relativeSize Number <optional>
0.3
Source:
Returns:
Type
Number | dc.bubbleMixin

minRadius( [radius])

Get or set the minimum radius. This will be used to initialize the radius scale's range.

Parameters:
Name Type Argument Default Description
radius Number <optional>
10
Source:
Returns:
Type
Number | dc.bubbleMixin

minRadiusWithLabel( [radius])

Get or set the minimum radius for label rendering. If a bubble's radius is less than this value then no label will be rendered.

Parameters:
Name Type Argument Default Description
radius Number <optional>
10
Source:
Returns:
Type
Number | dc.bubbleMixin

r( [bubbleRadiusScale])

Get or set the bubble radius scale. By default the bubble chart uses d3.scaleLinear().domain([0, 100]) as its radius scale.

Parameters:
Name Type Argument Default Description
bubbleRadiusScale d3.scale <optional>
d3.scaleLinear().domain([0, 100])
Source:
See:
Returns:
Type
d3.scale | dc.bubbleMixin

radiusValueAccessor( [radiusValueAccessor])

Get or set the radius value accessor function. If set, the radius value accessor function will be used to retrieve a data value for each bubble. The data retrieved then will be mapped using the r scale to the actual bubble radius. This allows you to encode a data dimension using bubble size.

Parameters:
Name Type Argument Description
radiusValueAccessor function <optional>
Source:
Returns:
Type
function | dc.bubbleMixin