News for hackers. Stuff that matters.
Re:SVG: The best way to graph quantitative data by pygy_ on Wednesday January 12, 2011 @08:37PM (#2098453)
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/

Re:SVG: The best way to graph quantitative data by jacobolus on Wednesday January 12, 2011 @10:17PM (#2098690)
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 more exciting SVG framework.

Re:SVG: The best way to graph quantitative data by Xurinos on Thursday January 13, 2011 @12:08AM (#2098919)
I favor Protovis (quick) and jquery.svg (custom).
Re:SVG: The best way to graph quantitative data by scw on Thursday January 13, 2011 @02:52AM (#2099175)
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 by magicseth on Wednesday January 12, 2011 @09:40PM (#2098604)
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 sweetheart. Very sad.

Re:SVG: The best way to graph quantitative data by eitland on Thursday January 13, 2011 @08:18AM (#2099669)
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.
Re:SVG: The best way to graph quantitative data by hc5 on Wednesday January 12, 2011 @09:07PM (#2098538)
It's worth noting that Android browsers don't support SVG (yet).
Re:SVG: The best way to graph quantitative data by msy on Thursday January 13, 2011 @03:39AM (#2099244)
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 by fletchowns on Wednesday January 12, 2011 @09:09PM (#2098542)
If you are interested in SVG charting engines, check out Highcharts. Used them on a project recently and really liked how it turned out. It's a shame that VML performance in IE is so terrible when SVG performance in Chrome is so awesome.

http://www.highcharts.com/

Re:SVG: The best way to graph quantitative data by megaman821 on Wednesday January 12, 2011 @11:21PM (#2098845)
Highcharts is definitely one of the most impressive chart solutions I have seen.

I don't remember its VML performance being particularly slow but I do know its' SVG performance screams in IE9.

Re:SVG: The best way to graph quantitative data by 3pt14159 on Wednesday January 12, 2011 @08:38PM (#2098457)
Naw, SVG is a good way some of the time. It's very context specific.
Re:SVG: The best way to graph quantitative data by chrisbroadfoot on Thursday January 13, 2011 @02:20AM (#2099126)
Cool. But where's the live demo?

Also - just one snarky comment on JS style:

  if(!!document.createElementNS 
   && !!document.createElementNS('http://www.w3.org/2000/svg, "svg").createSVGRect) {
No need for the bangs!
Re:SVG: The best way to graph quantitative data by benatkin on Thursday January 13, 2011 @02:43AM (#2099160)
d3 is really interesting from a coding standpoint. It's a bit like a fancy orm like SQLAlchemy, Sequel, or the new ActiveRecord with arel. Instead of transforming model data it transforms view data, though. It's worth a look IMHO.

https://github.com/mbostock/d3

Re:SVG: The best way to graph quantitative data by redwood on Wednesday January 12, 2011 @09:09PM (#2098541)
Hadn't heard of simplegeo: look cool...one of the only startups wthout a jobs page: p
Re:SVG: The best way to graph quantitative data by infocaptor on Saturday January 15, 2011 @11:28AM (#2107196)
SVG is slower than html5 canvas. my preference would be still html5 due to performance reasons. It is good to use a combination of both. For SVG files can be converted to javascript code and vice versa