import { Column } from '@antv/g2plot';

const data = [
  { action: '浏览网站', pv: 50000 },
  { action: '放入购物车', pv: 35000 },
  { action: '生成订单', pv: 25000 },
  { action: '支付订单', pv: 15000 },
  { action: '完成交易', pv: 8500 },
];

const columnPlot = new Column('container', {
  data,
  xField: 'action',
  yField: 'pv',
  conversionTag: {},
  xAxis: {
    label: {
      autoHide: true,
      autoRotate: false,
    },
  },
});

columnPlot.render();
