Skip to main content
100%

loading multiple stock data from dataset

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

This example displays multiple stock price time series as a set of overlaid line charts. It loads a CSV dataset containing monthly price data for Microsoft, Amazon, and IBM, then nests the data by stock symbol using `d3.nest()` to group the records. The visualization uses a D3 v4 SVG renderer with `d3.scaleTime()` and `d3.scaleLinear()` for the axes, and applies the `d3.curveBasis` interpolation to smooth the lines. The code attempts to color each line with `d3.schemeCategory10` and add a legend, though the active portion only renders the uncolored paths.

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