Skip to content

Instantly share code, notes, and snippets.

Created July 24, 2012 16:35
Show Gist options
  • Save anonymous/3171074 to your computer and use it in GitHub Desktop.
Save anonymous/3171074 to your computer and use it in GitHub Desktop.
created by livecoding - http://livecoding.gabrielflor.it
var width = $('svg').width();
var height = $('svg').height();
var svg = d3.select('svg');
svg
.attr('width', width)
.attr('height', height);
svg.selectAll('circle')
.data([32, 57, 112, 293])
.enter().append('circle')
.attr('cy', 90)
.attr('cx', String)
.attr('r', Math.sqrt);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment