Line Chart with Multiple Lines
✓ Published0🌍 Public
This example shows one week of temperature data from cities worldwide, visualized as a bar chart with multiple colored series per date using d3.scaleBand and d3.scaleOrdinal with schemeCategory10. Each bar corresponds to a city’s temperature reading, with hover interactions that highlight selected bars and dim others. The data is loaded as CSV from a GitHub gist and parsed with d3.csv, while custom color legends and axis labels are built using d3.axisLeft, d3.axisBottom, and d3.drag for interactive bar adjustments. Rendering uses SVG with transitions for hover effects.
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