Skip to main content
100%

Stocks - Grouped to stacked bars

✓ Published0🌍 Public
JJboulery
Last edited Feb 1, 2018
Created on Jan 31, 2018

This example visualizes monthly stock prices for MSFT, AMZN, and IBM from 2000 to 2010, allowing users to toggle between grouped and stacked bar charts. The grouped view shows each company’s price side-by-side, while the stacked view displays cumulative prices per month. Built with D3 v4, the visualization uses SVG for rendering and transitions to animate between the two modes. Data is loaded from a CSV file, processed with `d3.nest`, and mapped with `d3.scaleBand` and `d3.stack` to generate the bars.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes