Works for me? I can't reproduce the error. However, be aware that the
random data emitter picks a random date around which to create data.
So, if you're unlucky, it's easy to create a graph that has no data
defined within the associated time window even after running the
emitter. The median is undefined (NaN) if there are no events within
the given time interval.
For example, if I say:
I get:
[
{"time":"2012-02-16T00:00:00.000Z","value":-0.5439993245527148},
{"time":"2012-02-16T00:05:00.000Z","value":-0.5125112039968371},
{"time":"2012-02-16T00:10:00.000Z","value":-0.4808696174295619}
]
But if I picked some range where the data is undefined, I get:
[
{"time":"2012-02-17T00:00:00.000Z"},
{"time":"2012-02-17T00:05:00.000Z"},
{"time":"2012-02-17T00:10:00.000Z"}
]
Mike
Mike
Right, that's because the value is undefined, because the bins are empty.
Mike