Fork of Fork of Responsive Axes - Add Interaction - Air Quality Dataset
✓ Published2🌍 Public
This visualization presents the top 10 U.S. census tracts with the highest nitrogen dioxide (NO2) levels, displayed as a bar chart with a tooltip showing the exact value and geographic location. The chart uses d3.scaleBand and d3.scaleLinear for axes, with responsive resizing handled via a ResizeObserver and window resize events. The code also demonstrates modularized axis and label components, using d3.axisBottom and d3.axisLeft, with the air quality dataset rendered in SVG.
AI-generated descriptionA viz container with responsive axes that have consistent tick mark density. Try opening in full screen mode and resizing!
Challenge
- Use this technique to make the axes on your viz responsive
MIT Licensed