I am trying to create a graph like this:
http://bl.ocks.org/cmdoptesc/6228457
or like this
http://raphaeljs.com/polar-clock.html
But I want it to be able to scale (preferably without javascript) according to the browser width. I would love to be able to do this with CSS only, and if not with CSS, preferably without a library like raphael or d3 (though I'll take what I can get). Anybody know how to accomplish this in a way that scales down / up?
UPDATE
I made a JS Fiddle - this is exactly the graph I want:
But I need it to resize. I am using Raphael, and I read about SVG resizing here:
http://bertanguven.com/?tag=raphael-js
and here:
http://www.justinmccandless.com/blog/Making+Sense+of+SVG+viewBox%27s+Madness
but I don't want to have to resize with JS - I'd really like to be able to do this with svg properties such as viewBox and preserveAspectRatio
, but I still haven't seen an example that accomplishes this.
Any ideas?