Skip to main content
100%

d3.js learning

✓ Published2🌍 Public
Ttayyabanisar
Last edited May 10, 2020
Created on May 10, 2020
Forked from HTML Starter

This example shows a stacked bar chart tracking fruit quantities (Red Delicious apples, McIntosh apples, oranges, and pears) across years from 2006 to 2015. The visualization uses d3.layout.stack to transpose the data into layers, with an ordinal x-scale for years and a linear y-scale for values. SVG rects represent each segment, colored via a custom palette, while d3.svg.axis renders the axes with gray tick lines. A legend identifies each fruit series, and mouse events on the bars trigger a tooltip displaying the numeric value for that segment.

AI-generated description

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes