UNPKG

@future-grid/fgp-graph

Version:

fgp-graph is a chart lib based on Dygraphs

29 lines (28 loc) 879 B
/// <reference types="dygraphs" /> import { GraphCollection, ViewConfig } from "../../../metadata/configurations"; export default class Series { parentElement: Element; viewConfig: ViewConfig; g?: Dygraph | undefined; private checkBoxDiv?; private chosenCollection?; private currentGraphData?; private labels?; private isInit; private options; constructor(parentElement: Element, viewConfig: ViewConfig, g?: Dygraph | undefined, onChangeListener?: () => void); private initDom; private selectNDeselect; /** * create options * @param parentElement */ private createOptions; setData: (data: any, labels: string[], collection: GraphCollection) => void; /** * update dropdown selection * @param checked * @param index */ updateOption: (checked: boolean, index: number) => void; }