Skip to main content
100%

React Line chart

✓ Published2🌍 Public
SSuperShreejit
Last edited May 16, 2022
Created on May 16, 2022

This chart displays weekly San Francisco temperature data from a public GitHub CSV, combining a smooth, natural-curve line with circular markers that reveal exact values on hover. Built with React and rendered as SVG, it uses d3.scaleTime and d3.scaleLinear to map timestamps and temperatures, while d3.curveNatural generates the path. Custom React components for the axes and marks structure the visualization, with d3.csv loading the dataset and D3’s timeFormat abbreviating weekday labels. The chart fills the browser window, featuring styled axis ticks, a bold green line, and a dark dot overlay for each data point.

AI-generated description

A react Line + scatterplot mix-chart of San Francisco weekly temperature

MIT Licensed

Similar vizzes