Reputation: 1302
I want to include some charts on my website and I'm looking for a good cross-browser charting package - what are my options?
Upvotes: 11
Views: 3335
Reputation: 3253
Not quite charting, but lightweight SVG/VML cross-browser graphic library: raphaeljs.com.
Very easy to make charts.
Upvotes: 8
Reputation: 28434
I prefer jQuery one:
http://www.flotcharts.org/
Examples:
http://people.iola.dk/olau/flot/examples/
Upvotes: 17
Reputation: 121
I would second Open Flash Chart, I have used it extensively and would especially recommend the DZ patched version at OFC-2.
You can see it in use at Red5 Analytics Demo
Upvotes: 1
Reputation: 2096
Google Chart API is really powerful, and unlike flot does not rely on javascript being enabled.
http://code.google.com/apis/chart/
Upvotes: 12
Reputation: 488
Why don't you try the jQuery Visualize plugin. It's very simple to implement, all you need is a table with your data in and then in JavaScript call the plugin and bam it'll work.
For cross-browser support they say:
We have tested this plugin in the following browsers: IE6, IE7, IE8, Firefox 2, Firefox 3.5, Safari 3 and 4, Opera 9.
Upvotes: 2
Reputation: 1963
Can you be a bit more descriptive about what style charts you're looking for? Simple charts like line, bar and pie graphs are understandably more widely implemented. If you're looking for more complex ones such as gantt, sparklines or real-time / data streaming charts it narrows your options substantially.
As far as being cross browser compatible, flash and HTML canvas are both pretty well supported and most people will be able to view the charts if you use either method of delivery.
There are several free flash charting solutions that work superbly well.
I found it really easy to work with FusionCharts and they also have released plenty under a FREE licence. See : http://www.fusioncharts.com/free/Gallery.asp
Also see PHP / SWF Charts : http://www.maani.us/charts/index.php
XML/SWF Charts is free to download and use. The free, unregistered version contains all the features except for:
- Clicking a chart takes the user to the XML/SWF Charts web site. - No displaying charts inside another flash file. - No technical support, and no product updates by e-mail.
« The click redirect makes me prefer fusioncharts
Then as Justin Niessner mentioned, there is also Open Flash Chart.
If you prefer to go the HTML Canvas route, try:
- http://code.google.com/p/flot/ (as mentioned by Andrejs Cainikovs)
- http://www.liquidx.net/plotkit/
If you're using PHP, here's one : http://naku.dohcrew.com/libchart/
If None of the Above are a viable option and you want a really simple chart (bar, line) then consider using CSS charts:
Upvotes: 12
Reputation: 2872
For true cross-browser support I would recommend image graphs generated on the server.
If this isn't attainable use Flash-based plugins. This is the most widely-supported clientside solution. Otherwise resort to Javascript - it may require HTML5, or non-IE browsers, or ..
If you're seeking a simple graph in HTML table see here. Far from recommended though!
Upvotes: 0
Reputation: 44804
You should be able to use SVG for this. Sadly, IE can't display it without installing an unsupported third party add-in.
Upvotes: 0
Reputation: 4526
Dojo charting also works OK (and uses SVG/VML rather than Canvas/ExCanvas, which means you can do funkier things with it if you look at its internals), but flot is nicer to program with imo.
Upvotes: 1
Reputation: 8772
Flot is nice. Not the most fully-featured charting system, but it does what it does really well.
Upvotes: 1
Reputation: 245419
If it's possible for your project, you might also want to check out some of the Flash charting packages like Open Flash Chart.
You could also try using some of the Flex functionality.
That way no matter what browser your user is using, you're running on a consistant runtime.
Upvotes: 1
Reputation: 2085
If you consider Flash to be cross browser and don't mind spending some money this is a good option:
Upvotes: 2