Group bar chart with tooltip
✓ Published0🌍 Public
AAlireza-Dezfoolian
Last edited Jan 16, 2018
Created on Jan 16, 2018
A grouped bar chart displays population distributions across six U.S. states, with each state’s bars broken down by seven age brackets. The chart uses a vertical axis labeled “Population” and a horizontal axis listing state abbreviations, with a color-coded legend identifying each age group. Built with D3 v4 and the d3-tip plugin, it renders as SVG and shows exact values on mouseover via tooltips. The code employs `d3.scaleBand` for grouped positioning, `d3.scaleLinear` for the y-axis, and `d3.scaleOrdinal` for colors.
AI-generated descriptionGroup bar chart with tooltip
mit Licensed