API Reference@grafana/data › calculateInterval

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