Nice! I did the same thing a couple weeks ago <http://github.com/jackrusher/jssvggraph>; to help explain the simplicity of the algorithm to a friend. Mine paints SVG directly rather than using Raphael, so it only works with browsers that support that standard. One thing this brought to my attention is that the WebKit SVG implementation is much, much faster than Gecko's.