indiespirit / react-native-chart-kit

📊React Native Chart Kit: Line Chart, Bezier Line Chart, Progress Ring, Bar chart, Pie chart, Contribution graph (heatmap)
https://expo.io/@indiespirit/react-native-chart-kit
MIT License
2.84k stars 655 forks source link

Update LineGraph line after changing/updating the yAxis label using `formatYLabel` #635

Open scrapecoder opened 1 year ago

scrapecoder commented 1 year ago

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)}

/>

naveen-nammi commented 1 year ago

I am also facing this issue. Did you resolve?