Skip to main content
100%

Stacked Bar Chart

✓ Published0🌍 Public
Ssaikrishnabussa
Last edited Jul 17, 2023
Created on Jul 17, 2023
Forked from HTML Starter

This stacked bar chart displays visitor counts for five countries across the years 1995–2000 from the CSV file dataQ2.csv. The chart uses D3 v7 within an HTML page, rendering SVG rectangles positioned by a band scale on the x-axis and a linear scale on the y-axis. Each bar is colored by country using a categorical color scheme, with a legend added to distinguish series. The chart orders bars by year and stacks them side by side rather than accumulating values, revealing per-country trends over time.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes