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

export default {
  color: colors,
  title: {
    text: '月工作日动车比例',
    textStyle: {
      color: '#fff'
    }
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'cross'
    }
  },
  grid: {
    left: '1%',
    right: '8%',
    bottom: '6%',
    containLabel: true
  },
  toolbox: {
    // feature: {
    //   dataView: {show: true, readOnly: false},
    //   restore: {show: true},
    //   saveAsImage: {show: true}
    // }
  },
  legend: {
    textStyle: {
      color: '#fff'
    }
  },
  xAxis: [
    {
      type: 'category',
      axisTick: {
        alignWithLabel: true,
        textStyle: {
          color: '#2DA2FD'
        }
      },
      axisLabel: {
        color: '#fff'
      },
      data: ['1月','2月','3月','4月','5月']
    }
  ],
  yAxis: [
    {
      type: 'value',
      name: '比列(%)',
      axisLine: {
        lineStyle: {
          color: '#5a6379'
        }
      },
      axisLabel: {
        formatter: '{value}',
        color: '#fff'
      },
      nameTextStyle: {
        color: '#fff',
        padding: [0, 0, 0, 50]
      },
      splitLine: {
        lineStyle: {
          color: '#5a6379'
        }
      }
    }
  ],
  series: [
    {
      name:'月工作日动车比例',
      type:'line',
      data:[98, 95, 94, 93, 96]
    },
    {
      name:'工作日动车比例',
      type:'line',
      data:[97, 98, 96, 97, 98]
    }
  ]
};