Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Question2_Answer2

Public visualization

Viewing a saved revision (read-only)

0cdec750cc6046e7bb166dee76abbb06

Question2_Answer2

0 stars0🌍 Public
SSeema Shrestha
Last edited Apr 25, 2024
Created on Apr 25, 2024
Forked from Question1_Answer1

This example displays a green area chart of United States population from 1995 to 2020, with years on the x-axis and population on the y-axis. The visualization filters a CSV dataset for the United States and maps yearly values using `d3.scaleBand` and `d3.scaleLinear`, then renders the area shape with the `d3.area` function. Axes are drawn using `d3.axisBottom` and `d3.axisLeft`, with rotated year labels and manually added title and axis text. The result is rendered as an SVG element with a width of 900 and height of 450 pixels.

AI-generated description