UNPKG

3.28 kBTypeScriptView Raw
1import { T as TooltipMeasureFormat } from './Enums-6583f94b';
2import { C as Component } from './Component-022555dd';
3import { C as ChartComponentData } from './ChartComponentData-b318c241';
4import { E as EllipsisMenu } from './EllipsisMenu-85a5f959';
5
6declare class Legend extends Component {
7 drawChart: any;
8 legendElement: any;
9 legendWidth: number;
10 private legendState;
11 private stickySeriesAction;
12 private labelMouseover;
13 private labelMouseout;
14 private svgSelection;
15 private chartComponentData;
16 constructor(drawChart: any, renderTarget: Element, legendWidth: number);
17 private labelMouseoutWrapper;
18 private toggleSplitByVisible;
19 triggerSplitByFocus(aggKey: string, splitBy: string): void;
20 private getHeightPerSplitBy;
21 private createGradient;
22 private isNonNumeric;
23 private createNonNumericColorKey;
24 private createCategoricalColorKey;
25 private createEventsColorKey;
26 private renderSplitBys;
27 private toggleSticky;
28 draw(legendState: string, chartComponentData: any, labelMouseover: any, svgSelection: any, options: any, labelMouseoutAction?: any, stickySeriesAction?: any): void;
29}
30
31declare class ChartComponent extends Component {
32 readonly MINWIDTH = 350;
33 protected MINHEIGHT: number;
34 readonly CONTROLSWIDTH = 200;
35 readonly GUTTERWIDTH = 6;
36 data: any;
37 aggregateExpressionOptions: any;
38 protected chartControlsPanel: any;
39 protected ellipsisContainer: any;
40 protected ellipsisMenu: EllipsisMenu;
41 protected legendObject: Legend;
42 protected width: number;
43 protected chartWidth: number;
44 protected svgSelection: any;
45 protected legendWidth: number;
46 draw: any;
47 chartComponentData: ChartComponentData;
48 chartMargins: any;
49 constructor(renderTarget: Element);
50 showGrid(): void;
51 gatedShowGrid(): void;
52 hideGrid(): void;
53 isGridVisible(): boolean;
54 protected drawEllipsisMenu(additionalEllipsisItems?: any[]): void;
55 downloadAsCSV: (isScatterPlot?: boolean) => void;
56 protected removeControlPanel(): void;
57 protected removeEllipsisMenu(): void;
58 protected getWidth(): number;
59 getVisibilityState(): any[];
60 protected ellipsisItemsExist(): boolean;
61 protected getDataType(aggKey: any): any;
62 protected getCDOFromAggKey(aggKey: any): any;
63 protected getFilteredMeasures(measureList: any, visibleMeasure: any, measureFormat: TooltipMeasureFormat, xyrMeasures?: any): any;
64 protected convertToTimeValueFormat(d: any): {
65 aggregateKey: any;
66 splitBy: any;
67 aggregateName: any;
68 measures: {};
69 };
70 protected formatDate(date: any, shiftMillis: any): string;
71 protected tooltipFormat(d: any, text: any, measureFormat: TooltipMeasureFormat, xyrMeasures?: any): void;
72 protected getSVGWidth(): any;
73 protected getChartWidth(legendWidth?: number): number;
74 protected calcSVGWidth(): any;
75 protected setControlsPanelWidth(): void;
76 protected legendPostRenderProcess(legendState: string, chartElement: any, shouldSetControlsWidth: boolean, splitLegendOnDrag?: any): void;
77 protected splitLegendAndSVG(chartElement: any, onDrag?: () => void): void;
78}
79
80export { ChartComponent as C };