Graflume · Alpha

Map

Compare activity across five global cities on built-in Natural Earth 1:110m country boundaries, with no external tile/API requests.

Chart family · Default families

Map

Compare activity across five global cities on built-in Natural Earth 1:110m country boundaries, with no external tile/API requests.

Quick API
map()
Browser snapshot
graflume
mark
map
Presets
9

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

Compare activity across five global cities on built-in Natural Earth 1:110m country boundaries, with no external tile/API requests.

StatusLoading

  • minimal-implementation
Graflume.map() 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.map()

const data = [
  {
    "latitude": 37.57,
    "latitude2": 35.68,
    "longitude": 126.98,
    "longitude2": 139.69,
    "name": "Seoul",
    "value": 92
  },
  {
    "latitude": 35.68,
    "latitude2": 1.35,
    "longitude": 139.69,
    "longitude2": 103.82,
    "name": "Tokyo",
    "value": 78
  },
  {
    "latitude": 1.35,
    "latitude2": 28.61,
    "longitude": 103.82,
    "longitude2": 77.21,
    "name": "Singapore",
    "value": 64
  },
  {
    "latitude": 28.61,
    "latitude2": 48.86,
    "longitude": 77.21,
    "longitude2": 2.35,
    "name": "Delhi",
    "value": 58
  },
  {
    "latitude": 48.86,
    "latitude2": 40.71,
    "longitude": 2.35,
    "longitude2": -74,
    "name": "Paris",
    "value": 73
  },
  {
    "latitude": 40.71,
    "latitude2": 37.77,
    "longitude": -74,
    "longitude2": -122.42,
    "name": "New York",
    "value": 88
  },
  {
    "latitude": 37.77,
    "latitude2": 19.43,
    "longitude": -122.42,
    "longitude2": -99.13,
    "name": "San Francisco",
    "value": 69
  },
  {
    "latitude": -33.87,
    "latitude2": 37.57,
    "longitude": 151.21,
    "longitude2": 126.98,
    "name": "Sydney",
    "value": 51
  }
];

const options = {
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "size": "value"
    }
  },
  "width": "container",
  "x": {
    "field": "longitude",
    "title": "Longitude",
    "type": "quantitative"
  },
  "y": {
    "field": "latitude",
    "title": "Latitude",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "size": "value"
    }
  },
  "width": "container",
  "x": {
    "field": "longitude",
    "title": "Longitude",
    "type": "quantitative"
  },
  "y": {
    "field": "latitude",
    "title": "Latitude",
    "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.map() 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.map()

const data = [
  {
    "latitude": 37.57,
    "latitude2": 35.68,
    "longitude": 126.98,
    "longitude2": 139.69,
    "name": "Seoul",
    "value": 92
  },
  {
    "latitude": 35.68,
    "latitude2": 1.35,
    "longitude": 139.69,
    "longitude2": 103.82,
    "name": "Tokyo",
    "value": 78
  },
  {
    "latitude": 1.35,
    "latitude2": 28.61,
    "longitude": 103.82,
    "longitude2": 77.21,
    "name": "Singapore",
    "value": 64
  },
  {
    "latitude": 28.61,
    "latitude2": 48.86,
    "longitude": 77.21,
    "longitude2": 2.35,
    "name": "Delhi",
    "value": 58
  },
  {
    "latitude": 48.86,
    "latitude2": 40.71,
    "longitude": 2.35,
    "longitude2": -74,
    "name": "Paris",
    "value": 73
  },
  {
    "latitude": 40.71,
    "latitude2": 37.77,
    "longitude": -74,
    "longitude2": -122.42,
    "name": "New York",
    "value": 88
  },
  {
    "latitude": 37.77,
    "latitude2": 19.43,
    "longitude": -122.42,
    "longitude2": -99.13,
    "name": "San Francisco",
    "value": 69
  },
  {
    "latitude": -33.87,
    "latitude2": 37.57,
    "longitude": 151.21,
    "longitude2": 126.98,
    "name": "Sydney",
    "value": 51
  }
];

const options = {
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "size": "value"
    }
  },
  "title": {
    "subtitle": "Map uses runnable data and options to demonstrate point/region/choropleth/route/heat halo; flat geodesics.",
    "text": "Map"
  },
  "width": "container",
  "x": {
    "field": "longitude",
    "title": "Longitude",
    "type": "quantitative"
  },
  "y": {
    "field": "latitude",
    "title": "Latitude",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "size": "value"
    }
  },
  "title": {
    "subtitle": "Map uses runnable data and options to demonstrate point/region/choropleth/route/heat halo; flat geodesics.",
    "text": "Map"
  },
  "width": "container",
  "x": {
    "field": "longitude",
    "title": "Longitude",
    "type": "quantitative"
  },
  "y": {
    "field": "latitude",
    "title": "Latitude",
    "type": "quantitative"
  }
}

Chart-specific features

Every executable mode in this family

Run the existing Map modes plus focused tabs for one or many countries, principal regions, mixed country/region scopes, the detailed world catalog, and automatic fit, detail, and labels.

