- Canvas-based, rendered in IE using ExplorerCanvas that in turns relies on VML
- SVG on standard-based browsers, rendered as VML in IE
There are pros and cons of both approaches 19 but for a charting library I would recommend 18 the later because it is well integrated 17 with DOM, allowing to manipulate charts 16 elements with the DOM, and most importantly 15 setting DOM events. By contrast Canvas charting 14 libraries must reinvent the DOM wheel to 13 manage events. So unless you intend to build 12 static graphs with no event handling, SVG/VML 11 solutions should be better.
For SVG/VML solutions 10 there are many options, including:
There 3 are a number of charting libraries based 2 on Raphael, including (but not limited to):
- gRaphael, an extension of the Raphael graphic library
- Ico, with an intuitive API based on a single function call to create complex charts
Disclosure: I 1 am the developer of one of the Ico forks on github.
Additionally 3 ExtJS 4.0 has introduced a great set of charts - very 2 powerful, and is designed to work with live 1 data.
Check out http://www.highcharts.com !
It maybe not exactly what you are looking 1 for, but
Google's Chart API is pretty cool and easy to use.
It also allows 9 making nice interactive graphics and visualizations.
Although 8 it is only for modern web browsers
UPDATE: The protovis 7 team has moved to another library called 6 d3.js (Data Driven Documents) as they said:
"The Protovis team is now developing a new visualization library, D3.js, with improved support for animation and interaction. D3 builds on many of the concepts in Protovis"
The 5 new library can now be found in:
jqPlot is great. If your requirements are fairly 9 "normal" and you just want to 8 draw some charts, you're probably overwhelmed 7 by the quantity of js charting options. Assuming 6 you don't want to do hours of research, just 5 go with jqPlot as it's probably your best 4 bet. It covers most use cases for most people 3 well. Some of the alternatives are specialised 2 on a certain type of chart or built with 1 a certain use case in mind.
To 43 my mind the major pros and cons were as 42 follows. The SVG based solutions like Raphael (and 41 offshoots) are great if you want to construct 40 highly dynamic/interactive charts. Or if 39 you charting requirements are very much 38 outside the norm (e.g. you want to create 37 some sort of hybrid chart or you've come 36 up with a new visualization that no-one 35 else has thought of yet). The downside is 34 the learning curve and the amount of code 33 you will have to write. You won't be banging 32 out charts in a few minutes, be prepared 31 to invest some real learning time and then 30 to write a goodly amount of code to produce 29 a relatively simple chart.
I went with JQplot 11 which is a canvas based solution since I 10 only really needed some standard types of 9 charts. From my research and playing around 8 with the various choices I found it to be 7 reasonably full-featured (if you're only 6 after the standard charts) and extremely 5 easy to use, so I would recommend it if 4 your requirements are similar.
To summarize, simple 3 and want charts now, then go with JQplot. Complex/different 2 and not pressed for time then go with Raphael 1 and friends.
As some kind of late answer, try d3.js
It's 4 the continuation of protovis.
The big difference 3 to flot is in the number of features supported.
Though 2 flot may be simpler, d3.js is definitely 1 more powerful.
gRaphaël currently 2 supports Firefox 3.0+, Safari 3.0+, Opera 1 9.5+ and Internet Explorer 6.0+.
- a framework: http://www.simile-widgets.org/
good looking: http://www.highcharts.com/
Canvas based so it's fast 2 and there's roughly 20 different chart types. It's 1 free for non-commercial use too!
Try the MIT simile timeline which could 1 be made into a chart - http://simile.mit.edu/timeline/
or the final one, http://code.google.com/p/gchart/
My favourite (flot) has already been mentioned.
But 2 be sure to investigate Ortho. It is excellent 1 for tree charts and timelines.
There is a lot of activity in the dojo charting 4 library, and what is great I am using it 3 inside an AIR application without problems 2 too, pretty cool! See for example there 1 http://www.sitepen.com/blog/2008/05/27/dojo-charting-event-support-has-landed/
Has very cool interactive options including 1 maps, gauges, and charts.
We just bought a license of TechOctave Charts Suite for our new 6 startup. I highly recommend them. Licensing 5 is simple. Charts look great! It was easy 4 to get started and has a powerful API for 3 when we need it. I was shocked by how clean 2 and extensible the code is. Really happy 1 with our choice.
Protochart is all you need
For the more unusual charts: http://thejit.org/
Check out ZingChart HTML5 Canvas, SVG, VML and Flash Charts. Very powerful and compatible 3 library. I'm on the Zing team - mention 2 us on twitter @zingchart or shoot any questions to 1 firstname.lastname@example.org.
In case what you need is bar chart only. I 8 published some code I've been using in an 7 old project. Someone told me the VML implementation 6 is broken on recent versions of IE, but 5 the SVG should work just fine. Might be 4 getting back to the project and release 3 some serverside renderers I already have 2 and maybe WebGL rendering layer. There's 1 a link: http://blog.conquex.com/?p=64
Probably not what the OP is looking for, but 3 since this question has become a list of 2 JS charting library options: jQuery Sparklines is really 1 cool.
More Related questions