Graflume · Alpha

Timeline / Range · Basic implementation · Common features

Compare the start and end of tasks or events on one time axis. Start with only the required data and family encoding. Expand the code to run the same example. Use the tabs to compare header, tooltip, theme, legend, highlight, callout, selection, view controls, and accessibility one feature at a time.

Chart family · Default families

Timeline / Range

Compare the start and end of tasks or events on one time axis.

Quick API
timeline()
Browser snapshot
graflume
mark
timeline
Presets
3

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 start and end of tasks or events on one time axis.

StatusLoading

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

const data = [
  {
    "category": "Research",
    "end": "2026-01-09",
    "start": "2026-01-01"
  },
  {
    "category": "Data design",
    "end": "2026-01-16",
    "start": "2026-01-05"
  },
  {
    "category": "Prototype",
    "end": "2026-01-25",
    "start": "2026-01-12"
  },
  {
    "category": "Accessibility",
    "end": "2026-02-02",
    "start": "2026-01-19"
  },
  {
    "category": "Validation",
    "end": "2026-02-10",
    "start": "2026-01-27"
  },
  {
    "category": "Release",
    "end": "2026-02-14",
    "start": "2026-02-09"
  }
];

const options = {
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "end": "end"
    }
  },
  "width": "container",
  "x": {
    "field": "start",
    "title": "Schedule",
    "type": "temporal"
  },
  "y": {
    "field": "category",
    "title": "Workstream",
    "type": "ordinal"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "end": "end"
    }
  },
  "width": "container",
  "x": {
    "field": "start",
    "title": "Schedule",
    "type": "temporal"
  },
  "y": {
    "field": "category",
    "title": "Workstream",
    "type": "ordinal"
  }
}

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.timeline() 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.timeline()

const data = [
  {
    "category": "Research",
    "end": "2026-01-09",
    "start": "2026-01-01"
  },
  {
    "category": "Data design",
    "end": "2026-01-16",
    "start": "2026-01-05"
  },
  {
    "category": "Prototype",
    "end": "2026-01-25",
    "start": "2026-01-12"
  },
  {
    "category": "Accessibility",
    "end": "2026-02-02",
    "start": "2026-01-19"
  },
  {
    "category": "Validation",
    "end": "2026-02-10",
    "start": "2026-01-27"
  },
  {
    "category": "Release",
    "end": "2026-02-14",
    "start": "2026-02-09"
  }
];

const options = {
  "axes": {
    "x": {
      "format": {
        "dateStyle": "long",
        "timeZone": "UTC",
        "type": "date"
      }
    }
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "end": "end"
    }
  },
  "title": {
    "subtitle": "Timeline uses runnable data and options to demonstrate Gantt; lane packing and grouping.",
    "text": "Timeline / Range"
  },
  "width": "container",
  "x": {
    "field": "start",
    "title": "Schedule",
    "type": "temporal"
  },
  "y": {
    "field": "category",
    "title": "Workstream",
    "type": "ordinal"
  }
};

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

Portable schema

ChartSpec 0.1 · options

{
  "axes": {
    "x": {
      "format": {
        "dateStyle": "long",
        "timeZone": "UTC",
        "type": "date"
      }
    }
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "fields": {
      "end": "end"
    }
  },
  "title": {
    "subtitle": "Timeline uses runnable data and options to demonstrate Gantt; lane packing and grouping.",
    "text": "Timeline / Range"
  },
  "width": "container",
  "x": {
    "field": "start",
    "title": "Schedule",
    "type": "temporal"
  },
  "y": {
    "field": "category",
    "title": "Workstream",
    "type": "ordinal"
  }
}