Skip to content

Instantly share code, notes, and snippets.

@li01012
Created April 20, 2017 22:42
Show Gist options
  • Save li01012/5087c6618bcbe73dcc2a9e6f14318e30 to your computer and use it in GitHub Desktop.
Save li01012/5087c6618bcbe73dcc2a9e6f14318e30 to your computer and use it in GitHub Desktop.
class12
license: mit
<!DOCTYPE html>
<meta charset='utc-8'>
<body>
<script src="d3js.org/d3.v4.min.js"></script>
<script src="d3js.org/topojson.v2.min.js"></script>
<script>
var width=960, height=500;
var svg = d3.select('body').append('svg')
.attr('width', width)
.attr('height', height)
d3.queue()
.defer(d3.json,'https://github.com/umbcvis/classes/blob/master/class-12/tracts.json')
.defer(d3.json,'https://github.com/umbcvis/classes/blob/master/class-12/population.json')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment