Line Chart with Multiple Lines
✓ Published0🌍 Public
This line chart visualizes one week of temperature data from multiple cities, sourced from Data Canvas - Sense Your City. It uses d3.scaleTime, d3.scaleLinear, and d3.scaleOrdinal to map timestamps, temperatures, and city colors, with d3.nest grouping the data. Rendered as SVG, the chart includes d3.axisBottom and d3.axisLeft with grid lines, and a color legend built via a custom function. Lines are drawn with d3.line using curveBasis, and styled with translucent strokes that blend via CSS mix-blend-mode.
AI-generated descriptionThis line chart shows one week of temperature (in degrees Celcius) in San Francisco. The data comes from Data Canvas - Sense Your City.
Made in this video:
MIT Licensed