Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Activity 8_Q4

Public visualization

Activity 8_Q4

0 stars0🌍 Public
UUthkarsh Reddy Junuthula
Last edited Apr 11, 2024
Created on Apr 11, 2024

This bubble chart shows the correlation between total honey production and honey stock levels across U.S. states, with bubble size representing the number of colonies and color mapping to each state. The SVG visualization, built with D3 v7, includes a tooltip that displays state name, production, and stock values on hover. The code demonstrates loading data from a CSV file, creating linear scales for axes and bubble radius, using an ordinal color scale for state categories, and rendering an interactive legend alongside the main plot.

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.

Comments

Sign in to join the discussion.

MIT Licensed