diff --git a/packages/x-charts/src/BarChart/BarLabel/BarLabelPlot.tsx b/packages/x-charts/src/BarChart/BarLabel/BarLabelPlot.tsx index 2b14549f2eb5..c11af816ae04 100644 --- a/packages/x-charts/src/BarChart/BarLabel/BarLabelPlot.tsx +++ b/packages/x-charts/src/BarChart/BarLabel/BarLabelPlot.tsx @@ -1,5 +1,4 @@ import * as React from 'react'; -import PropTypes from 'prop-types'; import { useTransition } from '@react-spring/web'; import type { AnimationData, CompletedBarData } from '../types'; import { BarLabelItem, BarLabelItemProps } from './BarLabelItem'; @@ -66,29 +65,4 @@ function BarLabelPlot(props: BarLabelPlotProps) { ); } -BarLabelPlot.propTypes = { - // ----------------------------- Warning -------------------------------- - // | These PropTypes are generated from the TypeScript type definitions | - // | To update them edit the TypeScript types and run "pnpm proptypes" | - // ---------------------------------------------------------------------- - barLabel: PropTypes.oneOfType([PropTypes.oneOf(['value']), PropTypes.func]), - bars: PropTypes.arrayOf( - PropTypes.shape({ - color: PropTypes.string.isRequired, - dataIndex: PropTypes.number.isRequired, - height: PropTypes.number.isRequired, - layout: PropTypes.oneOf(['horizontal', 'vertical']), - maskId: PropTypes.string.isRequired, - seriesId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired, - value: PropTypes.number, - width: PropTypes.number.isRequired, - x: PropTypes.number.isRequired, - xOrigin: PropTypes.number.isRequired, - y: PropTypes.number.isRequired, - yOrigin: PropTypes.number.isRequired, - }), - ).isRequired, - skipAnimation: PropTypes.bool, -} as any; - export { BarLabelPlot }; diff --git a/packages/x-charts/src/BarChart/types.ts b/packages/x-charts/src/BarChart/types.ts index 77fcc1e62688..9631160bc1e9 100644 --- a/packages/x-charts/src/BarChart/types.ts +++ b/packages/x-charts/src/BarChart/types.ts @@ -6,8 +6,8 @@ export type AnimationData = { y: number; width: number; height: number; - yOrigin: number; - xOrigin: number; + yOrigin?: number; + xOrigin?: number; layout: BarSeriesType['layout']; };