Releases: JesperLekland/react-native-svg-charts
v2.2.2
Bugfix
Fix bug where StackedAreaChart wouldn't render all data points
v2.2.1
renderLineGradient for AreaChart
You can now use a gradient on the Line
of an AreaChart
. See the gradient
part of the README for more information
v2.2.0
Breaking changes
gridMin/Max proper behaviour
Previously the gridMin/Max had a default value of 0
. This caused charts with dataRanges above zero to always adhere to the a range beginning from zero which of course isn't wanted. The same was true for the YAxis.
YAxis supports "min" and "max" prop
Just as gridMin/Max
, the YAxis
wrongly assumed that 0
should be a part of the dataRange, this is now remedied. To further help users customise their charts we introduced the min
and max
prop, which work exactly the same as the gridMin
& gridMax
prop on the charts. This means that you no longer haft the alter the dataPoints
prop to get your wanted behaviour 👍
v2.1.0
Introducing the renderGrid prop
Now you can customize the Grid even further. Check the documentation for the renderGrid
prop.
You can also import Grid
from react-native-svg-charts
and get access to Grid.Horizontal
, Grid.Vertical
and Grid.Both
helper functions
v2.0.2
onPress for PieChart slice
PieChart data object now support prop onPress
, see README for more information
v.2.0.1
Expose the svg
prop. This enables the user to pass any svg-prop to the underlying react-native-svg
component. See the README for more information/examples
Note this removes all "default" svg props which you might have relied on before. So if your graph stops rendering it's probably because it no longer has a color.
To summarize:
strokeColor
, fillColor
, strokeWidth
, dashArray
etc have been replaced by
svg: {
stroke: 'string',
fill: 'string',
strokeWidth: 'number',
strokeDasharray: 'array',
etc,
}
v1.6.2
Gradient for LineChart
Exposed the renderGradient
prop for the LineChart
. Same usage as for AreaChart
v1.6.1
Fix XAxis not showing labels on Android
v1.6.0
Breaking Changes
The prop dataPoints
on both the BarChart
and PieChart
have been renamed to data
to better reflect the fact that they are arrays of objects, not points.
The components will now throw an informative error when dataPoints
prop is used instead of data
v1.5.1
XAxis
Add default behaviour to formatLabel
prop to return "index" when not passed as prop