Skip to content

Instantly share code, notes, and snippets.

We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
http://www.arb.gov.on.ca/ecs/default.aspx?r=01-11-018-000-51000-0000
http://www.arb.gov.on.ca/ecs/default.aspx?r=02-08-060-002-01288-0000
http://www.arb.gov.on.ca/ecs/default.aspx?r=05-06-002-007-58100-0000
http://www.arb.gov.on.ca/ecs/default.aspx?r=06-14-116-301-53300-0000
http://www.arb.gov.on.ca/ecs/default.aspx?r=06-14-116-301-53700-0000
http://www.arb.gov.on.ca/ecs/default.aspx?r=06-14-120-235-05800-0000
http://www.arb.gov.on.ca/ecs/default.aspx?r=06-14-120-695-01501-0000
http://www.arb.gov.on.ca/ecs/default.aspx?r=06-14-600-195-02300-0000
http://www.arb.gov.on.ca/ecs/default.aspx?r=08-02-020-045-44300-0000
http://www.arb.gov.on.ca/ecs/default.aspx?r=08-14-000-020-29301-0000

BIS Derivative Data

Explore Using Mike Bostock's Stacked to Multiple Bar Example

To make this work, I had to change up the data transformation. Also, I changed the stack to use the entire height. Thanks to Jason Davies eyedropper le to match the colors in the original BIS publication.

Data Source

BIS OTC Derivatives statistics

@drennapete
drennapete / data.tsv
Last active August 29, 2015 14:15 — forked from mbostock/.block
group date value
Target 20000 0
Target 40000 0
Target 60000 0
Target 80000 6
Target 100000 31
Target 120000 57
Target 140000 32
Target 160000 4
Target 180000 2
@drennapete
drennapete / README.md
Last active August 29, 2015 14:15 — forked from mbostock/.block

TEST

@drennapete
drennapete / README.md
Last active August 29, 2015 14:15 — forked from mbostock/.block

This histogram shows the distribution of GitHub Gist API response times (in milliseconds) for a sample of 10,000 requests as obser

@drennapete
drennapete / README.md
Last active August 29, 2015 14:15 — forked from mbostock/.block

This bar chart visualizes hierarchical data using D3. Each blue bar represents a folder, whose length encodes the total size of all files in that folder (and all subfolders). Clicking on a bar dives into that folder, while clicking on the background bubbles back up to the parent folder. The effect is similar to a zoomable partition layout, though in a more conventional display.

I combined Mike Bostock's Zoomable Sunburst and Sunburst Partition examples, so that I could have both zooming and updating the underlying data (between count and size, in this case). A simple combination of the examples does not work; you have to edit the arcTween function used for updating the data, so that when it redraws the partition layout, it takes account of the current zoom level by adjusting the domain of the x scale.

Click on any arc to zoom in, and click on the center circle to zoom out. Use the Size/Count radio buttons to update the data.

@drennapete
drennapete / README.md
Last active August 29, 2015 14:14 — forked from metmajer/README.md

Chart Type: Zoomable Sunburst with Labels.

Forked from forked from metmajer/README.md

Data: Canada Retail Spend by NAICS catagory. From Statistics Canada CANSIM table 080-0023.

@drennapete
drennapete / README.md
Last active August 29, 2015 14:14 — forked from vgrocha/README.md

d3-bilevelLabelTooltip

This is a modified d3js bilevel partition in which labels and tooltips were added.

The idea is to have an abbreviation of the partition displayed and a tooltip with a fancier description and the size of that partition.

The base for this chart was Mike's Bilevel Partition. Tooltips thanks to Sharon Howard

@drennapete
drennapete / README.md
Last active August 29, 2015 14:14 — forked from mbostock/.block

A sunburst is similar to the treemap, except it uses a radial layout. The root node of the tree is at the center, with leaves on the circumference. The area (or angle, depending on implementation) of each arc corresponds to its value. Sunburst design by John Stasko. Data courtesy Jeff Heer.nn