Skip to main content
100%

D3 Bubblechart

✓ Published0🌍 Public
KKwasi Acquaye
Last edited Feb 28, 2024
Created on Feb 28, 2024
Forked from D3 Scatter plot

This visualization displays global sales figures for nine video game titles using a bubble chart, with each circle’s area encoding the sales value. The code loads data from a CSV file via `d3.csv`, converts the sales column to numbers, and uses `d3.scaleSqrt` to map sales values to circle radii. An SVG canvas is created with D3 v7, and a band scale (`d3.scaleBand`) positions the categories along the x-axis. The bubbles are drawn as `circle` elements with a fixed vertical position, and the axis is rotated for readability. The chart highlights comparisons such as Call of Duty’s dominance, with sales values up to 14 million units.

AI-generated description
MIT Licensed

Similar vizzes