Skip to main content
Public

Share visualization

Loading preview…

Gunz N' Roses Moving Bars

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Gunz N' Roses Moving Bars

2
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

Comments

Sign in to join the discussion.

MIT Licensed