API Reference@grafana/datagetScaleCalculator

getScaleCalculator() function

getScaleCalculator() function

Signature

export declare function getScaleCalculator(field: Field, theme: GrafanaTheme2): ScaleCalculator;

Import

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

Parameters

ParameterTypeDescription
fieldField
themeGrafanaTheme2

Returns:

ScaleCalculator