Skip to main content
100%

Untitled

✓ Published1🌍 Public
Ssubratanp
Last edited Feb 18, 2023
Created on Feb 17, 2023
Forked from Untitled

This example shows a stacked bar chart of fruit quantities over three months, using D3 v6 within a React context. The bars are rendered as SVG rectangles, with an ordinal color scale mapping apples, bananas, and oranges to blue, green, and red. The chart uses `d3.scaleBand` for the x-axis months, `d3.scaleLinear` for the y-axis, and `d3.stack` to compute the stacked series. It reads inline data with monthly values and displays axes via `axisBottom` and `axisLeft`.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes