Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Side by Side Diff: third_party/flot/jquery.flot.threshold.min.js

Issue 10679009: Revision to CPM UI using Flot and JQuery (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Final small fixes Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/flot/jquery.flot.symbol.min.js ('k') | third_party/flot/jquery.min.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 (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;thr espoints=[];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.datapoint s.points=threspoints;if(H.datapoints.points.length>0){L.getData().push(H)}}D.hoo ks.processDatapoints.push(E)}B.plot.plugins.push({init:C,options:A,name:"thresho ld",version:"1.0"})})(jQuery);
OLDNEW
« no previous file with comments | « third_party/flot/jquery.flot.symbol.min.js ('k') | third_party/flot/jquery.min.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698