d3 / d3-plugins

[DEPRECATED] A repository for sharing D3.js V3 plugins.
https://github.com/d3/d3/wiki/Plugins
Other
1.81k stars 685 forks source link

Allow explicit setting of yMax on horizon chart #77

Open caged opened 11 years ago

caged commented 11 years ago

I have a use case where I'm measuring the same metric across a bunch of different machines (e.g. the number of git operations in the last two hours across 5 file servers). I'd like to be able to compare them to each other, but currently each horizon's chart yMax is determined by its own dataset. I'd like to be able to normalize the scale across a bunch of horizons by explicitly setting the yMax.

Here's an example of the problem. Those spikes in fs8a shouldn't be near as pronounced because they are relatively non-eventful when compared with what's happening on fs9a.

screen shot 2013-09-12 at 12 56 36 pm

mbostock commented 11 years ago

This seems like the perfect use-case for http://square.github.io/cubism/; have you tried it? Cubism horizon charts let you specify an extent (ymin/ymax).