react-native-chart-kit icon indicating copy to clipboard operation
react-native-chart-kit copied to clipboard

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

Open scrapecoder opened this issue 2 years ago • 1 comments

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

/>

scrapecoder avatar Sep 30 '22 07:09 scrapecoder

I am also facing this issue. Did you resolve?

naveen-nammi avatar May 06 '23 06:05 naveen-nammi