Created
October 3, 2013 13:37
-
-
Save abusedmedia/6809968 to your computer and use it in GitHub Desktop.
Quick topojson shape visualizator code in d3.js, where `data` is the loaded json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
svg.selectAll('path') | |
.data(topojson.object(data, data.objects.input_file).geometries) | |
.enter() | |
.append('path') | |
.attr('d', path) | |
.style('fill', '#44cccc') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment