Skip to main content
100%

Line Chart - React, D3

✓ Published0🌍 Public
NNelson M
Last edited Nov 20, 2023
Created on Nov 20, 2023
Forked from Working with Time

A line chart displays daily temperature readings from the Data Canvas Sense Your City dataset, with a time-based x-axis and a linear y-axis for values. The visualization uses React components to render SVG elements, with D3 scale functions (`scaleTime`, `scaleLinear`) mapping data to coordinates. The `Line` component draws a natural curve path through the data points and adds circular markers with tooltips showing the exact timestamp on hover. Axis components generate tick marks and labels, while styling is applied through CSS classes on the SVG elements.

AI-generated description
MIT Licensed

Similar vizzes