News for hackers. Stuff that matters.
Re:Simple SVG gauge built with Raphael by euroclydon on Monday April 02, 2012 @10:59AM (#3788405)
Raphael is nice. So is the SVG namespace in D3.

I work on a web-based instrumentation and visualization system that uses SVGs.

Here's a paper on it, if your interested: http://www.svgopen.org/2011/papers/72-Integrated_Power_Analy...

Re:Simple SVG gauge built with Raphael by iambot on Monday April 02, 2012 @12:34PM (#3788878)
Is it really necessary to have Raphael as a dependency for such a simple widget? Just seems like overkill to me.

I recently did a similar widget for a project of mine, using canvas (I understand SVG has better compatibility than canvas) but either way would be nice if I wanted this widget that I wouldn't have to include Raphael as well.

Re:Simple SVG gauge built with Raphael by ken on Monday April 02, 2012 @04:22PM (#3789871)
Raphael isn't just SVG; it's a vector library that can use SVG as a backend. It also works on IE back to IE6, using VML.

So if your goal is "SVG" and/or you only need to support modern browsers, then use SVG, it's great. If your goal is "vector graphics" and you need to support every browser made in the past 10 years, use Raphael.

Re:Simple SVG gauge built with Raphael by darklajid on Monday April 02, 2012 @01:22PM (#3789138)
It's totally possible to create a simple svg file in different ways. I'd think of this posts headline as 'Showing the power of svg by giving you a nice albeit simple graph element (in this case, generated with Raphael)'.
Re:Simple SVG gauge built with Raphael by crjn on Monday April 02, 2012 @10:04AM (#3788130)
Here is one example built for html5 but extremely configurable https://www.wireframes.org/ui/data/admin/wireframes_demo_4ee...
Re:Simple SVG gauge built with Raphael by wulczer on Monday April 02, 2012 @02:16PM (#3789341)
Wow, looks just like the one we made for Ducksboard :)

https://ducksboard.jira.com/wiki/download/thumbnails/262169/...

Props for open-sourcing it!

Re:Simple SVG gauge built with Raphael by baconner on Monday April 02, 2012 @05:10PM (#3790125)
Nice minimalism, but friends don't let friends use gauges! http://mbostock.github.com/d3/ex/bullet.html
Re:Simple SVG gauge built with Raphael by rorrr on Monday April 02, 2012 @01:12PM (#3789086)
I can't believe this dumb and trivial thing was upvoted so much.

HN, you're better than that.