🌍 Public
Viewing a saved revision (read-only)
9629f86d3463422abe3dad165f5b29e8
Stacked Bar Chart with D3.js
This stacked bar chart visualizes monthly sales data for ten products, with each bar segmented by month. The example uses D3.js v7 to generate random data, render SVG rectangles for the bars, and apply `d3.scaleBand` and `d3.scaleLinear` for positioning. Color encoding via `d3.scaleOrdinal` with `d3.schemeCategory10` distinguishes months, while axes, labels, and a legend are added using `d3.axisBottom` and `d3.axisLeft`.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.