export default {
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross',
      crossStyle: {
        color: '#999'
      }
    }
  },
  toolbox: {
    show: true,
    orient: 'vertical',
    left: 'right',
    top: 'center',
    feature: {
      mark: { show: true },
      dataView: { show: true, readOnly: false },
      magicType: { show: true, type: ['line', 'bar', 'stack', 'tiled'] },
      restore: { show: true },
      saveAsImage: { show: true }
    }
  },
  legend: {
    data: ['售票张数', '售票金额', '退票张数', '退票金额']
  },
  xAxis: [
    {
      type: 'category',
      data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
      axisPointer: {
        type: 'shadow'
      }
    }
  ],
  yAxis: [
    {
      type: 'value',
      name: '金额/元'
    },
    {
      type: 'value',
      name: '张数'
    }
  ],
  series: [
    {
      name: '售票张数',
      type: 'bar',
      yAxisIndex: 1
    },
    {
      name: '售票金额',
      type: 'line',
      smooth: true
    },
    {
      name: '退票张数',
      type: 'bar',
      yAxisIndex: 1
    },
    {
      name: '退票金额',
      type: 'line',
      yAxisIndex: 1,
      smooth: true
    }
  ]
}
