@eva-ics/webengine-react
Version:
React components for EVA ICS HMI Web Engine
52 lines (51 loc) • 1.71 kB
TypeScript
import { StateHistoryData } from "./common";
import { Eva, StateProp } from "@eva-ics/webengine";
declare enum ChartKind {
Line = "line",
Bar = "bar",
Radar = "radar",
Doughnut = "doughnut"
}
declare const LineChart: ({ oid, timeframe, formula, digits, update, prop, fill, args, colors, labels, title, options, className, width, height, data_callback, state, engine }: {
oid?: string | Array<string>;
timeframe: string | Array<string>;
formula?: string | Array<string>;
digits?: number;
update: number;
prop?: StateProp;
fill?: string;
args?: any;
colors?: Array<string>;
labels?: Array<string>;
title?: string;
options?: any;
className?: string;
width?: number;
height?: number;
data_callback?: (data: any) => void;
state?: StateHistoryData;
engine?: Eva;
}) => import("react/jsx-runtime").JSX.Element;
declare const Chart: ({ oid, timeframe, formula, digits, update, prop, fill, args, colors, dataset_options, labels, title, options, className, width, height, data_callback, state, kind, engine }: {
oid?: string | Array<string>;
timeframe: string | Array<string>;
formula?: string | Array<string>;
digits?: number;
update: number;
prop?: StateProp;
fill?: string;
args?: any;
colors?: Array<string>;
dataset_options?: (dataset_index: number) => Object;
labels?: Array<string>;
title?: string;
options?: any;
className?: string;
width?: number;
height?: number;
data_callback?: (data: any) => void;
state?: StateHistoryData;
kind: ChartKind;
engine?: Eva;
}) => import("react/jsx-runtime").JSX.Element;
export { LineChart, Chart, ChartKind };