Graflume · Alpha

Ternary

Compare the relative shares of three non-negative components inside triangular coordinates.

Chart family · Advanced families

Ternary

Compare the relative shares of three non-negative components inside triangular coordinates.

Quick API
ternary()
Browser snapshot
graflume/complete
mark
ternary
Presets
1

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 the relative shares of three non-negative components inside triangular coordinates.

StatusLoading

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

const data = [
  {
    "a": 70,
    "b": 18,
    "c": 12,
    "series": "Balanced blend"
  },
  {
    "a": 65.5,
    "b": 25.53,
    "c": 8.97,
    "series": "Balanced blend"
  },
  {
    "a": 61,
    "b": 30.12,
    "c": 8.88,
    "series": "Balanced blend"
  },
  {
    "a": 56.5,
    "b": 30.28,
    "c": 13.22,
    "series": "Balanced blend"
  },
  {
    "a": 52,
    "b": 26.73,
    "c": 21.27,
    "series": "Balanced blend"
  },
  {
    "a": 47.5,
    "b": 22.02,
    "c": 30.48,
    "series": "Balanced blend"
  },
  {
    "a": 43,
    "b": 19.28,
    "c": 37.72,
    "series": "Balanced blend"
  },
  {
    "a": 38.5,
    "b": 20.68,
    "c": 40.82,
    "series": "Balanced blend"
  },
  {
    "a": 34,
    "b": 26.3,
    "c": 39.7,
    "series": "Balanced blend"
  },
  {
    "a": 29.5,
    "b": 34.16,
    "c": 36.34,
    "series": "Balanced blend"
  },
  {
    "a": 25,
    "b": 41.14,
    "c": 33.86,
    "series": "Balanced blend"
  },
  {
    "a": 20.5,
    "b": 44.58,
    "c": 34.92,
    "series": "Balanced blend"
  }
];

const options = {
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "c": "c",
      "series": "series"
    },
    "options": {
      "mode": "line"
    }
  },
  "width": "container",
  "x": {
    "field": "a",
    "title": "Component A (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "b",
    "title": "Component B (%)",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "c": "c",
      "series": "series"
    },
    "options": {
      "mode": "line"
    }
  },
  "width": "container",
  "x": {
    "field": "a",
    "title": "Component A (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "b",
    "title": "Component B (%)",
    "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.ternary() 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.ternary()

const data = [
  {
    "a": 70,
    "b": 18,
    "c": 12,
    "series": "Balanced blend"
  },
  {
    "a": 65.5,
    "b": 25.53,
    "c": 8.97,
    "series": "Balanced blend"
  },
  {
    "a": 61,
    "b": 30.12,
    "c": 8.88,
    "series": "Balanced blend"
  },
  {
    "a": 56.5,
    "b": 30.28,
    "c": 13.22,
    "series": "Balanced blend"
  },
  {
    "a": 52,
    "b": 26.73,
    "c": 21.27,
    "series": "Balanced blend"
  },
  {
    "a": 47.5,
    "b": 22.02,
    "c": 30.48,
    "series": "Balanced blend"
  },
  {
    "a": 43,
    "b": 19.28,
    "c": 37.72,
    "series": "Balanced blend"
  },
  {
    "a": 38.5,
    "b": 20.68,
    "c": 40.82,
    "series": "Balanced blend"
  },
  {
    "a": 34,
    "b": 26.3,
    "c": 39.7,
    "series": "Balanced blend"
  },
  {
    "a": 29.5,
    "b": 34.16,
    "c": 36.34,
    "series": "Balanced blend"
  },
  {
    "a": 25,
    "b": 41.14,
    "c": 33.86,
    "series": "Balanced blend"
  },
  {
    "a": 20.5,
    "b": 44.58,
    "c": 34.92,
    "series": "Balanced blend"
  }
];

const options = {
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "c": "c",
      "series": "series"
    },
    "options": {
      "mode": "line"
    }
  },
  "title": {
    "subtitle": "Ternary chart uses runnable data and options to demonstrate nonnegative component normalization; barycentric mapping.",
    "text": "Ternary"
  },
  "width": "container",
  "x": {
    "field": "a",
    "title": "Component A (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "b",
    "title": "Component B (%)",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "c": "c",
      "series": "series"
    },
    "options": {
      "mode": "line"
    }
  },
  "title": {
    "subtitle": "Ternary chart uses runnable data and options to demonstrate nonnegative component normalization; barycentric mapping.",
    "text": "Ternary"
  },
  "width": "container",
  "x": {
    "field": "a",
    "title": "Component A (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "b",
    "title": "Component B (%)",
    "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.

Ternary chart

Ternary chart uses runnable data and options to demonstrate nonnegative component normalization; barycentric mapping.

StatusLoading

  • ternary
  • nonnegative component normalization
  • barycentric mapping
  • grid and labels
  • scatter and line/closed path
  • constant-sum validation policy
  • raw and normalized tooltip
  • component ticks and formatting
Graflume.ternary() 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.ternary()

const data = [
  {
    "a": 70,
    "b": 18,
    "c": 12,
    "series": "Balanced blend"
  },
  {
    "a": 65.5,
    "b": 25.53,
    "c": 8.97,
    "series": "Balanced blend"
  },
  {
    "a": 61,
    "b": 30.12,
    "c": 8.88,
    "series": "Balanced blend"
  },
  {
    "a": 56.5,
    "b": 30.28,
    "c": 13.22,
    "series": "Balanced blend"
  },
  {
    "a": 52,
    "b": 26.73,
    "c": 21.27,
    "series": "Balanced blend"
  },
  {
    "a": 47.5,
    "b": 22.02,
    "c": 30.48,
    "series": "Balanced blend"
  },
  {
    "a": 43,
    "b": 19.28,
    "c": 37.72,
    "series": "Balanced blend"
  },
  {
    "a": 38.5,
    "b": 20.68,
    "c": 40.82,
    "series": "Balanced blend"
  },
  {
    "a": 34,
    "b": 26.3,
    "c": 39.7,
    "series": "Balanced blend"
  },
  {
    "a": 29.5,
    "b": 34.16,
    "c": 36.34,
    "series": "Balanced blend"
  },
  {
    "a": 25,
    "b": 41.14,
    "c": 33.86,
    "series": "Balanced blend"
  },
  {
    "a": 20.5,
    "b": 44.58,
    "c": 34.92,
    "series": "Balanced blend"
  }
];

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": "Ternary 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": "a",
          "format": "number",
          "label": "A"
        },
        {
          "field": "b",
          "format": "number",
          "label": "B"
        },
        {
          "field": "c",
          "format": "number",
          "label": "C"
        },
        {
          "field": "series",
          "format": "auto",
          "label": "Series"
        }
      ],
      "title": "Ternary",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "c": "c",
      "series": "series"
    },
    "options": {
      "mode": "line"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Ternary chart uses runnable data and options to demonstrate nonnegative component normalization; barycentric mapping.",
    "text": "Ternary"
  },
  "width": "container",
  "x": {
    "field": "a",
    "title": "Component A (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "b",
    "title": "Component B (%)",
    "type": "quantitative"
  }
};

