import { Event } from "survey-core"; import { SelectBase } from "../selectBase"; import { IAnswersData, VisualizerBase } from "../visualizerBase"; import { NumberModel } from "../number"; import { DashboardTheme } from "../theme"; import "./styles.scss"; export interface ApexChartsOptions { series: Array; chart: any; labels: Array; colors: Array; plotOptions: any; dataLabels?: any; legend?: any; tooltip?: any; hasSeries?: boolean; xaxis?: any; yaxis?: any; grid?: any; title?: any; noData?: any; fill?: any; responsive?: Array; } export declare class ApexChartsSetup { static imageExportFormat: string; static defaultChartHeight: number; static defaultBarGap: number; static defaultToolbarConfig: { show: boolean; tools: { download: boolean; selection: boolean; zoom: boolean; zoomin: boolean; zoomout: boolean; pan: boolean; reset: boolean; }; }; static defaultDataLabelsConfig(theme: DashboardTheme): { enabled: boolean; style: { colors: string[]; fontSize: string; fontFamily: string; fontWeight: number; }; }; static dataLabelFitPadding: number; static measureCtx: CanvasRenderingContext2D | null | undefined; static defaultBarPlotDataLabelsConfig(): { position: string; hideOverflowingLabels: boolean; }; static getLabelMeasureContext(): CanvasRenderingContext2D | null; static doesLabelFitInBar(val: number, opts: any, labelText: any): boolean; static wrapBarDataLabelFormatter(formatter: (val: any, opts: any) => any): (val: any, opts: any) => any; static createBarDataLabelsConfig(theme: DashboardTheme, formatter?: (val: any, opts: any) => any): { formatter: (val: any, opts: any) => any; enabled: boolean; style: { colors: string[]; fontSize: string; fontFamily: string; fontWeight: number; }; }; static defaultTooltipConfig(theme: DashboardTheme): { enabled: boolean; fillSeriesColor: boolean; style: { fontSize: string; fontFamily: string; }; marker: { show: boolean; }; x: { formatter: () => string; }; y: { formatter: (val: number) => string; title: { formatter: () => string; }; }; }; static defaultLegendConfig(model: SelectBase): { position: "left" | "right" | "top" | "bottom"; horizontalAlign: string; verticalAlign: string; fontSize: string; fontFamily: string; fontWeight: number; labels: { colors: string; }; markers: { size: number; strokeWidth: number; shape: string; }; }; static defaultAxisZerolineConfig(theme: DashboardTheme): { show: boolean; color: string; }; static defaultGridConfig(theme: DashboardTheme): { borderColor: string; strokeDashArray: number; position: string; xaxis: { lines: { show: boolean; }; }; yaxis: { lines: { show: boolean; }; }; }; static defaultAxisTitleFont(theme: DashboardTheme): { colors: string; fontSize: string; fontFamily: string; fontWeight: number; }; static defaultAxisLabelFont(theme: DashboardTheme): { colors: string; fontSize: string; fontFamily: string; fontWeight: number; }; static defaultAxisConfig(theme: DashboardTheme): { title: { style: { colors: string; fontSize: string; fontFamily: string; fontWeight: number; }; }; min: number; labels: { trim: boolean; hideOverlappingLabels: boolean; style: { colors: string; fontSize: string; fontFamily: string; fontWeight: number; }; }; }; static defaultGaugeValueFont(theme: DashboardTheme): { colors: string; fontSize: string; fontFamily: string; fontWeight: number; }; static defaultGaugeTickFont(theme: DashboardTheme): { colors: string; fontSize: string; fontFamily: string; fontWeight: number; }; static defaultNoDataConfig(theme: DashboardTheme): { text: any; align: string; verticalAlign: string; offsetX: number; offsetY: number; style: { color: string; fontSize: string; fontFamily: string; }; }; static defaultStrokeConfig: { width: number; curve: string; }; static defaultFillConfig: { type: string; opacity: number; }; static defaultResponsive: { breakpoint: number; options: { legend: { position: string; }; }; }; /** * Fires when end user clicks on the 'save as image' button. * @since 3.0.0 */ static onImageSaving: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>; /** * Fires before chart will be created. User can change series, chart options and config of the chart. * Options is an object with the following fields: series, chart, xaxis, yaxis, labels, colors, plotOptions, dataLabels, legend, tooltip, grid and hasSeries. * @since 3.0.0 */ static onChartCreating: Event<(sender: VisualizerBase, options: any) => any, VisualizerBase, any>; static setups: { [type: string]: (model: VisualizerBase, answersData: IAnswersData) => ApexChartsOptions; }; static setup(charType: string, model: VisualizerBase, answersData: IAnswersData): ApexChartsOptions; static setupPie(model: SelectBase, answersData: IAnswersData): ApexChartsOptions; static setupBar(model: SelectBase, answersData: IAnswersData): ApexChartsOptions; static setupVBar(model: SelectBase, answersData: IAnswersData): ApexChartsOptions; static setupLine(model: SelectBase, answersData: IAnswersData): ApexChartsOptions; static setupStackedBar(model: SelectBase, answersData: IAnswersData): ApexChartsOptions; static setupScatter(model: SelectBase, answersData: IAnswersData): ApexChartsOptions; static setupGauge(model: NumberModel, answersData: IAnswersData): ApexChartsOptions; static setupBullet(model: NumberModel, answersData: IAnswersData): ApexChartsOptions; static setupRadar(model: SelectBase, answersData: IAnswersData): ApexChartsOptions; }