Skip to main content
100%

Line Chart

✓ Published2🌍 Public
SSharvariPhadke
Last edited Jan 20, 2021
Created on Jan 20, 2021

This example shows the temperature in San Francisco over time using a line chart. The visualization plots daily temperature readings from a CSV dataset on a time-scaled x-axis and a linear y-axis, with the line rendered as a smooth curve using an SVG path. The chart includes labeled axes, a title, and a gradient stroke applied to the line via CSS. The code uses D3 v6 functions such as `csv`, `scaleTime`, `scaleLinear`, `axisBottom`, `axisLeft`, and `line` with `curveBasis`, rendering the output as SVG.

AI-generated description
MIT Licensed

Similar vizzes