Ask HN: What charts javascript library to use?
I'm building a Django app and I'd like to use a javascript library for the charts, is it the best way to put graphics in django aplications?. I need simple types of charts: pie and bar(with negatives).
I began to use jqplot but I'm having some problems with some options.
I'd like to find a library with pretty nice and colorful charts and compatible with the majority of the principal browsers(ie,firefox,chrome).
66 comments
[ 3.4 ms ] story [ 81.7 ms ] threadShowing a username is customer specific data I suppose, so I think most applications show customer specific data. Am I misunderstanding this limitation?
Oh and I did this because i was bored: http://zestmonkey.com/charts.php
Great bang for the buck as your go-to first charting solution until you need something custom.
You can load data from python quite easily using an jquery ajax call and json.dumps() in the view on the server side.
In general it surprises me how well the client side graph libraries scale if you load a lot of data into them.
Especially when there are more functional, prettier alternatives
I stuck with flot but if I was to do it again I would give high charts another look.
demos: http://thejit.org/demos/
http://www.ejschart.com/
IMO, candlestick charts are way underutilized. Take application response time graphs for example. Most reporting suites rely on moving averages. If your application can have an acceptable average response time, but still have a high level of deviation. Let's say you have an app where, on average, one out of six requests is an entire order of magnitude slower than other requests:
So my average response time is 250ms, which I may consider acceptable, yet some responses are taking 1000ms, which I wouldn't consider acceptable. With a simple line chart, I wouldn't see the significant deviation. With a chandlestick chart, the upper boundary would be blindinly obvious.Candlesticks are also useful for giving a good visual indicator of your interval, which is another area where line charts fall down. There is no visual clue given with a line chart that shows you whether you're looking at a 5 minute interval, 1 hour interval, or 1 year interval. The thickness of a candlestick relative to the x-axis (usually time) gives a strong visual clue about the interval.
For charts, I've used flot and it's been so far adequate for my needs (timeseries and some bar charts). I personally prefer more Tufte-like charts than the default flot style, but the customer has been delighted of flot's style.
By the way, forget pie charts, they are a bad idea. Use e.g. a simple bar chart instead.
To quote Tufte: “The only worse design than a pie chart is several of them, for then the viewer is asked to compare quantities in spatial disarray both within and between pieces.”
Zing renders both Flash and HTML5 Canvas charts. Compatible and customizable + interactive API.
For your consideration: http://www.zingchart.com http://www.zingchart.com/flash-and-html5-canvas/
Shoot me questions at abegin@zingchart.com or http://www.twitter.com/zingchart (Andrew)
Thanks for the feedback.
http://www.highcharts.com/
http://www.jqplot.com/
http://plugins.jquery.com/project/gchart
http://vis.stanford.edu/protovis/
http://polymaps.org/
http://code.google.com/p/flot/
It doesn't have pie charts, because pie charts are a tremendously bad way to visualise data. I have barcharts with negatives though :)
-----
[1]: http://www.visifire.com/