import PropTypes from 'prop-types'; import { PureComponent } from 'react'; import Bar from './bar'; import XAxis from './x-axis'; const X_AXIS_LABEL_WIDTH = 42; export default class ChartBarContainer extends PureComponent { static propTypes = { barClick: PropTypes.func, data: PropTypes.array, isPlaceholder: PropTypes.bool, isRtl: PropTypes.bool, isTouch: PropTypes.bool, width: PropTypes.number, yAxisMax: PropTypes.number, hideXAxis: PropTypes.bool, }; static defaultProps = { isPlaceholder: false, hideXAxis: false, }; render() { return ( <>