Skip to main content
100%

Fork of Responsive Axes with Crosshair (SSP)

✓ Published1🌍 Public
Bbenclark.3rd@gmail.com
Last edited Feb 20, 2024
Created on Feb 14, 2024

This scatterplot displays Pokemon Attack and Defense stats, with points colored by generation and a hoverable crosshair that tracks the mouse position. The visualization uses SVG rendering with D3.js scales and axes, and implements responsive tick mark density via `axisBottom` and `axisLeft` with computed tick counts based on container dimensions. Data comes from a CSV file containing Pokemon attributes, and the code uses ResizeObserver to adapt the chart to resizing windows.

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