+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "getValueFormat"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++
## getValueFormat() function
### getValueFormat() function
Signature
```typescript
export declare function getValueFormat(id?: string | null): ValueFormatter;
```
Import
```typescript
import { getValueFormat } from '@grafana/data';
```
Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| id | string | null
| |
Returns:
`ValueFormatter`