Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Rendering Data with React & D3

Public visualization

Viewing a saved revision (read-only)

8305db472d224291b3d689ff8e0c5648

Fork of Rendering Data with React & D3

0 stars0🌍 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!