Graflume.ternary('#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": "Ternary 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": "a",
          "format": "number",
          "label": "A"
        },
        {
          "field": "b",
          "format": "number",
          "label": "B"
        },
        {
          "field": "c",
          "format": "number",
          "label": "C"
        },
        {
          "field": "series",
          "format": "auto",
          "label": "Series"
        }
      ],
      "title": "Ternary",
      "trigger": "mark"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "c": "c",
      "series": "series"
    },
    "options": {
      "mode": "line"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Ternary chart uses runnable data and options to demonstrate nonnegative component normalization; barycentric mapping.",
    "text": "Ternary"
  },
  "width": "container",
  "x": {
    "field": "a",
    "title": "Component A (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "b",
    "title": "Component B (%)",
    "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
  • domain-boundary
  • budget:marks<=6
Graflume.ternary() 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.ternary()

const data = [
  {
    "a": 1000000000000,
    "b": 1,
    "c": 1,
    "series": "Balanced blend"
  },
  {
    "a": 1e-9,
    "b": 1e-9,
    "c": 1e-9,
    "series": "Balanced blend"
  },
  {
    "a": 0,
    "b": 1,
    "c": 0,
    "series": "Balanced blend"
  },
  {
    "a": 1,
    "b": 0,
    "c": 0,
    "series": "Balanced blend"
  },
  {
    "a": 0,
    "b": 0,
    "c": 1,
    "series": "Balanced blend"
  },
  {
    "a": 1000000,
    "b": 2000000,
    "c": 3000000,
    "series": "Balanced blend"
  }
];

const options = {
  "accessibility": {
    "description": "Balanced blends move across a composition whose three parts always sum to 100. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Ternary"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "c": "c",
      "series": "series"
    },
    "options": {
      "mode": "line"
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Ternary"
  },
  "width": "container",
  "x": {
    "field": "a",
    "title": "Component A (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "b",
    "title": "Component B (%)",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Balanced blends move across a composition whose three parts always sum to 100. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Ternary"
  },
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "c": "c",
      "series": "series"
    },
    "options": {
      "mode": "line"
    }
  },
  "title": {
    "subtitle": "edge case · range",
    "text": "Ternary"
  },
  "width": "container",
  "x": {
    "field": "a",
    "title": "Component A (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "b",
    "title": "Component B (%)",
    "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 · series
  • Point and range highlights: highlights[] · datum · a
  • Custom callouts: annotations[] · datum · a · callout · placement:auto
  • Interactive selection: selection · multiple · toggle
Graflume.ternary() 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.ternary()

const data = [
  {
    "a": 70,
    "b": 18,
    "c": 12,
    "series": "Balanced blend"
  },
  {
    "a": 65.5,
    "b": 25.53,
    "c": 8.97,
    "series": "Balanced blend"
  },
  {
    "a": 61,
    "b": 30.12,
    "c": 8.88,
    "series": "Balanced blend"
  },
  {
    "a": 56.5,
    "b": 30.28,
    "c": 13.22,
    "series": "Balanced blend"
  },
  {
    "a": 52,
    "b": 26.73,
    "c": 21.27,
    "series": "Balanced blend"
  },
  {
    "a": 47.5,
    "b": 22.02,
    "c": 30.48,
    "series": "Balanced blend"
  },
  {
    "a": 43,
    "b": 19.28,
    "c": 37.72,
    "series": "Balanced blend"
  },
  {
    "a": 38.5,
    "b": 20.68,
    "c": 40.82,
    "series": "Balanced blend"
  },
  {
    "a": 34,
    "b": 26.3,
    "c": 39.7,
    "series": "Balanced blend"
  },
  {
    "a": 29.5,
    "b": 34.16,
    "c": 36.34,
    "series": "Balanced blend"
  },
  {
    "a": 25,
    "b": 41.14,
    "c": 33.86,
    "series": "Balanced blend"
  },
  {
    "a": 20.5,
    "b": 44.58,
    "c": 34.92,
    "series": "Balanced blend"
  }
];

const options = {
  "accessibility": {
    "description": "Balanced blends move across a composition whose three parts always sum to 100. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Ternary chart: Balanced blends move across a composition whose three parts always sum to 100"
  },
  "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": "a",
        "type": "datum",
        "value": 43
      },
      "text": "Point and range highlights · 43"
    }
  ],
  "axes": {
    "x": false,
    "y": false
  },
  "create": {
    "adaptive": {
      "profiles": "auto"
    }
  },
  "height": 620,
  "highlights": [
    {
      "id": "manual-focus",
      "padding": 7,
      "target": {
        "field": "a",
        "type": "datum",
        "value": 43
      }
    }
  ],
  "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": "a",
      "mode": "multiple",
      "toggle": true
    },
    "tooltip": {
      "fields": [
        {
          "field": "a",
          "format": "number",
          "label": "A"
        },
        {
          "field": "b",
          "format": "number",
          "label": "B"
        },
        {
          "field": "c",
          "format": "number",
          "label": "C"
        },
        {
          "field": "series",
          "format": "auto",
          "label": "Series"
        }
      ],
      "title": "Ternary",
      "trigger": "mark"
    }
  },
  "legend": {
    "field": "series",
    "interactive": true,
    "labels": {
      "hide": "Hide",
      "show": "Show"
    },
    "maxItems": 8,
    "mode": "categories",
    "orientation": "horizontal",
    "position": "bottom",
    "title": "Series",
    "visible": true
  },
  "locale": "en",
  "mark": {
    "fields": {
      "c": "c",
      "series": "series"
    },
    "options": {
      "mode": "line"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Balanced blends move across a composition whose three parts always sum to 100",
    "text": "Ternary chart"
  },
  "width": "container",
  "x": {
    "field": "a",
    "title": "Component A (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "b",
    "title": "Component B (%)",
    "type": "quantitative"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Balanced blends move across a composition whose three parts always sum to 100. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Ternary chart: Balanced blends move across a composition whose three parts always sum to 100"
  },
  "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": "a",
        "type": "datum",
        "value": 43
      },
      "text": "Point and range highlights · 43"
    }
  ],
  "axes": {
    "x": false,
    "y": false
  },
  "create": {
    "adaptive": {
      "profiles": "auto"
    }
  },
  "height": 620,
  "highlights": [
    {
      "id": "manual-focus",
      "padding": 7,
      "target": {
        "field": "a",
        "type": "datum",
        "value": 43
      }
    }
  ],
  "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": "a",
      "mode": "multiple",
      "toggle": true
    },
    "tooltip": {
      "fields": [
        {
          "field": "a",
          "format": "number",
          "label": "A"
        },
        {
          "field": "b",
          "format": "number",
          "label": "B"
        },
        {
          "field": "c",
          "format": "number",
          "label": "C"
        },
        {
          "field": "series",
          "format": "auto",
          "label": "Series"
        }
      ],
      "title": "Ternary",
      "trigger": "mark"
    }
  },
  "legend": {
    "field": "series",
    "interactive": true,
    "labels": {
      "hide": "Hide",
      "show": "Show"
    },
    "maxItems": 8,
    "mode": "categories",
    "orientation": "horizontal",
    "position": "bottom",
    "title": "Series",
    "visible": true
  },
  "locale": "en",
  "mark": {
    "fields": {
      "c": "c",
      "series": "series"
    },
    "options": {
      "mode": "line"
    }
  },
  "padding": {
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Balanced blends move across a composition whose three parts always sum to 100",
    "text": "Ternary chart"
  },
  "width": "container",
  "x": {
    "field": "a",
    "title": "Component A (%)",
    "type": "quantitative"
  },
  "y": {
    "field": "b",
    "title": "Component B (%)",
    "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

Ternary · supported modes · representative ternary
IDNameQuick APImodemarkrenderer
ternaryTernary chartternary()defaultternarycanvas

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.