import { CartesianChartProps, ChartDataTypes } from '../internal/components/cartesian-chart/interfaces'; export interface AreaChartProps extends CartesianChartProps> { /** * Array that represents the source of data for the displayed chart. * Each element can represent an area series, or a threshold, and can have the following properties: * * * `title` (string): A human-readable title for this series * * `type` (string): Series type (`"area"`, or `"threshold"`) * * `data` (Array): An array of data points, represented as objects with `x` and `y` properties. The `x` values must be consistent across all series * * `color` (string): (Optional) A color hex value for this series. When assigned, it takes priority over the automatically assigned color * * `valueFormatter` (Function): (Optional) A function that formats data values before rendering in the UI, For example, in the details popover. */ series: ReadonlyArray>; /** * Function to format the displayed values total. */ detailTotalFormatter?: AreaChartProps.TickFormatter; /** * An object containing all the necessary localized strings required by the component. * @i18n */ i18nStrings?: AreaChartProps.I18nStrings; } export declare namespace AreaChartProps { type DataTypes = ChartDataTypes; interface Datum { x: T; y: number; } type Series = AreaSeries | ThresholdSeries; interface AreaSeries { type: 'area'; title: string; color?: string; data: T extends unknown ? ReadonlyArray> : ReadonlyArray>; valueFormatter?: ValueFormatter; } interface ThresholdSeries { type: 'threshold'; title: string; color?: string; y: number; valueFormatter?: TickFormatter; } type FilterChangeDetail = CartesianChartProps.FilterChangeDetail>; type HighlightChangeDetail = CartesianChartProps.HighlightChangeDetail>; type TickFormatter = CartesianChartProps.TickFormatter; type ValueFormatter = CartesianChartProps.ValueFormatter; interface I18nStrings extends CartesianChartProps.I18nStrings { /** The title of the values total in the popover. */ detailTotalLabel?: string; /** @deprecated Use `detailTotalFormatter` on the component instead. */ detailTotalFormatter?: TickFormatter; } }