Skip to main content
100%

HC

✓ Published0🌍 Public
Ssunnyshih0312@gmail.com
Last edited Oct 25, 2024
Created on Oct 25, 2024
Forked from hw7_test

This visualization shows air pollution measurements over time using a horizon chart, a technique that reduces vertical space by layering offset copies of a line chart with varying color bands. It displays multiple pollutant types as separate horizontal ribbons, allowing compact comparison of trends. The chart is rendered as SVG using D3 v6, with scales constructed via `scaleLinear` and `scalePoint`, and axes via `axisTop` and `axisLeft`. Data is loaded from a CSV file and preprocessed before being passed to a custom `HorizonChart` function that uses `d3.area` for the layered paths.

AI-generated description
MIT Licensed

Similar vizzes