Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of D3 line chart: Daily temperature in Belgium for 2021

Public visualization

Fork of D3 line chart: Daily temperature in Belgium for 2021

0 stars0🌍 Public
Ppreethamkesa
Last edited Mar 26, 2022
Created on Mar 26, 2022

This interactive line chart displays the daily average air temperature in Belgium for the year 2021. Data is loaded from a CSV file using the `csv` function from D3 v7, then sorted by date. The visualization is built with React, rendering an SVG that uses `scaleTime` and `scaleLinear` to map date and temperature values to coordinates. A single natural cubic spline path, created with `line` and `curveNatural`, shows the temperature trend, while axes are generated with tick marks from `xScale.ticks()` and `yScale.ticks()`.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed