UNPKG

2.9 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef } from '@angular/core';
2import { ColorHelper } from '../common/color.helper';
3import { BaseChartComponent } from '../common/base-chart.component';
4import { LegendOptions, LegendPosition } from '../common/types/legend.model';
5import { ScaleType } from '../common/types/scale-type.enum';
6import { ViewDimensions } from '../common/types/view-dimension.interface';
7export declare class LineChartComponent extends BaseChartComponent {
8 legend: boolean;
9 legendTitle: string;
10 legendPosition: LegendPosition;
11 xAxis: boolean;
12 yAxis: boolean;
13 showXAxisLabel: boolean;
14 showYAxisLabel: boolean;
15 xAxisLabel: string;
16 yAxisLabel: string;
17 autoScale: boolean;
18 timeline: boolean;
19 gradient: boolean;
20 showGridLines: boolean;
21 curve: any;
22 activeEntries: any[];
23 schemeType: ScaleType;
24 rangeFillOpacity: number;
25 trimXAxisTicks: boolean;
26 trimYAxisTicks: boolean;
27 rotateXAxisTicks: boolean;
28 maxXAxisTickLength: number;
29 maxYAxisTickLength: number;
30 xAxisTickFormatting: any;
31 yAxisTickFormatting: any;
32 xAxisTicks: any[];
33 yAxisTicks: any[];
34 roundDomains: boolean;
35 tooltipDisabled: boolean;
36 showRefLines: boolean;
37 referenceLines: any;
38 showRefLabels: boolean;
39 xScaleMin: number;
40 xScaleMax: number;
41 yScaleMin: number;
42 yScaleMax: number;
43 activate: EventEmitter<any>;
44 deactivate: EventEmitter<any>;
45 tooltipTemplate: TemplateRef<any>;
46 seriesTooltipTemplate: TemplateRef<any>;
47 dims: ViewDimensions;
48 xSet: any;
49 xDomain: any;
50 yDomain: [number, number];
51 seriesDomain: any;
52 yScale: any;
53 xScale: any;
54 colors: ColorHelper;
55 scaleType: ScaleType;
56 transform: string;
57 clipPath: string;
58 clipPathId: string;
59 areaPath: any;
60 margin: number[];
61 hoveredVertical: any;
62 xAxisHeight: number;
63 yAxisWidth: number;
64 filteredDomain: any;
65 legendOptions: any;
66 hasRange: boolean;
67 timelineWidth: any;
68 timelineHeight: number;
69 timelineXScale: any;
70 timelineYScale: any;
71 timelineXDomain: any;
72 timelineTransform: any;
73 timelinePadding: number;
74 update(): void;
75 updateTimeline(): void;
76 getXDomain(): any[];
77 getYDomain(): [number, number];
78 getSeriesDomain(): string[];
79 getXScale(domain: any, width: number): any;
80 getYScale(domain: any, height: number): any;
81 updateDomain(domain: any): void;
82 updateHoveredVertical(item: any): void;
83 hideCircles(): void;
84 onClick(data: any): void;
85 trackBy(index: number, item: any): string;
86 setColors(): void;
87 getLegendOptions(): LegendOptions;
88 updateYAxisWidth({ width }: {
89 width: number;
90 }): void;
91 updateXAxisHeight({ height }: {
92 height: number;
93 }): void;
94 onActivate(item: any): void;
95 onDeactivate(item: any): void;
96 deactivateAll(): void;
97}