Graphs on Raphaël, images rendered by the browser

· 6 comments

We heard a tweet on the wire about Raphaël.js back in October. An open-source javascript library that abstracts vector drawing and animation across web browsers. The demoes show beautiful, fast, interactive graphics. Support for more computer platforms than Flash. Inspiring!

So, we began an experiment here at the labs to replace our static image graphs with dynamic, clickable visualizations, built on open internet standards (and Microsoft’s proprietary VML).

Could it work? Would it explode IE6?

Blog volume: San Francisco Bay Bridge


Those peaks in volume are Cracked I-beam Discovered on Bay Bridge and then Bay Bridge Closed After Crack Repair Fails.

Blog volume comparison: SF coffee scene

Blue Bottle Coffee, Ritual Coffee, Four Barrel Coffee, Sightglass Coffee


Hot browser abstraction action

Raphaël exposes simple Javascript constructs of circles, rectangles, paths with bezier control points, and text, along with ways to animate movement, color, opacity… With these ingredients, painting a picture through code, Raphaël generates open/free/standard SVG markup for Firefox and Safari, switching to VML output for Windows Internet Explorer.

Elder Firefox 2 is our only real casualty; the SVG support is nonexistant in that faithful dog. We fondly scoot along the three of you still on Firefox 2, toward Firefox 3.5.

So, yes, they’re here. All Scout Labs workspaces now have these interactive graphs.

Posted on Wednesday, November 25th 2009 at 21:41 under , , , . Tagged , , , , .

6 Comments

Gravatar

These graphs are absolutely beautiful. Is it allowed to use you sample code in own projects or is it “closed source” (as far as JS can be closed source)?

Kind regards,
Martin

Gravatar

Hey,

cool, i’m working with gRaphael currently and i’m trying to geht a legend for the line-charts to work, can you give me a tip?

Greetings
Nadine

Gravatar

Martin,

We have not released our visualization JS as an open-source project. Any changes we made to Raphael.js during our development process are available at this GitHub repository.

Nadine,

Raphael’s community is growing strong. The best place to ask questions is their Google Group.

*Mars

Gravatar

Beautiful! Very good job everyone!

Gravatar

Nice work!

Gravatar

This looks awesome!

Post a comment

Blog Post Categories

View Archived Posts

By author
By month