HumbleSoftware/Flotr2 — Issue #11: Problems with lines chart with all y-values being 0
Author: jochenberger
Created: 2011-10-18 09:28:33+00:00
State: open

The following example gets no y axis labels and not line.

(function basic(container) {
Flotr.draw(container, [[[0, 0], [1, 0],[2, 0]]]);
})(document.getElementById("flotr-example-graph"));

Apparently, that is the case if all y values are the same and \leq 0. If I set them all to 3 or to 0.001, the graph is drawn as expected.
AFAICT, the culprit is either `Flotr.getTickSize` or `Flotr.getMagnitude`, the latter returning `NaN` or the former not handling `NaN` as a return value.