Graflume · Alpha

Bubble

Encode two coordinates, magnitude, and an optional group in each bubble.

Chart family · Default families

Bubble

Encode two coordinates, magnitude, and an optional group in each bubble.

Quick API
bubble()
Browser snapshot
graflume
mark
bubble
Presets
2

Basic implementation

The smallest runnable chart

Start with only the required data and family encoding. Expand the code to run the same example.

Basic example

Encode two coordinates, magnitude, and an optional group in each bubble.

StatusLoading

  • minimal-implementation
Graflume.bubble() Canvas 2D
Control help

Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.bubble()

const data = [
  {
    "group": "Starter",
    "name": "Atlas Lab",
    "size": 28,
    "x": 14,
    "y": 38,
    "z": 7
  },
  {
    "group": "Starter",
    "name": "Beacon Co",
    "size": 34,
    "x": 20,
    "y": 45,
    "z": 10
  },
  {
    "group": "Starter",
    "name": "Civic Data",
    "size": 31,
    "x": 25,
    "y": 41,
    "z": 12
  },
  {
    "group": "Growth",
    "name": "Delta Ops",
    "size": 64,
    "x": 38,
    "y": 57,
    "z": 15
  },
  {
    "group": "Growth",
    "name": "Ember Labs",
    "size": 78,
    "x": 45,
    "y": 63,
    "z": 18
  },
  {
    "group": "Growth",
    "name": "Foundry BI",
    "size": 70,
    "x": 50,
    "y": 55,
    "z": 21
  },
  {
    "group": "Scale",
    "name": "Harbor AI",
    "size": 112,
    "x": 64,
    "y": 72,
    "z": 25
  },
  {
    "group": "Scale",
    "name": "Lattice Co",
    "size": 128,
    "x": 72,
    "y": 79,
    "z": 28
  },
  {
    "group": "Scale",
    "name": "Meridian",
    "size": 118,
    "x": 78,
    "y": 70,
    "z": 31
  },
  {
    "group": "Opportunity",
    "name": "Northstar",
    "size": 52,
    "x": 61,
    "y": 88,
    "z": 34
  }
];

const options = {
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size"
    }
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
};

Graflume.bubble('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size"
    }
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
}

Common features

Features shared by every chart

Use the tabs to compare header, tooltip, theme, legend, highlight, callout, selection, view controls, and accessibility one feature at a time. Hover over a data mark. On supported charts, move the pointer along the axis to see the nearest value. All exact values are available in the table below.

Header

Add a chart title and supporting description inside the visualization.

StatusLoading

  • header
Graflume.bubble() Canvas 2D
Control help

Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.bubble()

const data = [
  {
    "group": "Starter",
    "name": "Atlas Lab",
    "size": 28,
    "x": 14,
    "y": 38,
    "z": 7
  },
  {
    "group": "Starter",
    "name": "Beacon Co",
    "size": 34,
    "x": 20,
    "y": 45,
    "z": 10
  },
  {
    "group": "Starter",
    "name": "Civic Data",
    "size": 31,
    "x": 25,
    "y": 41,
    "z": 12
  },
  {
    "group": "Growth",
    "name": "Delta Ops",
    "size": 64,
    "x": 38,
    "y": 57,
    "z": 15
  },
  {
    "group": "Growth",
    "name": "Ember Labs",
    "size": 78,
    "x": 45,
    "y": 63,
    "z": 18
  },
  {
    "group": "Growth",
    "name": "Foundry BI",
    "size": 70,
    "x": 50,
    "y": 55,
    "z": 21
  },
  {
    "group": "Scale",
    "name": "Harbor AI",
    "size": 112,
    "x": 64,
    "y": 72,
    "z": 25
  },
  {
    "group": "Scale",
    "name": "Lattice Co",
    "size": 128,
    "x": 72,
    "y": 79,
    "z": 28
  },
  {
    "group": "Scale",
    "name": "Meridian",
    "size": 118,
    "x": 78,
    "y": 70,
    "z": 31
  },
  {
    "group": "Opportunity",
    "name": "Northstar",
    "size": 52,
    "x": 61,
    "y": 88,
    "z": 34
  }
];

const options = {
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size"
    }
  },
  "title": {
    "subtitle": "Bubble chart uses runnable data and options to demonstrate square-root radius; color field.",
    "text": "Bubble"
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
};

Graflume.bubble('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size"
    }
  },
  "title": {
    "subtitle": "Bubble chart uses runnable data and options to demonstrate square-root radius; color field.",
    "text": "Bubble"
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
}

