Skip to main content
100%

Fork of Untitled

✓ Published0🌍 Public
NNarayana Reddy
Last edited Apr 20, 2021
Created on Apr 20, 2021
Forked from Untitled

This example shows a stacked bar chart of sales quantities by city for a selected customer segment, with a dropdown to switch segments and a checkbox to toggle sorting by total quantity. Built with D3 v5, it uses `d3.stack` to layer the data, `d3.scaleBand` and `d3.scaleLinear` for axes, and ordinal colors. Transitions animate updates via `transition.duration`, while the data comes from a CSV file of sales orders. The visualization is rendered as SVG.

AI-generated description

React Starter code.

MIT Licensed

Similar vizzes