Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Trend line

Public visualization

Viewing a saved revision (read-only)

6f2c7256bf984ab0887d3ae2fb455418

Trend line

0 stars1🌍 Public
SShane Carey
Last edited Apr 18, 2019
Created on Apr 17, 2019

This visualization shows monthly water level trends for two well sites, with a brushable chart allowing users to select a date range and view a dashed regression trendline with its equation. The top chart displays the trendline and data points, while the bottom chart provides the brushing interface. The code uses d3.scaleTime, d3.scaleLinear, d3.line, d3.brushX, and d3.nest to render SVG paths and circles. The trendline is calculated via a custom least squares regression function imported from a separate module. Data is loaded from a CSV file.

AI-generated description