Skip to content

Instantly share code, notes, and snippets.

@blehman
Created November 18, 2015 00:04
Show Gist options
  • Save blehman/1735adf04d95f1307c73 to your computer and use it in GitHub Desktop.
Save blehman/1735adf04d95f1307c73 to your computer and use it in GitHub Desktop.
testing_fiona_code
{"description":"testing_fiona_code","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},"style.css":{"default":true,"vim":false,"emacs":false,"fontSize":12},"index.html":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"period","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"tab":"edit","display_percent":0.7,"thumbnail":"http://i.imgur.com/Z4ghHZY.png","fullscreen":false,"ajax-caching":true}
//var button = d3.select('body').append('button');
//button.text('Switch View')
//<button onclick="transition()">Switch View</button>
// --------------------------------------------------------------------------------------------------------------- DATA
d3.json("https://raw.githubusercontent.com/fionapigott/ebola-visualization/master/ebola_layers_data.json", function(json){
console.log(json)
})
body {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
font-size: 18px;
position: relative;
width: 1100px;
}
button {
position: absolute;
right: -100px;
top: 30px;
font-size: 16px;
}
.background rect {fill: #ddd;}
.axis {shape-rendering: crispEdges;}
.x.axis line {stroke: #fff;}
.x.axis path {display: none;}
.y.axis line {stroke: #fff;}
.y.axis path {display: none;}
.ylabel {font-size: 20px;}
.title {font-size: 30px;}
.timeline {
font-size: 18px;
text-anchor: end;
fill: #5E5E5E;
}
path {fill: none;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment