2020-02-26 03:03:53 -06:00
|
|
|
+++
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
# Do not edit this file. It is automatically generated by API Documenter.
|
|
|
|
# -----------------------------------------------------------------------
|
|
|
|
title = "getFlotPairsConstant"
|
|
|
|
keywords = ["grafana","documentation","sdk","@grafana/data"]
|
|
|
|
type = "docs"
|
|
|
|
+++
|
|
|
|
|
|
|
|
## getFlotPairsConstant() function
|
|
|
|
|
|
|
|
### getFlotPairsConstant() function
|
|
|
|
|
|
|
|
Returns a constant series based on the first value from the provide series.
|
|
|
|
|
|
|
|
<b>Signature</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
export declare function getFlotPairsConstant(seriesData: GraphSeriesValue[][], range: TimeRange): GraphSeriesValue[][];
|
|
|
|
```
|
|
|
|
<b>Import</b>
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
import { getFlotPairsConstant } from '@grafana/data';
|
|
|
|
```
|
|
|
|
<b>Parameters</b>
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2020-04-21 03:41:50 -05:00
|
|
|
| seriesData | <code>GraphSeriesValue[][]</code> | Series |
|
|
|
|
| range | <code>TimeRange</code> | Start and end time for the constant series |
|
2020-02-26 03:03:53 -06:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
|
|
|
`GraphSeriesValue[][]`
|
|
|
|
|