92 points · by mars · 14y ago · 23 comments
Check it out at: http://www.highcharts.com/
I'm unlikely to even considerer another library until they match that feature.
flot.js has zooming/panning capabilities - http://people.iola.dk/olau/flot/examples/selection.html
This, assuming I understood what you were getting at.
Needless to say, HighCharts is slick - but flot.js has a nice price tag :)
There's also a "range selector" mode if you prefer the two-pane zooming interface: http://dygraphs.com/tests/range-selector.html
There's a little more info in our recent blog post about this too: http://bits.shutterstock.com/?p=103
In particular, here's an example where you can switch between stacked, percentage, and line views; toggle on and off each data series; re-order the stack with drag-and-drop; zoom in to a time slice; add smoothing; add annotations, etc:
http://shutterstock.github.com/rickshaw/examples/extensions....
It can make a difference, having this functionality around when you're trying to dig in and read your data.
But "interactive" means you can interact. These charts seem to be almost entirely passive. Sure, you can build a UI that refreshes the chart with new data or new parameters, and you can read off values corresponding to the mouse pointer position in the chart. A truly interactive chart would let you zoom in and out (ie., change the resolution of the X axis), select ranges of values and so on. To truly support the claim for interactivity you should include a few interactive examples.
One last nitpick: The technically precise word for this kind of thing is chart, not graph.
dchester's comment (http://news.ycombinator.com/item?id=3340609) links to http://shutterstock.github.com/rickshaw/examples/extensions...., which demonstrates some of Rickshaw's interactions.
Pretty awful choice of UI; wonder if the basic chart classes are designed to be extended with a better zoom UI?
Also, what about fetching of remote data of variable resolution? I might have millions of data points on the server; I want the chart to fetch a subset of the data based on the current resolution and bounding box of the axis.
It has two. There is one below the legend on the left hand side. That smooths your data by aggregating the plots.
It also has the zoom slider under the graph. Or chart, rather.
When you mouse over the series items on the top left corner, the data of the item you are mousing over is highlighted on the graph.
You can uncheck some of those series items to focus on particular data, e.g. look at New York and Tokyo and London.
You can re-order them by dragging them.
You can switch the view between stacks, percentage, stream and lines.
"Pretty awful choice of UI"
There are some nice things that come with the slider across the bottom of the graph. When I grab an end of the slider and move it, I can see exactly what is happening to the data as I move it, and I can let my eye determine where I should settle.
The question of "how do I get back" isn't on my mind. I know how to do that.
I can pin the left hand side somewhere and watch new data come into view, or pin the right hand side somewhere to make the view momentarily static.
"Also, what about fetching of remote data of variable resolution"
You can fetch your data however you want to.
Edit: I forgot to mention that the zoom slider there is just a DOM element. You can dress it up any which way.
Probably a dumb question but I don't keep up on client-side technology as much as I should so I was curious.
http://shutterstock.github.com/rickshaw/examples/y_axis.html
We'll fix that, thanks!
https://github.com/lukeschlather/holdengraph
These microcontrollers don't have much processing power, so offloading rendering onto the browser is actually an absolute necessity.
But I'm louder on the internet and have been working with Rickshaw for a while, so I get to say "thanks" [grin].
Let us know of any roadblocks you hit if you take it for a spin!