Temperature in San Francisco Line Chart
✓ Published1🌍 Public
This line chart displays one week of temperature data in degrees Celsius for San Francisco, sourced from Data Canvas - Sense Your City, with mock monthly energy values used for the visualization’s title and axes. The chart uses D3 v5 with SVG rendering, employing `d3.scalePoint` for the x-axis, `d3.scaleLinear` for the y-axis, and `d3.line` to draw the path. A gradient-filled area beneath the line is created using `d3.area`, a `linearGradient` def, and a `clipPath` to highlight the enclosed region.
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