Skip to main content
100%

Activity 6 Question 4

✓ Published0🌍 Public
Nnarasimhacharyulu010@gmail.com
Last edited Apr 5, 2024
Created on Apr 5, 2024
Forked from Hello VizHub

A bubble chart visualizes the relationship between GDP per capita on the x-axis, GDP on the y-axis, and population as the circle’s radius for 20 countries. Each bubble is colored by continent using a d3.scaleOrdinal with the d3.schemeCategory10 palette. The code employs d3.scaleLinear for both axes and d3.scaleSqrt for the radius. SVG rendering displays the circles with a predefined margin and stroke, with data embedded directly in the script.

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.
MIT Licensed

Similar vizzes