UNPKG

5.13 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef, OnInit } from '@angular/core';
2import { ColorHelper } from '../common/color.helper';
3import { BaseChartComponent } from '../common/base-chart.component';
4import { LegendPosition } from '../common/types/legend.model';
5import { ScaleType } from '../common/types/scale-type.enum';
6import { ViewDimensions } from '../common/types/view-dimension.interface';
7import { Orientation } from '../common/types/orientation.enum';
8import * as i0 from "@angular/core";
9export declare class PolarChartComponent extends BaseChartComponent implements OnInit {
10 legend: boolean;
11 legendTitle: string;
12 legendPosition: LegendPosition;
13 xAxis: boolean;
14 yAxis: boolean;
15 showXAxisLabel: boolean;
16 showYAxisLabel: boolean;
17 xAxisLabel: string;
18 yAxisLabel: string;
19 autoScale: boolean;
20 showGridLines: boolean;
21 curve: any;
22 activeEntries: any[];
23 schemeType: ScaleType;
24 rangeFillOpacity: number;
25 trimYAxisTicks: boolean;
26 maxYAxisTickLength: number;
27 xAxisTickFormatting: (o: any) => any;
28 yAxisTickFormatting: (o: any) => any;
29 roundDomains: boolean;
30 tooltipDisabled: boolean;
31 showSeriesOnHover: boolean;
32 gradient: boolean;
33 yAxisMinScale: number;
34 labelTrim: boolean;
35 labelTrimSize: number;
36 wrapTicks: boolean;
37 activate: EventEmitter<any>;
38 deactivate: EventEmitter<any>;
39 tooltipTemplate: TemplateRef<any>;
40 dims: ViewDimensions;
41 yAxisDims: ViewDimensions;
42 labelOffset: number;
43 xDomain: any;
44 yDomain: any;
45 seriesDomain: any;
46 yScale: any;
47 xScale: any;
48 yAxisScale: any;
49 colors: ColorHelper;
50 scaleType: ScaleType;
51 transform: string;
52 transformPlot: string;
53 transformYAxis: string;
54 transformXAxis: string;
55 margin: number[];
56 xAxisHeight: number;
57 yAxisWidth: number;
58 filteredDomain: any;
59 legendOptions: any;
60 thetaTicks: any[];
61 radiusTicks: number[];
62 outerRadius: number;
63 orientation: typeof Orientation;
64 isSSR: boolean;
65 ngOnInit(): void;
66 update(): void;
67 setDims(): void;
68 setScales(): void;
69 setTicks(): void;
70 getXValues(): any[];
71 getXDomain(values?: any[]): any[];
72 getYValues(): any[];
73 getYDomain(domain?: any[]): any[];
74 getSeriesDomain(): any[];
75 getXScale(domain: any, width: number): any;
76 getYScale(domain: any, height: number): any;
77 onClick(data: any, series?: any): void;
78 setColors(): void;
79 getLegendOptions(): {
80 scaleType: ScaleType.Ordinal;
81 colors: ColorHelper;
82 domain: any;
83 title: string;
84 position: LegendPosition;
85 } | {
86 scaleType: ScaleType.Time | ScaleType.Linear | ScaleType.Quantile;
87 colors: any;
88 domain: any;
89 title: any;
90 position: LegendPosition;
91 };
92 updateYAxisWidth({ width }: {
93 width: number;
94 }): void;
95 updateXAxisHeight({ height }: {
96 height: number;
97 }): void;
98 onActivate(item: any): void;
99 onDeactivate(item: any): void;
100 deactivateAll(): void;
101 trackBy(index: number, item: any): string;
102 static ɵfac: i0.ɵɵFactoryDeclaration<PolarChartComponent, never>;
103 static ɵcmp: i0.ɵɵComponentDeclaration<PolarChartComponent, "ngx-charts-polar-chart", never, { "legend": { "alias": "legend"; "required": false; }; "legendTitle": { "alias": "legendTitle"; "required": false; }; "legendPosition": { "alias": "legendPosition"; "required": false; }; "xAxis": { "alias": "xAxis"; "required": false; }; "yAxis": { "alias": "yAxis"; "required": false; }; "showXAxisLabel": { "alias": "showXAxisLabel"; "required": false; }; "showYAxisLabel": { "alias": "showYAxisLabel"; "required": false; }; "xAxisLabel": { "alias": "xAxisLabel"; "required": false; }; "yAxisLabel": { "alias": "yAxisLabel"; "required": false; }; "autoScale": { "alias": "autoScale"; "required": false; }; "showGridLines": { "alias": "showGridLines"; "required": false; }; "curve": { "alias": "curve"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "schemeType": { "alias": "schemeType"; "required": false; }; "rangeFillOpacity": { "alias": "rangeFillOpacity"; "required": false; }; "trimYAxisTicks": { "alias": "trimYAxisTicks"; "required": false; }; "maxYAxisTickLength": { "alias": "maxYAxisTickLength"; "required": false; }; "xAxisTickFormatting": { "alias": "xAxisTickFormatting"; "required": false; }; "yAxisTickFormatting": { "alias": "yAxisTickFormatting"; "required": false; }; "roundDomains": { "alias": "roundDomains"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "showSeriesOnHover": { "alias": "showSeriesOnHover"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "yAxisMinScale": { "alias": "yAxisMinScale"; "required": false; }; "labelTrim": { "alias": "labelTrim"; "required": false; }; "labelTrimSize": { "alias": "labelTrimSize"; "required": false; }; "wrapTicks": { "alias": "wrapTicks"; "required": false; }; }, { "activate": "activate"; "deactivate": "deactivate"; }, ["tooltipTemplate"], never, false, never>;
104}