Chart-specific features

Every executable mode in this family

These tabs come from Graflume's public catalog. Every mode owns runnable data, options, a Quick API, and source-backed feature claims.

Bubble chart

Bubble chart uses runnable data and options to demonstrate square-root radius; color field.

StatusLoading

  • bubble
  • square-root radius
  • color field
  • packed collision layout and labels
  • zero and negative policy
Graflume.bubble() Canvas 2D
Control help

Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.bubble()

const data = [
  {
    "group": "Starter",
    "name": "Atlas Lab",
    "size": 28,
    "x": 14,
    "y": 38,
    "z": 7
  },
  {
    "group": "Starter",
    "name": "Beacon Co",
    "size": 34,
    "x": 20,
    "y": 45,
    "z": 10
  },
  {
    "group": "Starter",
    "name": "Civic Data",
    "size": 31,
    "x": 25,
    "y": 41,
    "z": 12
  },
  {
    "group": "Growth",
    "name": "Delta Ops",
    "size": 64,
    "x": 38,
    "y": 57,
    "z": 15
  },
  {
    "group": "Growth",
    "name": "Ember Labs",
    "size": 78,
    "x": 45,
    "y": 63,
    "z": 18
  },
  {
    "group": "Growth",
    "name": "Foundry BI",
    "size": 70,
    "x": 50,
    "y": 55,
    "z": 21
  },
  {
    "group": "Scale",
    "name": "Harbor AI",
    "size": 112,
    "x": 64,
    "y": 72,
    "z": 25
  },
  {
    "group": "Scale",
    "name": "Lattice Co",
    "size": 128,
    "x": 72,
    "y": 79,
    "z": 28
  },
  {
    "group": "Scale",
    "name": "Meridian",
    "size": 118,
    "x": 78,
    "y": 70,
    "z": 31
  },
  {
    "group": "Opportunity",
    "name": "Northstar",
    "size": 52,
    "x": 61,
    "y": 88,
    "z": 34
  }
];

