Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Trend line with legend

Public visualization

Viewing a saved revision (read-only)

3e3c0a20d53947469cf6ac1cde666acc

Trend line with legend

0 stars1🌍 Public
CCurran Kelleher
Last edited Apr 23, 2019
Created on Apr 23, 2019

This visualization shows water level trends over time for two monitoring wells (OW2DWL and OW2DSWL) in a line chart with a color legend and a linked brushing chart below. The main chart displays a dashed grey trendline calculated via least squares regression, with an equation label, while the brush chart filters the data range and recomputes the trendline interactively. Built using D3 v5, it applies `scaleTime`, `scaleLinear`, `scaleOrdinal`, `line`, `brushX`, and `axisBottom`/`axisLeft` to render SVG paths and axes. Data is loaded from a CSV file via `csv`, with date parsing through `timeParse` and event-driven brushing updating the trendline and equation.

AI-generated description