Skip to content

Instantly share code, notes, and snippets.

@trinary
Created October 16, 2013 21:43
Show Gist options
  • Save trinary/7015423 to your computer and use it in GitHub Desktop.
Save trinary/7015423 to your computer and use it in GitHub Desktop.
Tributary inlet
{"description":"Tributary inlet","endpoint":"","display":"div","public":true,"require":[],"fileconfigs":{"inlet.js":{"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/QseitET.png"}
var data = [1,3,5,2,3,5];
var d = d3.select("#display")
.selectAll("div")
.data(data)
.enter()
.append("div")
.style("padding-left", function(d,i) { return d * 7 + "px"; })
.style("width", function(d,i) { return d * 20 + "px"})
.style("border", "1px solid")
.text(function (d,i) { return d; });
// console.log(d);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment