Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
TimeSeries variable
TimeSeries variable
Signature
TimeSeries: React.FunctionComponent<{
timeZone: string;
options?: Record<string, any> | undefined;
fields?: import("../GraphNG/types").XYFieldMatchers | undefined;
children?: ((builder: UPlotConfigBuilder, alignedFrame: DataFrame) => React.ReactNode) | undefined;
legend: import("@grafana/schema").VizLegendOptions;
height: number;
width: number;
timeRange: TimeRange;
frames: DataFrame[];
structureRev?: number | undefined;
renderers?: import("../uPlot/config/UPlotConfigBuilder").Renderers | undefined;
tweakScale?: ((opts: import("../uPlot/config/UPlotScaleBuilder").ScaleProps, forField: import("@grafana/data").Field<any, import("@grafana/data").Vector<any>>) => import("../uPlot/config/UPlotScaleBuilder").ScaleProps) | undefined;
tweakAxis?: ((opts: import("../uPlot/config/UPlotAxisBuilder").AxisProps, forField: import("@grafana/data").Field<any, import("@grafana/data").Vector<any>>) => import("../uPlot/config/UPlotAxisBuilder").AxisProps) | undefined;
onLegendClick?: ((event: import("..").GraphNGLegendEvent) => void) | undefined;
preparePlotFrame?: ((frames: DataFrame[], dimFields: import("../GraphNG/types").XYFieldMatchers) => DataFrame) | undefined;
}>
Import
import { TimeSeries } from '@grafana/ui';