Skip to main content
100%

loading multiple stock data from dataset

✓ Published0🌍 Public
Aalicemontel
Last edited Nov 26, 2017
Created on Nov 26, 2017

This example visualizes monthly stock prices for multiple symbols as separate colored lines on a time-series chart. It loads raw CSV data from a GitHub gist, parses it with d3.dsvFormat, and nests records by symbol using d3.nest. Each line is rendered as an SVG path with d3.line and a basis curve, while d3.scaleTime and d3.scaleLinear map dates and prices to pixel coordinates. The chart includes axes via d3.axisBottom and d3.axisLeft, plus a legend built with SVG rectangles and text.

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>

mit Licensed

Similar vizzes