API Reference@grafana/data › toFixedUnit

toFixedUnit() function

toFixedUnit() function

Signature

export declare function toFixedUnit(unit: string, asPrefix?: boolean): ValueFormatter;

Import

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

Parameters

Parameter Type Description
unit string
asPrefix boolean

Returns:

ValueFormatter