Skip to main content
100%

Fork of Line Chart multiple lines | interractive Legend

✓ Published0🌍 Public
Xxuhuihui
Last edited Apr 6, 2022
Created on Apr 6, 2022

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 description

Click on Legend or paths to isolate the data!

MIT Licensed

Similar vizzes