Graflume · Alpha

Word tree · Chart-specific features

Represent word-parent relationships and weights as a branching hierarchy. 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

Word tree

Represent word-parent relationships and weights as a branching hierarchy.

Quick API
wordTree()
Browser snapshot
graflume
mark
word-tree
Presets
1

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.

Word tree

Word tree uses runnable data and options to demonstrate prestructured phrase hierarchy; weighted labels and links.

StatusLoading

  • word-tree
  • prestructured phrase hierarchy
  • weighted labels and links
  • tokenization/case/stopword/stemming
  • prefix/suffix/reverse
  • phrase aggregation and pruning
Graflume.wordTree() 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.wordTree()

const data = [
  {
    "parent": "",
    "weight": 100,
    "word": "Visualization"
  },
  {
    "parent": "Visualization",
    "weight": 88,
    "word": "Statistics"
  },
  {
    "parent": "Visualization",
    "weight": 81,
    "word": "Interaction"
  },
  {
    "parent": "Visualization",
    "weight": 76,
    "word": "Accessibility"
  },
  {
    "parent": "Interaction",
    "weight": 70,
    "word": "Canvas"
  },
  {
    "parent": "Interaction",
    "weight": 65,
    "word": "Spatial"
  },
  {
    "parent": "Statistics",
    "weight": 61,
    "word": "Scales"
  },
  {
    "parent": "Statistics",
    "weight": 56,
    "word": "Uncertainty"
  },
  {
    "parent": "Accessibility",
    "weight": 51,
    "word": "Keyboard"
  },
  {
    "parent": "Accessibility",
    "weight": 47,
    "word": "Contrast"
  },
  {
    "parent": "Canvas",
    "weight": 43,
    "word": "Themes"
  },
  {
    "parent": "Canvas",
    "weight": 39,
    "word": "Tooltips"
  }
];

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": "Word tree 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": "word",
          "format": "auto",
          "label": "Word"
        },
        {
          "field": "weight",
          "format": "number",
          "label": "Weight"
        },
        {
          "field": "parent",
          "format": "auto",
          "label": "Parent"
        }
      ],
      "title": "Word tree",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "parent": "parent"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Word tree uses runnable data and options to demonstrate prestructured phrase hierarchy; weighted labels and links.",
    "text": "Word tree"
  },
  "width": "container",
  "x": {
    "field": "word",
    "title": "Concept",
    "type": "ordinal"
  },
  "y": {
    "field": "weight",
    "title": "Mentions",
    "type": "quantitative"
  }
};

Graflume.wordTree('#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": "Word tree 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": "word",
          "format": "auto",
          "label": "Word"
        },
        {
          "field": "weight",
          "format": "number",
          "label": "Weight"
        },
        {
          "field": "parent",
          "format": "auto",
          "label": "Parent"
        }
      ],
      "title": "Word tree",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "parent": "parent"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Word tree uses runnable data and options to demonstrate prestructured phrase hierarchy; weighted labels and links.",
    "text": "Word tree"
  },
  "width": "container",
  "x": {
    "field": "word",
    "title": "Concept",
    "type": "ordinal"
  },
  "y": {
    "field": "weight",
    "title": "Mentions",
    "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.

1 modes · 0 compatibility identifiers

Word tree · supported modes · representative word-tree
IDNameQuick APImodemarkrenderer
word-treeWord treewordTree()defaultword-treecanvas

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.