Components/Charts/WorldBubbleMap

WorldBubbleMap

Charts

Proportional-circle world map — bubble area (sqrt-scaled) encodes a value.

Proportional-circle map. Bubble area (sqrt-scaled) encodes the value — perceptually more accurate than encoding by radius. Place bubbles either at a country centroid (pass id) or at an explicit longitude / latitude (pass coordinates).

Import

import { WorldBubbleMap } from "nosible-ux"

Examples

Top 20 cities by population (millions)

Population
9.6 M23.5 M37.4 M

Bubbles by country centroid

Exports
0.52 T USD2.055 T USD3.59 T USD

Accessibility

Area (not radius) encodes magnitude for perceptual accuracy. Provide aria-label with the metric and unit. Bubble order draws large → small so smaller markers are not occluded.

Props

Name TypeDefaultDescription
aria-label
string | undefinedDefines a string value that labels the current element.
data
BubbleDatum[]
fill
string | undefinedBubble fill colour. Default: Neo Green.
fillOpacity
number | undefinedFill opacity. Default: `0.55`.
height
number | undefined
legendTitle
string | undefined
projection
WorldProjectionKind | undefined
radiusRange
[number, number] | undefined`[min, max]` bubble radius in px. Default: `[3, 32]`.
stroke
string | undefinedBubble stroke colour. Default: Neo Green.
unit
string | undefined
width
number | undefined
withLegend
boolean | undefined