Skip to content

Instantly share code, notes, and snippets.

@phantomas1234
Created September 10, 2013 17:58
Show Gist options
  • Select an option

  • Save phantomas1234/6513093 to your computer and use it in GitHub Desktop.

Select an option

Save phantomas1234/6513093 to your computer and use it in GitHub Desktop.
Testvar svg = d3.select("svg") .append("svg:g") var line = svg.selectAll("g.line") .data(lines) .enter().append("svg:g") .attr("class", "line") .each(lineenter);
{"description":"Testvar svg = d3.select(\"svg\") .append(\"svg:g\") var line = svg.selectAll(\"g.line\") .data(lines) .enter().append(\"svg:g\") .attr(\"class\", \"line\") .each(lineenter);","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.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}},"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,"thumbnail":"http://i.imgur.com/zMgS0NL.png"}
var stuff = [1,2,3,4]
var svg = d3.select("svg")
.append("svg:g")
var line = svg.selectAll("g.line")
.data(stuff)
.enter().append("svg:g")
.attr("class", "line")
.each(lineenter);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment