Skip to main content
100%

Pyramid Pie

✓ Published0🌍 Public
CChmits
Last edited Feb 6, 2018
Created on Feb 6, 2018

A pyramid pie chart uses a single D3 pie layout to show proportions as a rotated, triangular arrangement of three slices: sky, sunny side, and shady side. The chart uses `d3.layout.pie` and `d3.svg.arc` to compute slice geometry, and `d3.legend` to render a circular legend. Colors are assigned via an ordinal scale, and the whole pie is rotated with a transform. Data comes from a CSV file with feature, label, and proportion columns.

AI-generated description

A perceptually accurate pie chart.

inspired by this photo, whose provenance has been lost in the sands of time

the legend is drawn with the handy d3-legend component from @DataToViz

a descendant of this bl.ock from the prolific currankelleher

forked from <a href='http://bl.ocks.org/bumbeishvili/'>bumbeishvili</a>'s block: <a href='http://bl.ocks.org/bumbeishvili/d1a7f5e4f7c1492114d3b81a4594f335'>Pyramid Pie</a>

cco-1.0 Licensed

Similar vizzes