TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Morris.js: Pretty time-series line graphs

169 pointsby oesmithabout 13 years ago

8 comments

sudonimabout 13 years ago
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.
评论 #3641553 未加载
评论 #3642775 未加载
评论 #3646913 未加载
评论 #3642637 未加载
oesmithabout 13 years ago
This is my first (proper) open-source release. I'd be very grateful for feedback from HN!
评论 #3640911 未加载
评论 #3642336 未加载
评论 #3640931 未加载
jashkenasabout 13 years ago
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.
评论 #3642188 未加载
ricardobeatabout 13 years ago
Is there an option to turn off the curve smoothing? It causes some misleading effects.
评论 #3642237 未加载
jacobolusabout 13 years ago
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>
gotrythisabout 13 years ago
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!
评论 #3641244 未加载
评论 #3641242 未加载
评论 #3643313 未加载
评论 #3646279 未加载
rplntabout 13 years ago
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>
pstinnettabout 13 years ago
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?