toFixedUnit() function

toFixedUnit() function

Signature

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

Import

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

Parameters

ParameterTypeDescription
unitstring
asPrefixboolean

Returns:

ValueFormatter