Skip to main content
100%

Bar charts everywhere

✓ Published0🌍 Public
RRaphAllier
Last edited Feb 1, 2018
Created on Feb 1, 2018

This example compares the average monthly stock prices of Microsoft, Amazon, IBM, and Apple across years (2000–2010) using bars that can switch between stacked and grouped layouts via radio buttons. The visualization uses D3 v4 with `d3.nest()` and `d3.rollup()` to aggregate the CSV data, `d3.stack()` for stacking, and ordinal and linear scales for positioning. An animated transition (800ms) updates the bar positions and heights when the mode changes, with SVG rendering and a custom color scale for each company.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes