var maxData =2000;
option ={xAxis:{max: maxData,splitLine:{show:false},offset:10,axisLine:{show:false},axisLabel:{show:false}},yAxis:{data:['2013'],inverse:true,axisTick:{show:false},axisLine:{show:false},axisLabel:{show:false}},series:[{// current data 当前颜色深的块type:'pictorialBar',symbol:'rect',symbolRepeat:'fixed',symbolMargin:'5%',symbolClip:true,symbolSize:30,symbolBoundingData: maxData,data:[891],z:10},{// full data 当前所有颜色浅的块,被压在下面的部分type:'pictorialBar',itemStyle:{opacity:0.2},label:{show:true,formatter:function(params){return((params.value / maxData)*100).toFixed(1)+' %';},position:'right',offset:[10,0],color:'green',fontSize:18},animationDuration:0,symbolRepeat:'fixed',symbolMargin:'5%',symbol:'rect',symbolSize:30,symbolBoundingData: maxData,data:[891],z:5}]};