D3 Bubblechart
✓ Published0🌍 Public
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 descriptionMIT Licensed