!function(e){var h,t,m;function V(e,t){if(!t)return e;if(0!==e.indexOf("."))return e;var i=t.split("/"),n=e.split("/"),a=i.length-1,o=n.length,r=0,s=0;e:for(var l=0;l
",i+=this._encodeHTML(c[m].indicator)+" : "+this.numAddCommas(c[m].value);this._tDom.innerHTML=i}if(!1===a||!this.option.tooltip.showContent)return;return this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(n,x.getX(this._event),x.getY(this._event),l),!0}},_showItemTrigger:function(e){if(this._curTarget){var t,i,n,a=b.get(this._curTarget,"series"),o=b.get(this._curTarget,"seriesIndex"),r=b.get(this._curTarget,"data"),s=b.get(this._curTarget,"dataIndex"),l=b.get(this._curTarget,"name"),h=b.get(this._curTarget,"value"),m=b.get(this._curTarget,"special"),V=b.get(this._curTarget,"special2"),U=[r,a,this.option],d="";if("island"!=this._curTarget._type){var p=e?"axis":"item";this.option.tooltip.trigger===p&&(t=this.option.tooltip.formatter,i=this.option.tooltip.position),this.query(a,"tooltip.trigger")===p&&(n=this.query(a,"tooltip.showContent")||n,t=this.query(a,"tooltip.formatter")||t,i=this.query(a,"tooltip.position")||i,d+=this._style(this.query(a,"tooltip"))),n=this.query(r,"tooltip.showContent")||n,t=this.query(r,"tooltip.formatter")||t,i=this.query(r,"tooltip.position")||i,d+=this._style(this.query(r,"tooltip"))}else this._lastItemTriggerId=NaN,n=this.deepQuery(U,"tooltip.showContent"),t=this.deepQuery(U,"tooltip.islandFormatter"),i=this.deepQuery(U,"tooltip.islandPosition");this._lastDataIndex=-1,this._lastSeriesIndex=-1,this._lastItemTriggerId!==this._curTarget.id&&(this._lastItemTriggerId=this._curTarget.id,"function"==typeof t?(this._curTicket=(a.name||"")+":"+s,this._tDom.innerHTML=t.call(this.myChart,{seriesIndex:o,seriesName:a.name||"",series:a,dataIndex:s,data:r,name:l,value:h,percent:m,indicator:m,value2:V,indicator2:V,0:a.name||"",1:l,2:h,3:m,4:V,5:r,6:o,7:s},this._curTicket,this._setContent)):"string"==typeof t?(this._curTicket=NaN,t=(t=(t=(t=t.replace("{a}","{a0}").replace("{b}","{b0}").replace("{c}","{c0}")).replace("{a0}",this._encodeHTML(a.name||"")).replace("{b0}",this._encodeHTML(l)).replace("{c0}",h instanceof Array?h:this.numAddCommas(h))).replace("{d}","{d0}").replace("{d0}",m||"")).replace("{e}","{e0}").replace("{e0}",b.get(this._curTarget,"special2")||""),this._tDom.innerHTML=t):(this._curTicket=NaN,this._tDom.innerHTML=a.type===k.CHART_TYPE_RADAR&&m?this._itemFormatter.radar.call(this,a,l,h,m):a.type===k.CHART_TYPE_EVENTRIVER?this._itemFormatter.eventRiver.call(this,a,l,h,r):(null!=a.name?this._encodeHTML(a.name)+"
":"")+(""===l?"":this._encodeHTML(l)+" : ")+(h instanceof Array?h:this.numAddCommas(h))));var c=x.getX(this._event),u=x.getY(this._event);this.deepQuery(U,"tooltip.axisPointer.show")&&this.component.grid?this._styleAxisPointer([a],this.component.grid.getX(),u,this.component.grid.getXend(),u,0,c,u):this._hide(),!1!==n&&this.option.tooltip.showContent&&(this.hasAppend||(this._tDom.style.left=this._zrWidth/2+"px",this._tDom.style.top=this._zrHeight/2+"px",this.dom.firstChild.appendChild(this._tDom),this.hasAppend=!0),this._show(i,c+20,u-20,d))}},_itemFormatter:{radar:function(e,t,i,n){var a="";a+=this._encodeHTML(""===t?e.name||"":t),a+=""===a?"":"
";for(var o=0;o
":"")+o+" -> "+r+" ("+this.numAddCommas(i)+")
"+r+" -> "+o+" ("+this.numAddCommas(a)+")"},eventRiver:function(e,t,i,n){var a="";a+=this._encodeHTML(""===e.name?"":e.name+" : "),a+=this._encodeHTML(t),a+=""===a?"":"
";for(var o=0,r=(n=n.evolution).length;o'),a+='
",a+='',a+=n[o].detail.text+"