Skip to main content
100%

project-SDV 5

✓ Published1🌍 Public
RRuthvik Bairaboina
Last edited Dec 5, 2025
Created on Nov 4, 2025
Forked from D3 Starter

A multi-line chart displays retail gasoline prices for four US regions (A1, R1, M1, D1) as weekly time-series data from the provided CSV. Four colored lines show price trends, each represented with a legend button. Clicking a legend button highlights the selected region’s line while dimming others; clicking again restores all. The chart uses D3 v7 with `scaleTime`, `scaleLinear`, `line`, and `curveMonotoneX`, while rendering via SVG. Points include an HTML tooltip showing exact values and dates. The visualization is built with `d3.csv`, axes via `axisBottom` and `axisLeft`, and interactive filtering through `selection.on` and `selection.attr`.

AI-generated description
MIT Licensed

Similar vizzes