Skip to main content
100%

Making a Line Chart - 01

✓ Published1🌍 Public
EEhtisham UL Hassan
Last edited Dec 1, 2021
Created on Dec 1, 2021
Forked from Working with Time

This example shows a line chart of weekly temperature data for San Francisco, with time on the x-axis and temperature on the y-axis. It uses D3 v5 scales (`scaleTime`, `scaleLinear`) and the `line` generator to create the path, while React components render SVG circles for each data point. The axes are built with D3 ticks and formatted using `timeFormat`, with data loaded from a remote CSV via `fetch` and `csvParse`. The chart includes labeled axes and tooltips via SVG `<title>` elements.

AI-generated description

Refactored Bar Chart.

MIT Licensed

Similar vizzes