🎉 1.4.71
✨ Features added-
- Added
BubbleChartcomponent which receives data as an array of {x,y,r} values.
Example-
<BubbleChart
data={[
{x:20, y: 4, r: 10},
{x:40, y: 6, r: 20},
{x:30, y: 8, r: 60},
{x:120, y: 5, r: 40}
]}
/>The props of Bubble chart are similar to those of Line chart. The r in the data array is analagous to dataPointRadius in the Line chart.
See the props table here- https://github.com/Abhinandan-Kushwaha/react-native-gifted-charts/blob/master/docs/BubbleChart/BubbleChartProps.md
- Added the prop-
chartContainerPropsto Radar chart. It is used to set height, width, shiftX, shiftY, backgroundColor of the radar chart's container. See #1013
chartContainerProps is an object of RadarChartContainerProps type, as defined below-
type RadarChartContainerProps = {
height?: number; // default: chartSize
width?: number; // default: chartSize
shiftX?: number; // default: 0
shiftY?: number; // default: 0
backgroundColor?: ColorValue; // default: 'transparent'
};🐛 Bug fixes
-
Fixed the issue- "Combined Bar and Line chart, Line chart shifts upward on React Native if isAnimated is true". See #1205
-
Fixed the "Line chart coloring issue" for area charts, where gradient is unexpectedly applied to line. See #1080
-
FIxed the issue- "X-axis labels misalignment when using adjustToWidth and parentWidth in Stacked Bar Chart". See #1203
-
Fixed the issue- "In Line/Area charts verticalLineHeight not set correctly on data item level". See #1202