Markers

Markers allow you to flag a specific time or time range with a line that vertically crosses all the visible entities on the timeline.

Add markers to your timeline by using the timeline.markers API. markers prop. You can add as many markers to your timeline as you like.

By default, markers inherit their colors and text size from the scales options. However, markers can be individually styled by specifying color, fontIcon or labelColor and other options in the Marker object.

timeline.markers([
  {
    label: 'Incident',
    time: { start: new Date(2025, 7, 14, 9, 30), end: new Date(2025, 7, 14, 12, 30) },
  },
  {
    label: 'Resolution',
    time: new Date(2025, 7, 14, 13, 0),
    color: '#a3c096',
    labelColor: '#219ebc',
    fontIcon: { fontFamily: 'Font Awesome 6 Free', fontWeight: 900, text: '\u{f058}' },
    showAtBottom: false,
  },
]);
<Timeline
  markers={[
    {
      label: 'Incident',
      time: {
          start: new Date(2025, 7, 14, 9, 30),
          end: new Date(2025, 7, 14, 12, 30)
        }
    },
    {
      label: 'Resolution',
      time: new Date(2025, 7, 14, 13, 0),
      color: '#a3c096',
      labelColor: '#219ebc',
      fontIcon: { fontFamily: 'Font Awesome 6 Free', fontWeight: 900, text: '\u{f058}' },
      showAtBottom: false,
    }
  }]
  />

See more in the Markers story.

Terms of use

These terms do not alter or supersede any existing agreements between you (or your employer) and us.

By accessing or using any Content you agree to be bound by these Terms of Use. Please review these terms carefully before using the website.

The contents of this website, including but not limited to any text, code samples, API references, schemas, interactive tools, and other materials (collectively, the 'Content'), are made available for informational and internal evaluation purposes only. All intellectual property rights in the Content are reserved. No licence is granted to use the Content for any commercial purpose, or to copy, distribute, modify, reverse-engineer, or incorporate any part of the Content into any product or service, without our prior written consent.

This Content is provided “as is” and “as available,” without any representations, warranties, or guarantees of any kind, whether express or implied, including but not limited to implied warranties of merchantability, fitness for a particular purpose, non-infringement, or accuracy. To the fullest extent permitted by applicable law, we expressly exclude and disclaim all implied warranties, conditions, and other terms that might otherwise be implied.

We disclaim all liability for any loss or damage, whether direct, indirect, incidental, consequential, or otherwise, arising from any reliance placed on the Content or from your use of it, to the fullest extent permitted by applicable law. By continuing to access or use the Content, you acknowledge and agree to these terms.