Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Line Chart - 01

Public visualization

Viewing a saved revision (read-only)

14f1738a35ae47e1b471a0e95456df8c

Making a Line Chart - 01

0 stars1🌍 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.