Interactive Scatter Plot and Responsive Axes
✓ Published0🌍 Public
This interactive scatter plot visualizes Olympic participation, showing the number of participating countries per year. The visualization uses D3.js scales and axes, with a ResizeObserver to detect container dimensions and update the chart responsively. Axis tick density is calculated based on the inner width and height, ensuring consistent spacing across different screen sizes. The code includes a complete modular approach with separate files for axes, labels, and resize observation, featuring animation on circle hover.
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