Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

StackBarChart

Public visualization

Viewing a saved revision (read-only)

ecd3959e57864b25af39016a9c7f5b82

StackBarChart

0 stars0🌍 Public
Vvoid-LSTM
Last edited May 19, 2022
Created on May 19, 2022
Forked from HTML Starter

This stacked bar chart visualizes fruit quantities across four months, with each bar segment representing apples, bananas, cherries, or dates. The visualization uses React with SVG rendering and leverages D3’s `d3.stack()` with a default offset to compute the stacked series, alongside `d3.scaleBand` and `d3.scaleLinear` for positioning. Color encoding via `d3.scaleOrdinal` with `d3.schemeSet3` distinguishes categories, while the x-axis labels are formatted using the Moment.js library. Data is hardcoded in the script, and axes are generated through a custom `naiveAxes()` function.

AI-generated description

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

See also React Starter.