UNPKG

2.8 kBTypeScriptView Raw
1import { EventEmitter, TemplateRef } from '@angular/core';
2import { ColorHelper } from '../common/color.helper';
3import { BaseChartComponent } from '../common/base-chart.component';
4import { DataItem } from '../models/chart-data.model';
5import { LegendOptions, LegendPosition } from '../common/types/legend.model';
6import { ViewDimensions } from '../common/types/view-dimension.interface';
7import * as i0 from "@angular/core";
8export declare class PieChartComponent extends BaseChartComponent {
9 labels: boolean;
10 legend: boolean;
11 legendTitle: string;
12 legendPosition: LegendPosition;
13 explodeSlices: boolean;
14 doughnut: boolean;
15 arcWidth: number;
16 gradient: boolean;
17 activeEntries: any[];
18 tooltipDisabled: boolean;
19 labelFormatting: any;
20 trimLabels: boolean;
21 maxLabelLength: number;
22 tooltipText: any;
23 dblclick: EventEmitter<any>;
24 margins: number[];
25 select: EventEmitter<any>;
26 activate: EventEmitter<any>;
27 deactivate: EventEmitter<any>;
28 tooltipTemplate: TemplateRef<any>;
29 translation: string;
30 outerRadius: number;
31 innerRadius: number;
32 data: DataItem[];
33 colors: ColorHelper;
34 domain: string[];
35 dims: ViewDimensions;
36 legendOptions: LegendOptions;
37 update(): void;
38 getDomain(): string[];
39 onClick(data: DataItem | string): void;
40 setColors(): void;
41 getLegendOptions(): LegendOptions;
42 onActivate(item: any, fromLegend?: boolean): void;
43 onDeactivate(item: any, fromLegend?: boolean): void;
44 private hasNoOptionalMarginsSet;
45 static ɵfac: i0.ɵɵFactoryDeclaration<PieChartComponent, never>;
46 static ɵcmp: i0.ɵɵComponentDeclaration<PieChartComponent, "ngx-charts-pie-chart", never, { "labels": { "alias": "labels"; "required": false; }; "legend": { "alias": "legend"; "required": false; }; "legendTitle": { "alias": "legendTitle"; "required": false; }; "legendPosition": { "alias": "legendPosition"; "required": false; }; "explodeSlices": { "alias": "explodeSlices"; "required": false; }; "doughnut": { "alias": "doughnut"; "required": false; }; "arcWidth": { "alias": "arcWidth"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "labelFormatting": { "alias": "labelFormatting"; "required": false; }; "trimLabels": { "alias": "trimLabels"; "required": false; }; "maxLabelLength": { "alias": "maxLabelLength"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "margins": { "alias": "margins"; "required": false; }; }, { "dblclick": "dblclick"; "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, ["tooltipTemplate"], never, false, never>;
47}