Skip to main content
100%

A classic comparison (sorted)

✓ Published0🌍 Public
TThanaporn-sk
Last edited Oct 7, 2016
Created on Oct 7, 2016

Seven random values are displayed in four small multiples, each using a different D3 layout: a bar chart, a pie chart, a treemap, and a bubble chart. The data are sorted in descending order before rendering, so every chart presents the same ranked sequence of categories. The code uses D3 v3 layouts including `d3.layout.pie`, `d3.layout.treemap`, and `d3.layout.pack`, with SVG shapes for all marks. A categorical color scale maps each of the seven classes to a distinct color across all panels.

AI-generated description

Same as the previous example, but the seven classes are sorted by descending value, giving four ordered charts.

forked from <a href='http://bl.ocks.org/nitaku/'>nitaku</a>'s block: <a href='http://bl.ocks.org/nitaku/6c9d44be408e541fd654'>A classic comparison (sorted)</a>

mit Licensed

Similar vizzes