UNPKG

@grafana/ui

Version:
17 lines (16 loc) 769 B
import { DataFrame } from '@grafana/data'; import { VizLegendOptions } from '@grafana/schema'; import { VizLayoutLegendProps } from '../VizLayout/VizLayout'; import { UPlotConfigBuilder } from './config/UPlotConfigBuilder'; interface PlotLegendProps extends VizLegendOptions, Omit<VizLayoutLegendProps, 'children'> { data: DataFrame[]; config: UPlotConfigBuilder; } /** * mostly duplicates logic in PlotLegend below :( * * @internal */ export declare function hasVisibleLegendSeries(config: UPlotConfigBuilder, data: DataFrame[]): boolean; export declare const PlotLegend: import("react").MemoExoticComponent<({ data, config, placement, calcs, displayMode, ...vizLayoutLegendProps }: PlotLegendProps) => import("react/jsx-runtime").JSX.Element>; export {};