Line Chart with Multiple Lines
✓ Published0🌍 Public
This line chart displays one week of temperature data for cities worldwide, sourced from Data Canvas - Sense Your City. It uses d3.csv to load the data and renders an SVG with multiple lines representing different cities. The chart scales time on the x-axis and temperature on the y-axis using d3.scaleTime and d3.scaleLinear, while d3.scaleOrdinal maps each city to a color from schemeCategory10. The d3.line generator creates each path, and a custom colorLegend function displays the city labels with their corresponding colors.
AI-generated descriptionThis 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