🌍 Public
Viewing a saved revision (read-only)
8681c5040bf645c9829f0b0e62e1f37c
d3.js learning
This stacked bar chart visualizes yearly fruit consumption data from a CSV-like dataset, tracking redDelicious apples, McIntosh apples, oranges, and pears. It uses `d3.layout.stack` to compute layered series and `d3.scale.ordinal` for the x-axis years, with SVG rects for bars. Hovering reveals a tooltip with the value via mouse events. A legend identifies the four categories with custom labels, while `d3.svg.axis` renders gridlines and axes.
AI-generated descriptionA bare minimum HTML page.
See also React Starter.