@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
14 lines (13 loc) • 1.1 kB
JavaScript
import { __assign, __rest } from "tslib";
import React from 'react';
import clsx from 'clsx';
import MixedChart from '../mixed-chart';
import { getBaseProps } from '../../base-component';
import styles from './styles.css.js';
function BarChart(_a) {
var _b = _a.height, height = _b === void 0 ? 500 : _b, _c = _a.xScaleType, xScaleType = _c === void 0 ? 'linear' : _c, _d = _a.yScaleType, yScaleType = _d === void 0 ? 'linear' : _d, _e = _a.series, series = _e === void 0 ? [] : _e, _f = _a.detailPopoverSize, detailPopoverSize = _f === void 0 ? 'medium' : _f, _g = _a.statusType, statusType = _g === void 0 ? 'finished' : _g, props = __rest(_a, ["height", "xScaleType", "yScaleType", "series", "detailPopoverSize", "statusType"]);
var baseProps = getBaseProps(props);
var className = clsx(baseProps.className, styles.root);
return (React.createElement(MixedChart, __assign({}, props, { className: className, height: height, xScaleType: xScaleType, yScaleType: yScaleType, series: series, detailPopoverSize: detailPopoverSize, statusType: statusType })));
}
export default BarChart;