Skip to main content
100%

d3js workshop - animated bar charts

✓ Published0🌍 Public
NNate-Holland
Last edited Oct 23, 2017
Created on Oct 23, 2017

This example shows an interactive animated bar chart of 2015 Premier League standings, with each team’s points displayed as the bar length and colored by number of wins. Below the chart, a row of circles duplicates the same color encoding, and clicking either a bar or circle triggers a D3 update that transitions the bar widths and colors to reflect wins instead of points. Built with d3.v3, it uses d3.csv to load the data, d3.scale.linear for positioning and color, and SVG elements with event listeners for the interaction.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/mostaphaRoudsari/'>mostaphaRoudsari</a>'s block: <a href='http://bl.ocks.org/mostaphaRoudsari/b65c971877b2950a3f38332eb8c24400'>08_workshop_animated horizontal bar chart</a>

mit Licensed

Similar vizzes