Custom Range Selector

A custom range selector is an extension which allows you to set the from and to date/time. It is useful when you already know the exact start and end date/time for which you want to see the data. The custom range selector appears on the top-right corner of the chart canvas.

A custom range selector appears as shown in the image below:

Custom Range Selector

Set custom date and time

To set the custom date and time follow the steps below:

  • Click on the custom range selector.

  • A calendar widget appears, select the date from the widget, or type in the input box.

  • After setting the date, set the time from the drop-down boxes. This option appears only if the atomicity of data is at time level.

  • Click Apply to view the changes.

A chart with custom range selector is shown below:

FusionTime will load here..

Show/Hide Custom Range Selector

By default, the Custom Range Selector is visible in every chart. However, you can turn it off if you want, by setting the value of the enabled attribute within the customRangeSelector of the extensions object to 0.

Refer to the code below:

{
    type: 'timeseries',
    ...
    dataSource: {
        data: fusionTable,
        ...
        // Show/Hide Custom Range Selector
        "extensions": {
            "customRangeSelector": {
                "enabled": "0"
            }
        }
    }
}
Was this article helpful to you ?