🌍 Public
Viewing a saved revision (read-only)
9845b8958a9c45c4a9e69eff5ab72ad0
d3.js learning
This example demonstrates a stacked bar chart built with D3.js, visualizing changes in fruit production (apples, oranges, and pears) over multiple years. The chart uses D3’s `d3.layout.stack` to create the stacked series, `d3.scale.ordinal` for the x-axis, and `d3.svg.axis` for the axes. Hovering over a bar segment reveals a tooltip displaying the exact value. The chart is rendered as SVG, with a legend identifying each fruit series and colors assigned to each category.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.