芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/breadwinnerv2/assets/js/scripts/charts/flot/line/tracking.min.js
$(window).on("load",function(){function a(){n=null;var a=e,t=plot.getAxes();if(!(a.x
t.xaxis.max||a.y
t.yaxis.max)){var i,l,r=plot.getData();for(i=0;i
a.x);++l);var x,c=s.data[l-1],d=s.data[l];x=null==c?d[1]:null==d?c[1]:c[1]+(d[1]-c[1])*(a.x-c[0])/(d[0]-c[0]),o.eq(i).text(s.label.replace(/=.*/,"= "+x.toFixed(2)))}}}for(var t=[],i=[],l=0;l<14;l+=.1)t.push([l,Math.sin(l)]),i.push([l,Math.cos(l)]);plot=$.plot("#tracking",[{data:t,label:"sin(x) = -0.00"},{data:i,label:"cos(x) = -0.00"}],{series:{lines:{show:!0}},crosshair:{mode:"x"},grid:{borderWidth:1,borderColor:"transparent",color:"#999",minBorderMargin:20,labelMargin:10,margin:{top:8,bottom:20,left:20},hoverable:!0,autoHighlight:!1},xaxis:{tickLength:0,tickDecimals:0},yaxis:{min:-1.2,max:1.2},colors:["#00bfc7","#E91E63"]});var o=$("#tracking .legendLabel");o.each(function(){$(this).css("width",$(this).width())});var n=null,e=null;$("#tracking").bind("plothover",function(t,i,l){e=i,n||(n=setTimeout(a,50))})});