Skip to main content
100%

DataVizTP3_StackedArea

✓ Published0🌍 Public
KKylaste
Last edited Nov 29, 2017
Created on Nov 29, 2017

This stacked area chart visualizes monthly stock prices for multiple companies (MSFT, AMZN, IBM, AAPL) from 2000 to 2010, using a dataset loaded from a CSV file. The chart shows how each company’s price contributes to the total across time, with colored layers and a legend identifying each symbol. Built with D3 v4, it uses `d3.stack()`, `d3.area()`, and `d3.nest()` to structure the data, while `d3.scaleTime()`, `d3.scaleLinear()`, and `d3.scaleOrdinal()` handle scaling and colors. SVG paths render the areas, and axes are added with `d3.axisBottom()` and `d3.axisLeft()`.

AI-generated description

Built with blockbuilder.org

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/855207ac5fb5c170de59b9c69ea56012'>simple line chart from dataset</a>

forked from <a href='http://bl.ocks.org/Kylaste/'>Kylaste</a>'s block: <a href='http://bl.ocks.org/Kylaste/4e4b359bcc4578aa653eb4551343f27a'>DataVizTP3</a>

forked from <a href='http://bl.ocks.org/Kylaste/'>Kylaste</a>'s block: <a href='http://bl.ocks.org/Kylaste/a48974039aa315d34fcf6f1081d98f5b'>DataVizTP3_SmallMultiple</a>

mit Licensed

Similar vizzes