UNPKG

4.29 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef, TrackByFunction } from '@angular/core';
2import { CurveFactory } from 'd3-shape';
3import { ColorHelper } from '../common/color.helper';
4import { BaseChartComponent } from '../common/base-chart.component';
5import { Series } from '../models/chart-data.model';
6import { LegendOptions, LegendPosition } from '../common/types/legend.model';
7import { ViewDimensions } from '../common/types/view-dimension.interface';
8import { ScaleType } from '../common/types/scale-type.enum';
9import * as i0 from "@angular/core";
10export declare class AreaChartComponent extends BaseChartComponent {
11 legend: boolean;
12 legendTitle: string;
13 legendPosition: LegendPosition;
14 xAxis: boolean;
15 yAxis: boolean;
16 baseValue: any;
17 autoScale: boolean;
18 showXAxisLabel: boolean;
19 showYAxisLabel: boolean;
20 xAxisLabel: string;
21 yAxisLabel: string;
22 timeline: boolean;
23 gradient: boolean;
24 showGridLines: boolean;
25 curve: CurveFactory;
26 activeEntries: any[];
27 schemeType: ScaleType;
28 trimXAxisTicks: boolean;
29 trimYAxisTicks: boolean;
30 rotateXAxisTicks: boolean;
31 maxXAxisTickLength: number;
32 maxYAxisTickLength: number;
33 xAxisTickFormatting: any;
34 yAxisTickFormatting: any;
35 xAxisTicks: any[];
36 yAxisTicks: any[];
37 roundDomains: boolean;
38 tooltipDisabled: boolean;
39 xScaleMin: any;
40 xScaleMax: any;
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: string[];
52 xScale: any;
53 yScale: any;
54 transform: string;
55 colors: ColorHelper;
56 clipPathId: string;
57 clipPath: string;
58 scaleType: ScaleType;
59 series: Series;
60 margin: number[];
61 hoveredVertical: any;
62 xAxisHeight: number;
63 yAxisWidth: number;
64 filteredDomain: any;
65 legendOptions: LegendOptions;
66 timelineWidth: number;
67 timelineHeight: number;
68 timelineXScale: any;
69 timelineYScale: any;
70 timelineXDomain: any[];
71 timelineTransform: any;
72 timelinePadding: number;
73 update(): void;
74 updateTimeline(): void;
75 getXDomain(): any[];
76 getYDomain(): [number, number];
77 getSeriesDomain(): string[];
78 getXScale(domain: any, width: number): number;
79 getYScale(domain: [number, number], height: number): any;
80 getScaleType(values: any): ScaleType;
81 updateDomain(domain: any): void;
82 updateHoveredVertical(item: any): void;
83 hideCircles(): void;
84 onClick(data: any, series?: Series): void;
85 trackBy: TrackByFunction<Series>;
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 static ɵfac: i0.ɵɵFactoryDeclaration<AreaChartComponent, never>;
98 static ɵcmp: i0.ɵɵComponentDeclaration<AreaChartComponent, "ngx-charts-area-chart", never, { "legend": "legend"; "legendTitle": "legendTitle"; "legendPosition": "legendPosition"; "xAxis": "xAxis"; "yAxis": "yAxis"; "baseValue": "baseValue"; "autoScale": "autoScale"; "showXAxisLabel": "showXAxisLabel"; "showYAxisLabel": "showYAxisLabel"; "xAxisLabel": "xAxisLabel"; "yAxisLabel": "yAxisLabel"; "timeline": "timeline"; "gradient": "gradient"; "showGridLines": "showGridLines"; "curve": "curve"; "activeEntries": "activeEntries"; "schemeType": "schemeType"; "trimXAxisTicks": "trimXAxisTicks"; "trimYAxisTicks": "trimYAxisTicks"; "rotateXAxisTicks": "rotateXAxisTicks"; "maxXAxisTickLength": "maxXAxisTickLength"; "maxYAxisTickLength": "maxYAxisTickLength"; "xAxisTickFormatting": "xAxisTickFormatting"; "yAxisTickFormatting": "yAxisTickFormatting"; "xAxisTicks": "xAxisTicks"; "yAxisTicks": "yAxisTicks"; "roundDomains": "roundDomains"; "tooltipDisabled": "tooltipDisabled"; "xScaleMin": "xScaleMin"; "xScaleMax": "xScaleMax"; "yScaleMin": "yScaleMin"; "yScaleMax": "yScaleMax"; }, { "activate": "activate"; "deactivate": "deactivate"; }, ["tooltipTemplate", "seriesTooltipTemplate"], never>;
99}