Skip to content

Instantly share code, notes, and snippets.

@tom-christie
Last active March 1, 2016 15:06
Show Gist options
  • Save tom-christie/c14d96b1c009b744d72c to your computer and use it in GitHub Desktop.
Save tom-christie/c14d96b1c009b744d72c to your computer and use it in GitHub Desktop.
Tributary inlet
{"description":"Tributary inlet","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"style.css":{"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,"ajax-caching":true,"thumbnail":"http://i.imgur.com/rq74J0m.png"}
// set size of chart area
var margin = {top: 30, right: 20, bottom: 20, left: 80},
width = 500 - margin.left - margin.right,
height = 250 - margin.top - margin.bottom,
cwidth = 50;
var svg = d3.select("svg")
svg.append("rect")
.attr({
width: 100,
height: 100,
x: 200,
y: 62,
fill: "#22bd58"
});
body{
background-color:white;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment