Multiple Time Scales

There are four types of timeline views: day, week, month and year. Use the size property of the configuration object to set the length of the view or page size.

Use the resolutionHorizontal property of the configuration object to set the horizontal unit of a timeline column, it can be 'hour', 'day', 'week', 'month', 'quarter' and 'year'. In case of hourly resolution, the columns can be split to minutes (1, 5, 15, 20, 30) or merged into multiple hours (2, 3, 4, 6, 8, 12) using the timeCellStep and timeLabelStep properties.

Use the resolutionVertical property of the configuration object to set the vertical unit of a timeline rows, it can be 'day' or 'none'. If set to 'day', the days will be rendered on the vertical axis, while the hours of the day will be displayed on the horizontal axis.

Use the hideEmptyRows property to control the visibility of empty rows. If hideEmptyRows is set to true, rows without any events will not be displayed. This has no effect on parent resources - they will remain visible unless resolutionVertical is set to 'day', in which case an entire day will be hidden if all resources are empty.

Use the hideInvalidRows property to control the visibility of invalid rows. If hideInvalidRows is set to true, rows that are fully invalid - consists of periods defined as allDay: true, date (MbscDateType), or time ranges that span a full day or multiple days - will be hidden. This has no effect on parent resources - they will remain visible unless resolutionVertical is set to 'day', in which case an entire day will be hidden if all resources are fully invalid.

The reference date, controlled through the refDate option, is today by default, but it can be set to any date, like the first day of the month, or the first day of the year. The refDate serves as the start of the reference range. From that point on you can navigate forward and backward.

A couple of examples:

  • Rolling two weeks - use type: 'day' and size: 14
  • Two weeks (starting with Sun/Mon) - use type: 'week' and size: 2
  • Quarter view, starting from January - use type: 'year' and resolutionHorizontal: "quarter"
  • Rolling three months - use type: 'month' and size: 3
  • Year view - use type: 'year'
Get started with this example

Demo

Configure the page size
Display
Display
Display
Display
Set the horizontal resolution
Set the vertical resolution
Hide empty rows
Hide invalid rows
If unset, the initial view date is today
If unset, the reference date is today
If unset, the reference date is today
<Eventcalendar
  view={{
    timeline: { 
      type: 'day',
      size: 1,
      resolutionVertical: 'day',
      resolutionHorizontal: 'day',
      eventDisplay: 'fill',
      hideEmptyRows: false,
      hideInvalidRows: false,
    }
  }}
  refDate=""
  defaultSelectedDate=""
/>
Configure span and time scale on a Timeline — switch day, week, month, quarter, or year views, set resolution, and show or hide empty rows.

Duplicate Session

You have signed in on a different machine. To keep everything in sync, you have been signed out of this session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.

Duplicate Session

We noticed you are logged in on a different machine and have closed your old session.

If you need to invite team members, manage seats and accounts you can do it from the licenses page.