@future-grid/fgp-graph
Version:
fgp-graph is a chart lib based on Dygraphs
17 lines (16 loc) • 752 B
TypeScript
/// <reference types="dygraphs" />
import { GraphCollection, GraphExports } from "../../../metadata/configurations";
export default class Exports {
parentElement: Element;
config?: GraphExports[] | undefined;
graphDiv?: Element | undefined;
reactSelectionListener?: ((active: boolean) => void) | undefined;
private currentGraphData?;
private currentCollection?;
private labels?;
private rectSelectStatus;
private graph;
constructor(parentElement: Element, graph: Dygraph, config?: GraphExports[] | undefined, graphDiv?: Element | undefined, reactSelectionListener?: ((active: boolean) => void) | undefined);
setData: (data: any, labels: string[], collection: GraphCollection) => void;
private initDom;
}