Skip to main content
100%

Barchart met RDW Data v6

✓ Published1🌍 Public
Rrainyrainyguo
Last edited Nov 18, 2020
Created on Nov 18, 2020

Two bar charts share a single SVG canvas, displaying categorical values for groups A, B, and C. Users switch between the "Taxis" and "Personenautos" datasets by clicking buttons, which triggers a D3 v5 transition that smoothly animates the rectangular bars to their new heights over one second. The visualization uses `d3.scaleBand` for the x-axis, `d3.scaleLinear` for the y-axis, and `selection.merge` with `.transition().duration()` to update existing SVG rect elements. Static axes and a teal fill style (via CSS) frame the animated data comparison.

AI-generated description
MIT Licensed

Similar vizzes