Timeline Basics

Items

KronoGraph is a JavaScript library that lets you add Timeline components to your web applications. These components show the timelines of entities and the events that involve them, creating time-based data visualizations.

You can interact with items such as entities, events, annotations, lens view, markers, time series charts and more, as shown below.

Timeline items drop-down list

Interactions

KronoGraph allows you to explore, and interact with, your data:

Note KronoGraph automatically arranges entities more compactly as you zoom out. If you zoom out far enough, their labels are no longer shown. The lens control Lens icon on the left allows you to magnify entities, and see their labels.

Navigating Timelines

Navigate the timeline by:

  • Dragging or scrolling horizontally to pan along it.
  • Scrolling vertically to zoom in and out.
  • Using Shift + drag to draw a selection marquee: KronoGraph then zooms into that selected time range.
Timeline navigation example

When the timeline has a time scale (shown highlighted with a box below), you can also use that for navigation:

  • Scroll the scale horizontally to pan along the timeline.
  • Scroll it vertically to zoom in and out.
  • Drag along the scale to draw a marquee: KronoGraph then zooms into that selected time range.
  • Double-click it to zoom into the time period between adjacent vertical scale tick marks.
Timeline scales navigation example

You can use timeline options to specify the position and appearance of the time scales.

Selecting Entities beta

When entitySelectionEnabled entitySelectionEnabled is set to true you can select entities.

  • Click an entity to select it.
  • Use Shift + click to select multiple entities.

To deselect entities:

  • Click the timeline area to deselect all entities.
  • Cmd + click (Ctrl + click for Windows) to toggle selection of a particular entity.
Timeline entity selection example

To get a list of selected entities use the entitySelection API. entitySelection API. An example of this is shown in the KronoGraph and KeyLines Basics story, KronoGraph and ReGraph Basics story, which also illustrates how entity selection compares to focusing on an entity.

It's also possible to select events.

Pinning an Entity

To keep one or more entities in view at all times, you can pin it.

To pin or unpin an entity, click its pin control Pin icon

Timeline entity pin example

You can also use the timeline.pin function.

Focusing an Entity

To concentrate on a single entity, and the events it's involved with, you can focus it. An entity with focus is highlighted, and only events that involve it are shown.

To toggle the focus on and off for an entity:

  • Click the focus control Focus icon
  • Double-click the entity's timeline
Timeline entity focus example

You can also use the focus API. focus prop.

Magnifying Entities

  • Click Lens icon to open lens view, magnifying the entities inside the highlighted band. Scroll the label area vertically to move up and down through the entities.
  • Click Icon to close lens view to close lens view.
Timeline lens navigation example

You can also use the timeline.lens function.

Selecting Events

Events are only selectable if eventSelectionMode eventSelectionMode is set to true. They are then shown with a highlight.

  • Click events to select them.
  • Drag to select multiple events.
  • Shift + click, or Shift + drag, to add to the current selection.

To deselect events:

  • Click the timeline area to deselect all events.
  • Cmd + click (Ctrl + click on Windows) to toggle selection of a particular event.
Timeline event selection example

You can get a list of selected events using the eventSelection API. eventSelection prop.

Explore further with the Creating Annotations story. It's also possible to select entities.

Interacting with Event Folds

Event folds are shown as broad lines.

To open an event fold, hover near it so it becomes highlighted. Click this highlight to open the fold and display its underlying individual events.

To close a fold:

  • Click the open fold in the highlighted area, but not on an event itself.
  • Click another fold: opening a fold closes any opened fold.
Timeline event folds example

See Event Folds

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.