danvk/dygraphs — pull request #149 by flooey (2012-05-10 21:09:08+00:00)
Title: Three bug fixes

Ensure milliseconds is set to zero: without this, dates don't trigger the "display date at date boundary" logic in dateAxisFormatter, since frac takes milliseconds into account.

Two bugs that occur when stacked graphs and missing points interact. One is that if a point's previous point is NaN, then trying to subtract its value results in NaN (you can see this in the fourth graph at http://dygraphs.com/tests/stacked.html). The other is that if the point's value is null (happens when using connectSeparatedPoints), subtracting the previous point from it results in a coercion to zero and thus a negative value for the missing point.