在线样本监控(同系列的2个柱状重叠而不是堆叠)

描述:当前是关于Echarts图表中的 柱状图 示例。
 
            var  data_sample = [
        ["type","实时","总计"],
        ["进样",50,100],
        ["离心",10,100],
        ["去盖",30,120],
        ["侧轨",15,150],
        ["出样",18,200],
  ]
option = {
  color:["#33CCFF","#CCEEFF"],
  title: {
    text: '在线样本监控'
  },
  tooltip: {
    trigger: 'axis',
    axisPointer: {
      type: 'shadow'
    }
  },
  legend: {},
  grid: {
    left: '3%',
    right: '4%',
    bottom: '3%',
    containLabel: true
  },
  xAxis: {
    type: 'value',
    boundaryGap: [0,0.01]
  },
  yAxis: {
    type: 'category',
    inverse:true
  },
  dataset:{
    source:data_sample
  },
  series: [
    {
      name:"实时",
      type: 'bar',
      barWidth:"30%",
      z:3 //让实时在总计上面
    },
    {
      name:"总计",
      type: 'bar',
      barWidth:"30%",
      barGap:"-100%",
      label:{
        show:true,
        formatter:function(params){
          return params.data[1]+"/"+params.data[2]
        },
        position:"right"
      },
    }
  ]
};