🌍 Public
Viewing a saved revision (read-only)
86fb56adfa7346b9bb8f39bac49c43ae
VP National Parks 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 descriptionA bar chart showing the top 6 most visited US National Parks as of 2022.