Skip to content

Instantly share code, notes, and snippets.

@abusedmedia
Created October 3, 2013 13:37
Show Gist options
  • Save abusedmedia/6809968 to your computer and use it in GitHub Desktop.
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
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