
const getBoxPlotChcart = (data) => {
  let option = {
    // title: [
    //   {
    //     text: 'Michelson-Morley Experiment',
    //     left: 'center'
    //   }
    // ],
    tooltip: {
      trigger: 'item',
      axisPointer: {
        type: 'shadow'
      }
    },
    grid: {
      left: '5%',
      right: '3%',
      top: '10%',
      bottom: '10%'
    },
    xAxis: {
      type: 'category',
      boundaryGap: true,
      nameGap: 30,
      splitArea: {
        show: false
      },
      splitLine: {
        show: false
      },
      // data: ['众议院通过', '参议院通过', '两院协商', '总统签署']
      data: data.dataX
    },
    yAxis: {
      type: 'value',
      name: '单位：天',
      splitArea: {
        show: true
      }
    },
    series: [
      {
        name: 'boxplot',
        type: 'boxplot',
        datasetIndex: 1,
        data: data.dataY,
      },
       {
        name: 'outlier',
        type: 'scatter',
        datasetIndex: 2
      }
    ]
  }
  return option
}

export default getBoxPlotChcart