Zoom and double Area
This visualization displays the S&P 500 Index as a time series, with a large focus area chart for detailed viewing and a smaller context chart for overview and brushing. The main chart supports zooming and panning via mouse interaction, while the context chart’s brush synchronizes with the focus. Built with D3 v4, it uses `d3.scaleTime`, `d3.area`, `d3.brushX`, and `d3.zoom` to manage the dual-area layout, with smooth curves via `d3.curveCardinal` and `d3.curveMonotoneX`. Data is loaded from a local CSV file with monthly price values.
AI-generated descriptionforked from <a href='http://bl.ocks.org/sarubenfeld/'>sarubenfeld</a>'s block: <a href='http://bl.ocks.org/sarubenfeld/77a425331ee1f6ddbd83aa8fdf1a563f'>S&P 500 Index (my take on a mbostock example)</a>
forked from <a href='http://bl.ocks.org/Saminu/'>Saminu</a>'s block: <a href='http://bl.ocks.org/Saminu/18d64db1a6fcc01d7c1917310f481cbd'>Zoom and double Area</a>