Skip to main content
100%

tp3_d3

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

This example visualizes stock price histories as a sequence of animated line charts, then transforms them into stacked horizon graphs. Using D3.js v3, it loads data from a CSV file containing stock symbols and monthly prices. The code employs `d3.svg.line`, `d3.svg.area`, and `d3.time.scale` to render paths, while `d3.timer` drives the drawing animation. A `clipPath` and ordinal color scale create the horizon chart effect, with `transition` methods smoothly displacing and recoloring the area fills. The SVG output is generated entirely client-side from the external dataset.

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/romsson/'>romsson</a>'s block: <a href='http://bl.ocks.org/romsson/524b94d8f4c5ab45fb5ae5e183bf97bc'>simple line chart from dataset</a>

forked from <a href='http://bl.ocks.org/MilowB/'>MilowB</a>'s block: <a href='http://bl.ocks.org/MilowB/cca52688947c235ee8992405e124ec98'>tp3_d3</a>

mit Licensed

Similar vizzes