UNPKG

climb-onyx-gui

Version:
28 lines (27 loc) 1.23 kB
import { default as Plotly, Layout } from 'plotly.js-basic-dist'; import { DataProps } from '../interfaces'; import { Theme, GraphConfig, Fields } from '../types'; interface BasePlotProps { fields: Fields; plotData: Plotly.Data[]; title?: string; xTitle?: string; yTitle?: string; yAxisType?: string; legendTitle?: string; layout?: Partial<Layout>; theme: Theme; 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, };