🌍 Public
Viewing a saved revision (read-only)
14f1738a35ae47e1b471a0e95456df8c
Making a Line Chart - 01
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 descriptionRefactored Bar Chart.