Skip to content

Instantly share code, notes, and snippets.

@rosiehoyem
Created February 11, 2014 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosiehoyem/8941619 to your computer and use it in GitHub Desktop.
Save rosiehoyem/8941619 to your computer and use it in GitHub Desktop.
Solar Production Data
{"description":"Solar Production Data","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"d3.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"css":{"default":true,"vim":false,"emacs":false,"fontSize":12},"style.css":{"default":true,"vim":false,"emacs":false,"fontSize":12},"data.csv":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"inline-console":false}
letter number color
a 15 red
b 23 blue
c 17 green
var data = tributary.data
var svg = d3.select("svg");
svg.selectAll('circle').data(data).enter().append('circle').attr({
cx: 84,
cy: function(d,i){ return (i * 66) + 68},
r: function(d){
return d.number
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment