Skip to main content
100%

Multiple Instances with Chart Brushing

✓ Published1🌍 Public
SShane Carey
Last edited Apr 23, 2019
Created on Apr 17, 2019
Forked from Multiple Instances

Two linked line charts depict monthly water levels for two well measurements, with the lower chart providing a synchronized brushing interface. Dragging a brush across the lower chart dynamically updates the upper chart's x-axis domain to the selected time range, using a time scale inversion to set the new coordinates. The visualization is rendered with SVG, and the interaction is implemented using D3 v5's `brushX`, `scaleTime`, and `setBrushCoords` callback, with data loaded from a CSV file. Both charts use D3's `nest` and `line` generators to draw the series, and categorical colors from `schemeCategory10` distinguish the two data series.

AI-generated description
MIT Licensed

Similar vizzes