import type { AgChartDataMapping, AgChartStyle, AgChartTheme, AgProgressionDirection } from './shared/agChartShared'; import type { AgWidgetData, AgWidgetDataFormat } from './shared/agWidget'; /** * Cone Funnel series configuration. */ export interface AgConeFunnelChartSeriesTheme { /** * Chart direction. */ direction?: AgProgressionDirection; } export interface AgConeFunnelChartOverrides { /** * Styling for the funnel series */ series?: AgConeFunnelChartSeriesTheme; } /** * Theme configuration for cone funnel chart. */ export interface AgConeFunnelChartTheme extends AgChartTheme { /** * Cone-funnel-specific settings. */ 'cone-funnel'?: AgConeFunnelChartOverrides; } /** * Style configuration for cone funnel chart. */ export type AgConeFunnelChartStyle = AgChartStyle; /** * Format configuration for cone funnel chart widget. */ export type AgConeFunnelChartFormat = AgWidgetDataFormat; /** * Cone Funnel Chart widget configuration. * Displays data as a cone-shaped funnel. * Similar to a funnel chart but with a conical shape for a different visual effect. * * @example * const chart: AgConeFunnelChart = { * format: { * title: { text: 'Conversion Funnel', enabled: true } * }, * dataMapping: { * categoryKey: [{ id: 'stage' }], * valueKey: [{ id: 'users', aggregation: 'sum' }] * } * }; */ export interface AgConeFunnelChart extends AgWidgetData { /** * Widget type identifier. */ type: 'cone-funnel-chart'; }