Skip to main content
100%

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

✓ Published0🌍 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
MIT Licensed

Similar vizzes