@aveonline/ui-react
Version:
Home base for Aveonline design system - ecosystem react
30 lines (29 loc) • 624 B
TypeScript
declare type Data = {
[value: string]: number | string;
};
declare type Margin = {
top?: number;
right?: number;
left?: number;
bottom?: number;
};
declare type DataKey = {
/**
* corresponds to the key of the Data object that contains the numeric values
*/
area: string;
/**
* corresponds to the key of the Data object that contains the labels
*/
xAxis: string;
};
interface IGraphic {
variant: 'area';
data: Data[];
dataKey: DataKey;
linearGradientId?: string;
width?: number;
height?: number;
margin?: Margin;
}
export type { IGraphic };