import React from 'react'; import { TColorValues } from '@amaui/style-react'; import { ISurface } from '../Surface/Surface'; import { IColor, IStyle, ITonal, IElementAny, IElement, IValueBreakpoints, IPropsAny } from '../types'; export type IChartValueValues = Array; export interface IItemValue { value: number; label: number; percentage: number; axis: 'x' | 'y'; props?: any; } export interface IChartValue { color?: IColor; tone?: TColorValues; name?: string; style?: IStyle; percentage?: string | number; values: IChartValueValues | Array; } export interface IChart extends ISurface { tonal?: ITonal; color?: IColor; title?: IElementAny; subtitle?: IElementAny; values?: Array; defs?: IElement; pre?: IElement; elements?: Array<{ item: IChartValue; element?: IElement; elements?: IElement; }>; names?: { x?: string; y?: string; [property: string]: string; }; nameX?: boolean | Partial>; nameY?: boolean | Partial>; tooltip?: boolean | Partial>; tooltipIndividually?: boolean | Partial>; tooltipCloseOnMouseLeave?: boolean | Partial>; elementTooltip?: boolean | Partial>; guidelines?: 'both' | 'vertical' | 'horizontal' | Partial>; guidelinesAppend?: boolean | Partial>; guidelinesDisplayInactive?: boolean | Partial>; animate?: boolean; animateTimeout?: number; additionalLines?: IElement; legend?: 'auto' | false | IElement | Partial>; legendManageVisibility?: boolean; legendPosition?: 'top' | 'bottom'; labels?: 'auto' | false | Array<{ value?: number; label?: string | number; }> | Partial>>; labelsX?: boolean | Partial>; labelsY?: boolean | Partial>; labelDecimalPlaces?: number | Partial>; labelsAutoNumber?: number | Partial>; labelsYAutoNumber?: number | Partial>; labelsXAutoNumber?: number | Partial>; marks?: 'auto' | false | Array<{ value?: number; }> | Partial>>; marksX?: boolean | Partial>; marksY?: boolean | Partial>; marksAutoNumber?: number | Partial>; marksYAutoNumber?: number | Partial>; marksXAutoNumber?: number | Partial>; grid?: 'auto' | false | Array<{ value?: number; }> | Partial>>; gridX?: boolean | Partial>; gridY?: boolean | Partial>; gridAutoNumber?: number | Partial>; gridYAutoNumber?: number | Partial>; gridXAutoNumber?: number | Partial>; points?: boolean | Partial>; pointsVisibility?: 'hover' | 'visible' | 'hidden' | Partial>; borders?: boolean | Partial>; borderStart?: boolean | Partial>; borderLeft?: boolean | Partial>; borderEnd?: boolean | Partial>; borderRight?: boolean | Partial>; borderTop?: boolean | Partial>; borderBottom?: boolean | Partial>; minX?: number | Partial>; maxX?: number | Partial>; minY?: number | Partial>; maxY?: number | Partial>; minMaxPadding?: number | Partial>; minPadding?: number | Partial>; maxPadding?: number | Partial>; minPaddingX?: number | Partial>; minPaddingY?: number | Partial>; maxPaddingX?: number | Partial>; maxPaddingY?: number | Partial>; noMain?: boolean; tooltipRender?: (values: IChartValue) => any; tooltipGroupRender?: (groups: Array, groupsSorted: string[]) => any; labelRender?: (value: IItemValue) => any; labelResolve?: (value: number, axes: 'x' | 'y', item: IChartValue, version?: 'group' | 'individual') => string; onUpdateRects?: (rects: { wrapper: DOMRect; svg: DOMRect; }) => any; SvgProps?: IPropsAny; TypeProps?: IPropsAny; TitleProps?: IPropsAny; SubtitleProps?: IPropsAny; PathProps?: IPropsAny; PointsProps?: IPropsAny; PointProps?: IPropsAny; HeaderProps?: IPropsAny; AppendProps?: IPropsAny; AdditionalLineProps?: IPropsAny; AdditionalLinesProps?: IPropsAny; LegendProps?: IPropsAny; LegendItemProps?: IPropsAny; GuidelineProps?: IPropsAny; WrapperProps?: IPropsAny; } declare const Chart: React.FC; export default Chart;