Graflume · Alpha

Interval · Chart-specific features

Compare a center value with lower and upper bounds for each category. 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

Interval

Compare a center value with lower and upper bounds for each category.

Quick API
intervals()
Browser snapshot
graflume
mark
interval
Presets
6

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.

Intervals

Intervals uses runnable data and options to demonstrate precomputed vertical interval; horizontal errors.

StatusLoading

  • intervals
  • precomputed vertical interval
  • horizontal errors
Graflume.intervals() 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.intervals()

const data = [
  {
    "category": "Guided setup",
    "high": 10.8,
    "low": 5.9,
    "previous": 4.1,
    "value": 8.4
  },
  {
    "category": "Saved views",
    "high": 8.6,
    "low": 4.8,
    "previous": 2.8,
    "value": 6.7
  },
  {
    "category": "Smart alerts",
    "high": 7.5,
    "low": 2.6,
    "previous": 1.7,
    "value": 5.1
  },
  {
    "category": "Team sharing",
    "high": 6.3,
    "low": 1.4,
    "previous": 1.5,
    "value": 3.9
  },
  {
    "category": "CSV onboarding",
    "high": 4.8,
    "low": -0.3,
    "previous": 0.8,
    "value": 2.3
  }
];

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": "Interval example"
  },
  "axes": {
    "x": {
      "labels": {
        "angle": -35,
        "maxLength": 20,
        "orientation": "auto",
        "padding": 12
      },
      "title": {
        "padding": 62,
        "text": "Study group"
      }
    },
    "y": {
      "format": {
        "fractionDigits": 1,
        "type": "number"
      },
      "title": {
        "padding": 70,
        "text": "Estimate and 95% interval"
      }
    }
  },
  "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": {
      "axis": "x",
      "fields": [
        {
          "field": "category",
          "format": "auto",
          "label": "Category"
        },
        {
          "field": "value",
          "format": "number",
          "label": "Value"
        },
        {
          "field": "low",
          "format": "number",
          "label": "Low"
        },
        {
          "field": "high",
          "format": "number",
          "label": "High"
        }
      ],
      "title": "Interval",
      "trigger": "axis"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "high": "high",
      "low": "low"
    }
  },
  "padding": {
    "bottom": 90,
    "left": 82,
    "right": 30,
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Intervals uses runnable data and options to demonstrate precomputed vertical interval; horizontal errors.",
    "text": "Interval"
  },
  "width": "container",
  "x": {
    "field": "category",
    "title": "Experiment",
    "type": "ordinal"
  },
  "y": {
    "field": "value",
    "title": "Lift (points)",
    "type": "quantitative"
  }
};

Graflume.intervals('#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": "Interval example"
  },
  "axes": {
    "x": {
      "labels": {
        "angle": -35,
        "maxLength": 20,
        "orientation": "auto",
        "padding": 12
      },
      "title": {
        "padding": 62,
        "text": "Study group"
      }
    },
    "y": {
      "format": {
        "fractionDigits": 1,
        "type": "number"
      },
      "title": {
        "padding": 70,
        "text": "Estimate and 95% interval"
      }
    }
  },
  "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": {
      "axis": "x",
      "fields": [
        {
          "field": "category",
          "format": "auto",
          "label": "Category"
        },
        {
          "field": "value",
          "format": "number",
          "label": "Value"
        },
        {
          "field": "low",
          "format": "number",
          "label": "Low"
        },
        {
          "field": "high",
          "format": "number",
          "label": "High"
        }
      ],
      "title": "Interval",
      "trigger": "axis"
    }
  },
  "locale": "en",
  "mark": {
    "fields": {
      "high": "high",
      "low": "low"
    }
  },
  "padding": {
    "bottom": 90,
    "left": 82,
    "right": 30,
    "top": 52
  },
  "theme": "graflume-light",
  "title": {
    "subtitle": "Intervals uses runnable data and options to demonstrate precomputed vertical interval; horizontal errors.",
    "text": "Interval"
  },
  "width": "container",
  "x": {
    "field": "category",
    "title": "Experiment",
    "type": "ordinal"
  },
  "y": {
    "field": "value",
    "title": "Lift (points)",
    "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.

6 modes · 5 compatibility identifiers

Interval · supported modes · representative intervals
IDNameQuick APImodemarkrenderer
intervalsIntervalsintervals()defaultintervalcanvas
area-rangeArea range chartareaRange()area-rangerangecanvas
area-spline-rangeSmooth area range chartareaSplineRange()area-spline-rangerangecanvas
column-rangeColumn range chartcolumnRange()column-rangerangecanvas
dumbbellDumbbell chartdumbbell()dumbbellrangecanvas
error-barError bar charterrorBar()error-barintervalcanvas
Interval · compatibility identifiers
IdentifierCanonical mode ID
arearangearea-range
areasplinerangearea-spline-range
columnrangecolumn-range
dumbbelldumbbell
errorbarerror-bar

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.