import type { AgChartDataMapping, AgChartStyle, AgChartTheme, AgProgressionDirection } from './shared/agChartShared'; import type { AgWidgetData, AgWidgetDataFormat } from './shared/agWidget'; /** * Pyramid series configuration. */ export interface AgPyramidChartSeriesTheme { /** * Chart direction. */ direction?: AgProgressionDirection; } export interface AgPyramidChartOverrides { /** * Styling for the pyramid series. */ series?: AgPyramidChartSeriesTheme; } /** * Theme configuration for pyramid chart. */ export interface AgPyramidChartTheme extends AgChartTheme { /** * Overrides for pyramid chart specific styling options. */ pyramid?: AgPyramidChartOverrides; } /** * Style configuration for pyramid chart. */ export type AgPyramidChartStyle = AgChartStyle; /** * Format configuration for pyramid chart widget. */ export type AgPyramidChartFormat = AgWidgetDataFormat; /** * Pyramid Chart widget configuration. * Displays data as a pyramid showing hierarchical levels. * Typically used for population pyramids or hierarchical data visualization. * * @example * const chart: AgPyramidChart = { * format: { * title: { text: 'Population by Age', enabled: true } * }, * dataMapping: { * categoryKey: [{ id: 'ageGroup' }], * valueKey: [{ id: 'population', aggregation: 'sum' }] * } * }; */ export interface AgPyramidChart extends AgWidgetData { /** * Widget type identifier. */ type: 'pyramid-chart'; }