Skip to main content
100%

D3: Linked charts

✓ Published0🌍 Public
TTedables
Last edited Feb 7, 2017
Created on Feb 7, 2017

This interactive example presents two linked bar charts comparing giving and bonus data for named items. The visualization uses D3.js to render both charts as SVG elements, each with its own linear scale and axis. Users can re-sort the linked dataset by clicking buttons that arrange the bars by giving, bonus, or rank, with all charts updating consistently. Sorting transitions are animated, and highlighting reveals label text on bars. The code demonstrates how D3's selection, transition, and scale APIs can coordinate multiple charts from a shared dataset.

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>

mit Licensed

Similar vizzes