UNPKG

climb-onyx-gui

Version:
29 lines (27 loc) 1.24 kB
import { default as Plotly, Layout } from 'plotly.js-basic-dist'; import { DataProps } from '../interfaces'; import { GraphConfig, Field } from '../types'; interface BasePlotProps { fields: Map<string, Field>; plotData: Plotly.Data[]; title?: string; xTitle?: string; yTitle?: string; yAxisType?: string; legendTitle?: string; layout?: Partial<Layout>; darkMode: boolean; uirevision: string; } interface GraphProps extends DataProps { graphConfig: GraphConfig; refresh: number | null; setLastUpdated: (lastUpdated: string | null) => void; } declare function BasePlot(props: BasePlotProps): import("react/jsx-runtime").JSX.Element; declare function ScatterGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element; declare function BarGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element; declare function PieGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element; declare function GroupedScatterGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element; declare function GroupedBarGraph(props: GraphProps): import("react/jsx-runtime").JSX.Element; export { BarGraph, BasePlot, GroupedBarGraph, GroupedScatterGraph, PieGraph, ScatterGraph, };