Temperature in San Francisco: Line chart
✓ Published2🌍 Public
This example visualizes a week of temperature readings in San Francisco using a line chart, encoding time on the x-axis and temperature on the y-axis. The chart is rendered as an SVG, with axes, grid lines, and a smooth curve generated by D3’s `line` generator with `curveBasis`. Data is loaded from a CSV file using `d3.csv`, and scales are created with `scaleTime` and `scaleLinear`. Axis labels and a title are added, while axis domains are removed to declutter the visual.
AI-generated descriptionMIT Licensed