import 'react'; import { Bar } from '@antv/g2plot/lib/plots/bar'; import createPlot from '../createPlot'; import warn from 'warning'; import { deepMix } from '@antv/util'; import { BarOptions, polyfill } from './BarChart'; interface StackedBarOptions extends BarOptions {} export { StackedBarOptions }; export default createPlot(Bar, 'StackedBarChart', props => { warn(false, ' 即将在5.0后废弃,请使用替代,'); deepMix(props, { isStack: true, }); return polyfill(props); });