Time strip

E dey show parts wey get label for where dem suppose dey on top number axis, with space between parts, marks for edge and data table.

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

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 di guide (for English)

Components wey relate

  • Timeline — Connected rows of past events for audit trail, agent history or changes.
  • Timeline event — One event with coloured marker, title, time and description.
  • Tree — Hierarchy wey person fit open or close to browse graphs, documents or files.
  • Tree item — One node and im children inside a tree, rendered recursively.
  • Word cloud — SVG cloud without extra dependency; word size follow how much weight e get.
  • Data grid — Virtual grid for big or server-backed data, with sorting, filtering, groups, pages and selection.