import { ChangeDetectorRef, OnChanges, OnDestroy } from "@angular/core"; import { EventBus, IDataSource, IEvent } from "@nova-ui/bits"; import { ChartAssist, ChartPalette, IAccessors, IChartAssistSeries, IValueProvider, IXYScales, Renderer } from "@nova-ui/charts"; import { IHasChangeDetector } from "../../../../types"; import { TimeseriesScalesService } from "../../timeseries-scales.service"; import { ITimeseriesWidgetSeriesData, TimeseriesChartTypes, TimeseriesTransformer, TimeseriesWidgetZoomPlugin } from "../../types"; import { TimeseriesChartComponent } from "../timeseries-chart.component"; import * as i0 from "@angular/core"; interface ITransformerDescription { displayName: string; transformer?: (data: ITimeseriesWidgetSeriesData[], hasPercentile?: boolean) => ITimeseriesWidgetSeriesData[]; } export declare abstract class XYChartComponent extends TimeseriesChartComponent implements OnChanges, OnDestroy, IHasChangeDetector { protected eventBus: EventBus; timeseriesScalesService: TimeseriesScalesService; changeDetector: ChangeDetectorRef; chartAssist: ChartAssist; valueAccessorKey: string; collectionId: string; zoomPlugins: TimeseriesWidgetZoomPlugin[]; protected renderer: Renderer; protected accessors: IAccessors; timeseriesChartTypes: typeof TimeseriesChartTypes; summarySerie: IChartAssistSeries; summaryLegendBcgColor: string; summaryLegendColor: string; transformers: Map; constructor(eventBus: EventBus, dataSource: IDataSource, timeseriesScalesService: TimeseriesScalesService, changeDetector: ChangeDetectorRef); protected abstract createAccessors(colorProvider: IValueProvider): IAccessors; protected abstract createChartAssist(palette: ChartPalette): ChartAssist; mapSeriesSet(data: any[], scales: IXYScales): IChartAssistSeries[]; /** Checks if legend should be shown. */ hasLegend(): boolean; /** Checks if legend should be aligned to right. */ legendShouldBeAlignedRight(): boolean; onPrimaryDescClick(event: MouseEvent, legendSeries: IChartAssistSeries): void; /** Updates chart data. */ protected updateChartData(): void; /** * Initialize chart */ protected buildChart(): void; /** * Subscribe to chart events and emit */ protected setupInteraction(): void; displayLegendMenu(): boolean; displayDeleteButton(): boolean; transformData(metricId: string, trId: TimeseriesTransformer): void; getLegendValue(legendSeries: IChartAssistSeries>, valueAccessorKey: string): string | number | undefined; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export {};