Tidied up Bubble Chart
✓ Published5🌍 Public
Hhquazza@gmail.com
Last edited Feb 3, 2025
Created on Jan 30, 2025
This bubble chart visualizes sales records by country, with circle size encoding total profit and color mapping regions. The tidy, evenly spaced layout derives from a D3 hierarchy and pack layout (d3.pack), which positions the data points without overlap. Each circle displays its country name as a label. The visualization loads its data from a CSV file using d3.csv and renders as SVG. Interactive tooltips appear on hover, displaying the country and profit values via D3 event handlers and HTML tooltip elements.
AI-generated descriptionA 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