🎉 1.4.74
Further improvements in Bubble Charts-
- Added the props
minRadiusandmaxRadiusto control the max and min radii of bubbles in Bubble charts. The final radius of a bubble is calculated as follows-
const givenRadius = item.r ?? bubblesRadius;
const actualRadius = Math.min(maxRadius, Math.max(minRadius, givenRadius));minRadius defaults to 8, while maxRadius defaults to 20% of chart height.
-
Smart auto-computation of
xStepValueandyStepValueto elegantly distribute the bubbles, making optimal use of the chart space. -
Added the props
showGradientandcenterColorForGradientto add gradient effect to bubbles.showGradientdefaults to true for Bubble charts and false for Scatter charts.centerColorForGradientdefaults to 'white'. -
Set and animate border opacity independently from the bubble opacity.