Skip to main content
100%

[animated charts] stocks from dataset

✓ Published0🌍 Public
SSebDelSab
Last edited Nov 30, 2017
Created on Nov 30, 2017

This example cycles through five animated chart types—area, empty area, multiple, stacked, and stream—to compare monthly stock prices for Microsoft, Amazon, and IBM from 2000 onward. The data is loaded from a CSV file via `d3.dsvFormat` and nested by symbol using `d3.nest`. Each chart is rendered as an SVG path using `d3.area` with transitions controlled by `setTimeout`, while `d3.scaleOrdinal` assigns colors and `d3.scaleTime` maps dates. The sequence repeats automatically, highlighting shape and layout differences across chart forms.

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/57eb273e01761b829aaa95b28c8193c1'>loading multiple stock data from dataset</a>

forked from <a href='http://bl.ocks.org/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/f60995ae128cca7b4e19b95ff28a51ea'>[animated charts] stocks from dataset</a>

mit Licensed

Similar vizzes