Fork of Line Chart multiple lines | interractive Legend
✓ Published0🌍 Public
Xxuhuihui
Last edited Apr 6, 2022
Created on Apr 6, 2022
Forked from Line Chart multiple lines | interractive Legend
This visualization displays a week of temperature data for multiple cities, with each city represented as a distinct colored line on a time-series chart. A legend and the lines themselves are interactive; clicking on either isolates that city's data by dimming all other lines, while clicking again restores the full view. The chart is built using D3.js (v5) with SVG rendering, employing D3's `nest()` and `scaleOrdinal` for data grouping and color assignment, and the custom `colorLegend.js` component for the interactive legend.
AI-generated descriptionClick on Legend or paths to isolate the data!
MIT Licensed