Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars1🌍 Public
AAnthony De La Fuente
Last edited Nov 13, 2020
Created on Nov 4, 2020
Forked from Making a Bar Chart

This example demonstrates how a bar chart can transition between datasets using D3.js version 6. It fetches vehicle registration data from the RDW Open Data API, counts cars by color per year, and displays the most popular colors for 2017. Users toggle between 2016 and 2017 datasets via radio buttons, triggering animated updates with `transition()` and `duration()`. The chart uses `d3.scaleBand` and `d3.scaleLinear` for axes, with an SVG rendering approach and a button-based interaction pattern.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed