Skip to content

Instantly share code, notes, and snippets.

Created June 4, 2013 19:26
Show Gist options
  • Save anonymous/5708752 to your computer and use it in GitHub Desktop.
Save anonymous/5708752 to your computer and use it in GitHub Desktop.
{
"libraries": [
"d3"
],
"mode": "javascript",
"layout": "fullscreen mode (vertical)",
"resolution": "reset"
}
svg {
position: absolute;
}
var width = $('svg').width();
var height = $('svg').height();
var svg = d3.select('svg');
svg
.attr('width', width)
.attr('height', height);
svg.selectAll('circle')
.data([18, 57, 112, 323])
.enter().append('circle')
.attr('cy', 236)
.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