react-native-chart-kit
react-native-chart-kit copied to clipboard
Update LineGraph line after changing/updating the yAxis label using `formatYLabel`
Update LineGraph line after changing/updating the yAxis label using formatYLabel
I'm using the LineGraph
chart and formatting the yAxis label
using formatYLabel
manually.
data getting in formatYLabel
= "100", "150", "240", "330", "700", "800", "1200"
After formatting returning sequence "100", "300", "500", "700", "900", "1100", "1300"
After updating the yAxis
labels line is not updated with respect to the updated labels.
function formatLabel(value){
...
return newLabel;
}
<LineChart
....
formatYLabels={(value) => formatLabel(value)}
/>
I am also facing this issue. Did you resolve?