Skip to main content
100%

Area Chart

✓ Published0🌍 Public
Bbassansackey@gmail.com
Last edited Apr 2, 2025
Created on Apr 2, 2025
Forked from Line Chart

This example visualizes the daily new COVID-19 cases in Spain over a 60-day period using an area chart. The chart combines a semi-transparent steelblue filled area with a solid line to show the trend, and includes labeled axes for dates and case counts. The data is loaded from the CSSEGISandData GitHub repository using `d3.csv`, processed by filtering for Spain and computing daily differences, and then rendered as SVG paths generated with `d3.area` and `d3.line`. Scales are created with `d3.scaleTime` and `d3.scaleLinear`, axes are drawn using `d3.axisBottom` and `d3.axisLeft`, and sparse data points are marked with circles that display a tooltip on hover.

AI-generated description
MIT Licensed

Similar vizzes