Graflume · Alpha

Hierarchy · Edge-case application

Compare categorical proportions through the area of space-filling tiles. Exercise numeric range, sparse structure, and large inputs with valid data. Each tab materializes data only when needed and never silently repairs invalid values.

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

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
  • budget:marks<=6
Graflume.treemap() 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.treemap()

const data = [
  {
    "id": "Statground",
    "parent": "",
    "value": 1000000000000
  },
  {
    "id": "Visualization",
    "parent": "Statground",
    "value": 1
  },
  {
    "id": "Data products",
    "parent": "Statground",
    "value": 1e-9
  },
  {
    "id": "Documentation",
    "parent": "Statground",
    "value": 0
  },
  {
    "id": "Canvas charts",
    "parent": "Visualization",
    "value": 0
  },
  {
    "id": "Spatial charts",
    "parent": "Visualization",
    "value": 0
  }
];

const options = {
  "accessibility": {
    "description": "The Statground portfolio from platform areas down to concrete products. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Hierarchy"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "parent": "parent"
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Hierarchy"
  },
  "width": "container",
  "x": {
    "field": "id",
    "title": "Portfolio node",
    "type": "ordinal"
  },
  "y": {
    "field": "value",
    "title": "Relative investment",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "The Statground portfolio from platform areas down to concrete products. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Hierarchy"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "parent": "parent"
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Hierarchy"
  },
  "width": "container",
  "x": {
    "field": "id",
    "title": "Portfolio node",
    "type": "ordinal"
  },
  "y": {
    "field": "value",
    "title": "Relative investment",
    "type": "quantitative"
  }
}