var colors = ['#5793f3', '#d14a61', '#675bba'];

export default {
  color: colors,
  legend: {
    textStyle: {
      color: '#fff'
    }
  },
  title: {
    text: '月碰撞次数',
    textStyle: {
      color: '#fff'
    }
  },
  tooltip: {
    trigger: 'axis',
    // showContent: false,
    axisPointer: {
      type: 'cross'
    }
  },
  dataset: {
    source: [
      ['月份', '1月', '2月', '3月', '4月', '5月'],
      ['月急加速次数', 41.1, 30.4, 65.1, 53.3, 83.8],
      ['平均月急加速次数', 86.5, 92.1, 85.7, 83.1, 73.4],
      // ['Cheese Cocoa', 24.1, 67.2, 79.5, 86.4, 65.2, 82.5],
      // ['Walnut Brownie', 55.2, 67.1, 69.2, 72.4, 53.9, 39.1]
    ]
  },
  xAxis: {
    type: 'category', axisLabel: {
      color: '#fff'
    }
  },
  yAxis: {
    gridIndex: 0, axisLabel: {
      color: '#fff'
    }
  },
  grid: {
    top: '55%',
    left: '1%',
    right: '8%',
    bottom: '6%',
    containLabel: true
  },
  series: [
    // {type: 'line', smooth: true, seriesLayoutBy: 'row'},
    // {type: 'line', smooth: true, seriesLayoutBy: 'row'},
    {type: 'line', smooth: true, seriesLayoutBy: 'row'},
    {type: 'line', smooth: true, seriesLayoutBy: 'row'},
    // {
    //   type: 'pie',
    //   id: 'pie',
    //   radius: '30%',
    //   center: ['50%', '25%'],
    // },
    {
      type: 'pie',
      id: 'pie',
      radius: '30%',
      center: ['50%', '25%'],
      label: {
        formatter: '{b}: {@1月} ({d}%)'
      },
      encode: {
        itemName: '月份',
        value: '1月',
        tooltip: '1月'
      }
    }
  ]
};