Skip to main content
100%

Fork of Rendering Data with React & D3

✓ Published0🌍 Public
JJuan Raul de la Guardia
Last edited Aug 16, 2024
Created on Aug 16, 2024

This example shows a temperature-over-time chart for San Francisco, using a D3 CSV loader to fetch weekly data and rendering it as an SVG line graph with circular data points. React handles the component structure, while D3’s `scaleTime`, `scaleLinear`, `extent`, and `line` with `curveNatural` compute scales and draw the smooth path. The code also builds custom axes with `ticks()` and uses `timeFormat` for weekday labels on the x-axis. Native SVG `<title>` elements provide tooltips on hover.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

MIT Licensed

Similar vizzes