Graflume · Alpha

Combination · Edge-case application

Compare differently scaled layers such as revenue bars and a margin-rate line on primary and secondary axes. 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

Combination

Compare differently scaled layers such as revenue bars and a margin-rate line on primary and secondary axes.

Quick API
combo()
Browser snapshot
graflume
mark
multiple
Presets
2

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

const data = [
  {
    "category": "Jan",
    "target": -1e-9,
    "value": -1000000000000
  },
  {
    "category": "Feb",
    "target": 0,
    "value": -1e-9
  },
  {
    "category": "Mar",
    "target": 1000000000000,
    "value": 0
  },
  {
    "category": "Apr",
    "target": 1e-9,
    "value": 1000000000000
  },
  {
    "category": "May",
    "target": 1000000,
    "value": 1e-9
  },
  {
    "category": "Jun",
    "target": -1000000000000,
    "value": 1000000
  }
];

const options = {
  "accessibility": {
    "description": "Monthly active teams compared with the operating target. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Combination"
  },
  "height": 620,
  "layers": [
    {
      "id": "volume",
      "mark": {
        "opacity": 0.72,
        "type": "bar"
      },
      "x": {
        "field": "category",
        "title": "Month",
        "type": "ordinal"
      },
      "y": {
        "field": "target",
        "title": "Active teams",
        "type": "quantitative"
      }
    },
    {
      "id": "actual",
      "mark": {
        "point": true,
        "type": "line"
      },
      "x": {
        "field": "category",
        "title": "Month",
        "type": "ordinal"
      },
      "y": {
        "field": "value",
        "title": "Active teams",
        "type": "quantitative"
      }
    }
  ],
  "locale": "en",
  "title": {
    "subtitle": "edge case · range",
    "text": "Combination"
  },
  "width": "container"
};

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

Portable schema

ChartSpec 0.1 · options

{
  "accessibility": {
    "description": "Monthly active teams compared with the operating target. The example uses curated, deterministic data and exposes its exact values in a semantic table.",
    "label": "Combination"
  },
  "height": 620,
  "layers": [
    {
      "id": "volume",
      "mark": {
        "opacity": 0.72,
        "type": "bar"
      },
      "x": {
        "field": "category",
        "title": "Month",
        "type": "ordinal"
      },
      "y": {
        "field": "target",
        "title": "Active teams",
        "type": "quantitative"
      }
    },
    {
      "id": "actual",
      "mark": {
        "point": true,
        "type": "line"
      },
      "x": {
        "field": "category",
        "title": "Month",
        "type": "ordinal"
      },
      "y": {
        "field": "value",
        "title": "Active teams",
        "type": "quantitative"
      }
    }
  ],
  "locale": "en",
  "title": {
    "subtitle": "edge case · range",
    "text": "Combination"
  },
  "width": "container"
}