I spent a good chunk of my sunday yesterday with my cofounder playing with g.raphael.js. After some frustration with raphael and concerns of a giant rabbit hole, we ended up planning to go with Highcharts. The $360 per developer license felt a little steep. We're still experimenting and Morris looks awesome.<p>Thanks for sharing. We may be forking and pull-requesting soon.
Ticking countdown for all the pedants from the other thread to come and yell at you for not naming it "Morris.coffee" ;)<p>Neat stuff -- I dig your defaults: <a href="https://github.com/oesmith/morris.js/blob/master/morris.coffee#L19-52" rel="nofollow">https://github.com/oesmith/morris.js/blob/master/morris.coff...</a><p>... and you may want to move some of the helper functions within "redraw" out into regular instance functions, for clarity, and since you're already using a class.
Pet peeve: I really hate the “feature” of adding arbitrary (as in, not related to the data or any reasonable model of them) spline interpolation through data points to make them look “smooth”, especially for these charts that really should be bar charts (i.e. represent quantities of items).<p>Anyway, this sort of thing can be helpful for quick one-offs, but for anyone who runs into the limits of what a tool like this one can do, and needs something more customizable or sophisticated, remember to take a look at D3. It really is neat. <a href="http://mbostock.github.com/d3/" rel="nofollow">http://mbostock.github.com/d3/</a>
Your graph looks great!<p>We use jqplot, but are looking for an alternative that is also in JS, but more similar to the google analytics graphs. Your's comes close in looks. Any plans for:<p>a) Inline labels like google analytics, instead of under and to the left of the graph. Makes it so much more pretty, as the graph can have its edges match the rest of the interface.<p>b) Support for updating data for a live data stream, scrolling the graph?<p>c) Stacked area graphs (as in just filling in the backgrounds)<p>Anyone else know of a javacript graph that might suit our needs?<p>Thanks!
I'm about to need something like this and I was thinking about using Google Charts[1]. What would I miss out? The thing is I don't want to introduce big requirement (jquery) if it is not necessary.<p>1. <a href="http://code.google.com/apis/chart/" rel="nofollow">http://code.google.com/apis/chart/</a>
I just used RGraph for some charts in an application I'm working on. The biggest pain for me has been plotting time-based data and I wish I had seen this first.<p>Does the graph handle hours/minutes/seconds or no?