Skip to main content
100%

TP3-p3-4

✓ Published0🌍 Public
RRade-Mathis
Last edited Nov 25, 2017
Created on Nov 25, 2017

This example visualizes stock market data from a CSV file as a stacked area chart, using an ordinal color scheme to distinguish between multiple time series. The chart is centered vertically so that the combined data fills the plot area, with a legend placed to the right. It uses d3.area with a basis curve, d3.scaleTime, d3.scaleLinear, and d3.scaleOrdinal, all rendered as SVG paths. The data is first parsed with d3.dsvFormat, nested by symbol with d3.nest, and then processed to compute cumulative sums before plotting.

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/Rade-Mathis/'>Rade-Mathis</a>'s block: <a href='http://bl.ocks.org/Rade-Mathis/8bcf33a7ab32cc05916d1c99c08d93bc'>TP3-p1</a>

forked from <a href='http://bl.ocks.org/Rade-Mathis/'>Rade-Mathis</a>'s block: <a href='http://bl.ocks.org/Rade-Mathis/f9f90c3d2e8dd3f38088bed19aee3509'>TP3-p3-1</a>

forked from <a href='http://bl.ocks.org/Rade-Mathis/'>Rade-Mathis</a>'s block: <a href='http://bl.ocks.org/Rade-Mathis/a255a1d04990272c190eeeaae7f5e17b'>TP3-p3-3</a>

wtfpl Licensed

Similar vizzes