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 display the same dataset of grades and associated names. Three sorting buttons reorder both charts simultaneously, with bars animating into their new positions. The example uses D3.js version 3.5.5 with ordinal and linear scales, SVG rendering, and transition delays to animate bar heights and the appearance of axes. The data is embedded as a JavaScript array of objects with name and grades properties.

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