Skip to main content
100%

Let's get tool tipsy up in here

✓ Published2🌍 Public
Aadventuresenglish.info@gmail.com
Last edited Jan 30, 2024
Created on Dec 14, 2023

This interactive D3 visualization compares state-level median income, alcohol consumption, and murder rates. Users select different quantitative variables for the x- and y-axes via HTML dropdown menus, toggling between a categorical bar chart and a quantitative scatterplot. The SVG rendering uses `scaleBand` and `scaleLinear` for the axes and animated transitions via `transition` for morphing between chart types. Hovering over a bar or text label triggers a CSS-styled tooltip that fetches an external SVG state flag and displays a data table, using `pointer` for mouse position tracking.

AI-generated description

My first go at a dual purpose data viz. Big thanks to Curran and everyone else for showing me how to do stuff.

MIT Licensed

Similar vizzes