sparkline
sparkline copied to clipboard
prevent division by zero when calculating y values
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.
related #13, closes #24, fixes #14
?