import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnInit, TemplateRef } from '@angular/core'; import { AreaChartStackedComponent, BarHorizontalComponent, BarVerticalComponent, BarVerticalStackedComponent, LineChartComponent, PieChartComponent } from '@swimlane/ngx-charts'; import { AppearanceService, OColumn, OFormComponent, OServiceBaseComponent, OTranslateService } from 'ontimize-web-ngx'; import { Subscription } from 'rxjs'; import { ChartFactory } from '../../interfaces/ChartFactory.interface'; import { ChartConfiguration } from '../../models/options/ChartConfiguration.class'; import { ChartService } from '../../services/chart.service'; import { OChartDataAdapterFactory } from './o-chart-data-adapter.factory'; import { CurrencyType } from '../../types/currency.type'; import * as i0 from "@angular/core"; export declare const CHART_TYPES: string[]; export declare const DEFAULT_INPUTS_O_CHART: any; export declare class OChartComponent extends OServiceBaseComponent implements OnInit { protected form: OFormComponent; protected elRef: ElementRef; protected injector: Injector; private appearanceService; private _translateService; static DEFAULT_INPUTS_O_CHART: any; static CHART_TYPES: string[]; pieChart: PieChartComponent; donutChart: PieChartComponent; horizontalBarChart: BarHorizontalComponent; lineChart: LineChartComponent; stackedAreaChart: AreaChartStackedComponent; multiBarChart: BarVerticalStackedComponent; discreteBarChart: BarVerticalComponent; type: string; xAxis: string; yAxis: string; xAxisLabel: string; yAxisLabel: string; xAxisDataType: string; xFormatting: any; yFormatting: any; yAxisDataType: string; showGridLines: boolean; showDataLabel: boolean; showXAxisLabel: boolean; showYAxisLabel: boolean; showXAxis: boolean; showYAxis: boolean; autoScale: boolean; gradient: boolean; showTooltip: boolean; activeEntries: object[]; protected chartParameters: ChartConfiguration; xColumn: OColumn; yColumn: OColumn; cHeight: number; cWidth: number; showLegend: boolean; legendPosition: string; legendTitle: string; protected _options: any; dataArray: Object[]; protected dataService: any; protected yAxisArray: Array; color: Object; protected ChartOptions: any; protected formDataSubcribe: any; onTap: EventEmitter; onDoubleTap: EventEmitter; onPress: EventEmitter; onSwipe: EventEmitter; onRotate: EventEmitter; onPinch: EventEmitter; onSelect: EventEmitter; onActivate: EventEmitter; onDeactivate: EventEmitter; onDataLoaded: EventEmitter; protected langSubscription: Subscription; protected clickEvtEmitter: EventEmitter; protected chartService: ChartService; protected translateService: OTranslateService; cd: ChangeDetectorRef; chartData: any[]; isDarkMode: boolean; constructor(form: OFormComponent, elRef: ElementRef, injector: Injector, appearanceService: AppearanceService, _translateService: OTranslateService); tooltipTemplateRef: TemplateRef; seriesTooltipTemplateRef: TemplateRef; ngOnInit(): void; get chartClass(): string; ngAfterViewInit(): void; getDateTickFormatter(dateFormat: string): (d: any) => string; isDateType(type: string): boolean; selectChart(event: any): void; activateChart(event: any): void; deactivateChart(event: any): void; getTickFormatter(type: string, currency?: CurrencyType): any; private getLanguage; private getCurrencyCode; private formatIntGrouped; private formatFloatGrouped; private formatInt; private formatFloat; private formatCurrency; private auxFormatDate; private formatTime; private formatDateTime; private formatPercentage; formatTimestamp(timestamp: number): string; formatDate(date: number): string; ngOnDestroy(): void; set data(value: any); get options(): any; set options(value: any); getChartConfiguration(): ChartConfiguration; setChartConfiguration(conf: ChartConfiguration): void; getAdaptData(): any; cleanArray(arr: any): any; filterArray(data: any): any; getChartFactory(): ChartFactory; getChartDataAdapterFactory(): OChartDataAdapterFactory; protected configureChart(): void; getChartService(): ChartService; protected onFormDataBind(bindedData: Object): void; setData(data: any, _sqlTypes?: any, _replace?: boolean): void; getCurrency(column: OColumn): CurrencyType; configureParams(): void; setChartMultiBarConfiguration(chart: any, config: any): void; setChartLineConfiguration(chart: any, config: any): void; getChartByType(): AreaChartStackedComponent | BarHorizontalComponent | BarVerticalComponent | BarVerticalStackedComponent | LineChartComponent | PieChartComponent; setChartView(chart: any, config: any): void; setChartLabelsAndLegend(chart: any, config: any): void; setChartTooltip(chart: any, config: any): void; setChartColorScheme(chart: any, config: any): void; setChartGridLines(chart: any, config: any): void; setChartGradientAndActiveEntries(chart: any, config: any): void; setChartPieConfiguration(chart: any, config: any): void; setChartAxisFormatting(chart: any, axis: any, dataType: any, column: any): void; isDefinedAndGreaterThanZero(width: number, height: number): boolean; getAttributesValuesToQuery(): Array; bindChartEvents(): void; onClickEvent(onNext: (value: any) => void): Object; tapChart(event: any): void; doubleTapChart(event: any): void; pressChart(event: any): void; swipeChart(event: any): void; rotateChart(event: any): void; pinchChart(event: any): void; updateOptions(options: any, type: string, xColumn: OColumn, yColumn: OColumn): void; forceRerender(type: string): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }