Untitled
✓ Published1🌍 Public
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 descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.
MIT Licensed