Skip to main content
100%

Fork of Responsive Axes

✓ Published1🌍 Public
Vvigneshs1006@gmail.com
Last edited Feb 11, 2024
Created on Feb 10, 2024
Forked from Responsive Axes

This visualization demonstrates a responsive bar chart of NO2 levels by geographical area, with axes that maintain consistent tick mark density across different screen sizes. The chart uses D3.js scales (scaleBand and scaleLinear) with axisBottom and axisLeft to render the axes, while a ResizeObserver monitors the container's dimensions and triggers chart redraws. The SVG output is recreated on each resize event, allowing the tick marks to adapt dynamically to changing plot dimensions.

AI-generated description

A 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

Similar vizzes