Skip to main content
Public

Share visualization

Loading preview…

Activity 6 Question 4

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Activity 6 Question 4

0 stars0Public
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.

Comments

Sign in to join the discussion.

MIT Licensed