Skip to main content
100%

Line Chart

✓ Published1🌍 Public
HHirsh Gupta
Last edited Mar 3, 2021
Created on Mar 3, 2021

This example shows a week of temperature readings in San Francisco using a line chart. The chart displays temperature on the y-axis and time on the x-axis, with a smooth, filled area beneath the line to emphasize the temperature variation over the period. The data is loaded from a CSV file using `d3.csv`, and the visualization is rendered as SVG with D3 v5. The code uses `d3.scaleTime` and `d3.scaleLinear` to map the data, `d3.axisBottom` and `d3.axisLeft` for the axes, and `d3.area` with a `curveBasis` to generate the smoothed area path.

AI-generated description
MIT Licensed

Similar vizzes