October 18th 2009 by Peter · 9 comments
5 Cool Ways to Add Graphs to Your Website

Graphs, charts and diagrams can be used to visually describe data. Visualizing data is very important, as it helps the reader to understand the data even better. And even though some people might prefer viewing data in a table, I think we are many who feel more comfortable in viewing data graphically. Fortunately for us, there are several ways you can implement data into a graph on a website.
Basically, you have two main options; You can use Flash, or you can use jQuery. What you prefer is entirely up to you, but I’d like to show you some of the possibilities within each technology.
Open Flash Chart
Open Flash Chart is—as the name states—a Flash chart. If you run a WordPress blog, you might know it from the WordPress.com Stats Plugin. It is open source, and there are lots of customization options. You can make almost any kind of chart you can imagine, and it’s fairly easy to setup if you just follow the tutorials on the Open Flash Chart website. With the new Open Flash Chart 2, you can even use it with jQuery and save your graphs as images. To see examples, and to read the tutorials, visit the Open Flash Chart website.
Flot
Next up is Flot, a jQuery based method for implementing graphs. It is hosted at Google Code, and it works in all the major browsers (including IE6). It comes with a great bunch of examples, but the documentation could be better. The output of Flot will be a static image.
jQuery Visualize Plugin
This jQuery plugin helps you implement dynamic charts into your website without using Flash. Using the HTML5 canvas element it is possible to create great-looking charts without using even images. There’s a very thorough tutorial at the site that helps you set it all up. Also, it works in every major browser.
jQuery SVG
This is yet another jQuery plugin called jQuery SVG. It uses SVG, a language “for describing two-dimensional graphics in XML”. SVG is supported in most browsers. Actually, it is not only a graphing plugin. You can use it to create advanced graphics on your website such as text paths. Still, for graphs it is very usable.
Google Chart API
The last method is Google’s own Chart API. It is very simple, and all you get is static images. But the static images are cool. You can easily create world maps with selected countries colored in your choice of color. As with almost every Google project, the documentation is awesome. You’ll get some very fine looking graphs with little effort, and everything is customizable.
Conclusion
Now to the big question: Which method is the best? I don’t know. I guess it’s all about taste and what you need it for. But similar for the five mentioned methods is that you have some very great, free resources that easily lets you implement graphs into your website.
Related posts:
9 comments so far
Trackbacks & Pingbacks
- Favorites from the Feeds #08 « Blogoholics Anonymous
- Mchiche.Com | Upgrade Your Mind ! » 58 liens sur inspiration, Wordpress, typographie, javascript, …
- Favorites from the Feeds #08 | meshdairy
- Favorites from the Feeds #08 | Master Design
- links for 2009-10-25 « Giri’s Blogmarks
- seoulrain's me2DAY
- Favorites from the Feeds #08 | Programming Blog
- Favorites from the Feeds #08 : BeginnerPC
- Favorites from the Feeds #08
- 58 liens sur inspiration, Wordpress, typographie, javascript, …
- links for 2009-10-19 | Gzone
- uberVU - social comments
- Tweets that mention 5 Cool Ways to Add Graphs to Your Website | Stiern.com -- Topsy.com





My favorite way has to be dynamically through PHP, it gives you so much control you never thought you’d have.
Have you come across this?
http://raphaeljs.com/
Yeah, Joe wrote a comment about right below. It is a great resource!
two others you may consider:
http://vis.stanford.edu/protovis/ex/
and
http://raphaeljs.com/
Those are pretty cool! It seems you can do a lot with both of them. Thanks, Joe!
Perfect timing. Have been recently discussing adding dynamic charts to a site for a new client. Flot looks like a great tool.
This is surely for more advanced users than me. I use Animated Chart prog, it’s commercial but really very easy to use. And the most important for me – I don’t need programming knowledge to make flash chart with it. Still, thank for posting, maybe one day I’ll get into these tricky things
…or you could use PHP, or you could use MooTools, or pure JavaScript… Just two main options? Really?
Ha ha, I see your point! I’m sorry about that. I actually didn’t know that you could create graphs with pure CSS, and I didn’t bring MooTools in because I only use jQuery myself, but that’s of course not the way to do it, I see now. Thanks!