+++
# -----------------------------------------------------------------------
# Do not edit this file. It is automatically generated by API Documenter.
# -----------------------------------------------------------------------
title = "getDimensionByName"
keywords = ["grafana","documentation","sdk","@grafana/data"]
type = "docs"
+++
## getDimensionByName variable
### getDimensionByName variable
Signature
```typescript
getDimensionByName: (dimensions: KeyValue>, name: string) => Dimension
```
Import
```typescript
import { getDimensionByName } from '@grafana/data';
```