Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

VP National Parks Bar Chart

Public visualization

Viewing a saved revision (read-only)

081243e8530749ca88ae8972f2e13f54

VP National Parks Bar Chart

0 stars0🌍 Public
VVansh Patel
Last edited Feb 19, 2024
Created on Feb 4, 2024
Forked from Simple Bar Chart

This animated bar chart displays the top six most visited U.S. National Parks as of 2022, ranking them by visitor count using interactive bars. Built with D3.js, it uses `scaleBand` and `scaleLinear` for positioning, with axes rendered via helper functions. The visualization responds to mouse movement by tracking `hoveredX` and `hoveredY` coordinates, triggering tooltips that show each park’s name and visitor totals. Data comes from the `@vspatel987/national-park-2022` package, and the chart animates through a resize observer, updating the SVG dimensions dynamically.

AI-generated description

A bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.

Challenge

  • Fork this viz and modify it to show your own data