+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "getScaleCalculator"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++

## getScaleCalculator() function

### getScaleCalculator() function

<b>Signature</b>

```typescript
export declare function getScaleCalculator(field: Field, theme?: GrafanaTheme): ScaleCalculator;
```
<b>Import</b>

```typescript
import { getScaleCalculator } from '@grafana/data';
```
<b>Parameters</b>

|  Parameter | Type | Description |
|  --- | --- | --- |
|  field | <code>Field</code> |  |
|  theme | <code>GrafanaTheme</code> |  |

<b>Returns:</b>

`ScaleCalculator`

