@grafana/ui
Version:
Grafana Components Library
21 lines (20 loc) • 1.32 kB
TypeScript
import * as React from 'react';
import { DataFrame, TimeRange } from '@grafana/data';
import { UPlotConfigBuilder } from '../../components/uPlot/config/UPlotConfigBuilder';
export declare const TimeSeries: React.FunctionComponent<{
fields?: import("../GraphNG/types").XYFieldMatchers | undefined;
width: number;
options?: Record<string, any> | undefined;
height: number;
legend: import("@grafana/schema").VizLegendOptions;
frames: DataFrame[];
timeZone: import("@grafana/data").TimeZone[] | import("@grafana/data").TimeZone;
children?: ((builder: UPlotConfigBuilder, alignedFrame: DataFrame) => React.ReactNode) | undefined;
structureRev?: number | undefined;
timeRange: TimeRange;
renderers?: import("../../internal").Renderers | undefined;
tweakScale?: ((opts: import("../../internal").ScaleProps, forField: import("@grafana/data").Field) => import("../../internal").ScaleProps) | undefined;
tweakAxis?: ((opts: import("../../internal").AxisProps, forField: import("@grafana/data").Field) => import("../../internal").AxisProps) | undefined;
onLegendClick?: ((event: import("../..").GraphNGLegendEvent) => void) | undefined;
preparePlotFrame?: ((frames: DataFrame[], dimFields: import("../GraphNG/types").XYFieldMatchers) => DataFrame | null) | undefined;
}>;