import * as i0 from '@angular/core'; import { ElementRef, EventEmitter, NgZone } from '@angular/core'; import { BaseComponent } from 'primeng/basecomponent'; import { BaseStyle } from 'primeng/base'; import * as i1 from 'primeng/bind'; import { Bind } from 'primeng/bind'; import { ChartPassThrough } from 'primeng/types/chart'; import * as i2 from 'primeng/api'; /** * * Chart groups a collection of contents in tabs. * * [Live Demo](https://www.primeng.org/chart/) * * @module chartstyle * */ declare enum ChartClasses { /** * Class name of the root element */ root = "p-chart" } declare class ChartStyle extends BaseStyle { name: string; classes: { root: string; }; inlineStyles: { root: ({ instance }: { instance: any; }) => { display: string; position: string; width: any; height: any; }; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } interface ChartStyle extends BaseStyle { } /** * Chart groups a collection of contents in tabs. * @group Components */ declare class UIChart extends BaseComponent { el: ElementRef; private zone; $pcChart: UIChart | undefined; bindDirectiveInstance: Bind; onAfterViewChecked(): void; /** * Type of the chart. * @group Props */ type: 'bar' | 'line' | 'scatter' | 'bubble' | 'pie' | 'doughnut' | 'polarArea' | 'radar' | undefined; /** * Array of per-chart plugins to customize the chart behaviour. * @group Props */ plugins: any[]; /** * Width of the chart. * @group Props */ width: string | undefined; /** * Height of the chart. * @group Props */ height: string | undefined; /** * Whether the chart is redrawn on screen size change. * @group Props */ responsive: boolean; /** * Used to define a string that autocomplete attribute the current element. * @group Props */ ariaLabel: string | undefined; /** * Establishes relationships between the component and label(s) where its value should be one or more element IDs. * @group Props */ ariaLabelledBy: string | undefined; /** * Data to display. * @group Props */ get data(): any; set data(val: any); /** * Options to customize the chart. * @group Props */ get options(): any; set options(val: any); /** * Callback to execute when an element on chart is clicked. * @group Emits */ onDataSelect: EventEmitter; isBrowser: boolean; initialized: boolean | undefined; _data: any; _options: any; chart: any; _componentStyle: ChartStyle; constructor(el: ElementRef, zone: NgZone); onAfterViewInit(): void; onCanvasClick(event: Event): void; initChart(): void; getCanvas(): any; getBase64Image(): any; generateLegend(): any; refresh(): void; reinit(): void; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_responsive: unknown; } declare class ChartModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { ChartClasses, ChartModule, ChartStyle, UIChart };