Skip to content

Releases: JesperLekland/react-native-svg-charts

v2.2.2

01 Feb 09:04
Compare
Choose a tag to compare

Bugfix

Fix bug where StackedAreaChart wouldn't render all data points

v2.2.1

24 Jan 11:15
Compare
Choose a tag to compare

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

24 Jan 10:54
Compare
Choose a tag to compare

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

14 Jan 17:51
Compare
Choose a tag to compare

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

14 Jan 15:17
Compare
Choose a tag to compare

onPress for PieChart slice

PieChart data object now support prop onPress, see README for more information

v.2.0.1

10 Dec 15:55
Compare
Choose a tag to compare

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

10 Dec 14:57
Compare
Choose a tag to compare

Gradient for LineChart

Exposed the renderGradient prop for the LineChart. Same usage as for AreaChart

v1.6.1

04 Dec 17:20
Compare
Choose a tag to compare

Fix XAxis not showing labels on Android

v1.6.0

28 Nov 14:13
Compare
Choose a tag to compare

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

28 Nov 13:54
Compare
Choose a tag to compare

XAxis

Add default behaviour to formatLabel prop to return "index" when not passed as prop