Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 6 Question 4

Public visualization

Viewing a saved revision (read-only)

8b04273db756445088dea0984880448e

Activity 6 Question 4

0 stars0🌍 Public
Hhaneesh@gctc.in
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.