Geographic region chart

Geographic region chart uses runnable data and options to demonstrate embedded Natural Earth basemap; general fit and clip policy.

StatusLoading

  • geo
  • embedded Natural Earth basemap
  • general fit and clip policy
Graflume.geo() 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.geo()

const data = [
  {
    "region": "KR",
    "value": 92
  },
  {
    "region": "JPN",
    "value": 84
  },
  {
    "region": "SGP",
    "value": 79
  },
  {
    "region": "USA",
    "value": 88
  },
  {
    "region": "BRA",
    "value": 63
  },
  {
    "region": "FRA",
    "value": 76
  },
  {
    "region": "ZAF",
    "value": 58
  },
  {
    "region": "AUS",
    "value": 72
  }
];

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": "Map example"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "basemap": "natural-earth",
  "graticule": false,
  "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": "region",
          "format": "auto",
          "label": "Region"
        },
        {
          "field": "value",
          "format": "number",
          "label": "Value"
        }
      ],
      "title": "Map",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "options": {
      "mode": "choropleth"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Geographic region chart uses runnable data and options to demonstrate embedded Natural Earth basemap; general fit and clip policy.",
    "text": "Map"
  },
  "width": "container",
  "x": {
    "field": "region",
    "title": "Longitude",
    "type": "ordinal"
  },
  "y": {
    "field": "value",
    "title": "Latitude",
    "type": "quantitative"
  }
};

