Year wise rainfall analysis
✓ Published0🌍 Public
This area chart visualizes average annual rainfall in millimeters across different years, with the x-axis representing years and the y-axis showing rainfall amounts. The visualization uses a purple gradient fill beneath the line to emphasize the trend over time. Built with d3.v5, the code leverages `scaleTime`, `scaleLinear`, `area`, `curveBasis`, and `axisLeft`/`axisBottom` to generate the SVG rendering. Data is loaded from a CSV file via `csv()` and parsed with `new Date()` for the year values. The chart includes labeled axes and a title, styled with custom CSS classes.
AI-generated descriptionThis line chart shows one week of temperature (in degrees Celcius) in San Francisco. The data comes from Data Canvas - Sense Your City.
Made in this video:
MIT Licensed