UNPKG

1.57 kBTypeScriptView Raw
1import { OnChanges, EventEmitter, SimpleChanges } from '@angular/core';
2import { LegendOptions, LegendType, LegendPosition } from '../types/legend.model';
3import * as i0 from "@angular/core";
4export declare class ChartComponent implements OnChanges {
5 view: [number, number];
6 showLegend: boolean;
7 legendOptions: LegendOptions;
8 legendType: LegendType;
9 activeEntries: any[];
10 animations: boolean;
11 legendLabelClick: EventEmitter<string>;
12 legendLabelActivate: EventEmitter<{
13 name: string;
14 }>;
15 legendLabelDeactivate: EventEmitter<{
16 name: string;
17 }>;
18 chartWidth: number;
19 title: string;
20 legendWidth: number;
21 readonly LegendPosition: typeof LegendPosition;
22 readonly LegendType: typeof LegendType;
23 ngOnChanges(changes: SimpleChanges): void;
24 update(): void;
25 getLegendType(): LegendType;
26 static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
27 static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "ngx-charts-chart", never, { "view": { "alias": "view"; "required": false; }; "showLegend": { "alias": "showLegend"; "required": false; }; "legendOptions": { "alias": "legendOptions"; "required": false; }; "legendType": { "alias": "legendType"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; }, { "legendLabelClick": "legendLabelClick"; "legendLabelActivate": "legendLabelActivate"; "legendLabelDeactivate": "legendLabelDeactivate"; }, never, ["*"], false, never>;
28}