@mui/x-charts
Version:
The community edition of MUI X Charts components.
42 lines • 1.07 kB
TypeScript
import * as React from 'react';
import { SeriesId } from "../models/seriesType/common.js";
import { BarElementOwnerState } from "./barElementClasses.js";
export interface BarProps extends Omit<React.SVGProps<SVGRectElement>, 'id' | 'color' | 'ref' | 'x' | 'y' | 'height' | 'width'> {
id: SeriesId;
dataIndex: number;
color: string;
ownerState: BarElementOwnerState;
/**
* The position in the x-axis of the stack this bar belongs to.
*/
xOrigin: number;
/**
* The position in the y-axis of the stack this bar belongs to.
*/
yOrigin: number;
/**
* The position of the bar in the x-axis.
*/
x: number;
/**
* The position of the bar in the y-axis.
*/
y: number;
/**
* The height of the bar.
*/
height: number;
/**
* The width of the bar.
*/
width: number;
/**
* The orientation of the bar.
*/
layout: 'vertical' | 'horizontal';
/**
* If true, no animations should be applied.
*/
skipAnimation: boolean;
}
export declare function AnimatedBarElement(props: BarProps): React.JSX.Element;