UNPKG

@grafana/ui

Version:
12 lines (11 loc) 568 B
import { Range } from 'uplot'; import { DataFrame, FieldConfig, FieldSparkline, Field } from '@grafana/data'; import { GraphFieldConfig } from '@grafana/schema'; /** @internal * Given a sparkline config returns a DataFrame ready to be turned into Plot data set **/ export declare function preparePlotFrame(sparkline: FieldSparkline, config?: FieldConfig<GraphFieldConfig>): DataFrame; /** * apply configuration defaults and ensure that the range is never two equal values. */ export declare function getYRange(field: Field, alignedFrame: DataFrame): Range.MinMax;