Time strip

Displays labelled segments at proportional positions on a numeric axis, with gaps, edge marks, and a data table.

Tables, data grids, stats, trees, heatmaps, and pagination.

lr-time-strip

import '@aceshooting/lyra-ui/components/lr-time-strip.js';

Example

<lr-time-strip label="Equipment activity" min="0" max="24" style="max-inline-size: 40rem"></lr-time-strip>

<script type="module">
  import '@aceshooting/lyra-ui/components/lr-time-strip.js';

  const strip = document.querySelector('lr-time-strip');
  strip.segments = [
    { start: 1, end: 6, kind: 'operating' },
    { start: 8, end: 13, kind: 'standby' },
    { start: 13, end: 17, kind: 'operating' },
    { start: 19, end: 22, kind: 'missing' },
  ];
  strip.kinds = [
    { kind: 'operating', label: 'Operating', style: 'solid' },
    { kind: 'standby', label: 'Standby', style: 'outline', height: 0.6 },
    { kind: 'missing', label: 'No telemetry', style: 'pattern' },
  ];
  strip.edges = [
    { start: 22, end: 24, label: 'Service' },
  ];
  strip.ticks = [
    { value: 0, label: '0h' },
    { value: 12, label: '12h' },
    { value: 24, label: '24h' },
  ];
</script>

Read guide (English)

Related components

  • Timeline — Connected sequence of past-event rows for audit trails, agent histories and changelogs.
  • Timeline item — One event row for a timeline with a color-coded marker, title, timestamp and description.
  • Tree — Expand/collapse hierarchy for navigating graphs, documents, or file trees
  • Tree node — Recursive treeitem row renderer for one node and its children inside a tree.
  • Word cloud — Zero-dependency SVG tag cloud that scales each word by its weight
  • Data grid — Virtualised data grid for large or server-backed datasets, with sorting, filtering, grouping, paging, and selection built in.