🌍 Public
Viewing a saved revision (read-only)
8e7c2f16567b4ce7bd35307b3af26637
question2
A stacked bar chart shows vehicle sales across five brands, with each bar divided into three color-coded car categories: SUV, sedan, and mini. The chart uses D3 v7's `d3.stack()` and `d3.scaleBand()` to position horizontal bars, with `d3.scaleLinear()` mapping the sales totals. Hovering over a segment triggers a tooltip displaying the exact sales value for that brand and category, using D3 event handlers for mouseover, mousemove, and mouseout interactions.
AI-generated descriptionA demonstration of how to start using D3 version 6.