Sha256: 2f12f28d5da4c2c3141a2987628613f774d55085e06fec037da77a9eaa1d1965

Contents?: true

Size: 910 Bytes

Versions: 62

Compression:

Stored size: 910 Bytes

Contents

(function(B){var A={series:{threshold:null}};function C(D){function E(L,S,M){if(!S.threshold){return }var F=M.pointsize,I,O,N,G,K,H=B.extend({},S);H.datapoints={points:[],pointsize:F};H.label=null;H.color=S.threshold.color;H.threshold=null;H.originSeries=S;H.data=[];var P=S.threshold.below,Q=M.points,R=S.lines.show;threspoints=[];newpoints=[];for(I=0;I<Q.length;I+=F){O=Q[I];N=Q[I+1];K=G;if(N<P){G=threspoints}else{G=newpoints}if(R&&K!=G&&O!=null&&I>0&&Q[I-F]!=null){var J=(O-Q[I-F])/(N-Q[I-F+1])*(P-N)+O;K.push(J);K.push(P);for(m=2;m<F;++m){K.push(Q[I+m])}G.push(null);G.push(null);for(m=2;m<F;++m){G.push(Q[I+m])}G.push(J);G.push(P);for(m=2;m<F;++m){G.push(Q[I+m])}}G.push(O);G.push(N)}M.points=newpoints;H.datapoints.points=threspoints;if(H.datapoints.points.length>0){L.getData().push(H)}}D.hooks.processDatapoints.push(E)}B.plot.plugins.push({init:C,options:A,name:"threshold",version:"1.0"})})(jQuery);

Version data entries

62 entries across 62 versions & 11 rubygems

Version Path
heart-0.0.2 app/assets/javascripts/heart/flot/jquery.flot.threshold.min.js
heart-0.0.1 app/assets/javascripts/heart/flot/jquery.flot.threshold.min.js
heart-0.0.1.pre app/assets/javascripts/heart/flot/jquery.flot.threshold.min.js
ui_alchemy-rails-1.0.12 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
ui_alchemy-rails-1.0.11 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
ui_alchemy-rails-1.0.10 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
ui_alchemy-rails-1.0.9 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
ui_alchemy-rails-1.0.8 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
ui_alchemy-rails-1.0.7 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
ui_alchemy-rails-1.0.6 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
ui_alchemy-rails-1.0.5 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
ui_alchemy-rails-1.0.4 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
alchemy-1.0.3 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
rrd-grapher-1.0.3 lib/rrd-grapher/public/javascripts/flot/jquery.flot.threshold.min.js
alchemy-1.0.2 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
alchemy-1.0.1 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
alchemy-1.0.0 vendor/assets/javascripts/alchemy/jquery/plugins/flot-0.7/jquery.flot.threshold.min.js
maglev-webtools-1.0.2 public/flot/jquery.flot.threshold.min.js
maglev-webtools-1.0.1 public/flot/jquery.flot.threshold.min.js
maglev-webtools-1.0 public/flot/jquery.flot.threshold.min.js