const options = {
  "accessibility": {
    "description": "Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.",
    "label": "Bubble example"
  },
  "axes": {
    "x": {
      "format": {
        "fractionDigits": 1,
        "type": "number"
      },
      "title": {
        "align": "end",
        "padding": 36,
        "text": "Reach"
      }
    },
    "y": {
      "format": {
        "fractionDigits": 1,
        "type": "number"
      },
      "title": {
        "align": "center",
        "padding": 58,
        "text": "Engagement"
      }
    }
  },
  "height": 620,
  "interaction": {
    "controls": {
      "annotations": false,
      "export": true,
      "fullscreen": true,
      "labels": {
        "controls": "Chart controls",
        "enterFullscreen": "Enter fullscreen",
        "exitFullscreen": "Exit fullscreen",
        "exportPng": "Download PNG",
        "hideAnnotations": "Hide callouts",
        "loop": "Loop playback",
        "nextFrame": "Next frame",
        "pause": "Pause",
        "play": "Play",
        "previousFrame": "Previous frame",
        "reset": "Reset view",
        "seek": "Playback position",
        "showAnnotations": "Show callouts",
        "speed": "Playback speed",
        "zoomIn": "Zoom in",
        "zoomOut": "Zoom out"
      },
      "playback": false,
      "reset": true,
      "zoom": true
    },
    "hover": true,
    "navigation": {
      "drag": true,
      "keyboard": true,
      "maxZoom": 6,
      "minZoom": 1,
      "pinch": true,
      "wheel": "modifier"
    },
    "tooltip": {
      "fields": [
        {
          "field": "x",
          "format": "number",
          "label": "X"
        },
        {
          "field": "y",
          "format": "number",
          "label": "Y"
        },
        {
          "field": "size",
          "format": "number",
          "label": "Size"
        },
        {
          "field": "group",
          "format": "auto",
          "label": "Group"
        }
      ],
      "title": "Bubble",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Bubble chart uses runnable data and options to demonstrate square-root radius; color field.",
    "text": "Bubble"
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
};

Graflume.bubble('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.",
    "label": "Bubble example"
  },
  "axes": {
    "x": {
      "format": {
        "fractionDigits": 1,
        "type": "number"
      },
      "title": {
        "align": "end",
        "padding": 36,
        "text": "Reach"
      }
    },
    "y": {
      "format": {
        "fractionDigits": 1,
        "type": "number"
      },
      "title": {
        "align": "center",
        "padding": 58,
        "text": "Engagement"
      }
    }
  },
  "height": 620,
  "interaction": {
    "controls": {
      "annotations": false,
      "export": true,
      "fullscreen": true,
      "labels": {
        "controls": "Chart controls",
        "enterFullscreen": "Enter fullscreen",
        "exitFullscreen": "Exit fullscreen",
        "exportPng": "Download PNG",
        "hideAnnotations": "Hide callouts",
        "loop": "Loop playback",
        "nextFrame": "Next frame",
        "pause": "Pause",
        "play": "Play",
        "previousFrame": "Previous frame",
        "reset": "Reset view",
        "seek": "Playback position",
        "showAnnotations": "Show callouts",
        "speed": "Playback speed",
        "zoomIn": "Zoom in",
        "zoomOut": "Zoom out"
      },
      "playback": false,
      "reset": true,
      "zoom": true
    },
    "hover": true,
    "navigation": {
      "drag": true,
      "keyboard": true,
      "maxZoom": 6,
      "minZoom": 1,
      "pinch": true,
      "wheel": "modifier"
    },
    "tooltip": {
      "fields": [
        {
          "field": "x",
          "format": "number",
          "label": "X"
        },
        {
          "field": "y",
          "format": "number",
          "label": "Y"
        },
        {
          "field": "size",
          "format": "number",
          "label": "Size"
        },
        {
          "field": "group",
          "format": "auto",
          "label": "Group"
        }
      ],
      "title": "Bubble",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Bubble chart uses runnable data and options to demonstrate square-root radius; color field.",
    "text": "Bubble"
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
}

Edge cases

Numeric range, irregular structure, and data volume

Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.

Wide numeric range

Mix zero, very small finite values, and very large finite values to verify automatic domains, precision, and stable geometry. NaN and Infinity remain intentionally invalid. It applies 2 data-integrity rules that preserve finite values and axis domains.

StatusLoading

  • extreme-range
  • extreme-small
  • extreme-large
  • zero
  • mixed-sign
  • budget:marks<=6
Graflume.bubble() Canvas 2D
Control help

Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.bubble()

const data = [
  {
    "group": "Starter",
    "size": 1e-9,
    "x": -1000000000000,
    "y": -1e-9
  },
  {
    "group": "Starter",
    "size": 0,
    "x": -1e-9,
    "y": 0
  },
  {
    "group": "Starter",
    "size": 1000000000000,
    "x": 0,
    "y": 1000000000000
  },
  {
    "group": "Growth",
    "size": 1,
    "x": 1000000000000,
    "y": 1e-9
  },
  {
    "group": "Growth",
    "size": 1000000,
    "x": 1e-9,
    "y": 1000000
  },
  {
    "group": "Growth",
    "size": 0.000001,
    "x": 1000000,
    "y": -1000000000000
  }
];

const options = {
  "accessibility": {
    "description": "Customer segments compared by engagement, satisfaction, and team size. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Bubble"
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size"
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Bubble"
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
};

Graflume.bubble('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Customer segments compared by engagement, satisfaction, and team size. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Bubble"
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size"
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Bubble"
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
}

Extreme environments

Reconfigure for display, input, and device capability

Combine container size, input method, display capability, and user preference instead of guessing a device name. Compare mobile, watch, e-paper, monochrome, dot-matrix, and standards-based extreme environments on the same chart.

Fluid responsive

Reflow axes, legends, descriptions, and controls from the available container size.

960×540 · adaptive.profiles=responsive-fluid
  • zoom-reflow
  • shape-rectangle
  • display-color
  • input-fine
  • motion-full
  • renderer-canvas-spatial

Extreme environment preview

Choose a profile above to preserve the same data and ChartSpec while reconfiguring the chart for display size, input method, display capability, and user preference.

StatusLoading

  • adaptive
  • capability-driven
  • no-user-agent-branching
  • Legend: legend · categories · group
  • Point and range highlights: highlights[] · datum · x
  • Custom callouts: annotations[] · datum · x · callout · placement:auto
  • Interactive selection: selection · multiple · toggle
Graflume.bubble() Canvas 2D
Control help

Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.bubble()

const data = [
  {
    "group": "Starter",
    "name": "Atlas Lab",
    "size": 28,
    "x": 14,
    "y": 38,
    "z": 7
  },
  {
    "group": "Starter",
    "name": "Beacon Co",
    "size": 34,
    "x": 20,
    "y": 45,
    "z": 10
  },
  {
    "group": "Starter",
    "name": "Civic Data",
    "size": 31,
    "x": 25,
    "y": 41,
    "z": 12
  },
  {
    "group": "Growth",
    "name": "Delta Ops",
    "size": 64,
    "x": 38,
    "y": 57,
    "z": 15
  },
  {
    "group": "Growth",
    "name": "Ember Labs",
    "size": 78,
    "x": 45,
    "y": 63,
    "z": 18
  },
  {
    "group": "Growth",
    "name": "Foundry BI",
    "size": 70,
    "x": 50,
    "y": 55,
    "z": 21
  },
  {
    "group": "Scale",
    "name": "Harbor AI",
    "size": 112,
    "x": 64,
    "y": 72,
    "z": 25
  },
  {
    "group": "Scale",
    "name": "Lattice Co",
    "size": 128,
    "x": 72,
    "y": 79,
    "z": 28
  },
  {
    "group": "Scale",
    "name": "Meridian",
    "size": 118,
    "x": 78,
    "y": 70,
    "z": 31
  },
  {
    "group": "Opportunity",
    "name": "Northstar",
    "size": 52,
    "x": 61,
    "y": 88,
    "z": 34
  }
];

const options = {
  "accessibility": {
    "description": "Customer segments compared by engagement, satisfaction, and team size. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Bubble chart: Customer segments compared by engagement, satisfaction, and team size"
  },
  "annotations": [
    {
      "connector": {
        "visible": true
      },
      "detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
      "id": "manual-callout",
      "placement": "auto",
      "style": {
        "maxWidth": 220,
        "padding": 8
      },
      "target": {
        "field": "x",
        "type": "datum",
        "value": 50
      },
      "text": "Point and range highlights · 50"
    }
  ],
  "axes": {
    "x": {
      "format": {
        "fractionDigits": 1,
        "type": "number"
      },
      "title": {
        "align": "end",
        "padding": 36,
        "text": "Reach"
      }
    },
    "y": {
      "format": {
        "fractionDigits": 1,
        "type": "number"
      },
      "title": {
        "align": "center",
        "padding": 58,
        "text": "Engagement"
      }
    }
  },
  "create": {
    "adaptive": {
      "profiles": "auto"
    }
  },
  "height": 620,
  "highlights": [
    {
      "id": "manual-focus",
      "padding": 7,
      "target": {
        "field": "x",
        "type": "datum",
        "value": 50
      }
    }
  ],
  "interaction": {
    "controls": {
      "annotations": true,
      "export": true,
      "fullscreen": true,
      "labels": {
        "controls": "Chart controls",
        "enterFullscreen": "Enter fullscreen",
        "exitFullscreen": "Exit fullscreen",
        "exportPng": "Download PNG",
        "hideAnnotations": "Hide callouts",
        "loop": "Loop playback",
        "nextFrame": "Next frame",
        "pause": "Pause",
        "play": "Play",
        "previousFrame": "Previous frame",
        "reset": "Reset view",
        "seek": "Playback position",
        "showAnnotations": "Show callouts",
        "speed": "Playback speed",
        "zoomIn": "Zoom in",
        "zoomOut": "Zoom out"
      },
      "playback": false,
      "reset": true,
      "zoom": true
    },
    "hover": true,
    "navigation": {
      "drag": true,
      "keyboard": true,
      "maxZoom": 6,
      "minZoom": 1,
      "pinch": true,
      "wheel": "modifier"
    },
    "selection": {
      "ariaLabel": "Interactive selection",
      "clearOnBackground": true,
      "clearOnEscape": true,
      "highlight": {
        "padding": 5
      },
      "key": "x",
      "mode": "multiple",
      "toggle": true
    },
    "tooltip": {
      "fields": [
        {
          "field": "x",
          "format": "number",
          "label": "X"
        },
        {
          "field": "y",
          "format": "number",
          "label": "Y"
        },
        {
          "field": "size",
          "format": "number",
          "label": "Size"
        },
        {
          "field": "group",
          "format": "auto",
          "label": "Group"
        }
      ],
      "title": "Bubble",
      "trigger": "mark"
    }
  },
  "legend": {
    "field": "group",
    "interactive": true,
    "labels": {
      "hide": "Hide",
      "show": "Show"
    },
    "maxItems": 8,
    "mode": "categories",
    "orientation": "horizontal",
    "position": "bottom",
    "title": "Group",
    "visible": true
  },
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Customer segments compared by engagement, satisfaction, and team size",
    "text": "Bubble chart"
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
};

Graflume.bubble('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Customer segments compared by engagement, satisfaction, and team size. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Bubble chart: Customer segments compared by engagement, satisfaction, and team size"
  },
  "annotations": [
    {
      "connector": {
        "visible": true
      },
      "detail": "Attach user-authored safe text to a datum, axis range, or normalized plot position.",
      "id": "manual-callout",
      "placement": "auto",
      "style": {
        "maxWidth": 220,
        "padding": 8
      },
      "target": {
        "field": "x",
        "type": "datum",
        "value": 50
      },
      "text": "Point and range highlights · 50"
    }
  ],
  "axes": {
    "x": {
      "format": {
        "fractionDigits": 1,
        "type": "number"
      },
      "title": {
        "align": "end",
        "padding": 36,
        "text": "Reach"
      }
    },
    "y": {
      "format": {
        "fractionDigits": 1,
        "type": "number"
      },
      "title": {
        "align": "center",
        "padding": 58,
        "text": "Engagement"
      }
    }
  },
  "create": {
    "adaptive": {
      "profiles": "auto"
    }
  },
  "height": 620,
  "highlights": [
    {
      "id": "manual-focus",
      "padding": 7,
      "target": {
        "field": "x",
        "type": "datum",
        "value": 50
      }
    }
  ],
  "interaction": {
    "controls": {
      "annotations": true,
      "export": true,
      "fullscreen": true,
      "labels": {
        "controls": "Chart controls",
        "enterFullscreen": "Enter fullscreen",
        "exitFullscreen": "Exit fullscreen",
        "exportPng": "Download PNG",
        "hideAnnotations": "Hide callouts",
        "loop": "Loop playback",
        "nextFrame": "Next frame",
        "pause": "Pause",
        "play": "Play",
        "previousFrame": "Previous frame",
        "reset": "Reset view",
        "seek": "Playback position",
        "showAnnotations": "Show callouts",
        "speed": "Playback speed",
        "zoomIn": "Zoom in",
        "zoomOut": "Zoom out"
      },
      "playback": false,
      "reset": true,
      "zoom": true
    },
    "hover": true,
    "navigation": {
      "drag": true,
      "keyboard": true,
      "maxZoom": 6,
      "minZoom": 1,
      "pinch": true,
      "wheel": "modifier"
    },
    "selection": {
      "ariaLabel": "Interactive selection",
      "clearOnBackground": true,
      "clearOnEscape": true,
      "highlight": {
        "padding": 5
      },
      "key": "x",
      "mode": "multiple",
      "toggle": true
    },
    "tooltip": {
      "fields": [
        {
          "field": "x",
          "format": "number",
          "label": "X"
        },
        {
          "field": "y",
          "format": "number",
          "label": "Y"
        },
        {
          "field": "size",
          "format": "number",
          "label": "Size"
        },
        {
          "field": "group",
          "format": "auto",
          "label": "Group"
        }
      ],
      "title": "Bubble",
      "trigger": "mark"
    }
  },
  "legend": {
    "field": "group",
    "interactive": true,
    "labels": {
      "hide": "Hide",
      "show": "Show"
    },
    "maxItems": 8,
    "mode": "categories",
    "orientation": "horizontal",
    "position": "bottom",
    "title": "Group",
    "visible": true
  },
  "locale": "en",
  "mark": {
    "fields": {
      "color": "group",
      "size": "size"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Customer segments compared by engagement, satisfaction, and team size",
    "text": "Bubble chart"
  },
  "width": "container",
  "x": {
    "field": "x",
    "title": "Engagement score",
    "type": "quantitative"
  },
  "y": {
    "field": "y",
    "title": "Satisfaction score",
    "type": "quantitative"
  }
}

Catalog

Modes · compatibility identifiers

The source-controlled catalog maps callable modes in this family and compatibility identifiers to their canonical modes. This table contains executable entries only.

2 modes · 2 compatibility identifiers

Bubble · supported modes · representative bubble
IDNameQuick APImodemarkrenderer
bubbleBubble chartbubble()defaultbubblecanvas
packed-bubblePacked bubble chartpackedBubble()packed-bubblepacked-bubblecanvas
Bubble · compatibility identifiers
IdentifierCanonical mode ID
bubblebubble
packedbubblepacked-bubble

Manual

Integration checklist

ARIA · table fallback

Accessibility

Canvas ARIA metadata is paired with a text summary and table fallback.

standard · large · ultra

Performance

Standard, large, and ultra profiles bound rendering work.