Skip to main content
100%

Local Variables

✓ Published0🌍 Public
GGerardoFurtado
Last edited Apr 7, 2019
Created on Apr 7, 2019

This example shows monthly price trends for several stock market indices, displayed as small multiples of overlapping line charts with shaded areas and right-side axes. Each symbol’s chart is independently scaled, with its own linear y-axis and shared time scale. The code uses d3.local() to store per-element scales, area generators, line generators, and axis components on the SVG group nodes, while d3.nest() groups the tab-separated data by symbol. d3.axisRight renders the ticks, and d3.area and d3.line define the visual marks.

AI-generated description

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/e1192fe405703d8321a5187350910e08'>Local Variables</a>

mit Licensed

Similar vizzes