Graflume · Alpha

Hierarchy · Chart-specific features

Compare categorical proportions through the area of space-filling tiles. These tabs come from Graflume's public catalog. Every mode owns runnable data, options, a Quick API, and source-backed feature claims.

Chart family · Default families

Hierarchy

Compare categorical proportions through the area of space-filling tiles.

Quick API
treemap()
Browser snapshot
graflume
mark
treemap
Presets
7

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.

Organization chart

Organization chart uses runnable data and options to demonstrate breadcrumbs and search.

StatusLoading

  • org
  • breadcrumbs and search
Graflume.org() 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.org()

const data = [
  {
    "id": "Statground",
    "parent": "",
    "value": 100
  },
  {
    "id": "Visualization",
    "parent": "Statground",
    "value": 46
  },
  {
    "id": "Data products",
    "parent": "Statground",
    "value": 34
  },
  {
    "id": "Documentation",
    "parent": "Statground",
    "value": 20
  },
  {
    "id": "Canvas charts",
    "parent": "Visualization",
    "value": 28
  },
  {
    "id": "Spatial charts",
    "parent": "Visualization",
    "value": 18
  },
  {
    "id": "Catalog",
    "parent": "Data products",
    "value": 14
  },
  {
    "id": "Workbench",
    "parent": "Data products",
    "value": 12
  },
  {
    "id": "Pipelines",
    "parent": "Data products",
    "value": 8
  },
  {
    "id": "Guides",
    "parent": "Documentation",
    "value": 12
  },
  {
    "id": "Examples",
    "parent": "Documentation",
    "value": 8
  }
];

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": "Hierarchy example"
  },
  "axes": {
    "x": false,
    "y": 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": "id",
          "format": "auto",
          "label": "Id"
        },
        {
          "field": "value",
          "format": "number",
          "label": "Value"
        },
        {
          "field": "parent",
          "format": "auto",
          "label": "Parent"
        }
      ],
      "title": "Hierarchy",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "parent": "parent"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Organization chart uses runnable data and options to demonstrate breadcrumbs and search.",
    "text": "Hierarchy"
  },
  "width": "container",
  "x": {
    "field": "id",
    "title": "Portfolio node",
    "type": "ordinal"
  },
  "y": {
    "field": "value",
    "title": "Relative investment",
    "type": "quantitative"
  }
};

Graflume.org('#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": "Hierarchy example"
  },
  "axes": {
    "x": false,
    "y": 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": "id",
          "format": "auto",
          "label": "Id"
        },
        {
          "field": "value",
          "format": "number",
          "label": "Value"
        },
        {
          "field": "parent",
          "format": "auto",
          "label": "Parent"
        }
      ],
      "title": "Hierarchy",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "parent": "parent"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Organization chart uses runnable data and options to demonstrate breadcrumbs and search.",
    "text": "Hierarchy"
  },
  "width": "container",
  "x": {
    "field": "id",
    "title": "Portfolio node",
    "type": "ordinal"
  },
  "y": {
    "field": "value",
    "title": "Relative investment",
    "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.

7 modes · 4 compatibility identifiers

Hierarchy · supported modes · representative treemap
IDNameQuick APImodemarkrenderer
orgOrganization chartorg()organizationorgcanvas
treemapTree maptreemap()treemaptreemapcanvas
icicleIcicle charticicle()icicletreemapcanvas
treeTree charttree()treetreecanvas
sunburstSunburst chartsunburst()sunburstsunburstcanvas
organization-networkOrganization networkorganizationNetwork()organization-networkorgcanvas
tree-graphTree graphtreeGraph()tree-graphtreecanvas
Hierarchy · compatibility identifiers
IdentifierCanonical mode ID
organizationorganization-network
sunburstsunburst
treegraphtree-graph
treemaptreemap

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.