Closed krlu closed 7 years ago
Hey you! I realise that adding that crash
was a terrible idea :woman_facepalming:. Instead, I now default the range to 1 when your range is zero or less and will just make a note about this in the docs somewhere. Again, thanks for notifying me!
Fixed with https://github.com/terezka/elm-plot/pull/34
Behavior
For a plot with only one series whose y value does not change, the plot crashes.
Expected Behavior
Should plot a straight horizontal line
Example
e.g. the following crashes
Other notes
This is caused by the
getRange
function on line 21 in the packageInternal.Stuff