API Reference@grafana/datalocale

locale() function

locale() function

Signature

export declare function locale(value: number, decimals: DecimalCount): FormattedValue;

Import

import { locale } from '@grafana/data';

Parameters

ParameterTypeDescription
valuenumber
decimalsDecimalCount

Returns:

FormattedValue