This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/datacalculateInterval

rangeUtil.calculateInterval() function

rangeUtil.calculateInterval() function

Signature

export declare function calculateInterval(range: TimeRange, resolution: number, lowLimitInterval?: string): IntervalValues;

Import

import { rangeUtil } from '@grafana/data';
const { calculateInterval } = rangeUtil;

Parameters

Parameter Type Description
range TimeRange
resolution number
lowLimitInterval string

Returns:

IntervalValues