Wednesday, October 01, 2008

Raphael Bakes a Nice Pie

Raphaƫl is a very cool Javascript library that provides an abstraction over the the vector graphics capabilities built into today's browsers. I cooked up a little example that demonstrates the usage of Raphael to make a pie chart component:



This example seems to work well on all modern browsers and will even work on IE back to at least version 6. It uses SVG on most browsers and VML on the IE line - this is some very impressive work by Dmitry Baranovskiy.

So what is so good about SVG and VML over a regular canvas? Events my friend, events!