Skip to main content
100%

D3: Linked charts

✓ Published0🌍 Public
AAdlopez2016
Last edited Sep 7, 2016
Created on Sep 7, 2016

Two linked bar charts share the same dataset, visualizing grades and a second variable. Each chart uses its own linear scale and axis, while a single ordinal scale positions the bars. Animated transitions and sort buttons let users reorder the bars by ascending or descending values. The example demonstrates how to link two D3.js SVG visualizations built from the same data, enabling interactive comparison.

AI-generated description

Linked bar charts with sorting functions

Copied and tweaked from <a href="www.alignedleft.com"> Scott Murray's</a> examples. This gives introduction to:

  • linking together two graphs built from same dataset
  • adding 3 different sorting buttons based on ascending/descending of different variables

forked from <a href='http://bl.ocks.org/jalapic/'>jalapic</a>'s block: <a href='http://bl.ocks.org/jalapic/b629a4c2470b8646781c'>bars: links,sorting</a>

forked from <a href='http://bl.ocks.org/Adlopez2016/'>Adlopez2016</a>'s block: <a href='http://bl.ocks.org/Adlopez2016/3ba1c494e12d90ca4bfe5877f08e7003'>grades visualization</a>

mit Licensed

Similar vizzes