Graflume.geo('#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": "Map example"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "basemap": "natural-earth",
  "graticule": false,
  "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": "region",
          "format": "auto",
          "label": "Region"
        },
        {
          "field": "value",
          "format": "number",
          "label": "Value"
        }
      ],
      "title": "Map",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "options": {
      "mode": "choropleth"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Geographic region chart uses runnable data and options to demonstrate embedded Natural Earth basemap; general fit and clip policy.",
    "text": "Map"
  },
  "width": "container",
  "x": {
    "field": "region",
    "title": "Longitude",
    "type": "ordinal"
  },
  "y": {
    "field": "value",
    "title": "Latitude",
    "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.map() 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.map()

const data = [
  {
    "latitude": 37.57,
    "longitude": 126.98,
    "value": -1000000000000
  },
  {
    "latitude": 35.68,
    "longitude": 139.69,
    "value": -1e-9
  },
  {
    "latitude": 1.35,
    "longitude": 103.82,
    "value": 0
  },
  {
    "latitude": 28.61,
    "longitude": 77.21,
    "value": 1000000000000
  },
  {
    "latitude": 48.86,
    "longitude": 2.35,
    "value": 1e-9
  },
  {
    "latitude": 40.71,
    "longitude": -74,
    "value": 1000000
  }
];

const options = {
  "accessibility": {
    "description": "Regional adoption and routes connecting Statground teams around the world. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Map"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "size": "value"
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Map"
  },
  "width": "container",
  "x": {
    "field": "longitude",
    "title": "Longitude",
    "type": "quantitative"
  },
  "y": {
    "field": "latitude",
    "title": "Latitude",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Regional adoption and routes connecting Statground teams around the world. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Map"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "size": "value"
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Map"
  },
  "width": "container",
  "x": {
    "field": "longitude",
    "title": "Longitude",
    "type": "quantitative"
  },
  "y": {
    "field": "latitude",
    "title": "Latitude",
    "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 · explicit · 1 channels
  • Point and range highlights: highlights[] · datum · longitude
  • Custom callouts: annotations[] · datum · longitude · callout · placement:auto
  • Interactive selection: selection · multiple · toggle
Graflume.map() 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.map()

const data = [
  {
    "latitude": 37.57,
    "latitude2": 35.68,
    "longitude": 126.98,
    "longitude2": 139.69,
    "name": "Seoul",
    "value": 92
  },
  {
    "latitude": 35.68,
    "latitude2": 1.35,
    "longitude": 139.69,
    "longitude2": 103.82,
    "name": "Tokyo",
    "value": 78
  },
  {
    "latitude": 1.35,
    "latitude2": 28.61,
    "longitude": 103.82,
    "longitude2": 77.21,
    "name": "Singapore",
    "value": 64
  },
  {
    "latitude": 28.61,
    "latitude2": 48.86,
    "longitude": 77.21,
    "longitude2": 2.35,
    "name": "Delhi",
    "value": 58
  },
  {
    "latitude": 48.86,
    "latitude2": 40.71,
    "longitude": 2.35,
    "longitude2": -74,
    "name": "Paris",
    "value": 73
  },
  {
    "latitude": 40.71,
    "latitude2": 37.77,
    "longitude": -74,
    "longitude2": -122.42,
    "name": "New York",
    "value": 88
  },
  {
    "latitude": 37.77,
    "latitude2": 19.43,
    "longitude": -122.42,
    "longitude2": -99.13,
    "name": "San Francisco",
    "value": 69
  },
  {
    "latitude": -33.87,
    "latitude2": 37.57,
    "longitude": 151.21,
    "longitude2": 126.98,
    "name": "Sydney",
    "value": 51
  }
];

const options = {
  "accessibility": {
    "description": "Compare activity across five global cities on built-in Natural Earth 1:110m country boundaries, with no external tile/API requests.",
    "label": "Map: Regional adoption and routes connecting Statground teams around the world"
  },
  "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": "longitude",
        "type": "datum",
        "value": 2.35
      },
      "text": "Point and range highlights · 2.35"
    }
  ],
  "axes": {
    "x": false,
    "y": false
  },
  "create": {
    "adaptive": {
      "profiles": "auto"
    }
  },
  "height": 620,
  "highlights": [
    {
      "id": "manual-focus",
      "padding": 7,
      "target": {
        "field": "longitude",
        "type": "datum",
        "value": 2.35
      }
    }
  ],
  "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": "longitude",
      "mode": "multiple",
      "toggle": true
    },
    "tooltip": {
      "fields": [
        {
          "field": "longitude",
          "format": "number",
          "label": "Longitude"
        },
        {
          "field": "latitude",
          "format": "number",
          "label": "Latitude"
        },
        {
          "field": "value",
          "format": "number",
          "label": "Value"
        }
      ],
      "title": "Map",
      "trigger": "mark"
    }
  },
  "legend": {
    "interactive": false,
    "items": [
      {
        "id": "semantic-0",
        "label": "Activity · size"
      }
    ],
    "labels": {
      "hide": "Hide",
      "show": "Show"
    },
    "maxItems": 8,
    "mode": "layers",
    "orientation": "horizontal",
    "position": "bottom",
    "title": "Map",
    "visible": true
  },
  "locale": "en",
  "mark": {
    "fields": {
      "size": "value"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Regional adoption and routes connecting Statground teams around the world",
    "text": "Map"
  },
  "width": "container",
  "x": {
    "field": "longitude",
    "title": "Longitude",
    "type": "quantitative"
  },
  "y": {
    "field": "latitude",
    "title": "Latitude",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Compare activity across five global cities on built-in Natural Earth 1:110m country boundaries, with no external tile/API requests.",
    "label": "Map: Regional adoption and routes connecting Statground teams around the world"
  },
  "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": "longitude",
        "type": "datum",
        "value": 2.35
      },
      "text": "Point and range highlights · 2.35"
    }
  ],
  "axes": {
    "x": false,
    "y": false
  },
  "create": {
    "adaptive": {
      "profiles": "auto"
    }
  },
  "height": 620,
  "highlights": [
    {
      "id": "manual-focus",
      "padding": 7,
      "target": {
        "field": "longitude",
        "type": "datum",
        "value": 2.35
      }
    }
  ],
  "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": "longitude",
      "mode": "multiple",
      "toggle": true
    },
    "tooltip": {
      "fields": [
        {
          "field": "longitude",
          "format": "number",
          "label": "Longitude"
        },
        {
          "field": "latitude",
          "format": "number",
          "label": "Latitude"
        },
        {
          "field": "value",
          "format": "number",
          "label": "Value"
        }
      ],
      "title": "Map",
      "trigger": "mark"
    }
  },
  "legend": {
    "interactive": false,
    "items": [
      {
        "id": "semantic-0",
        "label": "Activity · size"
      }
    ],
    "labels": {
      "hide": "Hide",
      "show": "Show"
    },
    "maxItems": 8,
    "mode": "layers",
    "orientation": "horizontal",
    "position": "bottom",
    "title": "Map",
    "visible": true
  },
  "locale": "en",
  "mark": {
    "fields": {
      "size": "value"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Regional adoption and routes connecting Statground teams around the world",
    "text": "Map"
  },
  "width": "container",
  "x": {
    "field": "longitude",
    "title": "Longitude",
    "type": "quantitative"
  },
  "y": {
    "field": "latitude",
    "title": "Latitude",
    "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.

9 modes · 7 compatibility identifiers

Map · supported modes · representative map
IDNameQuick APImodemarkrenderer
geoGeographic region chartgeo()regiongeocanvas
mapMapmap()defaultmapcanvas
flow-mapFlow mapflowMap()flow-mapgeo-flowcanvas
geo-heatmapGeographic heatmapgeoHeatmap()geo-heatmapgeo-heatmapcanvas
map-bubbleMap bubble chartmapBubble()map-bubblemapcanvas
map-lineMap line chartmapLine()map-linegeo-linecanvas
map-pointMap point chartmapPoint()map-pointmapcanvas
tiled-map deprecated → mapTiled maptiledMap()tiled-maptiled-mapcanvas
globeNatural Earth land and borders on a sphere with optional points and routes.globe()globeglobewebgl
Map · compatibility identifiers
IdentifierCanonical mode ID
flowmapflow-map
geoheatmapgeo-heatmap
mapmap
mapbubblemap-bubble
maplinemap-line
mappointmap-point
tiledwebmaptiled-map

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.