File "jquery.flot.stack.min.js"
Full Path: /home/jlklyejr/public_html/wp-content/test/wp-content/plugins/woocommerce/assets/js/jquery-flot/jquery.flot.stack.min.js
File size: 1.26 KB
MIME-type: text/plain
Charset: utf-8
!function(s){jQuery.plot.plugins.push({init:function(s){s.hooks.processDatapoints.push(function(s,n,t){if(null!=n.stack&&!1!==n.stack){var i=function(s,n){for(var t=null,i=0;i<n.length&&s!=n[i];++i)n[i].stack==s.stack&&(t=n[i]);return t}(n,s.getData());if(i){for(var l,o,e,u,f,p,a,r,h=t.pointsize,c=t.points,g=i.datapoints.pointsize,k=i.datapoints.points,v=[],m=n.lines.show,z=n.bars.horizontal,d=h>2&&(z?t.format[2].x:t.format[2].y),y=m&&n.lines.steps,D=!0,b=z?1:0,j=z?0:1,w=0,x=0;!(w>=c.length);){if(a=v.length,null==c[w]){for(r=0;r<h;++r)v.push(c[w+r]);w+=h}else if(x>=k.length){if(!m)for(r=0;r<h;++r)v.push(c[w+r]);w+=h}else if(null==k[x]){for(r=0;r<h;++r)v.push(null);D=!0,x+=g}else{if(l=c[w+b],o=c[w+j],u=k[x+b],f=k[x+j],p=0,l==u){for(r=0;r<h;++r)v.push(c[w+r]);v[a+j]+=f,p=f,w+=h,x+=g}else if(l>u){if(m&&w>0&&null!=c[w-h]){for(e=o+(c[w-h+j]-o)*(u-l)/(c[w-h+b]-l),v.push(u),v.push(e+f),r=2;r<h;++r)v.push(c[w+r]);p=f}x+=g}else{if(D&&m){w+=h;continue}for(r=0;r<h;++r)v.push(c[w+r]);m&&x>0&&null!=k[x-g]&&(p=f+(k[x-g+j]-f)*(l-u)/(k[x-g+b]-u)),v[a+j]+=p,w+=h}D=!1,a!=v.length&&d&&(v[a+2]+=p)}if(y&&a!=v.length&&a>0&&null!=v[a]&&v[a]!=v[a-h]&&v[a+1]!=v[a-h+1]){for(r=0;r<h;++r)v[a+h+r]=v[a+r];v[a+1]=v[a-h+1]}}t.points=v}}})},options:{series:{stack:null}},name:"stack",version:"1.2"})}();