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
calling getY() with 0 value would produce NaN which are invalid in svg where those end up.
in that case, the added condition returns the height in float to draw a data point at y=0.
releated fnando#13, closesfnando#24, fixesfnando#14
https://github.com/fnando/sparkline/blob/3008997512faff401da2c6a953fa600cd87de90b/src/sparkline.js#LL1-L3C2
a
if(max===0) return height;
might be useful at the top of this fnThe text was updated successfully, but these errors were encountered: