capitalone / react-native-pathjs-charts

Android and iOS charts based on react-native-svg and paths-js
Apache License 2.0
879 stars 260 forks source link

Wrong Y labels values on Stockline #224

Open AndrePech opened 6 years ago

AndrePech commented 6 years ago

Hello, I have been using this library in a couple of projects, it is very good, thank you for taking your time to develop it.

I am facing a issue, can anybody help me?

I am trying to display a Stockline chart with cumulative data, and the Y labels are wrong, they are displaying just the min value (19.5 )of the chart data as follows:

If I don't make the values cumulative, it works fine.

screenshot_20180119-164350

Before filing an issue please ensure the following boxes are checked, if applicable:

soloviola commented 6 years ago

What you mean by just displaying the min val?

you want to display lower values?

or the data points contain values lower than 19.5

More information needed.

AndrePech commented 6 years ago

19.5 is the lowest value on the y-axis among my dataset.

In the screenshot you can see it, the y-axis does not make sense, it is repeating 19.5 on every label when it should be increasing with the lines, which are correct.