Fork of Temperature in San Francisco Line Chart
✓ Published0🌍 Public
This line chart displays one week of temperature data in San Francisco, with time on the x-axis and degrees Celsius on the y-axis. The smooth line is generated using d3.line with curveBasis, while d3.scaleTime and d3.scaleLinear map the data domains. Axes are rendered with d3.axisBottom and d3.axisLeft, featuring gridlines and rotated labels. The code loads CSV data from a VizHub dataset, parses timestamps and numeric temperatures, and uses d3.select and SVG elements to build the visualization, styled with custom CSS classes.
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