Menu

Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.

Enterprise Open source

rangeUtil namespace

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

rangeUtil namespace

Import

typescript
import { rangeUtil } from '@grafana/data';

Functions

FunctionDescription
calculateInterval(range, resolution, lowLimitInterval)
describeInterval(str)
describeTextRange(expr)
intervalToMs(str)
intervalToSeconds(str)
isRelativeTimeRange(raw)
msRangeToTimeString(rangeMs)
roundInterval(interval)
secondsToHms(seconds)

Variables

VariableDescription
convertRawToRange
describeTimeRangeAbbreviation
isValidTimeSpan