Hacker News new | past | comments | ask | show | jobs | submit login
D3, Conceptually - Lesson 2 (hazzens.com)
72 points by hazzen on Dec 4, 2012 | hide | past | favorite | 9 comments



Nice job of showing/hiding the source behind each chart. For me the real power of D3 is binding it to data using APIs. I wonder who is already doing this.


To add to this, anyone using D3 as the render target in Backbone views?



Excellent find, thanks!


Not sure quite what you mean, but I've used a Backbone view's initialize/render to set up a D3 visualization, and events to trigger changes to it.


square, nytimes, etc.


On a tangent to another one of these great lessons, I have to ask this. Does anyone have a correct D3 world json file with the missing countries and islands ?


Be sure to use the recently released TopoJSON world map, though it doesn't have comprehensive islands.

http://bl.ocks.org/4180634

TopoJSON is a variant of GeoJSON that supports shape simplification, map coloring, cartograms and other topology-related features.

https://github.com/mbostock/topojson

For small geographic features like tiny islands, try the new d3.geo.tile plugin with a high-resolution tileset.

http://bl.ocks.org/4162068 https://github.com/d3/d3-plugins/tree/master/geo/tile

TileMill can create tilesets from shapefiles and other formats. It can export GeoJSON for D3 too.

http://mapbox.com/tilemill/

More examples:

http://bl.ocks.org/mbostock http://bl.ocks.org/jasondavies http://bl.ocks.org/tmcw


Thank you for the links oscilloscope, jit resources. Not having Malta in there was killing any european biz intel graph.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: