question2
✓ Published0🌍 Public
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.
MIT Licensed