=20?-20:1,r(S);for(var e=0;e<20;e++)x[e].highlightStyle.color=e3){var o=T();e=1;while(o*e-6h.x?1:0),height:h.height-(r>h.y?1:0),lineWidth:1,brushType:"stroke",strokeColor:f.handleColor}},y=t.clone(g),u.shapeList.push(g),u.shapeList.push(y);return}function M(e,t,n){f.zoomLock&&(e=d);var r=e._type=="filler"?c:0;return f.orient=="horizontal"?e.style.x+t-r<=h.x?e.style.x=h.x+r:e.style.x+t+e.style.width+r>=h.x+h.width?e.style.x=h.x+h.width-e.style.width-r:e.style.x+=t:e.style.y+n-r<=h.y?e.style.y=h.y+r:e.style.y+n+e.style.height+r>=h.y+h.height?e.style.y=h.y+h.height-e.style.height-r:e.style.y+=n,e._type=="filler"?_():D(),f.realtime?B():(clearTimeout(b),b=setTimeout(B,200)),!0}function _(){f.orient=="horizontal"?(v.style.x=d.style.x-c,m.style.x=d.style.x+d.style.width,p.start=Math.floor((v.style.x-h.x)/h.width*100),p.end=Math.ceil((m.style.x+c-h.x)/h.width*100)):(v.style.y=d.style.y-c,m.style.y=d.style.y+d.style.height,p.start=Math.floor((v.style.y-h.y)/h.height*100),p.end=Math.ceil((m.style.y+c-h.y)/h.height*100)),r.modShape(v.id,v),r.modShape(m.id,m),P(),r.refresh()}function D(){var e,t;f.orient=="horizontal"?(e=v.style.x,t=m.style.x,d.style.x=Math.min(e,t)+c,d.style.width=Math.abs(e-t)-c,p.start=Math.floor((Math.min(e,t)-h.x)/h.width*100),p.end=Math.ceil((Math.max(e,t)+c-h.x)/h.width*100)):(e=v.style.y,t=m.style.y,d.style.y=Math.min(e,t)+c,d.style.height=Math.abs(e-t)-c,p.start=Math.floor((Math.min(e,t)-h.y)/h.height*100),p.end=Math.ceil((Math.max(e,t)+c-h.y)/h.height*100)),r.modShape(d.id,d),P(),r.refresh()}function P(){f.orient=="horizontal"?(g.style.width=d.style.x-h.x,y.style.x=d.style.x+d.style.width,y.style.width=h.x+h.width-y.style.x):(g.style.height=d.style.y-h.y,y.style.y=d.style.y+d.style.height,y.style.height=h.y+h.height-y.style.y),r.modShape(g.id,g),r.modShape(y.id,y)}function H(){if(!f.show)return;f.orient=="horizontal"?(v.style.x=h.x+p.start/100*h.width,m.style.x=h.x+p.end/100*h.width-c,d.style.x=v.style.x+c,d.style.width=m.style.x-v.style.x-c):(v.style.y=h.y+p.start/100*h.height,m.style.y=h.y+p.end/100*h.height-c,d.style.y=v.style.y+c,d.style.height=m.style.y-v.style.y-c),r.modShape(v.id,v),r.modShape(m.id,m),r.modShape(d.id,d),P(),r.refresh()}function B(e){var r,s,o,u,a;for(var l in E){r=E[l];for(var c in r)a=r[c],u=a.length,s=Math.floor(p.start/100*u),o=Math.ceil(p.end/100*u),i[l][c].type!=t.CHART_TYPE_SCATTER?i[l][c].data=a.slice(s,o):i[l][c].data=j(c,a)}!w&&(f.realtime||e)&&n.dispatch(t.EVENT.DATA_ZOOM,null,{zoom:p}),f.start=p.start,f.end=p.end}function j(e,t){var n=[],r=p.scatterMap[e],i,s,o,u,a;f.orient=="horizontal"?(i=r.x.max-r.x.min,s=p.start/100*i+r.x.min,o=p.end/100*i+r.x.min,i=r.y.max-r.y.min,u=p.start2/100*i+r.y.min,a=p.end2/100*i+r.y.min):(i=r.x.max-r.x.min,s=p.start2/100*i+r.x.min,o=p.end2/100*i+r.x.min,i=r.y.max-r.y.min,u=p.start/100*i+r.y.min,a=p.end/100*i+r.y.min);var l;for(var c=0,h=t.length;c
",o+=ht(v[c][3])+" : "+m.numAddCommas(v[c][2]);T.innerHTML=o}if(u===!1||!i.tooltip.showContent)return;return m.hasAppend||(T.style.left=B/2+"px",T.style.top=H/2+"px",s.firstChild.appendChild(T),m.hasAppend=!0),z(l.getX(D),l.getY(D),a),!0}}function G(){var e=u.get(_,"series"),n=u.get(_,"data"),o=u.get(_,"name"),a=u.get(_,"value"),f=u.get(_,"special"),c=u.get(_,"special2"),h,p,d="",v,g="";_._type!="island"?(i.tooltip.trigger=="item"&&(h=i.tooltip.formatter),m.query(e,"tooltip.trigger")=="item"&&(p=m.query(e,"tooltip.showContent")||p,h=m.query(e,"tooltip.formatter")||h,d+=R(m.query(e,"tooltip"))),p=m.query(n,"tooltip.showContent")||p,h=m.query(n,"tooltip.formatter")||h,d+=R(m.query(n,"tooltip"))):(p=m.deepQuery([n,e,i],"tooltip.showContent"),h=m.deepQuery([n,e,i],"tooltip.islandFormatter"));if(typeof h=="function")P=(e.name||"")+":"+u.get(_,"dataIndex"),T.innerHTML=h([e.name||"",o,a,f,c],P,tt);else if(typeof h=="string")P=NaN,h=h.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}"),h=h.replace("{a0}",ht(e.name||"")).replace("{b0}",ht(o)).replace("{c0}",a instanceof Array?a:m.numAddCommas(a)),h=h.replace("{d}","{d0}").replace("{d0}",f||""),h=h.replace("{e}","{e0}").replace("{e0}",u.get(_,"special2")||""),T.innerHTML=h;else{P=NaN;if(e.type==t.CHART_TYPE_SCATTER)T.innerHTML=(typeof e.name!="undefined"?ht(e.name)+"
":"")+(o===""?"":ht(o)+" : ")+a+(typeof f=="undefined"?"":" ("+f+")");else if(e.type==t.CHART_TYPE_RADAR&&f){v=f,g+=ht(o===""?e.name||"":o),g+=g===""?"":"
";for(var y=0;y
":"")+b+" -> "+w+" ("+m.numAddCommas(a)+")"+"
"+w+" -> "+b+" ("+m.numAddCommas(c)+")"}else T.innerHTML=(typeof e.name!="undefined"?ht(e.name)+"
":"")+ht(o)+" : "+m.numAddCommas(a)+(typeof f=="undefined"?"":" ("+m.numAddCommas(f)+")")}I.invisible||(I.invisible=!0,r.modShape(I.id,I),r.refresh());if(p===!1||!i.tooltip.showContent)return;m.hasAppend||(T.style.left=B/2+"px",T.style.top=H/2+"px",s.firstChild.appendChild(T),m.hasAppend=!0),z(l.getX(D)+20,l.getY(D)-20,d)}function Y(e,t,n,s,o,u){if(e.length>0){var a,f,l=i.tooltip.axisPointer,c=l.type,h=l.lineStyle.color,p=l.lineStyle.width,d=l.lineStyle.type,v=l.areaStyle.size,g=l.areaStyle.color;for(var y=0,w=e.length;y图片另存为")+'"/>',i.appendChild(s),document.body.appendChild(i),s=null,i=null,setTimeout(function(){var e=document.getElementById("__echarts_download_wrap__");e&&(e.onclick=function(){var e=document.getElementById("__echarts_download_wrap__");e.onclick=null,e.innerHTML="",document.body.removeChild(e),e=null},e=null)},500);return}function K(e){U();var r=e.target._name;return r==p?p=!1:p=r,n.dispatch(t.EVENT.MAGIC_TYPE_CHANGED,e.event,{magicType:p}),!0}function Q(e){if(e.toolbox&&e.toolbox.show&&e.toolbox.feature.magicType&&e.toolbox.feature.magicType.length>0){var t=e.toolbox.feature.magicType,n=t.length;d={};while(n--)d[t[n]]=!0;n=e.series.length;var r,i;while(n--)r=e.series[n].type,d[r]&&(i=e.xAxis instanceof Array?e.xAxis[e.series[n].xAxisIndex||0]:e.xAxis,i&&i.type=="category"&&(i.__boundaryGap=typeof i.boundaryGap!="undefined"?i.boundaryGap:!0),i=e.yAxis instanceof Array?e.yAxis[e.series[n].yAxisIndex||0]:e.yAxis,i&&i.type=="category"&&(i.__boundaryGap=typeof i.boundaryGap!="undefined"?i.boundaryGap:!0),e.series[n].__type=r,e.series[n].__itemStyle=e.series[n].itemStyle?u.clone(e.series[n].itemStyle):{})}p=!1;var s=e.dataZoom;if(s&&s.show){var o=typeof s.start!="undefined"&&s.start>=0&&s.start<=100?s.start:0,a=typeof s.end!="undefined"&&s.end>=0&&s.end<=100?s.end:100;o>a&&(o+=a,a=o-a,o-=a),k=[{start:o,end:a,start2:0,end2:100}]}else k=[]}function G(){var e;if(p){var n=p==t.CHART_TYPE_LINE?!1:!0;for(var r=0,i=f.series.length;r'+(t[0]||a[0])+"
>1^-(o&1),u=u>>1^-(u&1),o+=r,u+=i,r=o,i=u,n.push([o/1024,u/1024])}return n}var r={world:{getGeoJson:function(n){e(["./geoJson/world_geo"],function(e){n(t(e))})}},china:{getGeoJson:function(n){e(["./geoJson/china_geo"],function(e){n(t(e))})}},"南海诸岛":{textCoord:[126,25],getPath:function(e,t){var n=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],r="",i=e[0],s=e[1];for(var o=0,u=n.length;o180?n-360:n,r=90-(r/e.scale.y+e.offset.y),[n,r]}function o(e,t){return n.offset=e.offset,n.scale=e.scale,t instanceof Array?n.makePoint([t[0]*1,t[1]*1]):n.makePoint([t.x*1,t.y*1])}var n={formatPoint:function(e){return[(e[0]<-168.5&&e[1]>63.8?e[0]+360:e[0])+168.5,90-e[1]]},makePoint:function(e){var t=this,r=t.formatPoint(e);t._bbox.xmin>e[0]&&(t._bbox.xmin=e[0]),t._bbox.xmax v?(d=v*.75,l=h*d):(v=d,d=v*.75,c=p*v);var m={OffsetLeft:a[0],OffsetTop:a[1],scale:{x:d,y:v}},g=o.geoJson2Path(n,m);return U(t,g[0],s)}function U(e,t,n){var r,i=t.properties.name;return L[i]?r=ot(e,L[i]):t.cp&&(r=[t.cp[0],t.cp[1]]),k[i]&&(r[0]+=k[i][0],r[1]+=k[i][1]),{text:$(e,i),path:t.path,position:n,textX:r[0],textY:r[1]}}function z(e,t){var n,i,s,o,u,a,f,l=r.getWidth(),c=r.getHeight(),d=Math.round(Math.min(l,c)*.02);for(var v in t)n=p[v].mapLocation,s=n.x||s,u=n.y||u,a=n.width||a,f=n.height||f;i=h.parsePercent(s,l),i=isNaN(i)?d:i,o=h.parsePercent(u,c),o=isNaN(o)?d:o,typeof a=="undefined"?a=isNaN(s)?l-2*d:l-i-2*d:a=h.parsePercent(a,l),typeof f=="undefined"?f=isNaN(u)?c-2*d:c-o-2*d:f=h.parsePercent(f,c);var m=e.width,g=e.height,y=a/.75/m,b=f/g;y>b?(y=b*.75,a=m*y):(b=y,y=b*.75,f=g*b);if(isNaN(s))switch(s+""){case"center":i=Math.floor((l-a)/2);break;case"right":i=l-a;break;default:}if(isNaN(u))switch(u+""){case"center":o=Math.floor((c-f)/2);break;case"bottom":o=c-f;break;default:}return{left:i,top:o,width:a,height:f,scale:{x:y,y:b}}}function W(e,n,r,i){var o=s.legend,u=s.dataRange,f,c,w,E,S,x=t.map,T,N,C,k,L,A;for(var O=0,M=n.length;O 0&&y(h,e[h]);for(var a=0,f=l.shapeList.length;a =20?-20:1,r(S);for(var e=0;e<20;e++)x[e].highlightStyle.color=e >1^-(o&1),u=u>>1^-(u&1),o+=r,u+=i,r=o,i=u,n.push([o/1024,u/1024])}return n}var r={world:{getGeoJson:function(n){e(["./geoJson/world_geo"],function(e){n(t(e))})}},china:{getGeoJson:function(n){e(["./geoJson/china_geo"],function(e){n(t(e))})}},"南海诸岛":{textCoord:[126,25],getPath:function(e,t){var n=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],r="",i=e[0],s=e[1];for(var o=0,u=n.length;o180?n-360:n,r=90-(r/e.scale.y+e.offset.y),[n,r]}function o(e,t){return n.offset=e.offset,n.scale=e.scale,t instanceof Array?n.makePoint([t[0]*1,t[1]*1]):n.makePoint([t.x*1,t.y*1])}var n={formatPoint:function(e){return[(e[0]<-168.5&&e[1]>63.8?e[0]+360:e[0])+168.5,90-e[1]]},makePoint:function(e){var t=this,r=t.formatPoint(e);t._bbox.xmin>e[0]&&(t._bbox.xmin=e[0]),t._bbox.xmax v?(d=v*.75,l=h*d):(v=d,d=v*.75,c=p*v);var m={OffsetLeft:a[0],OffsetTop:a[1],scale:{x:d,y:v}},g=o.geoJson2Path(n,m);return U(t,g[0],s)}function U(e,t,n){var r,i=t.properties.name;return L[i]?r=ot(e,L[i]):t.cp&&(r=[t.cp[0],t.cp[1]]),k[i]&&(r[0]+=k[i][0],r[1]+=k[i][1]),{text:$(e,i),path:t.path,position:n,textX:r[0],textY:r[1]}}function z(e,t){var n,i,s,o,u,a,f,l=r.getWidth(),c=r.getHeight(),d=Math.round(Math.min(l,c)*.02);for(var v in t)n=p[v].mapLocation,s=n.x||s,u=n.y||u,a=n.width||a,f=n.height||f;i=h.parsePercent(s,l),i=isNaN(i)?d:i,o=h.parsePercent(u,c),o=isNaN(o)?d:o,typeof a=="undefined"?a=isNaN(s)?l-2*d:l-i-2*d:a=h.parsePercent(a,l),typeof f=="undefined"?f=isNaN(u)?c-2*d:c-o-2*d:f=h.parsePercent(f,c);var m=e.width,g=e.height,y=a/.75/m,b=f/g;y>b?(y=b*.75,a=m*y):(b=y,y=b*.75,f=g*b);if(isNaN(s))switch(s+""){case"center":i=Math.floor((l-a)/2);break;case"right":i=l-a;break;default:}if(isNaN(u))switch(u+""){case"center":o=Math.floor((c-f)/2);break;case"bottom":o=c-f;break;default:}return{left:i,top:o,width:a,height:f,scale:{x:y,y:b}}}function W(e,n,r,i){var o=s.legend,u=s.dataRange,f,c,w,E,S,x=t.map,T,N,C,k,L,A;for(var O=0,M=n.length;O 0&&y(h,e[h]);for(var a=0,f=l.shapeList.length;a =20?-20:1,r(S);for(var e=0;e<20;e++)x[e].highlightStyle.color=e=0;n--){f=l.shapeList[n]._seriesIndex;if(t[f]&&!t[f][3]){if(l.shapeList[n]._main){h=l.shapeList[n].style.pointList,o=Math.abs(h[0][0]-h[1][0]),a=Math.abs(h[0][1]-h[1][1]),p=l.shapeList[n]._orient=="horizontal";if(t[f][2]){if(l.shapeList[n].shape=="polygon"){var d=h.length;l.shapeList[n].style.pointList[d-3]=h[d-2],p?l.shapeList[n].style.pointList[d-3][0]=h[d-4][0]:l.shapeList[n].style.pointList[d-3][1]=h[d-4][1],l.shapeList[n].style.pointList[d-2]=h[d-1]}l.shapeList[n].style.pointList.pop(),p?(s=o,u=0):(s=0,u=-a)}else{l.shapeList[n].style.pointList.shift();if(l.shapeList[n].shape=="polygon"){var v=l.shapeList[n].style.pointList.pop();p?v[0]=h[0][0]:v[1]=h[0][1],l.shapeList[n].style.pointList.push(v)}p?(s=-o,u=0):(s=0,u=a)}i.modShape(l.shapeList[n].id,{style:{pointList:l.shapeList[n].style.pointList}},!0)}else{if(t[f][2]&&l.shapeList[n]._dataIndex==c[f].data.length-1){i.delShape(l.shapeList[n].id);continue}if(!t[f][2]&&l.shapeList[n]._dataIndex===0){i.delShape(l.shapeList[n].id);continue}}i.animate(l.shapeList[n].id,"").when(500,{position:[s,u]}).start()}}}function M(){var e=l.query(s,"animationDuration"),t=l.query(s,"animationEasing"),n,r,o,u=0;for(var a=0,f=l.shapeList.length;a{b} : {c}",showDelay:20,hideDelay:100,transitionDuration:.4,backgroundColor:"rgba(0,0,0,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,axisPointer:{type:"line",lineStyle:{color:"#48b",width:2,type:"solid"},areaStyle:{size:"auto",color:"rgba(150,150,150,0.3)"}},textStyle:{color:"#fff"}},dataZoom:{show:!1,orient:"horizontal",backgroundColor:"rgba(0,0,0,0)",dataBackgroundColor:"#eee",fillerColor:"rgba(144,197,237,0.2)",handleColor:"rgba(70,130,180,0.8)",realtime:!0},grid:{x:80,y:60,x2:80,y2:60,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},categoryAxis:{position:"bottom",name:"",nameLocation:"end",nameTextStyle:{},boundaryGap:!0,axisLine:{show:!0,lineStyle:{color:"#48b",width:2,type:"solid"}},axisTick:{show:!0,interval:"auto",inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,interval:"auto",rotate:0,margin:8,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},valueAxis:{position:"left",name:"",nameLocation:"end",nameTextStyle:{},boundaryGap:[0,0],precision:0,power:100,splitNumber:5,axisLine:{show:!0,lineStyle:{color:"#48b",width:2,type:"solid"}},axisTick:{show:!1,inside:!1,length:5,lineStyle:{color:"#333",width:1}},axisLabel:{show:!0,rotate:0,margin:8,textStyle:{color:"#333"}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},polar:{center:["50%","50%"],radius:"75%",startAngle:90,splitNumber:5,name:{show:!0,textStyle:{color:"#333"}},axisLine:{show:!0,lineStyle:{color:"#ccc",width:1,type:"solid"}},axisLabel:{show:!1,textStyle:{color:"#333"}},splitArea:{show:!0,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}},splitLine:{show:!0,lineStyle:{width:1,color:"#ccc"}}},bar:{xAxisIndex:0,yAxisIndex:0,barMinHeight:0,barGap:"30%",barCategoryGap:"20%",itemStyle:{normal:{borderColor:"#fff",borderRadius:0,borderWidth:1,label:{show:!1}},emphasis:{borderColor:"rgba(0,0,0,0)",borderRadius:0,borderWidth:1,label:{show:!1}}}},line:{xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{label:{show:!1},lineStyle:{width:2,type:"solid",shadowColor:"rgba(0,0,0,0)",shadowBlur:5,shadowOffsetX:3,shadowOffsetY:3}},emphasis:{label:{show:!1}}},symbolSize:2,showAllSymbol:!1},k:{xAxisIndex:0,yAxisIndex:0,itemStyle:{normal:{color:"#fff",color0:"#00aa11",lineStyle:{width:1,color:"#ff3200",color0:"#00aa11"}},emphasis:{}}},scatter:{xAxisIndex:0,yAxisIndex:0,symbolSize:4,large:!1,largeThreshold:2e3,itemStyle:{normal:{label:{show:!1,formatter:function(e,t,n){return typeof n[2]!="undefined"?n[2]:n[0]+" , "+n[1]}}},emphasis:{label:{show:!1,formatter:function(e,t,n){return typeof n[2]!="undefined"?n[2]:n[0]+" , "+n[1]}}}}},radar:{polarIndex:0,itemStyle:{normal:{label:{show:!1},lineStyle:{width:2,type:"solid"}},emphasis:{label:{show:!1}}},symbolSize:2},pie:{center:["50%","50%"],radius:[0,"75%"],clockWise:!1,startAngle:90,minAngle:0,selectedOffset:10,itemStyle:{normal:{borderColor:"#fff",borderWidth:1,label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1,type:"solid"}}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,label:{show:!1},labelLine:{show:!1,length:20,lineStyle:{width:1,type:"solid"}}}}},map:{mapType:"china",mapLocation:{x:"center",y:"center"},mapValuePrecision:0,showLegendSymbol:!0,hoverable:!0,itemStyle:{normal:{borderColor:"#fff",borderWidth:1,areaStyle:{color:"#ccc"},label:{show:!1,textStyle:{color:"rgb(139,69,19)"}}},emphasis:{borderColor:"rgba(0,0,0,0)",borderWidth:1,areaStyle:{color:"rgba(255,215,0,0.8)"},label:{show:!1,textStyle:{color:"rgb(100,0,0)"}}}}},force:{minRadius:10,maxRadius:20,density:1,attractiveness:1,initSize:300,centripetal:1,coolDown:.99,categories:[],itemStyle:{normal:{label:{show:!1},nodeStyle:{brushType:"both",color:"#f08c2e",strokeColor:"#5182ab"},linkStyle:{strokeColor:"#5182ab"}},emphasis:{label:{show:!1},nodeStyle:{},linkStyle:{}}}},chord:{radius:["65%","75%"],center:["50%","50%"],padding:2,sort:"none",sortSub:"none",startAngle:90,clockWise:!1,showScale:!1,showScaleText:!1,itemStyle:{normal:{label:{show:!0},lineStyle:{width:0,color:"#000"},chordStyle:{lineStyle:{width:1,color:"#666"}}},emphasis:{lineStyle:{width:0,color:"#000"},chordStyle:{lineStyle:{width:2,color:"#333"}}}},matrix:[]},island:{r:15,calculateStep:.1},markPoint:{symbol:"pin",symbolSize:10,itemStyle:{normal:{borderWidth:2,label:{show:!0,position:"inside"}},emphasis:{label:{show:!0}}}},markLine:{symbol:["circle","arrow"],symbolSize:[2,4],itemStyle:{normal:{borderWidth:2,label:{show:!1,position:"inside",textStyle:{color:"#333"}},lineStyle:{type:"solid",shadowColor:"rgba(0,0,0,0)",shadowBlur:5,shadowOffsetX:3,shadowOffsetY:3}},emphasis:{label:{show:!1},lineStyle:{}}}},textStyle:{decoration:"none",fontFamily:"Arial, Verdana, sans-serif",fontFamily2:"微软雅黑",fontSize:12,fontStyle:"normal",fontWeight:"normal"},EVENT:{REFRESH:"refresh",RESTORE:"restore",RESIZE:"resize",CLICK:"click",HOVER:"hover",MOUSEWHEEL:"mousewheel",DATA_CHANGED:"dataChanged",DATA_ZOOM:"dataZoom",DATA_RANGE:"dataRange",LEGEND_SELECTED:"legendSelected",MAP_SELECTED:"mapSelected",PIE_SELECTED:"pieSelected",MAGIC_TYPE_CHANGED:"magicTypeChanged",DATA_VIEW_CHANGED:"dataViewChanged",MAP_ROAM:"mapRoam",TOOLTIP_HOVER:"tooltipHover"},DRAG_ENABLE_TIME:150,symbolList:["circle","rectangle","triangle","diamond","emptyCircle","emptyRectangle","emptyTriangle","emptyDiamond"],loadingText:"Loading...",calculable:!1,calculableColor:"rgba(255,165,0,0.6)",calculableHolderColor:"#ccc",nameConnector:" & ",valueConnector:" : ",animation:!0,animationThreshold:2500,addDataAnimation:!0,animationDuration:2e3,animationEasing:"ExponentialOut"};return e}),define("zrender/tool/vector",[],function(){var e=typeof Float32Array=="undefined"?Array:Float32Array,t={create:function(t,n){var r=new e(2);return r[0]=t||0,r[1]=n||0,r},copy:function(e,t){e[0]=t[0],e[1]=t[1]},set:function(e,t,n){e[0]=t,e[1]=n},add:function(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e},scaleAndAdd:function(e,t,n,r){return e[0]=t[0]+n[0]*r,e[1]=t[1]+n[1]*r,e},sub:function(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e},length:function(e){return Math.sqrt(this.lengthSquare(e))},lengthSquare:function(e){return e[0]*e[0]+e[1]*e[1]},mul:function(e,t,n){return e[0]=t[0]*n[0],e[1]=t[1]*n[1],e},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},scale:function(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e},normalize:function(e,n){var r=t.length(n);return r===0?(e[0]=0,e[1]=0):(e[0]=n[0]/r,e[1]=n[1]/r),e},distance:function(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))},negate:function(e,t){e[0]=-t[0],e[1]=-t[1]},middle:function(e,t,n){return e[0]=(t[0]+n[0])/2,e[1]=(t[1]+n[1])/2,e}};return t}),define("zrender/lib/excanvas",["require"],function(e){return document.createElement("canvas").getContext?G_vmlCanvasManager=!1:function(){function f(){return this.context_||(this.context_=new I(this))}function c(e,t,n){var r=l.call(arguments,2);return function(){return e.apply(t,r.concat(l.call(arguments)))}}function h(e){return String(e).replace(/&/g,"&").replace(/"/g,""")}function p(e,t,n){e.namespaces[t]||e.namespaces.add(t,n,"#default#VML")}function d(e){p(e,"g_vml_","urn:schemas-microsoft-com:vml"),p(e,"g_o_","urn:schemas-microsoft-com:office:office");if(!e.styleSheets.ex_canvas_){var t=e.createStyleSheet();t.owningElement.id="ex_canvas_",t.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}function m(e){var t=e.srcElement;switch(e.propertyName){case"width":t.getContext().clearRect(),t.style.width=t.attributes.width.nodeValue+"px",t.firstChild.style.width=t.clientWidth+"px";break;case"height":t.getContext().clearRect(),t.style.height=t.attributes.height.nodeValue+"px",t.firstChild.style.height=t.clientHeight+"px"}}function g(e){var t=e.srcElement;t.firstChild&&(t.firstChild.style.width=t.clientWidth+"px",t.firstChild.style.height=t.clientHeight+"px")}function E(){return[[1,0,0],[0,1,0],[0,0,1]]}function S(e,t){var n=E();for(var r=0;r<3;r++)for(var i=0;i<3;i++){var s=0;for(var o=0;o<3;o++)s+=e[r][o]*t[o][i];n[r][i]=s}return n}function x(e,t){t.fillStyle=e.fillStyle,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.lineWidth=e.lineWidth,t.miterLimit=e.miterLimit,t.shadowBlur=e.shadowBlur,t.shadowColor=e.shadowColor,t.shadowOffsetX=e.shadowOffsetX,t.shadowOffsetY=e.shadowOffsetY,t.strokeStyle=e.strokeStyle,t.globalAlpha=e.globalAlpha,t.font=e.font,t.textAlign=e.textAlign,t.textBaseline=e.textBaseline,t.arcScaleX_=e.arcScaleX_,t.arcScaleY_=e.arcScaleY_,t.lineScale_=e.lineScale_}function N(e){var t=e.indexOf("(",3),n=e.indexOf(")",t+1),r=e.substring(t+1,n).split(",");if(r.length!=4||e.charAt(3)!="a")r[3]=1;return r}function C(e){return parseFloat(e)/100}function k(e,t,n){return Math.min(n,Math.max(t,e))}function L(e){var t,n,r,i,s,o;i=parseFloat(e[0])/360%360,i<0&&i++,s=k(C(e[1]),0,1),o=k(C(e[2]),0,1);if(s==0)t=n=r=o;else{var u=o<.5?o*(1+s):o+s-o*s,a=2*o-u;t=A(a,u,i+1/3),n=A(a,u,i),r=A(a,u,i-1/3)}return"#"+y[Math.floor(t*255)]+y[Math.floor(n*255)]+y[Math.floor(r*255)]}function A(e,t,n){return n<0&&n++,n>1&&n--,6*n<1?e+(t-e)*6*n:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function M(e){if(e in O)return O[e];var t,n=1;e=String(e);if(e.charAt(0)=="#")t=e;else if(/^rgb/.test(e)){var r=N(e),t="#",i;for(var s=0;s<3;s++)r[s].indexOf("%")!=-1?i=Math.floor(C(r[s])*255):i=+r[s],t+=y[k(i,0,255)];n=+r[3]}else if(/^hsl/.test(e)){var r=N(e);t=L(r),n=r[3]}else t=T[e]||e;return O[e]={color:t,alpha:n}}function P(e){if(D[e])return D[e];var t=document.createElement("div"),n=t.style,r;try{n.font=e,r=n.fontFamily.split(",")[0]}catch(i){}return D[e]={style:n.fontStyle||_.style,variant:n.fontVariant||_.variant,weight:n.fontWeight||_.weight,size:n.fontSize||_.size,family:r||_.family}}function H(e,t){var n={};for(var r in e)n[r]=e[r];var i=parseFloat(t.currentStyle.fontSize),s=parseFloat(e.size);return typeof e.size=="number"?n.size=e.size:e.size.indexOf("px")!=-1?n.size=s:e.size.indexOf("em")!=-1?n.size=i*s:e.size.indexOf("%")!=-1?n.size=i/100*s:e.size.indexOf("pt")!=-1?n.size=s/.75:n.size=i,n}function B(e){return e.style+" "+e.variant+" "+e.weight+" "+e.size+"px '"+e.family+"'"}function F(e){return j[e]||"square"}function I(e){this.m_=E(),this.mStack_=[],this.aStack_=[],this.currentPath_=[],this.strokeStyle="#000",this.fillStyle="#000",this.lineWidth=1,this.lineJoin="miter",this.lineCap="butt",this.miterLimit=o*1,this.globalAlpha=1,this.font="12px 微软雅黑",this.textAlign="left",this.textBaseline="alphabetic",this.canvas=e;var t="width:"+e.clientWidth+"px;height:"+e.clientHeight+"px;overflow:hidden;position:absolute",n=e.ownerDocument.createElement("div");n.style.cssText=t,e.appendChild(n);var r=n.cloneNode(!1);r.style.backgroundColor="#fff",r.style.filter="alpha(opacity=0)",e.appendChild(r),this.element_=n,this.arcScaleX_=1,this.arcScaleY_=1,this.lineScale_=1}function R(e,t,n,r){e.currentPath_.push({type:"bezierCurveTo",cp1x:t.x,cp1y:t.y,cp2x:n.x,cp2y:n.y,x:r.x,y:r.y}),e.currentX_=r.x,e.currentY_=r.y}function U(e,t){var n=M(e.strokeStyle),r=n.color,i=n.alpha*e.globalAlpha,s=e.lineScale_*e.lineWidth;s<1&&(i*=s),t.push("o&&(o=a[1])}t[0]=r,t[1]=s,n[0]=i,n[1]=o}function y(e,t,n,r,i,s){var o=b(e[0],t[0],n[0],r[0]),u=b(e[1],t[1],n[1],r[1]);o.push(e[0],r[0]),u.push(e[1],r[1]);var a=Math.min.apply(null,o),f=Math.max.apply(null,o),l=Math.min.apply(null,u),c=Math.max.apply(null,u);i[0]=a,i[1]=l,s[0]=f,s[1]=c}function b(e,t,n,r){var i=[],s=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,u=3*t-3*e,a=s*s-4*o*u;if(a>0){var f=Math.sqrt(a),l=(-s+f)/(2*o),c=(-s-f)/(2*o);i.push(l,c)}else a===0&&i.push(-s/(2*o));var h=[];for(var p=0;p1?Math.ceil(e):e});if(t.indexOf("hex")>-1)return e=q(e.slice(0,3),function(e){return e=Number(e).toString(16),e.length===1?"0"+e:e}),"#"+e.join("");if(t.indexOf("hs")>-1){var n=q(e.slice(1,3),function(e){return e+"%"});e[1]=n[0],e[2]=n[1]}return t.indexOf("a")>-1?(e.length===3&&e.push(1),e[3]=R(e[3],[0,1]),t+"("+e.slice(0,4).join(",")+")"):t+"("+e.slice(0,3).join(",")+")"}}function w(e){e=_(e),e.indexOf("#")>-1&&(e=x(e));var t=e.replace(/[rgbahsvl%\(\)]/ig,"").split(",");return t=q(t,function(e){return Number(e)}),t}function E(e,t){var n=F(e),r=n[3];return typeof r=="undefined"&&(r=1),e.indexOf("hsb")>-1?n=U(n):e.indexOf("hsl")>-1&&(n=z(n)),t.indexOf("hsb")>-1||t.indexOf("hsv")>-1?n=X(n):t.indexOf("hsl")>-1&&(n=V(n)),n[3]=r,b(n,t)}function S(e){return E(e,"rgba")}function x(e){return E(e,"rgb")}function T(e){return E(e,"hex")}function N(e){return E(e,"hsva")}function C(e){return E(e,"hsv")}function k(e){return E(e,"hsba")}function L(e){return E(e,"hsb")}function A(e){return E(e,"hsla")}function O(e){return E(e,"hsl")}function M(e){for(var t in a)if(T(a[t])===T(e))return t;return null}function _(e){return e=String(e),e=e.replace(/(^\s*)|(\s*$)/g,""),/^[^#]*?$/i.test(e)&&(e=e.replace(/\s/g,"")),e}function D(e){a[e]&&(e=a[e]),e=_(e),e=e.replace(/hsv/i,"hsb");if(/^#[0-9a-f]{3}$/i.test(e)){var t=e.replace("#","").split("");e="#"+t[0]+t[0]+t[1]+t[1]+t[2]+t[2]}return e}function P(e,t){var n=t>0?1:-1;typeof t=="undefined"&&(t=0),t=Math.abs(t)>1?1:Math.abs(t),e=x(e);var r=F(e);for(var i=0;i<3;i++)n===1?r[i]=Math.floor(r[i]*(1-t)):r[i]=Math.floor((255-r[i])*t+r[i]);return"rgb("+r.join(",")+")"}function H(e){var t=F(S(e));return t=q(t,function(e){return 255-e}),b(t,"rgb")}function B(e,t,n){typeof n=="undefined"&&(n=.5),n=1-R(n,[0,1]);var r=n*2-1,i=F(S(e)),s=F(S(t)),o=i[3]-s[3],u=((r*o===-1?r:(r+o)/(1+r*o))+1)/2,a=1-u,f=[];for(var l=0;l<3;l++)f[l]=i[l]*u+s[l]*a;var c=i[3]*n+s[3]*(1-n);return c=Math.max(0,Math.min(1,c)),i[3]===1&&s[3]===1?b(f,"rgb"):(f[3]=c,b(f,"rgba"))}function j(){return T("rgb("+Math.round(Math.random()*256)+","+Math.round(Math.random()*256)+","+Math.round(Math.random()*256)+")")}function F(e){e=D(e);var t=e.match(u);if(t===null)throw new Error("The color format error");var n,r,i=[],s;if(t[2])n=t[2].replace("#","").split(""),s=[n[0]+n[1],n[2]+n[3],n[4]+n[5]],i=q(s,function(e){return R(parseInt(e,16),[0,255])});else if(t[4]){var o=t[4].split(",");r=o[3],s=o.slice(0,3),i=q(s,function(e){return e=Math.floor(e.indexOf("%")>0?parseInt(e,0)*2.55:e),R(e,[0,255])}),typeof r!="undefined"&&i.push(R(parseFloat(r),[0,1]))}else if(t[5]||t[6]){var a=(t[5]||t[6]).split(","),f=parseInt(a[0],0)/360,l=a[1],c=a[2];r=a[3],i=q([l,c],function(e){return R(parseFloat(e)/100,[0,1])}),i.unshift(f),typeof r!="undefined"&&i.push(R(parseFloat(r),[0,1]))}return i}function I(e,t){t===null&&(t=1);var n=F(S(e));return n[3]=R(Number(t).toFixed(4),[0,1]),b(n,"rgba")}function q(e,t){if(typeof t!="function")throw new TypeError;var n=e?e.length:0;for(var r=0;r3){var o=T();e=1;while(o*e-6h.x?1:0),height:h.height-(r>h.y?1:0),lineWidth:1,brushType:"stroke",strokeColor:f.handleColor}},y=t.clone(g),u.shapeList.push(g),u.shapeList.push(y);return}function M(e,t,n){f.zoomLock&&(e=d);var r=e._type=="filler"?c:0;return f.orient=="horizontal"?e.style.x+t-r<=h.x?e.style.x=h.x+r:e.style.x+t+e.style.width+r>=h.x+h.width?e.style.x=h.x+h.width-e.style.width-r:e.style.x+=t:e.style.y+n-r<=h.y?e.style.y=h.y+r:e.style.y+n+e.style.height+r>=h.y+h.height?e.style.y=h.y+h.height-e.style.height-r:e.style.y+=n,e._type=="filler"?_():D(),f.realtime?B():(clearTimeout(b),b=setTimeout(B,200)),!0}function _(){f.orient=="horizontal"?(v.style.x=d.style.x-c,m.style.x=d.style.x+d.style.width,p.start=Math.floor((v.style.x-h.x)/h.width*100),p.end=Math.ceil((m.style.x+c-h.x)/h.width*100)):(v.style.y=d.style.y-c,m.style.y=d.style.y+d.style.height,p.start=Math.floor((v.style.y-h.y)/h.height*100),p.end=Math.ceil((m.style.y+c-h.y)/h.height*100)),r.modShape(v.id,v),r.modShape(m.id,m),P(),r.refresh()}function D(){var e,t;f.orient=="horizontal"?(e=v.style.x,t=m.style.x,d.style.x=Math.min(e,t)+c,d.style.width=Math.abs(e-t)-c,p.start=Math.floor((Math.min(e,t)-h.x)/h.width*100),p.end=Math.ceil((Math.max(e,t)+c-h.x)/h.width*100)):(e=v.style.y,t=m.style.y,d.style.y=Math.min(e,t)+c,d.style.height=Math.abs(e-t)-c,p.start=Math.floor((Math.min(e,t)-h.y)/h.height*100),p.end=Math.ceil((Math.max(e,t)+c-h.y)/h.height*100)),r.modShape(d.id,d),P(),r.refresh()}function P(){f.orient=="horizontal"?(g.style.width=d.style.x-h.x,y.style.x=d.style.x+d.style.width,y.style.width=h.x+h.width-y.style.x):(g.style.height=d.style.y-h.y,y.style.y=d.style.y+d.style.height,y.style.height=h.y+h.height-y.style.y),r.modShape(g.id,g),r.modShape(y.id,y)}function H(){if(!f.show)return;f.orient=="horizontal"?(v.style.x=h.x+p.start/100*h.width,m.style.x=h.x+p.end/100*h.width-c,d.style.x=v.style.x+c,d.style.width=m.style.x-v.style.x-c):(v.style.y=h.y+p.start/100*h.height,m.style.y=h.y+p.end/100*h.height-c,d.style.y=v.style.y+c,d.style.height=m.style.y-v.style.y-c),r.modShape(v.id,v),r.modShape(m.id,m),r.modShape(d.id,d),P(),r.refresh()}function B(e){var r,s,o,u,a;for(var l in E){r=E[l];for(var c in r)a=r[c],u=a.length,s=Math.floor(p.start/100*u),o=Math.ceil(p.end/100*u),i[l][c].type!=t.CHART_TYPE_SCATTER?i[l][c].data=a.slice(s,o):i[l][c].data=j(c,a)}!w&&(f.realtime||e)&&n.dispatch(t.EVENT.DATA_ZOOM,null,{zoom:p}),f.start=p.start,f.end=p.end}function j(e,t){var n=[],r=p.scatterMap[e],i,s,o,u,a;f.orient=="horizontal"?(i=r.x.max-r.x.min,s=p.start/100*i+r.x.min,o=p.end/100*i+r.x.min,i=r.y.max-r.y.min,u=p.start2/100*i+r.y.min,a=p.end2/100*i+r.y.min):(i=r.x.max-r.x.min,s=p.start2/100*i+r.x.min,o=p.end2/100*i+r.x.min,i=r.y.max-r.y.min,u=p.start/100*i+r.y.min,a=p.end/100*i+r.y.min);var l;for(var c=0,h=t.length;c
",o+=ht(v[c][3])+" : "+m.numAddCommas(v[c][2]);T.innerHTML=o}if(u===!1||!i.tooltip.showContent)return;return m.hasAppend||(T.style.left=B/2+"px",T.style.top=H/2+"px",s.firstChild.appendChild(T),m.hasAppend=!0),z(l.getX(D),l.getY(D),a),!0}}function G(){var e=u.get(_,"series"),n=u.get(_,"data"),o=u.get(_,"name"),a=u.get(_,"value"),f=u.get(_,"special"),c=u.get(_,"special2"),h,p,d="",v,g="";_._type!="island"?(i.tooltip.trigger=="item"&&(h=i.tooltip.formatter),m.query(e,"tooltip.trigger")=="item"&&(p=m.query(e,"tooltip.showContent")||p,h=m.query(e,"tooltip.formatter")||h,d+=R(m.query(e,"tooltip"))),p=m.query(n,"tooltip.showContent")||p,h=m.query(n,"tooltip.formatter")||h,d+=R(m.query(n,"tooltip"))):(p=m.deepQuery([n,e,i],"tooltip.showContent"),h=m.deepQuery([n,e,i],"tooltip.islandFormatter"));if(typeof h=="function")P=(e.name||"")+":"+u.get(_,"dataIndex"),T.innerHTML=h([e.name||"",o,a,f,c],P,tt);else if(typeof h=="string")P=NaN,h=h.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}"),h=h.replace("{a0}",ht(e.name||"")).replace("{b0}",ht(o)).replace("{c0}",a instanceof Array?a:m.numAddCommas(a)),h=h.replace("{d}","{d0}").replace("{d0}",f||""),h=h.replace("{e}","{e0}").replace("{e0}",u.get(_,"special2")||""),T.innerHTML=h;else{P=NaN;if(e.type==t.CHART_TYPE_SCATTER)T.innerHTML=(typeof e.name!="undefined"?ht(e.name)+"
":"")+(o===""?"":ht(o)+" : ")+a+(typeof f=="undefined"?"":" ("+f+")");else if(e.type==t.CHART_TYPE_RADAR&&f){v=f,g+=ht(o===""?e.name||"":o),g+=g===""?"":"
";for(var y=0;y
":"")+b+" -> "+w+" ("+m.numAddCommas(a)+")"+"
"+w+" -> "+b+" ("+m.numAddCommas(c)+")"}else T.innerHTML=(typeof e.name!="undefined"?ht(e.name)+"
":"")+ht(o)+" : "+m.numAddCommas(a)+(typeof f=="undefined"?"":" ("+m.numAddCommas(f)+")")}I.invisible||(I.invisible=!0,r.modShape(I.id,I),r.refresh());if(p===!1||!i.tooltip.showContent)return;m.hasAppend||(T.style.left=B/2+"px",T.style.top=H/2+"px",s.firstChild.appendChild(T),m.hasAppend=!0),z(l.getX(D)+20,l.getY(D)-20,d)}function Y(e,t,n,s,o,u){if(e.length>0){var a,f,l=i.tooltip.axisPointer,c=l.type,h=l.lineStyle.color,p=l.lineStyle.width,d=l.lineStyle.type,v=l.areaStyle.size,g=l.areaStyle.color;for(var y=0,w=e.length;y图片另存为")+'"/>',s.appendChild(o),document.body.appendChild(s),o=null,s=null,setTimeout(function(){var e=document.getElementById("__echarts_download_wrap__");e&&(e.onclick=function(){var e=document.getElementById("__echarts_download_wrap__");e.onclick=null,e.innerHTML="",document.body.removeChild(e),e=null},e=null)},500);return}function K(e){U();var r=e.target._name;return r==p?p=!1:p=r,n.dispatch(t.EVENT.MAGIC_TYPE_CHANGED,e.event,{magicType:p}),!0}function Q(e){if(e.toolbox&&e.toolbox.show&&e.toolbox.feature.magicType&&e.toolbox.feature.magicType.length>0){var t=e.toolbox.feature.magicType,n=t.length;d={};while(n--)d[t[n]]=!0;n=e.series.length;var r,i;while(n--)r=e.series[n].type,d[r]&&(i=e.xAxis instanceof Array?e.xAxis[e.series[n].xAxisIndex||0]:e.xAxis,i&&i.type=="category"&&(i.__boundaryGap=typeof i.boundaryGap!="undefined"?i.boundaryGap:!0),i=e.yAxis instanceof Array?e.yAxis[e.series[n].yAxisIndex||0]:e.yAxis,i&&i.type=="category"&&(i.__boundaryGap=typeof i.boundaryGap!="undefined"?i.boundaryGap:!0),e.series[n].__type=r,e.series[n].__itemStyle=e.series[n].itemStyle?u.clone(e.series[n].itemStyle):{})}p=!1;var s=e.dataZoom;if(s&&s.show){var o=typeof s.start!="undefined"&&s.start>=0&&s.start<=100?s.start:0,a=typeof s.end!="undefined"&&s.end>=0&&s.end<=100?s.end:100;o>a&&(o+=a,a=o-a,o-=a),k=[{start:o,end:a,start2:0,end2:100}]}else k=[]}function G(){var e;if(p){var n=p==t.CHART_TYPE_LINE?!1:!0;for(var r=0,i=f.series.length;r'+(t[0]||a[0])+"
10&&(v="width:"+y+"px;"+"height:"+g+"px;"+"background-color:#fff;",f.style.cssText=d+v,l.style.cssText="display:block;margin:0 0 8px 0;padding:4px 6px;overflow:auto;width:"+(y-15)+"px;"+"height:"+(g-100)+"px;")}function L(){window.removeEventListener?(f.removeEventListener("click",N),f.removeEventListener("mousewheel",N),f.removeEventListener("mousemove",N),f.removeEventListener("mousedown",N),f.removeEventListener("mouseup",N),f.removeEventListener("touchstart",N),f.removeEventListener("touchmove",N),f.removeEventListener("touchend",N)):(f.detachEvent("onclick",N),f.detachEvent("onmousewheel",N),f.detachEvent("onmousemove",N),f.detachEvent("onmousedown",N),f.detachEvent("onmouseup",N)),c.onclick=null,h.onclick=null,p&&(f.removeChild(l),f.removeChild(c),f.removeChild(h)),l=null,c=null,h=null,s.firstChild.removeChild(f),f=null,u=null}var o=e("./base");o.call(this,t,r);var u=this;u.type=t.COMPONENT_TYPE_DATAVIEW;var a=["Data View","close","refresh"],f=document.createElement("div"),l=document.createElement("textArea"),c=document.createElement("button"),h=document.createElement("button"),p=!1,d="position:absolute;display:block;overflow:hidden;transition:height 0.8s,background-color 1s;-moz-transition:height 0.8s,background-color 1s;-webkit-transition:height 0.8s,background-color 1s;-o-transition:height 0.8s,background-color 1s;z-index:1;left:0;top:0;",v,m="echarts-dataview",g=r.getHeight(),y=r.getWidth();u.dispose=L,u.resize=k,u.show=w,u.hide=b,C()}return e("../component").define("dataView",t),t}),define("echarts/util/coordinates",["require","zrender/tool/math"],function(e){function n(e,n){return[e*t.sin(n),e*t.cos(n)]}function r(e,t){return[Math.sqrt(e*e+t*t),Math.atan(t/e)]}var t=e("zrender/tool/math");return{polar2cartesian:n,cartesian2polar:r}}),define("echarts/component/polar",["require","./base","../util/coordinates","zrender/tool/util","../component"],function(e){function t(t,n,r,i,s){function p(e,t){s=t,B(e)}function d(){for(var e=0;e0?l.getColor=function(e){return n.getColor(e,t.color)}:l.getColor=function(e){return n.getColor(e,u.color)},typeof t.DRAG_ENABLE_TIME=="undefined"&&(t.DRAG_ENABLE_TIME=u.DRAG_ENABLE_TIME)}function $(t,n){var r=e("zrender/tool/util");n?c=r.clone(t):r.merge(c,r.clone(t),{overwrite:!0,recursive:!0});if(!c.series||c.series.length===0)return;return h=r.clone(c),p=r.clone(c),c.legend&&c.legend.selected?g=c.legend.selected:g={},y.clear(),b.reset(c),U(c),a}function J(){var t=e("zrender/tool/util");return h.toolbox&&h.toolbox.show&&h.toolbox.feature.magicType&&h.toolbox.feature.magicType.length>0?t.clone(I()):t.clone(I(y.getOption()))}function K(e,t){return t?(c.series=e,a.setOption(c,t)):a.setOption({series:e}),a}function Q(){return J().series}function G(t,n,r,i,s){var u=e("zrender/tool/util"),f=t instanceof Array?t:[[t,n,r,i,s]],l,c,m;h.toolbox&&h.toolbox.show&&h.toolbox.feature.magicType&&h.toolbox.feature.magicType.length>0?m=I():m=I(y.getOption());for(var w=0,E=f.length;wthis._shape.length)throw new Error("Too many indices");var o=i.length,u;s.length?(t=new v(this._dtype),t.initFromShape(s),u=t._array):u=[];var a=this._array,f=0;return l(0,0),s.length?t:u[0]},set:function(e,t){typeof e=="number"&&(e=e.toString());var n=E(this._shape),r=this._parseRanges(e),i=r[0],s=r[1];if(i.length>this._shape.length)throw new Error("Too many indices");var o=typeof t=="number",u=i.length,a=this._array;if(o)var f=t;else{if(!S(s,t.shape()))throw new Error(x(s,t.shape()));var f=t._array}var l=0,c=function(e,t){var r=i[e],s=n[e];if(eu)throw new Error(N(e[a]));if(e[a]=0;n--){f=l.shapeList[n]._seriesIndex;if(t[f]&&!t[f][3]){if(l.shapeList[n]._main){h=l.shapeList[n].style.pointList,o=Math.abs(h[0][0]-h[1][0]),a=Math.abs(h[0][1]-h[1][1]),p=l.shapeList[n]._orient=="horizontal";if(t[f][2]){if(l.shapeList[n].shape=="polygon"){var d=h.length;l.shapeList[n].style.pointList[d-3]=h[d-2],p?l.shapeList[n].style.pointList[d-3][0]=h[d-4][0]:l.shapeList[n].style.pointList[d-3][1]=h[d-4][1],l.shapeList[n].style.pointList[d-2]=h[d-1]}l.shapeList[n].style.pointList.pop(),p?(s=o,u=0):(s=0,u=-a)}else{l.shapeList[n].style.pointList.shift();if(l.shapeList[n].shape=="polygon"){var v=l.shapeList[n].style.pointList.pop();p?v[0]=h[0][0]:v[1]=h[0][1],l.shapeList[n].style.pointList.push(v)}p?(s=-o,u=0):(s=0,u=a)}i.modShape(l.shapeList[n].id,{style:{pointList:l.shapeList[n].style.pointList}},!0)}else{if(t[f][2]&&l.shapeList[n]._dataIndex==c[f].data.length-1){i.delShape(l.shapeList[n].id);continue}if(!t[f][2]&&l.shapeList[n]._dataIndex===0){i.delShape(l.shapeList[n].id);continue}}i.animate(l.shapeList[n].id,"").when(500,{position:[s,u]}).start()}}}function M(){var e=l.query(s,"animationDuration"),t=l.query(s,"animationEasing"),n,r,o,u=0;for(var a=0,f=l.shapeList.length;a 0) {
+ if (magicOption.color && magicOption.color.length > 0) {
_zr.getColor = function(idx) {
- return zrColor.getColor(idx, _option.color);
+ return zrColor.getColor(idx, magicOption.color);
};
}
else {
@@ -25391,8 +25398,8 @@ define('echarts/echarts',['require','./config','zrender/tool/util','zrender','zr
}
// 降低图表内元素拖拽敏感度,单位ms,不建议外部干预
- if (typeof _option.DRAG_ENABLE_TIME == 'undefined') {
- _option.DRAG_ENABLE_TIME = _themeConfig.DRAG_ENABLE_TIME;
+ if (typeof magicOption.DRAG_ENABLE_TIME == 'undefined') {
+ magicOption.DRAG_ENABLE_TIME = _themeConfig.DRAG_ENABLE_TIME;
}
}
@@ -25422,8 +25429,6 @@ define('echarts/echarts',['require','./config','zrender/tool/util','zrender','zr
return;
}
- _mergeGlobalConifg();
-
_optionBackup = zrUtil.clone(_option);
_optionRestore = zrUtil.clone(_option);
@@ -25690,7 +25695,10 @@ define('echarts/echarts',['require','./config','zrender/tool/util','zrender','zr
if (imgType != 'png' && imgType != 'jpeg') {
imgType = 'png';
}
- return _zr.toDataURL('image/' + imgType);
+ var bgColor = _option.backgroundColor
+ && _option.backgroundColor.replace(' ','') == 'rgba(0,0,0,0)'
+ ? '#fff' : _option.backgroundColor;
+ return _zr.toDataURL('image/' + imgType, bgColor);
}
/**
@@ -25818,6 +25826,7 @@ define('echarts/echarts',['require','./config','zrender/tool/util','zrender','zr
_themeConfig.textStyle.fontFamily =
_themeConfig.textStyle.fontFamily2;
}
+
_optionRestore && self.restore();
}
diff --git a/build/echarts-original.js b/build/echarts-original.js
index afe086e5d4..42694daa89 100644
--- a/build/echarts-original.js
+++ b/build/echarts-original.js
@@ -38,7 +38,7 @@ define('echarts/config',[],function() {
COMPONENT_TYPE_AXIS_VALUE: 'valueAxis',
// 全图默认背景
- backgroundColor: 'rgba(0,0,0,0)',
+ // backgroundColor: 'rgba(0,0,0,0)',
// 默认色板
color: ['#ff7f50','#87cefa','#da70d6','#32cd32','#6495ed',
@@ -10878,8 +10878,8 @@ define(
/**
* 图像导出
*/
- self.toDataURL = function(type, args) {
- return painter.toDataURL(type, args);
+ self.toDataURL = function(type, backgroundColor, args) {
+ return painter.toDataURL(type, backgroundColor, args);
};
/**
@@ -11891,7 +11891,7 @@ define(
return _domList['hover'];
}
- function toDataURL(type, args) {
+ function toDataURL(type, backgroundColor, args) {
if (G_vmlCanvasManager) {
return null;
}
@@ -11901,13 +11901,14 @@ define(
_devicePixelRatio != 1
&& ctx.scale(_devicePixelRatio, _devicePixelRatio);
- ctx.fillStyle = '#fff';
+ ctx.fillStyle = backgroundColor || '#fff';
ctx.rect(
0, 0,
_width * _devicePixelRatio,
_height * _devicePixelRatio
);
ctx.fill();
+
//升序遍历,shape上的zlevel指定绘画图层的z轴层叠
storage.iterShape(
function (e) {
@@ -22748,7 +22749,12 @@ define('echarts/component/toolbox',['require','./base','zrender/config','zrender
if (imgType != 'png' && imgType != 'jpeg') {
imgType = 'png';
}
- var image = zr.toDataURL('image/' + imgType);
+ var bgColor = option.backgroundColor
+ && option.backgroundColor.replace(' ','') == 'rgba(0,0,0,0)'
+ ? '#fff' : option.backgroundColor;
+ var image = zr.toDataURL(
+ 'image/' + imgType, bgColor
+ );
var downloadDiv = document.createElement('div');
downloadDiv.id = '__echarts_download_wrap__';
downloadDiv.style.cssText = 'position:fixed;'
@@ -25011,6 +25017,7 @@ define('echarts/echarts',['require','./config','zrender/tool/util','zrender','zr
* 图表渲染
*/
function _render(magicOption) {
+ _mergeGlobalConifg(magicOption);
if (magicOption.backgroundColor) {
if (!_canvasSupported
&& magicOption.backgroundColor.indexOf('rgba') != -1
@@ -25330,58 +25337,58 @@ define('echarts/echarts',['require','./config','zrender/tool/util','zrender','zr
/**
* 非图表全局属性merge~~
*/
- function _mergeGlobalConifg() {
+ function _mergeGlobalConifg(magicOption) {
// 背景
- if (typeof _option.backgroundColor == 'undefined') {
- _option.backgroundColor = _themeConfig.backgroundColor;
+ if (typeof magicOption.backgroundColor == 'undefined') {
+ magicOption.backgroundColor = _themeConfig.backgroundColor;
}
// 拖拽重计算相关
- if (typeof _option.calculable == 'undefined') {
- _option.calculable = _themeConfig.calculable;
+ if (typeof magicOption.calculable == 'undefined') {
+ magicOption.calculable = _themeConfig.calculable;
}
- if (typeof _option.calculableColor == 'undefined') {
- _option.calculableColor = _themeConfig.calculableColor;
+ if (typeof magicOption.calculableColor == 'undefined') {
+ magicOption.calculableColor = _themeConfig.calculableColor;
}
- if (typeof _option.calculableHolderColor == 'undefined') {
- _option.calculableHolderColor = _themeConfig.calculableHolderColor;
+ if (typeof magicOption.calculableHolderColor == 'undefined') {
+ magicOption.calculableHolderColor = _themeConfig.calculableHolderColor;
}
// 孤岛显示连接符
- if (typeof _option.nameConnector == 'undefined') {
- _option.nameConnector = _themeConfig.nameConnector;
+ if (typeof magicOption.nameConnector == 'undefined') {
+ magicOption.nameConnector = _themeConfig.nameConnector;
}
- if (typeof _option.valueConnector == 'undefined') {
- _option.valueConnector = _themeConfig.valueConnector;
+ if (typeof magicOption.valueConnector == 'undefined') {
+ magicOption.valueConnector = _themeConfig.valueConnector;
}
// 动画相关
- if (typeof _option.animation == 'undefined') {
- _option.animation = _themeConfig.animation;
+ if (typeof magicOption.animation == 'undefined') {
+ magicOption.animation = _themeConfig.animation;
}
- if (typeof _option.animationThreshold == 'undefined') {
- _option.animationThreshold = _themeConfig.animationThreshold;
+ if (typeof magicOption.animationThreshold == 'undefined') {
+ magicOption.animationThreshold = _themeConfig.animationThreshold;
}
- if (typeof _option.animationDuration == 'undefined') {
- _option.animationDuration = _themeConfig.animationDuration;
+ if (typeof magicOption.animationDuration == 'undefined') {
+ magicOption.animationDuration = _themeConfig.animationDuration;
}
- if (typeof _option.animationEasing == 'undefined') {
- _option.animationEasing = _themeConfig.animationEasing;
+ if (typeof magicOption.animationEasing == 'undefined') {
+ magicOption.animationEasing = _themeConfig.animationEasing;
}
- if (typeof _option.addDataAnimation == 'undefined') {
- _option.addDataAnimation = _themeConfig.addDataAnimation;
+ if (typeof magicOption.addDataAnimation == 'undefined') {
+ magicOption.addDataAnimation = _themeConfig.addDataAnimation;
}
// 默认标志图形类型列表
- if (typeof _option.symbolList == 'undefined') {
- _option.symbolList = _themeConfig.symbolList;
+ if (typeof magicOption.symbolList == 'undefined') {
+ magicOption.symbolList = _themeConfig.symbolList;
}
var zrColor = require('zrender/tool/color');
// 数值系列的颜色列表,不传则采用内置颜色,可配数组,借用zrender实例注入,会有冲突风险,先这样
- if (_option.color && _option.color.length > 0) {
+ if (magicOption.color && magicOption.color.length > 0) {
_zr.getColor = function(idx) {
- return zrColor.getColor(idx, _option.color);
+ return zrColor.getColor(idx, magicOption.color);
};
}
else {
@@ -25391,8 +25398,8 @@ define('echarts/echarts',['require','./config','zrender/tool/util','zrender','zr
}
// 降低图表内元素拖拽敏感度,单位ms,不建议外部干预
- if (typeof _option.DRAG_ENABLE_TIME == 'undefined') {
- _option.DRAG_ENABLE_TIME = _themeConfig.DRAG_ENABLE_TIME;
+ if (typeof magicOption.DRAG_ENABLE_TIME == 'undefined') {
+ magicOption.DRAG_ENABLE_TIME = _themeConfig.DRAG_ENABLE_TIME;
}
}
@@ -25422,8 +25429,6 @@ define('echarts/echarts',['require','./config','zrender/tool/util','zrender','zr
return;
}
- _mergeGlobalConifg();
-
_optionBackup = zrUtil.clone(_option);
_optionRestore = zrUtil.clone(_option);
@@ -25690,7 +25695,10 @@ define('echarts/echarts',['require','./config','zrender/tool/util','zrender','zr
if (imgType != 'png' && imgType != 'jpeg') {
imgType = 'png';
}
- return _zr.toDataURL('image/' + imgType);
+ var bgColor = _option.backgroundColor
+ && _option.backgroundColor.replace(' ','') == 'rgba(0,0,0,0)'
+ ? '#fff' : _option.backgroundColor;
+ return _zr.toDataURL('image/' + imgType, bgColor);
}
/**
@@ -25818,6 +25826,7 @@ define('echarts/echarts',['require','./config','zrender/tool/util','zrender','zr
_themeConfig.textStyle.fontFamily =
_themeConfig.textStyle.fontFamily2;
}
+
_optionRestore && self.restore();
}
diff --git a/build/echarts-plain-map.js b/build/echarts-plain-map.js
index 633a17468e..70c0b62a97 100644
--- a/build/echarts-plain-map.js
+++ b/build/echarts-plain-map.js
@@ -33,4 +33,4 @@
* https://github.com/ecomfe/echarts/blob/master/LICENSE.txt
*/
-(function(e){var t,n,r;(function(e){function d(e,t){return h.call(e,t)}function v(e,t){var n,r,i,s,o,u,a,f,c,h,p=t&&t.split("/"),d=l.map,v=d&&d["*"]||{};if(e&&e.charAt(0)===".")if(t){p=p.slice(0,p.length-1),e=p.concat(e.split("/"));for(f=0;fo&&(o=a[1])}t[0]=r,t[1]=s,n[0]=i,n[1]=o}function y(e,t,n,r,i,s){var o=b(e[0],t[0],n[0],r[0]),u=b(e[1],t[1],n[1],r[1]);o.push(e[0],r[0]),u.push(e[1],r[1]);var a=Math.min.apply(null,o),f=Math.max.apply(null,o),l=Math.min.apply(null,u),c=Math.max.apply(null,u);i[0]=a,i[1]=l,s[0]=f,s[1]=c}function b(e,t,n,r){var i=[],s=6*n-12*t+6*e,o=9*t+3*r-3*e-9*n,u=3*t-3*e,a=s*s-4*o*u;if(a>0){var f=Math.sqrt(a),l=(-s+f)/(2*o),c=(-s-f)/(2*o);i.push(l,c)}else a===0&&i.push(-s/(2*o));var h=[];for(var p=0;p1?Math.ceil(e):e});if(t.indexOf("hex")>-1)return e=q(e.slice(0,3),function(e){return e=Number(e).toString(16),e.length===1?"0"+e:e}),"#"+e.join("");if(t.indexOf("hs")>-1){var n=q(e.slice(1,3),function(e){return e+"%"});e[1]=n[0],e[2]=n[1]}return t.indexOf("a")>-1?(e.length===3&&e.push(1),e[3]=R(e[3],[0,1]),t+"("+e.slice(0,4).join(",")+")"):t+"("+e.slice(0,3).join(",")+")"}}function w(e){e=_(e),e.indexOf("#")>-1&&(e=x(e));var t=e.replace(/[rgbahsvl%\(\)]/ig,"").split(",");return t=q(t,function(e){return Number(e)}),t}function E(e,t){var n=F(e),r=n[3];return typeof r=="undefined"&&(r=1),e.indexOf("hsb")>-1?n=U(n):e.indexOf("hsl")>-1&&(n=z(n)),t.indexOf("hsb")>-1||t.indexOf("hsv")>-1?n=X(n):t.indexOf("hsl")>-1&&(n=V(n)),n[3]=r,b(n,t)}function S(e){return E(e,"rgba")}function x(e){return E(e,"rgb")}function T(e){return E(e,"hex")}function N(e){return E(e,"hsva")}function C(e){return E(e,"hsv")}function k(e){return E(e,"hsba")}function L(e){return E(e,"hsb")}function A(e){return E(e,"hsla")}function O(e){return E(e,"hsl")}function M(e){for(var t in a)if(T(a[t])===T(e))return t;return null}function _(e){return e=String(e),e=e.replace(/(^\s*)|(\s*$)/g,""),/^[^#]*?$/i.test(e)&&(e=e.replace(/\s/g,"")),e}function D(e){a[e]&&(e=a[e]),e=_(e),e=e.replace(/hsv/i,"hsb");if(/^#[0-9a-f]{3}$/i.test(e)){var t=e.replace("#","").split("");e="#"+t[0]+t[0]+t[1]+t[1]+t[2]+t[2]}return e}function P(e,t){var n=t>0?1:-1;typeof t=="undefined"&&(t=0),t=Math.abs(t)>1?1:Math.abs(t),e=x(e);var r=F(e);for(var i=0;i<3;i++)n===1?r[i]=Math.floor(r[i]*(1-t)):r[i]=Math.floor((255-r[i])*t+r[i]);return"rgb("+r.join(",")+")"}function H(e){var t=F(S(e));return t=q(t,function(e){return 255-e}),b(t,"rgb")}function B(e,t,n){typeof n=="undefined"&&(n=.5),n=1-R(n,[0,1]);var r=n*2-1,i=F(S(e)),s=F(S(t)),o=i[3]-s[3],u=((r*o===-1?r:(r+o)/(1+r*o))+1)/2,a=1-u,f=[];for(var l=0;l<3;l++)f[l]=i[l]*u+s[l]*a;var c=i[3]*n+s[3]*(1-n);return c=Math.max(0,Math.min(1,c)),i[3]===1&&s[3]===1?b(f,"rgb"):(f[3]=c,b(f,"rgba"))}function j(){return T("rgb("+Math.round(Math.random()*256)+","+Math.round(Math.random()*256)+","+Math.round(Math.random()*256)+")")}function F(e){e=D(e);var t=e.match(u);if(t===null)throw new Error("The color format error");var n,r,i=[],s;if(t[2])n=t[2].replace("#","").split(""),s=[n[0]+n[1],n[2]+n[3],n[4]+n[5]],i=q(s,function(e){return R(parseInt(e,16),[0,255])});else if(t[4]){var o=t[4].split(",");r=o[3],s=o.slice(0,3),i=q(s,function(e){return e=Math.floor(e.indexOf("%")>0?parseInt(e,0)*2.55:e),R(e,[0,255])}),typeof r!="undefined"&&i.push(R(parseFloat(r),[0,1]))}else if(t[5]||t[6]){var a=(t[5]||t[6]).split(","),f=parseInt(a[0],0)/360,l=a[1],c=a[2];r=a[3],i=q([l,c],function(e){return R(parseFloat(e)/100,[0,1])}),i.unshift(f),typeof r!="undefined"&&i.push(R(parseFloat(r),[0,1]))}return i}function I(e,t){t===null&&(t=1);var n=F(S(e));return n[3]=R(Number(t).toFixed(4),[0,1]),b(n,"rgba")}function q(e,t){if(typeof t!="function")throw new TypeError;var n=e?e.length:0;for(var r=0;r3){var o=T();e=1;while(o*e-6h.x?1:0),height:h.height-(r>h.y?1:0),lineWidth:1,brushType:"stroke",strokeColor:f.handleColor}},y=t.clone(g),u.shapeList.push(g),u.shapeList.push(y);return}function M(e,t,n){f.zoomLock&&(e=d);var r=e._type=="filler"?c:0;return f.orient=="horizontal"?e.style.x+t-r<=h.x?e.style.x=h.x+r:e.style.x+t+e.style.width+r>=h.x+h.width?e.style.x=h.x+h.width-e.style.width-r:e.style.x+=t:e.style.y+n-r<=h.y?e.style.y=h.y+r:e.style.y+n+e.style.height+r>=h.y+h.height?e.style.y=h.y+h.height-e.style.height-r:e.style.y+=n,e._type=="filler"?_():D(),f.realtime?B():(clearTimeout(b),b=setTimeout(B,200)),!0}function _(){f.orient=="horizontal"?(v.style.x=d.style.x-c,m.style.x=d.style.x+d.style.width,p.start=Math.floor((v.style.x-h.x)/h.width*100),p.end=Math.ceil((m.style.x+c-h.x)/h.width*100)):(v.style.y=d.style.y-c,m.style.y=d.style.y+d.style.height,p.start=Math.floor((v.style.y-h.y)/h.height*100),p.end=Math.ceil((m.style.y+c-h.y)/h.height*100)),r.modShape(v.id,v),r.modShape(m.id,m),P(),r.refresh()}function D(){var e,t;f.orient=="horizontal"?(e=v.style.x,t=m.style.x,d.style.x=Math.min(e,t)+c,d.style.width=Math.abs(e-t)-c,p.start=Math.floor((Math.min(e,t)-h.x)/h.width*100),p.end=Math.ceil((Math.max(e,t)+c-h.x)/h.width*100)):(e=v.style.y,t=m.style.y,d.style.y=Math.min(e,t)+c,d.style.height=Math.abs(e-t)-c,p.start=Math.floor((Math.min(e,t)-h.y)/h.height*100),p.end=Math.ceil((Math.max(e,t)+c-h.y)/h.height*100)),r.modShape(d.id,d),P(),r.refresh()}function P(){f.orient=="horizontal"?(g.style.width=d.style.x-h.x,y.style.x=d.style.x+d.style.width,y.style.width=h.x+h.width-y.style.x):(g.style.height=d.style.y-h.y,y.style.y=d.style.y+d.style.height,y.style.height=h.y+h.height-y.style.y),r.modShape(g.id,g),r.modShape(y.id,y)}function H(){if(!f.show)return;f.orient=="horizontal"?(v.style.x=h.x+p.start/100*h.width,m.style.x=h.x+p.end/100*h.width-c,d.style.x=v.style.x+c,d.style.width=m.style.x-v.style.x-c):(v.style.y=h.y+p.start/100*h.height,m.style.y=h.y+p.end/100*h.height-c,d.style.y=v.style.y+c,d.style.height=m.style.y-v.style.y-c),r.modShape(v.id,v),r.modShape(m.id,m),r.modShape(d.id,d),P(),r.refresh()}function B(e){var r,s,o,u,a;for(var l in E){r=E[l];for(var c in r)a=r[c],u=a.length,s=Math.floor(p.start/100*u),o=Math.ceil(p.end/100*u),i[l][c].type!=t.CHART_TYPE_SCATTER?i[l][c].data=a.slice(s,o):i[l][c].data=j(c,a)}!w&&(f.realtime||e)&&n.dispatch(t.EVENT.DATA_ZOOM,null,{zoom:p}),f.start=p.start,f.end=p.end}function j(e,t){var n=[],r=p.scatterMap[e],i,s,o,u,a;f.orient=="horizontal"?(i=r.x.max-r.x.min,s=p.start/100*i+r.x.min,o=p.end/100*i+r.x.min,i=r.y.max-r.y.min,u=p.start2/100*i+r.y.min,a=p.end2/100*i+r.y.min):(i=r.x.max-r.x.min,s=p.start2/100*i+r.x.min,o=p.end2/100*i+r.x.min,i=r.y.max-r.y.min,u=p.start/100*i+r.y.min,a=p.end/100*i+r.y.min);var l;for(var c=0,h=t.length;c
",o+=ht(v[c][3])+" : "+m.numAddCommas(v[c][2]);T.innerHTML=o}if(u===!1||!i.tooltip.showContent)return;return m.hasAppend||(T.style.left=B/2+"px",T.style.top=H/2+"px",s.firstChild.appendChild(T),m.hasAppend=!0),z(l.getX(D),l.getY(D),a),!0}}function G(){var e=u.get(_,"series"),n=u.get(_,"data"),o=u.get(_,"name"),a=u.get(_,"value"),f=u.get(_,"special"),c=u.get(_,"special2"),h,p,d="",v,g="";_._type!="island"?(i.tooltip.trigger=="item"&&(h=i.tooltip.formatter),m.query(e,"tooltip.trigger")=="item"&&(p=m.query(e,"tooltip.showContent")||p,h=m.query(e,"tooltip.formatter")||h,d+=R(m.query(e,"tooltip"))),p=m.query(n,"tooltip.showContent")||p,h=m.query(n,"tooltip.formatter")||h,d+=R(m.query(n,"tooltip"))):(p=m.deepQuery([n,e,i],"tooltip.showContent"),h=m.deepQuery([n,e,i],"tooltip.islandFormatter"));if(typeof h=="function")P=(e.name||"")+":"+u.get(_,"dataIndex"),T.innerHTML=h([e.name||"",o,a,f,c],P,tt);else if(typeof h=="string")P=NaN,h=h.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}"),h=h.replace("{a0}",ht(e.name||"")).replace("{b0}",ht(o)).replace("{c0}",a instanceof Array?a:m.numAddCommas(a)),h=h.replace("{d}","{d0}").replace("{d0}",f||""),h=h.replace("{e}","{e0}").replace("{e0}",u.get(_,"special2")||""),T.innerHTML=h;else{P=NaN;if(e.type==t.CHART_TYPE_SCATTER)T.innerHTML=(typeof e.name!="undefined"?ht(e.name)+"
":"")+(o===""?"":ht(o)+" : ")+a+(typeof f=="undefined"?"":" ("+f+")");else if(e.type==t.CHART_TYPE_RADAR&&f){v=f,g+=ht(o===""?e.name||"":o),g+=g===""?"":"
";for(var y=0;y
":"")+b+" -> "+w+" ("+m.numAddCommas(a)+")"+"
"+w+" -> "+b+" ("+m.numAddCommas(c)+")"}else T.innerHTML=(typeof e.name!="undefined"?ht(e.name)+"
":"")+ht(o)+" : "+m.numAddCommas(a)+(typeof f=="undefined"?"":" ("+m.numAddCommas(f)+")")}I.invisible||(I.invisible=!0,r.modShape(I.id,I),r.refresh());if(p===!1||!i.tooltip.showContent)return;m.hasAppend||(T.style.left=B/2+"px",T.style.top=H/2+"px",s.firstChild.appendChild(T),m.hasAppend=!0),z(l.getX(D)+20,l.getY(D)-20,d)}function Y(e,t,n,s,o,u){if(e.length>0){var a,f,l=i.tooltip.axisPointer,c=l.type,h=l.lineStyle.color,p=l.lineStyle.width,d=l.lineStyle.type,v=l.areaStyle.size,g=l.areaStyle.color;for(var y=0,w=e.length;y