5 ms·
What are you using to generate your graphs?
by jodyalbritton 14y ago
What are you using to generate your graphs?
- davidjohnstone 14y agoJavascript and a HTML5 canvas — I've written all the graphing code myself. I prefer to use stuff that other people have written, but I wanted flexibility, and not all graphing libraries handle tens of thousands of points well (and neither do SVGs).
- mmcnickle 14y agoYou mention SVG; I assume you tried d3.js. What issues did you find with it?
- davidjohnstone 14y agoI haven't actually tried d3.js. I encountered significant speed issues when using Raphael (even when panning a graph), and I assumed that was more of an SVG problem than a Raphael problem. Maybe I shouldn't assume so much, but I didn't think d3.js would be suited to showing graphs with multiple data sets with potentially ten thousand points (or more, there's a data point for each second, and it's not uncommon to be riding for more than three hours) each.
- Zikes 14y agoSee this[0] page for an example of a d3.js graph with ~600,000 total data points. [0] http://hn.metamx.com/ http://hn.metamx.com/
- jodyalbritton 14y agoCool, well you got some nice looking graphs taking the path you did. I am working on an app that has graphing, and I am running into some of the problems you mentioned. I am using the highcharts library.