This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

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

Parameter Type Description
field Field
theme GrafanaTheme2

Returns:

ScaleCalculator