phpservermon/static/plugin/jqplot/jqplot.cursor.min.js

4 lines
17 KiB
JavaScript

/* jqplot 1.0.9 | (c) 2009-2016 Chris Leonello | jplot.com
jsDate | (c) 2010-2016 Chris Leonello
*/
!function(o){function t(t,e,r){var i=r.plugins.cursor,n="",a=!1;if(i.showTooltipGridPosition&&(n=t.x+", "+t.y,a=!0),i.showTooltipUnitPosition)for(var l,d=0;d<i.tooltipAxisGroups.length;d++){if(l=i.tooltipAxisGroups[d],a&&(n+="<br />"),i.useAxesFormatters)for(var c=0;c<l.length;c++)c&&(n+=", "),n+=(0,r.axes[l[c]]._ticks[0].formatter)(r.axes[l[c]]._ticks[0].formatString,e[l[c]]);else n+=o.jqplot.sprintf(i.tooltipFormatString,e[l[0]],e[l[1]]);a=!0}if(i.showTooltipDataPosition){var u=r.series,p=s(r,t.x,t.y);for(a=!1,d=0;d<u.length;d++)if(u[d].show){var m=u[d].index,g=u[d].label.toString(),h=o.inArray(m,p.indices),f=void 0,v=void 0;if(-1!=h){var x=p.data[h].data;if(i.useAxesFormatters){var _=u[d]._xaxis._ticks[0].formatter,w=u[d]._yaxis._ticks[0].formatter,z=u[d]._xaxis._ticks[0].formatString,y=u[d]._yaxis._ticks[0].formatString;f=_(z,x[0]),v=w(y,x[1])}else f=x[0],v=x[1];a&&(n+="<br />"),n+=o.jqplot.sprintf(i.tooltipFormatString,g,f,v),a=!0}}}i._tooltipElem.html(n)}function e(t,e){var r=e.plugins.cursor,i=r.cursorCanvas._ctx;i.clearRect(0,0,i.canvas.width,i.canvas.height),r.showVerticalLine&&r.shapeRenderer.draw(i,[[t.x,0],[t.x,i.canvas.height]]),r.showHorizontalLine&&r.shapeRenderer.draw(i,[[0,t.y],[i.canvas.width,t.y]]);var n=s(e,t.x,t.y);if(r.showCursorLegend)for(var a=o(e.targetId+" td.jqplot-cursor-legend-label"),l=0;l<a.length;l++){var d=o(a[l]).data("seriesIndex"),c=e.series[d],u=c.label.toString(),p=o.inArray(d,n.indices),m=void 0,g=void 0;if(-1!=p){var h=n.data[p].data;if(r.useAxesFormatters){var f=c._xaxis._ticks[0].formatter,v=c._yaxis._ticks[0].formatter,x=c._xaxis._ticks[0].formatString,_=c._yaxis._ticks[0].formatString;m=f(x,h[0]),g=v(_,h[1])}else m=h[0],g=h[1]}e.legend.escapeHtml?o(a[l]).text(o.jqplot.sprintf(r.cursorLegendFormatString,u,m,g)):o(a[l]).html(o.jqplot.sprintf(r.cursorLegendFormatString,u,m,g))}i=null}function s(o,t,e){for(var s,r,i,n={indices:[],data:[]},a=o.plugins.cursor,l=0;l<o.series.length;l++)if((s=o.series[l]).renderer,s.show){i=a.intersectionThreshold,s.showMarker&&(i+=s.markerRenderer.size/2);for(var d=0;d<s.gridData.length;d++)r=s.gridData[d],a.showVerticalLine&&Math.abs(t-r[0])<=i&&(n.indices.push(l),n.data.push({seriesIndex:l,pointIndex:d,gridData:r,data:s.data[d]}))}return n}function r(o,t){var e=t.plugins.cursor,s=e._tooltipElem;switch(e.tooltipLocation){case"nw":var r=o.x+t._gridPadding.left-s.outerWidth(!0)-e.tooltipOffset,i=o.y+t._gridPadding.top-e.tooltipOffset-s.outerHeight(!0);break;case"n":r=o.x+t._gridPadding.left-s.outerWidth(!0)/2,i=o.y+t._gridPadding.top-e.tooltipOffset-s.outerHeight(!0);break;case"ne":r=o.x+t._gridPadding.left+e.tooltipOffset,i=o.y+t._gridPadding.top-e.tooltipOffset-s.outerHeight(!0);break;case"e":r=o.x+t._gridPadding.left+e.tooltipOffset,i=o.y+t._gridPadding.top-s.outerHeight(!0)/2;break;case"se":r=o.x+t._gridPadding.left+e.tooltipOffset,i=o.y+t._gridPadding.top+e.tooltipOffset;break;case"s":r=o.x+t._gridPadding.left-s.outerWidth(!0)/2,i=o.y+t._gridPadding.top+e.tooltipOffset;break;case"sw":r=o.x+t._gridPadding.left-s.outerWidth(!0)-e.tooltipOffset,i=o.y+t._gridPadding.top+e.tooltipOffset;break;case"w":r=o.x+t._gridPadding.left-s.outerWidth(!0)-e.tooltipOffset,i=o.y+t._gridPadding.top-s.outerHeight(!0)/2;break;default:r=o.x+t._gridPadding.left+e.tooltipOffset,i=o.y+t._gridPadding.top+e.tooltipOffset}s.css("left",r),s.css("top",i),s=null}function i(o,t,e,s,r){o.preventDefault(),o.stopImmediatePropagation();var i=r.plugins.cursor;i.clickReset&&i.resetZoom(r,i);var n=window.getSelection;return document.selection&&document.selection.empty?document.selection.empty():n&&!n().isCollapsed&&n().collapse(),!1}function n(o,t,e,s,r){o.preventDefault(),o.stopImmediatePropagation();var i=r.plugins.cursor;i.dblClickReset&&i.resetZoom(r,i);var n=window.getSelection;return document.selection&&document.selection.empty?document.selection.empty():n&&!n().isCollapsed&&n().collapse(),!1}function a(t,e,s,r,i){var n=i.plugins.cursor;if(n.onGrid=!1,n.show){if(o(t.target).css("cursor",n.previousCursor),!n.showTooltip||n._zoom.zooming&&n.showTooltipOutsideZoom&&!n.constrainOutsideZoom||(n._tooltipElem.empty(),n._tooltipElem.hide()),n.zoom&&(n._zoom.gridpos=e,n._zoom.datapos=s),n.showVerticalLine||n.showHorizontalLine){var a=n.cursorCanvas._ctx;a.clearRect(0,0,a.canvas.width,a.canvas.height),a=null}if(n.showCursorLegend)for(var l=o(i.targetId+" td.jqplot-cursor-legend-label"),d=0;d<l.length;d++){var c=o(l[d]).data("seriesIndex"),u=i.series[c].label.toString();i.legend.escapeHtml?o(l[d]).text(o.jqplot.sprintf(n.cursorLegendFormatString,u,void 0,void 0)):o(l[d]).html(o.jqplot.sprintf(n.cursorLegendFormatString,u,void 0,void 0))}}}function l(o,s,i,n,a){var l=a.plugins.cursor;l.onGrid=!0,l.show&&(l.previousCursor=o.target.style.cursor,o.target.style.cursor=l.style,l.showTooltip&&(t(s,i,a),l.followMouse?r(s,a):function(o){var t=o._gridPadding,e=o.plugins.cursor,s=e._tooltipElem;switch(e.tooltipLocation){case"nw":var r=t.left+e.tooltipOffset,i=t.top+e.tooltipOffset;s.css("left",r),s.css("top",i);break;case"n":r=(t.left+(o._plotDimensions.width-t.right))/2-s.outerWidth(!0)/2,i=t.top+e.tooltipOffset,s.css("left",r),s.css("top",i);break;case"ne":r=t.right+e.tooltipOffset,i=t.top+e.tooltipOffset,s.css({right:r,top:i});break;case"e":r=t.right+e.tooltipOffset,i=(t.top+(o._plotDimensions.height-t.bottom))/2-s.outerHeight(!0)/2,s.css({right:r,top:i});break;case"se":r=t.right+e.tooltipOffset,i=t.bottom+e.tooltipOffset,s.css({right:r,bottom:i});break;case"s":r=(t.left+(o._plotDimensions.width-t.right))/2-s.outerWidth(!0)/2,i=t.bottom+e.tooltipOffset,s.css({left:r,bottom:i});break;case"sw":r=t.left+e.tooltipOffset,i=t.bottom+e.tooltipOffset,s.css({left:r,bottom:i});break;case"w":r=t.left+e.tooltipOffset,i=(t.top+(o._plotDimensions.height-t.bottom))/2-s.outerHeight(!0)/2,s.css({left:r,top:i});break;default:r=t.right-e.tooltipOffset,i=t.bottom+e.tooltipOffset,s.css({right:r,bottom:i})}s=null}(a),l._tooltipElem.show()),(l.showVerticalLine||l.showHorizontalLine)&&e(s,a))}function d(o,s,i,n,a){var l=a.plugins.cursor;l.show&&(l.showTooltip&&(t(s,i,a),l.followMouse&&r(s,a)),(l.showVerticalLine||l.showHorizontalLine)&&e(s,a))}function c(o){var e=o.data.plot,s=e.plugins.cursor;if(s.show&&s.zoom&&s._zoom.started&&!s.zoomTarget){o.preventDefault();var i=s.zoomCanvas._ctx,n=function(o){var t,e,s=o.data.plot,r=s.eventCanvas._elem.offset(),i={x:o.pageX-r.left,y:o.pageY-r.top},n={xaxis:null,yaxis:null,x2axis:null,y2axis:null,y3axis:null,y4axis:null,y5axis:null,y6axis:null,y7axis:null,y8axis:null,y9axis:null,yMidAxis:null},a=["xaxis","yaxis","x2axis","y2axis","y3axis","y4axis","y5axis","y6axis","y7axis","y8axis","y9axis","yMidAxis"],l=s.axes;for(t=11;t>0;t--)l[e=a[t-1]].show&&(n[e]=l[e].series_p2u(i[e.charAt(0)]));return{offsets:r,gridPos:i,dataPos:n}}(o),a=n.gridPos,l=n.dataPos;s._zoom.gridpos=a,s._zoom.datapos=l,s._zoom.zooming=!0;var d=a.x,c=a.y,u=i.canvas.height,p=i.canvas.width;s.showTooltip&&!s.onGrid&&s.showTooltipOutsideZoom&&(t(a,l,e),s.followMouse&&r(a,e)),"x"==s.constrainZoomTo?s._zoom.end=[d,u]:"y"==s.constrainZoomTo?s._zoom.end=[p,c]:s._zoom.end=[d,c];var m=window.getSelection;document.selection&&document.selection.empty?document.selection.empty():m&&!m().isCollapsed&&m().collapse(),function(){var o,t,e,s,r=this._zoom.start,i=this._zoom.end,n=this.zoomCanvas._ctx;i[0]>r[0]?(o=r[0],s=i[0]-r[0]):(o=i[0],s=r[0]-i[0]),i[1]>r[1]?(t=r[1],e=i[1]-r[1]):(t=i[1],e=r[1]-i[1]),n.fillStyle="rgba(0,0,0,0.2)",n.strokeStyle="#999999",n.lineWidth=1,n.clearRect(0,0,n.canvas.width,n.canvas.height),n.fillRect(0,0,n.canvas.width,n.canvas.height),n.clearRect(o,t,s,e),n.strokeRect(o,t,s,e),n=null}.call(s),i=null}}function u(t,e,s,r,i){var n=i.plugins.cursor;if(i.plugins.mobile?o(document).one("vmouseup.jqplot_cursor",{plot:i},p):o(document).one("mouseup.jqplot_cursor",{plot:i},p),i.axes,null!=document.onselectstart&&(n._oldHandlers.onselectstart=document.onselectstart,document.onselectstart=function(){return!1}),null!=document.ondrag&&(n._oldHandlers.ondrag=document.ondrag,document.ondrag=function(){return!1}),null!=document.onmousedown&&(n._oldHandlers.onmousedown=document.onmousedown,document.onmousedown=function(){return!1}),n.zoom){if(!n.zoomProxy){var a=n.zoomCanvas._ctx;a.clearRect(0,0,a.canvas.width,a.canvas.height),a=null}for(var l in"x"==n.constrainZoomTo?n._zoom.start=[e.x,0]:"y"==n.constrainZoomTo?n._zoom.start=[0,e.y]:n._zoom.start=[e.x,e.y],n._zoom.started=!0,s)n._zoom.axes.start[l]=s[l];i.plugins.mobile?o(document).bind("vmousemove.jqplotCursor",{plot:i},c):o(document).bind("mousemove.jqplotCursor",{plot:i},c)}}function p(t){var e=t.data.plot,s=e.plugins.cursor;if(s.zoom&&s._zoom.zooming&&!s.zoomTarget){var r=s._zoom.gridpos.x,i=s._zoom.gridpos.y,n=s._zoom.datapos,a=s.zoomCanvas._ctx.canvas.height,l=s.zoomCanvas._ctx.canvas.width,d=e.axes;if(s.constrainOutsideZoom&&!s.onGrid)for(var u in r<0?r=0:r>l&&(r=l),i<0?i=0:i>a&&(i=a),n)n[u]&&("x"==u.charAt(0)?n[u]=d[u].series_p2u(r):n[u]=d[u].series_p2u(i));"x"==s.constrainZoomTo?i=a:"y"==s.constrainZoomTo&&(r=l),s._zoom.end=[r,i],s._zoom.gridpos={x:r,y:i},s.doZoom(s._zoom.gridpos,n,e,s)}s._zoom.started=!1,s._zoom.zooming=!1,o(document).unbind("mousemove.jqplotCursor",c),null!=document.onselectstart&&null!=s._oldHandlers.onselectstart&&(document.onselectstart=s._oldHandlers.onselectstart,s._oldHandlers.onselectstart=null),null!=document.ondrag&&null!=s._oldHandlers.ondrag&&(document.ondrag=s._oldHandlers.ondrag,s._oldHandlers.ondrag=null),null!=document.onmousedown&&null!=s._oldHandlers.onmousedown&&(document.onmousedown=s._oldHandlers.onmousedown,s._oldHandlers.onmousedown=null)}o.jqplot.Cursor=function(t){this.style="crosshair",this.previousCursor="auto",this.show=o.jqplot.config.enablePlugins,this.showTooltip=!0,this.followMouse=!1,this.tooltipLocation="se",this.tooltipOffset=6,this.showTooltipGridPosition=!1,this.showTooltipUnitPosition=!0,this.showTooltipDataPosition=!1,this.tooltipFormatString="%.4P, %.4P",this.useAxesFormatters=!0,this.tooltipAxisGroups=[],this.zoom=!1,this.zoomProxy=!1,this.zoomTarget=!1,this.looseZoom=!0,this.clickReset=!1,this.dblClickReset=!0,this.showVerticalLine=!1,this.showHorizontalLine=!1,this.constrainZoomTo="none",this.shapeRenderer=new o.jqplot.ShapeRenderer,this._zoom={start:[],end:[],started:!1,zooming:!1,isZoomed:!1,axes:{start:{},end:{}},gridpos:{},datapos:{}},this._tooltipElem,this.zoomCanvas,this.cursorCanvas,this.intersectionThreshold=2,this.showCursorLegend=!1,this.cursorLegendFormatString=o.jqplot.Cursor.cursorLegendFormatString,this._oldHandlers={onselectstart:null,ondrag:null,onmousedown:null},this.constrainOutsideZoom=!0,this.showTooltipOutsideZoom=!1,this.onGrid=!1,o.extend(!0,this,t)},o.jqplot.Cursor.cursorLegendFormatString="%s x:%s, y:%s",o.jqplot.Cursor.init=function(t,e,s){var r=s||{};this.plugins.cursor=new o.jqplot.Cursor(r.cursor);var c=this.plugins.cursor;c.show&&(o.jqplot.eventListenerHooks.push(["jqplotMouseEnter",l]),o.jqplot.eventListenerHooks.push(["jqplotMouseLeave",a]),o.jqplot.eventListenerHooks.push(["jqplotMouseMove",d]),c.showCursorLegend&&(s.legend=s.legend||{},s.legend.renderer=o.jqplot.CursorLegendRenderer,s.legend.formatString=this.plugins.cursor.cursorLegendFormatString,s.legend.show=!0),c.zoom&&(o.jqplot.eventListenerHooks.push(["jqplotMouseDown",u]),c.clickReset&&o.jqplot.eventListenerHooks.push(["jqplotClick",i]),c.dblClickReset&&o.jqplot.eventListenerHooks.push(["jqplotDblClick",n])),this.resetZoom=function(){var o=this.axes;if(c.zoomProxy){var t=this.plugins.cursor.zoomCanvas._ctx;t.clearRect(0,0,t.canvas.width,t.canvas.height),t=null}else{for(var e in o)o[e].reset(),o[e]._ticks=[],void 0!==c._zoom.axes[e]&&(o[e]._autoFormatString=c._zoom.axes[e].tickFormatString);this.redraw()}this.plugins.cursor._zoom.isZoomed=!1,this.target.trigger("jqplotResetZoom",[this,this.plugins.cursor])},c.showTooltipDataPosition&&(c.showTooltipUnitPosition=!1,c.showTooltipGridPosition=!1,null==r.cursor.tooltipFormatString&&(c.tooltipFormatString=o.jqplot.Cursor.cursorLegendFormatString)))},o.jqplot.Cursor.postDraw=function(){var t=this.plugins.cursor;t.zoomCanvas&&(t.zoomCanvas.resetCanvas(),t.zoomCanvas=null),t.cursorCanvas&&(t.cursorCanvas.resetCanvas(),t.cursorCanvas=null),t._tooltipElem&&(t._tooltipElem.emptyForce(),t._tooltipElem=null),t.zoom&&(t.zoomCanvas=new o.jqplot.GenericCanvas,this.eventCanvas._elem.before(t.zoomCanvas.createElement(this._gridPadding,"jqplot-zoom-canvas",this._plotDimensions,this)),t.zoomCanvas.setContext());var e=document.createElement("div");if(t._tooltipElem=o(e),e=null,t._tooltipElem.addClass("jqplot-cursor-tooltip"),t._tooltipElem.css({position:"absolute",display:"none"}),t.zoomCanvas?t.zoomCanvas._elem.before(t._tooltipElem):this.eventCanvas._elem.before(t._tooltipElem),(t.showVerticalLine||t.showHorizontalLine)&&(t.cursorCanvas=new o.jqplot.GenericCanvas,this.eventCanvas._elem.before(t.cursorCanvas.createElement(this._gridPadding,"jqplot-cursor-canvas",this._plotDimensions,this)),t.cursorCanvas.setContext()),t.showTooltipUnitPosition&&0===t.tooltipAxisGroups.length){for(var s,r=this.series,i=[],n=0;n<r.length;n++){var a=(s=r[n]).xaxis+","+s.yaxis;-1==o.inArray(a,i)&&i.push(a)}for(n=0;n<i.length;n++)t.tooltipAxisGroups.push(i[n].split(","))}},o.jqplot.Cursor.zoomProxy=function(o,t){var e=o.plugins.cursor,s=t.plugins.cursor;e.zoomTarget=!0,e.zoom=!0,e.style="auto",e.dblClickReset=!1,s.zoom=!0,s.zoomProxy=!0,t.target.bind("jqplotZoom",function(t,s,r,i,n){e.doZoom(s,r,o,n)}),t.target.bind("jqplotResetZoom",function(t,e,s){o.resetZoom()})},o.jqplot.Cursor.prototype.resetZoom=function(o,t){var e=o.axes,s=t._zoom.axes;if(!o.plugins.cursor.zoomProxy&&t._zoom.isZoomed){for(var r in e)e[r].reset(),e[r]._ticks=[],e[r]._autoFormatString=s[r].tickFormatString;o.redraw(),t._zoom.isZoomed=!1}else{var i=t.zoomCanvas._ctx;i.clearRect(0,0,i.canvas.width,i.canvas.height),i=null}o.target.trigger("jqplotResetZoom",[o,t])},o.jqplot.Cursor.resetZoom=function(o){o.resetZoom()},o.jqplot.Cursor.prototype.doZoom=function(t,e,s,r){var i,n,a,l,d,c,u=r,p=s.axes,m=u._zoom.axes,g=m.start,h=(m.end,s.plugins.cursor.zoomCanvas._ctx);if("none"==u.constrainZoomTo&&Math.abs(t.x-u._zoom.start[0])>6&&Math.abs(t.y-u._zoom.start[1])>6||"x"==u.constrainZoomTo&&Math.abs(t.x-u._zoom.start[0])>6||"y"==u.constrainZoomTo&&Math.abs(t.y-u._zoom.start[1])>6){if(!s.plugins.cursor.zoomProxy){for(var f in e)null==u._zoom.axes[f]&&(u._zoom.axes[f]={},u._zoom.axes[f].numberTicks=p[f].numberTicks,u._zoom.axes[f].tickInterval=p[f].tickInterval,u._zoom.axes[f].daTickInterval=p[f].daTickInterval,u._zoom.axes[f].min=p[f].min,u._zoom.axes[f].max=p[f].max,u._zoom.axes[f].tickFormatString=null!=p[f].tickOptions?p[f].tickOptions.formatString:""),("none"==u.constrainZoomTo||"x"==u.constrainZoomTo&&"x"==f.charAt(0)||"y"==u.constrainZoomTo&&"y"==f.charAt(0))&&null!=(i=e[f])&&(i>g[f]?(n=g[f],a=i):(g[f],n=i,a=g[f]),d=null,(l=p[f]).alignTicks&&("x2axis"===l.name&&s.axes.xaxis.show?d=s.axes.xaxis.numberTicks:"y"===l.name.charAt(0)&&"yaxis"!==l.name&&"yMidAxis"!==l.name&&s.axes.yaxis.show&&(d=s.axes.yaxis.numberTicks)),!this.looseZoom||p[f].renderer.constructor!==o.jqplot.LinearAxisRenderer&&p[f].renderer.constructor!==o.jqplot.LogAxisRenderer?(p[f].min=n,p[f].max=a,p[f].tickInterval=null,p[f].numberTicks=null,p[f].daTickInterval=null):(c=o.jqplot.LinearTickGenerator(n,a,l._scalefact,d),p[f].tickInset&&c[0]<p[f].min+p[f].tickInset*p[f].tickInterval&&(c[0]+=c[4],c[2]-=1),p[f].tickInset&&c[1]>p[f].max-p[f].tickInset*p[f].tickInterval&&(c[1]-=c[4],c[2]-=1),p[f].renderer.constructor===o.jqplot.LogAxisRenderer&&c[0]<p[f].min&&(c[0]+=c[4],c[2]-=1),p[f].min=c[0],p[f].max=c[1],p[f]._autoFormatString=c[3],p[f].numberTicks=c[2],p[f].tickInterval=c[4],p[f].daTickInterval=[c[4]/1e3,"seconds"]),p[f]._ticks=[]);h.clearRect(0,0,h.canvas.width,h.canvas.height),s.redraw(),u._zoom.isZoomed=!0,h=null}s.target.trigger("jqplotZoom",[t,e,s,r])}},o.jqplot.preInitHooks.push(o.jqplot.Cursor.init),o.jqplot.postDrawHooks.push(o.jqplot.Cursor.postDraw),o.jqplot.CursorLegendRenderer=function(t){o.jqplot.TableLegendRenderer.call(this,t),this.formatString="%s"},o.jqplot.CursorLegendRenderer.prototype=new o.jqplot.TableLegendRenderer,o.jqplot.CursorLegendRenderer.prototype.constructor=o.jqplot.CursorLegendRenderer,o.jqplot.CursorLegendRenderer.prototype.draw=function(){if(this._elem&&(this._elem.emptyForce(),this._elem=null),this.show){var t,e=this._series,s=document.createElement("table");this._elem=o(s),s=null,this._elem.addClass("jqplot-legend jqplot-cursor-legend"),this._elem.css("position","absolute");for(var r=!1,i=0;i<e.length;i++)if((t=e[i]).show&&t.showLabel){var n=o.jqplot.sprintf(this.formatString,t.label.toString());if(n){var a=t.color;t._stack&&!t.fill&&(a=""),c.call(this,n,a,r,i),r=!0}for(var l=0;l<o.jqplot.addLegendRowHooks.length;l++){var d=o.jqplot.addLegendRowHooks[l].call(this,t);d&&(c.call(this,d.label,d.color,r),r=!0)}}e=t=null,delete e,delete t}function c(t,e,s,r){var i=s?this.rowSpacing:"0",n=o('<tr class="jqplot-legend jqplot-cursor-legend"></tr>').appendTo(this._elem);n.data("seriesIndex",r),o('<td class="jqplot-legend jqplot-cursor-legend-swatch" style="padding-top:'+i+';"><div style="border:1px solid #cccccc;padding:0.2em;"><div class="jqplot-cursor-legend-swatch" style="background-color:'+e+';"></div></div></td>').appendTo(n);var a=o('<td class="jqplot-legend jqplot-cursor-legend-label" style="vertical-align:middle;padding-top:'+i+';"></td>');a.appendTo(n),a.data("seriesIndex",r),this.escapeHtml?a.text(t):a.html(t),n=null,a=null}return this._elem}}(jQuery);