import { EChartsOption, TooltipComponentFormatterCallback, TooltipComponentFormatterCallbackParams, LabelFormatterCallback, DefaultLabelFormatterCallbackParams } from "echarts"; import * as i0 from "@angular/core"; export declare class EchartService { private readonly _sharedService; private getDefultAxisConfiguration; private getCategoryAxisConfiguration; private getValueAxisConfiguration; private getGridConfiguration; private getLegendConfiguration; /** * * @param color - Color of the tooltip * @param title - Title of the tooltip * @param body - Body of the tooltip * @returns - Tooltip HTML string */ getTooltipFormatter(color: string, title: string, body: string): string; /** * * @param categories - Array of categories for the x-axis * @param series - Array of series data, each containing name, value, and color * @param labelConfig - Optional label configuration for the bars * @param tooltipConfig - Optional tooltip configuration for the bars * @param showLegend - Optional flag to show the legend * @returns - EChartsOption - Configuration object for the bar chart */ getBarChartOptions(categories: string[], series: { name: string; value: any; color: string; }[], labelConfig?: LabelFormatterCallback, tooltipConfig?: TooltipComponentFormatterCallback, showLegend?: boolean): EChartsOption; /** * * @param categories - Array of categories for the x-axis * @param series - Array of series data, each containing name, value, and color * @param labelConfig - Optional label configuration for the bars * @param tooltipConfig - Optional tooltip configuration for the bars * @param showLegend - Optional flag to show the legend * @returns - EChartsOption - Configuration object for the bar chart */ getBarChartStackOptions(categories: string[], series: { name: string; value: any; color: string; }[], labelConfig?: LabelFormatterCallback, tooltipConfig?: TooltipComponentFormatterCallback, showLegend?: boolean): EChartsOption; /** * * @param categories - Array of categories for the y-axis * @param series - Array of series data, each containing name, value, and color * @param labelConfig - Optional label configuration for the bars * @param tooltipConfig - Optional tooltip configuration for the bars * @param showLegend - Optional flag to show the legend * @returns - EChartsOption - Configuration object for the bar chart */ getBarChartHorizontalOptions(categories: string[], series: { name: string; value: any; color: string; }[], labelConfig?: LabelFormatterCallback, tooltipConfig?: TooltipComponentFormatterCallback, showLegend?: boolean, enableSelectStyle?: boolean): EChartsOption; /** * * @param categories - Array of categories for the y-axis * @param series - Array of series data, each containing name, value, and color * @param labelConfig - Optional label configuration for the bars * @param tooltipConfig - Optional tooltip configuration for the bars * @param showLegend - Optional flag to show the legend * @returns - EChartsOption - Configuration object for the bar chart */ getBarChartHorizontalStackOptions(categories: string[], series: { name: string; value: any; color: string; }[], labelConfig?: LabelFormatterCallback, tooltipConfig?: TooltipComponentFormatterCallback, showLegend?: boolean): EChartsOption; /** * * @param categories - Array of categories for the y-axis * @param series - Array of series data, each containing name, value, and color * @param labelConfig - Optional label configuration for the bars * @param tooltipConfig - Optional tooltip configuration for the bars * @param showLegend - Optional flag to show the legend * @returns - EChartsOption - Configuration object for the bar chart */ getBarChartTopOptions(categories: string[], series: { name: string; value: any; color: string; }[], categoryWidth?: number, labelConfig?: LabelFormatterCallback, tooltipConfig?: TooltipComponentFormatterCallback, showLegend?: boolean, categoryFormatter?: (value: string, index: number) => string): EChartsOption; /** * * @param categories - Array of categories for the x-axis * @param series - Array of series data, each containing name, value, and color * @param labelConfig - Optional label configuration for the lines * @param tooltipConfig - Optional tooltip configuration for the lines * @param showLegend - Optional flag to show the legend * @returns - EChartsOption - Configuration object for the line chart */ getLineChartOptions(categories: string[], series: { name: string; value: any; color: string; }[], labelConfig: LabelFormatterCallback, tooltipConfig?: TooltipComponentFormatterCallback, showLegend?: boolean): EChartsOption; /** * * @param data - Array of series data, each containing name, value, and color * @param labelConfig - Optional label configuration * @param tooltipConfig - Optional tooltip configuration * @returns - EChartsOption - Configuration object for the pie */ getDoughnutPieOptions(data: { name: string; value: any; color: string; }[], labelConfig: LabelFormatterCallback, tooltipConfig?: TooltipComponentFormatterCallback): EChartsOption; /** * * @param letter - text to show in the center of the pie * @param value - rate value * @param textSize - size of the letter * @param color - color of the letter and pie * @param total - total value for the pie (default is 100) * @returns */ getRateDoughnutPieOptions(letter: string, value: number, textSize: number, color: string, total?: number): EChartsOption; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }