Skip to main content
100%

Category grouped Bubble Chart

✓ Published1🌍 Public
Hhquazza@gmail.com
Last edited Feb 4, 2025
Created on Feb 4, 2025

This category grouped bubble chart displays total profit by country, with bubbles colored by region. Using D3.js v7, the visualization employs `d3.rollup` to aggregate sales data, `d3.hierarchy` and `d3.pack` to compute bubble positions and sizes, and an ordinal color scale for regional groupings. Hovering reveals a tooltip with profit details, while SVG text labels wrap within each bubble. Data loads from a CSV file containing 100 sales records.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Added content = d3.csv (line 3)

Tooltip - create in html, add details in json See line 13 and line 44+ in js file;

MIT Licensed

Similar vizzes