Skip to content

Instantly share code, notes, and snippets.

View mroswell's full-sized avatar

Marjorie Roswell mroswell

View GitHub Profile
@mroswell
mroswell / README.md
Created November 9, 2015 13:57 — forked from mbostock/.block
Treemap

A treemap recursively subdivides area into rectangles; the area of any node in the tree corresponds to its value. This example uses color to encode different packages of the Flare visualization toolkit. Treemap design invented by Ben Shneiderman. Squarified algorithm by Bruls, Huizing and van Wijk. Data courtesy Jeff Heer.

--PART 2
-- a.
# select all the tornadoes
SELECT * FROM tornados
# select the cartodb_id for all the tornadoes
SELECT cartodb_id FROM tornados
-- b.
# select the first tornado
SELECT * FROM tornados LIMIT 1
# select the second tornado
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.