UNPKG

@future-grid/fgp-graph

Version:

fgp-graph is a chart lib based on Dygraphs

17 lines (16 loc) 783 B
/// <reference types="dygraphs" /> import { GraphCollection, ViewConfig } from "../../../metadata/configurations"; export default class Intervals { parentElement: Element; viewConfig: ViewConfig; g?: Dygraph | undefined; intervalSelectionListener?: ((collection: GraphCollection, dateWindow: [number, number]) => void) | undefined; private dateWindow; private dateRange; private readonly collection; private readonly options; private dropdownOptions; constructor(parentElement: Element, viewConfig: ViewConfig, g?: Dygraph | undefined, intervalSelectionListener?: ((collection: GraphCollection, dateWindow: [number, number]) => void) | undefined); private initDom; setDateWindow: (dateWindow: number[], dateRange: number[]) => void; }