square / cubism

Cubism.js: A JavaScript library for time series visualization.
https://square.github.com/cubism/
Other
4.94k stars 529 forks source link

Default extent & 3-sigma #78

Open hit9 opened 10 years ago

hit9 commented 10 years ago

Hi, @RandomEtc @mbostock, excuse me, but I don't like the default extent of cubism.

If here is a much bigger number in the series, for instance, a series with average 10 but maximum 1k, like this chart:

image

The default extent is using max and min, but this makes the chart unreadable.

I know that we can set a const number (e.g. 0, 20) to solve this. But what my situation is, there are thousands of metrics to plot, I can't set them one by one.

My solution to this is using 3-sigma rule, and the extent will be: average - 3 *stddev, average + 3 *stddev. It covers most datapoints, no singular values.

So I open this issue to ask you how I can implement this.

Sincerely, thanks.

yppeaxy commented 8 years ago

+1 Did you find a solution? I have a very similar data set and would really like to be able to set extent dynamically.