🌍 Public
Viewing a saved revision (read-only)
8b04273db756445088dea0984880448e
Activity 6 Question 4
This bubble plot visualizes the relationship between alcohol and tobacco use across U.S. states, with circle size encoding state population and color intensity representing alcohol use rates per 1,000 people. Built with D3 v7, it loads CSV data from a GitHub repository and renders an SVG scatterplot using `d3.scaleLinear` for positioning, sizing, and coloring, along with `d3.axisBottom` and `d3.axisLeft` for axes. Tooltips provide detailed values for each state via appended `title` elements.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.