Zoom and double Area
✓ Published0🌍 Public
SSaminu
Last edited Apr 7, 2017
Created on Apr 7, 2017
A zoomable area chart displays monthly S&P 500 index prices from 2000 to 2010. The main chart uses a cardinal curve area, while a smaller context view shows the full series with a monotone curve. Users can brush the context chart or drag the main chart to zoom, with both interactions synced via `d3.brushX` and `d3.zoom`. The code uses `d3.scaleTime`, `d3.area`, and SVG rendering, with data loaded from a CSV file.
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>
mit Licensed