All Downloads are FREE. Search and download functionalities are using the official Maven repository.

template.js.flot.jquery.flot.threshold.min.js Maven / Gradle / Ivy

There is a newer version: 5.0.4
Show newest version
(function(b){var a={series:{threshold:null}};function c(e){function f(C,v,g,u,B){var A=g.pointsize,E,r,q,w,D,t=b.extend({},v);t.datapoints={points:[],pointsize:A,format:g.format};t.label=null;t.color=B;t.threshold=null;t.originSeries=v;t.data=[];var l=g.points,h=v.lines.show;var n=[];var o=[];var z;for(E=0;E0&&l[E-A]!=null){var j=r+(u-q)*(r-l[E-A])/(q-l[E-A+1]);D.push(j);D.push(u);for(z=2;z0){var k=b.inArray(v,C.getData());C.getData().splice(k+1,0,t)}}function d(i,g,h){if(!g.threshold){return}if(g.threshold instanceof Array){g.threshold.sort(function(k,j){return k.below-j.below});b(g.threshold).each(function(j,k){f(i,g,h,k.below,k.color)})}else{f(i,g,h,g.threshold.below,g.threshold.color)}}e.hooks.processDatapoints.push(d)}b.plot.plugins.push({init:c,options:a,name:"threshold",version:"1.2"})})(jQuery);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy