Skip to main content
100%

P2

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

This example animates the monthly stock prices of Microsoft, Amazon, and IBM from 2000 to 2010. It first draws each symbol’s price as a separate line chart, then morphs the lines into horizon charts by stacking and clipping translucent area fills. The code uses D3 v3 with SVG, `d3.svg.line` and `d3.svg.area` for geometry, and `d3.timer` for the animation. The dataset is loaded from a local CSV via `d3.csv`. Each symbol’s line and circle are repositioned frame-by-frame, then transitions shift the glyphs to the right edge while revealing the horizon bands.

AI-generated description

Built with blockbuilder.org

mit Licensed

Similar vizzes