Skip to main content
100%

Hello VizHub

✓ Published0🌍 Public
CCurran Kelleher
Last edited Apr 23, 2019
Created on Apr 15, 2019
Forked from Hello VizHub

This example visualizes monthly water levels for two wells, using color-coded lines and a brushed focus–context chart to explore trends over time. The main panel displays the full time series, while a smaller context panel allows brushing to zoom into specific date ranges on the focus view. Built with D3 v5, the code uses `d3.line`, `d3.nest`, `d3.scaleTime`, `d3.brushX`, and `d3.csv` to load and process the data. SVG rendering and `clipPath` are employed for the interactive zoom, with `line.defined` filtering out unwanted data points.

AI-generated description

Forked to demonstrate use of line.defined to filter unwanted lines.

MIT Licensed

Similar vizzes