getFlotPairsConstant() function

getFlotPairsConstant() function

Returns a constant series based on the first value from the provide series.

Signature

  1. export declare function getFlotPairsConstant(seriesData: GraphSeriesValue[][], range: TimeRange): GraphSeriesValue[][];

Import

  1. import { getFlotPairsConstant } from '@grafana/data';

Parameters

ParameterTypeDescription
seriesDataGraphSeriesValue[][]Series
rangeTimeRangeStart and end time for the constant series

Returns:

GraphSeriesValue[][]