Skip to main content
100%

O2 Monitor Chart

✓ Published0🌍 Public
EEmma Schaale
Last edited Feb 22, 2023
Created on Feb 21, 2023

This chart plots oxygen level over time, filtering out zero values from a CSV dataset inspired by the Data Canvas Sense Your City project. It renders as an SVG line chart using React components and D3 v5’s `scaleLinear`, `scaleTime`, and `line` with `curveNatural`. Custom axis components generate ticks and labels, while the y-axis is fixed from 0 to 100. Data loading and parsing are handled by `useData` with D3’s `csv` function, converting time strings to Date objects and oxygen levels to numbers.

AI-generated description
MIT Licensed

Similar vizzes