Live data from Hacker News

SVG: The best way to graph quantitative data

developers.simplegeo.com

11–17 of 17 posts

Re: SVG: The best way to graph quantitative data

#11
post #2

RaphaelJS offers the advantages of SVG with an IE fallback. It's a Javascript library that outputs VML in IE6+ and SVG everywhere else. The graphs can be manipulated in JS after their creation to create animations. http://raphaeljs.com/

Also has the disadvantage of adding a lot of unnecessary overhead to SVG, changing how you interact with it, and preventing you from using lots of SVG features. For anything that needs much redrawing or interaction, the IE fallback can be extremely slow. If you have reasonably simple needs or can adapt an existing Raphael demo, go for it. For my own projects, I don’t think it’s worth it, but YMMV. Protovis is a much…

I favor Protovis (quick) and jquery.svg (custom).

Re: SVG: The best way to graph quantitative data

#14
post #2

RaphaelJS offers the advantages of SVG with an IE fallback. It's a Javascript library that outputs VML in IE6+ and SVG everywhere else. The graphs can be manipulated in JS after their creation to create animations. http://raphaeljs.com/

Also has the disadvantage of adding a lot of unnecessary overhead to SVG, changing how you interact with it, and preventing you from using lots of SVG features. For anything that needs much redrawing or interaction, the IE fallback can be extremely slow. If you have reasonably simple needs or can adapt an existing Raphael demo, go for it. For my own projects, I don’t think it’s worth it, but YMMV. Protovis is a much…

The library they're using, b3, was developed by some of the same folks as Protovis. Protovis looks interesting, thanks for the link.

Re: SVG: The best way to graph quantitative data

#15
post #5

It's worth noting that Android browsers don't support SVG (yet).

To make that even more..fun the support is there but disabled and the dev team have refused to give any kind of timeline. I assume there's either some significant performance issues or glaring bugs. This seems odd given it's part of webkit & runs just dandy on iOS.

Re: SVG: The best way to graph quantitative data

#16

Ironically, Adobe used to be the biggest supporter of SVG... before they purchased Flash. Their svg renderer was by far the best in the field at the time, and supported lots of wonderful features, including great ECMAscript (Javascript), had the ability to build AJAX-like interactions using remote requests, and was fundamentally awesome. It never made it out of beta and got killed when Flash became Adobe's new sweeth…

I once made a GPS navigation system using IE 6 (!) in fullscreen, the Adobe flash plugin (for SVG and ECMAScript), SVG files on local disk and a small program that got the GPS coordinates from the receiver and added them to a file in the same directory. This was a few years ago before mobile internet became cheap enough for mainstream use.
Post reply on HN