Skip to main content
100%

Line chart with multiple lines

✓ Published0🌍 Public
RResl411
Last edited Nov 21, 2019
Created on Nov 21, 2019

This line chart displays the number of reviews per state across the days of a year, with multiple colored lines representing individual states. The visualization includes an interactive color legend that highlights a selected state while dimming others. Built with D3 v5 and rendered as SVG, the code uses `d3.csv` for data loading, `d3.nest` for grouping by state, and `d3.line` with `curveBasis` for smooth lines. Axis labels and a title are added, while the legend is implemented through a custom `colorLegend` function. The underlying data comes from the provided external CSV dataset.

AI-generated description

This line chart shows one week of temperature (in degrees Celcius) in cities around the world. The data comes from Data Canvas - Sense Your City.

MIT Licensed

Similar vizzes