Skip to main content
100%

Gunz N' Roses Moving Bars

✓ Published2🌍 Public
KKarkG
Last edited Nov 2, 2020
Created on Sep 8, 2020

This example visualizes a grouped bar chart for "Gunz N' Roses," showing daily quantities of guns and roses over seven days, with each item assigned a distinct color via d3.scaleOrdinal. Users can hover over a bar to highlight it and display divergence values for other bars relative to the selected one, using an SVG line as a reference. Bars are draggable vertically via d3.drag, which updates their height and triggers a re-render of the chart with adjusted y-scale limits. The visualization uses d3.scaleBand for grouping, d3.scaleLinear for the y-axis, and animated transitions during interactions.

AI-generated description
MIT Licensed

Similar vizzes