Skip to main content
100%

VP National Parks Bar Chart

✓ Published0🌍 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 6 most visited US National Parks as of 2022.

MIT Licensed

Similar vizzes