Customise the Time Bar

Language: 

Hours:

Date order:

The KeyLines time bar provides a powerful way to explore when events occur. This demo shows you how you can customise the time bar to suit your use case and application styling.

The demo uses a dataset of generic transactions over a period of 20 days from July 20, 2010 to August 9, 2010.

Appearance tab

This tab includes options to show or hide the control bar, switch between histogram and area time bar types, customise the background, area and histogram colours, mark specific times in a different colour, and change the font family and axis scales.

Options tab

This tab shows you how you can control:

  • Whether the user can move the sliders to control the time range
  • The animation play speed (default is 60 pixels per second)
  • The speed at which the histogram height scales
  • Whether to offer an 'Extend' button, which shows a cumulative animation of events from a given start time
  • The minimum scale and maximum range which users can zoom to.
Localisation

Date and time formats are a prime source of misunderstanding – "11/7/2010" could mean either the 11th of July or the 7th of November depending on your country. The 'Localisation' tab shows how to switch between 12- and 24-hour clock formats; DD/MM/YY and MM/DD/YY date formats, and by a simple lookup, different language translations of month names.

Key functions used: