Aster Plot in D3
This aster plot in D3 renders pie slices as radial bars, where the length of each slice (from inner to outer radius) encodes a score from 0 to 100, and the angular width represents the weight of each metric. The visualization uses the d3.layout.pie with the weight as the value, and each arc’s outer radius is scaled proportionally to its score. A gray outline arc is drawn for each slice, and hover tooltips via d3-tip display the metric label and score. A weighted mean score is shown in the center. The chart is built with SVG and D3 v3, and includes a linear gradient fill across the arcs. Data is loaded from a CSV with columns for id, order, score, weight, color, and label, and the visualization was originally developed as part of the NCEAS Open Science CodeFest.
AI-generated descriptionThis aster plot displays pie slices as lengths extending outward to the edge (0 at inner to 100 at outer). Widths of the pie slices represent the weight of each pie, which gets used to arrive at a weighted mean of the length scores in the center.
Contributors
Jim Regetz @regetz developed the initial aster plot function in R (see aster-plot on github)
Parker Abercrombie @parkerabercrombie developed the initial D3 prototype varying 3 of the 4 arc elements starting with Mike Bostock's Donut Chart:
- outerRadius
- startAngle
- endAngle
This is the only example pie chart I've encountered on the web (after much searching) which varied individual arc segments by all 3 (usually just startAngle and endAngle with fixed innerRadius and outerRadius, even if done with multiple rows as with the very cool Zoomable Sunburst). The outline of the pie chart is generated in addition to the outerRadius-varying segments. For more details, see the d3 Pie Layout documentation.
Tooltips on hover are rendered via the d3-tip library.
This effort was made possible through the NCEAS Open Science CodeFest Sep 2-4, 2014 in Santa Barbara, CA.
Ben Best @bbest adapted Parker's prototype to CSV data from the Ocean Health Index. For more details on the data prep, see ohi-aster on github.
forked from <a href='http://bl.ocks.org/bbest/'>bbest</a>'s block: <a href='http://bl.ocks.org/bbest/2de0e25d4840c68f2db1'>Aster Plot in D3</a>
forked from <a href='http://bl.ocks.org/newsummit/'>newsummit</a>'s block: <a href='http://bl.ocks.org/newsummit/b570ee9f1842f404813b49d49c964fcc'>Aster Plot in D3</a>
forked from <a href='http://bl.ocks.org/lorenzopub/'>lorenzopub</a>'s block: <a href='http://bl.ocks.org/lorenzopub/962061c74a093a44371d93bc73d98183'>Aster Plot in D3</a>
forked from <a href='http://bl.ocks.org/TollyCoburn/'>TollyCoburn</a>'s block: <a href='http://bl.ocks.org/TollyCoburn/8f33fee3cad5a16d43a681c2e0f91f5c'>Aster Plot in D3</a>