🌍 Public
Line Chart
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 descriptionMIT Licensed
Comments
Sign in to join the discussion.