QingWei-Li / laue

🖖📈 Modern charts for Vue 2.0
https://laue.js.org
MIT License
263 stars 34 forks source link

la-y-axis :interval giving unpredictable results #11

Closed zillazillazilla closed 6 years ago

zillazillazilla commented 6 years ago

Large edit to strip away the noise and make things clearer.

How can I make the y-axis always return the highest point in my data set (data set contains majority float values that shouldn't be rounded, does laue do some float rounding?), and where does the y-axis generate its intervals from?

image

image

For testing purposes i => i === 100 produces varied results on different data sets with no obvious reason why (again, this could be a float issue though perhaps?). Always returning the highest value will only be possible when the total i is accessible or at the very least consistent intervals across data sets (both data sets above have 365 entries with varied high/low points in data).

For more info see the previous edit 14th Aug, but I think this version is clearer!