You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using your library and decided to add a gradient to a line chart, it was possible to do it, but then when I tried to use it with my real data, it started to behave incorrectly (or maybe correctly, but not for me).
the current case is the following:
I tried to add the fill option and at the same time I wanted to autorange the Y-axis, for what I saw this is not possible, it is always starting from 0 to the top of the data, but my data has little changes between them, so for example an array of my Y data would be: [1.30140139435718, 1.301839253486102, 1.301344603988707, 1.3016157641499442, 1.301913522752397]
so, as you can see, the changes are really small, thus my range should be between [1.30, 1.31] for example, but when using fill, the autoscale option makes everything go back to [0, max].
here I created a codepen so you can see the issue using 2 plots with the same data, the only difference will be the fill option.
Yes, the current behavior is intentional - the idea being that if you're filling to zero, the absolute magnitude is important to represent visually, similarly to a bar chart. But I can certainly understand the interest in modifying that behavior. See also #1876
Hello,
I was using your library and decided to add a gradient to a line chart, it was possible to do it, but then when I tried to use it with my real data, it started to behave incorrectly (or maybe correctly, but not for me).
the current case is the following:
I tried to add the fill option and at the same time I wanted to autorange the Y-axis, for what I saw this is not possible, it is always starting from 0 to the top of the data, but my data has little changes between them, so for example an array of my Y data would be:
[1.30140139435718, 1.301839253486102, 1.301344603988707, 1.3016157641499442, 1.301913522752397]
so, as you can see, the changes are really small, thus my range should be between [1.30, 1.31] for example, but when using fill, the autoscale option makes everything go back to [0, max].
here I created a codepen so you can see the issue using 2 plots with the same data, the only difference will be the fill option.
CodePen
Regards, Prince.
The text was updated successfully, but these errors were encountered: