Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pivottable

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pivottable - npm Package Compare versions

Comparing version 2.0.2 to 2.1.0

dist/pivot.da.js

2

bower.json
{
"name": "pivottable",
"description": "Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop",
"version": "2.0.2",
"version": "2.1.0",
"main": [

@@ -6,0 +6,0 @@ "dist/pivot.js",

@@ -16,5 +16,5 @@ ## Issues

* Multiple small pull requests which aim to solve clearly-stated problems are preferable to large pull requests which make many unrelated changes
* The code for this project is written in CoffeeScript and thereafter compiled to Javascript, so it would be best to submit modifications to the CoffeeScript source files rather than to the automatically-generated Javascript source files (please reach out if you've made some neat modifications to the Javascript and want help 'porting' back up to the CoffeeScript version). The easy way to work with this is to leave a `coffee -w -o dist -c *coffee` command running in a terminal, which auto-compiles from CoffeeScript into the `dist` directory as you make changes so that the examples in the `examples` directory will work.
* Releases for this project are built using the Gulp build system, and the resulting build products (located under `dist`) are tested with the Jasmine test suite under `tests`. See the building/test section of the main ReadMe for details.
* The code for this project is written in CoffeeScript and thereafter compiled to Javascript, so it would be best to submit modifications to the CoffeeScript source files rather than to the automatically-generated Javascript source files (please reach out if you've made some neat modifications to the Javascript and want help 'porting' back up to the CoffeeScript version).
* Releases for this project are built using the Gulp build system, and the resulting build products (located under `dist`) are tested with the Jasmine test suite under `tests`. See the building/test section of the main [ReadMe](https://github.com/nicolaskruchten/pivottable/blob/master/ReadMe.md) for details.
* The aim of this project is to have an extensible core component that fits into a single smallish file ([pivot.coffee](https://github.com/nicolaskruchten/pivottable/blob/master/pivot.coffee)), which depends only on the jQuery and jQueryUI core. If you want to submit changes which depend on other libraries, please submit them as separate 'plugin' files like the Google Chart or D3 renderers.
* This is a cross-browser, client-side library with very little (if any) browser-specific shim code, so please try to submit modifications that work with as many browsers as possible and which don't require any server-side components

@@ -174,3 +174,3 @@ (function() {

};
$.extend(params, opts.c3);
$.extend(true, params, opts.c3);
if (chartOpts.type === "scatter") {

@@ -177,0 +177,0 @@ xs = {};

@@ -1,2 +0,2 @@

(function(){var t;(t=function(t){return"object"==typeof exports&&"object"==typeof module?t(require("jquery"),require("c3")):"function"==typeof define&&define.amd?define(["jquery","c3"],t):t(jQuery,c3)})(function(t,e){var n;return n=function(n){return null==n&&(n={}),function(r,a){var l,o,i,s,c,u,g,p,h,d,f,y,v,x,b,j,m,w,A,S,k,C,q,z,F,N,_,B,K,T,H,L,P,Q,R,U,W,D,E,G,I,J,M,O,V,X,Y,Z,$,tt,et,nt;if(v={localeStrings:{vs:"vs",by:"by"},c3:{}},a=t.extend(!0,v,a),null==(i=a.c3).size&&(i.size={}),null==(s=a.c3.size).width&&(s.width=window.innerWidth/1.4),null==(c=a.c3.size).height&&(c.height=window.innerHeight/1.4-50),null==n.type&&(n.type="line"),J=r.getRowKeys(),0===J.length&&J.push([]),d=r.getColKeys(),0===d.length&&d.push([]),w=function(){var t,e,n;for(n=[],t=0,e=d.length;e>t;t++)j=d[t],n.push(j.join("-"));return n}(),D=0,x=r.aggregatorName,r.valAttrs.length&&(x+="("+r.valAttrs.join(", ")+")"),"scatter"===n.type)for(O={x:{},y:{},t:{}},o=r.rowAttrs.concat(r.colAttrs),Z=null!=(L=o[0])?L:"",m=null!=(P=o[1])?P:"",b=o.slice(2).join("-"),Y=Z,""!==m&&(Y+=" "+a.localeStrings.vs+" "+m),""!==b&&(Y+=" "+a.localeStrings.by+" "+b),A=0,q=J.length;q>A;A++)for(I=J[A],S=0,z=d.length;z>S;S++)h=d[S],l=r.getAggregator(I,h),null!=l.value()&&(tt=I.concat(h),V=tt.slice(2).join("-"),""===V&&(V="series"),null==(u=O.x)[V]&&(u[V]=[]),null==(g=O.y)[V]&&(g[V]=[]),null==(p=O.t)[V]&&(p[V]=[]),O.y[V].push(null!=(Q=tt[0])?Q:0),O.x[V].push(null!=(R=tt[1])?R:0),O.t[V].push(l.format(l.value())));else{for(K=0,k=0,F=w.length;F>k;k++)et=w[k],K+=et.length;for(K>50&&(D=45),f=[],C=0,N=J.length;N>C;C++){for(I=J[C],G=I.join("-"),E=[""===G?r.aggregatorName:G],B=0,_=d.length;_>B;B++)h=d[B],$=parseFloat(r.getAggregator(I,h).value()),isFinite($)?1>$?E.push($.toPrecision(3)):E.push($.toFixed(3)):E.push(null);f.push(E)}Z=r.aggregatorName+(r.valAttrs.length?"("+r.valAttrs.join(", ")+")":""),m=r.colAttrs.join("-"),Y=x,""!==m&&(Y+=" "+a.localeStrings.vs+" "+m),b=r.rowAttrs.join("-"),""!==b&&(Y+=" "+a.localeStrings.by+" "+b)}if(X=t("<p>",{style:"text-align: center; font-weight: bold"}),X.text(Y),H={axis:{y:{label:Z},x:{label:m,tick:{rotate:D,multiline:!1}}},data:{type:n.type},tooltip:{grouped:!1},color:{pattern:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac"]}},t.extend(H,a.c3),"scatter"===n.type){nt={},T=0,y=[];for(M in O.x)T+=1,nt[M]=M+"_x",y.push([M+"_x"].concat(O.x[M])),y.push([M].concat(O.y[M]));H.data.xs=nt,H.data.columns=y,H.axis.x.tick={fit:!1},1===T&&(H.legend={show:!1}),H.tooltip.format={title:function(){return x},name:function(){return""},value:function(t,e,n,r){return O.t[n][r]}}}else H.axis.x.type="category",H.axis.x.categories=w,H.data.columns=f;return null!=n.stacked&&(H.data.groups=[function(){var t,e,n;for(n=[],e=0,t=J.length;t>e;e++)et=J[e],n.push(et.join("-"));return n}()]),U=t("<div>",{style:"display:none;"}).appendTo(t("body")),W=t("<div>").appendTo(U),H.bindto=W[0],e.generate(H),W.detach(),U.remove(),t("<div>").append(X,W)}},t.pivotUtilities.c3_renderers={"Line Chart":n(),"Bar Chart":n({type:"bar"}),"Stacked Bar Chart":n({type:"bar",stacked:!0}),"Area Chart":n({type:"area",stacked:!0}),"Scatter Chart":n({type:"scatter"})}})}).call(this);
(function(){var t;(t=function(t){return"object"==typeof exports&&"object"==typeof module?t(require("jquery"),require("c3")):"function"==typeof define&&define.amd?define(["jquery","c3"],t):t(jQuery,c3)})(function(t,e){var n;return n=function(n){return null==n&&(n={}),function(r,a){var l,o,i,s,c,u,g,p,h,d,f,y,v,x,b,j,m,w,A,S,k,C,q,z,F,N,_,B,K,T,H,L,P,Q,R,U,W,D,E,G,I,J,M,O,V,X,Y,Z,$,tt,et,nt;if(v={localeStrings:{vs:"vs",by:"by"},c3:{}},a=t.extend(!0,v,a),null==(i=a.c3).size&&(i.size={}),null==(s=a.c3.size).width&&(s.width=window.innerWidth/1.4),null==(c=a.c3.size).height&&(c.height=window.innerHeight/1.4-50),null==n.type&&(n.type="line"),J=r.getRowKeys(),0===J.length&&J.push([]),d=r.getColKeys(),0===d.length&&d.push([]),w=function(){var t,e,n;for(n=[],t=0,e=d.length;e>t;t++)j=d[t],n.push(j.join("-"));return n}(),D=0,x=r.aggregatorName,r.valAttrs.length&&(x+="("+r.valAttrs.join(", ")+")"),"scatter"===n.type)for(O={x:{},y:{},t:{}},o=r.rowAttrs.concat(r.colAttrs),Z=null!=(L=o[0])?L:"",m=null!=(P=o[1])?P:"",b=o.slice(2).join("-"),Y=Z,""!==m&&(Y+=" "+a.localeStrings.vs+" "+m),""!==b&&(Y+=" "+a.localeStrings.by+" "+b),A=0,q=J.length;q>A;A++)for(I=J[A],S=0,z=d.length;z>S;S++)h=d[S],l=r.getAggregator(I,h),null!=l.value()&&(tt=I.concat(h),V=tt.slice(2).join("-"),""===V&&(V="series"),null==(u=O.x)[V]&&(u[V]=[]),null==(g=O.y)[V]&&(g[V]=[]),null==(p=O.t)[V]&&(p[V]=[]),O.y[V].push(null!=(Q=tt[0])?Q:0),O.x[V].push(null!=(R=tt[1])?R:0),O.t[V].push(l.format(l.value())));else{for(K=0,k=0,F=w.length;F>k;k++)et=w[k],K+=et.length;for(K>50&&(D=45),f=[],C=0,N=J.length;N>C;C++){for(I=J[C],G=I.join("-"),E=[""===G?r.aggregatorName:G],B=0,_=d.length;_>B;B++)h=d[B],$=parseFloat(r.getAggregator(I,h).value()),isFinite($)?1>$?E.push($.toPrecision(3)):E.push($.toFixed(3)):E.push(null);f.push(E)}Z=r.aggregatorName+(r.valAttrs.length?"("+r.valAttrs.join(", ")+")":""),m=r.colAttrs.join("-"),Y=x,""!==m&&(Y+=" "+a.localeStrings.vs+" "+m),b=r.rowAttrs.join("-"),""!==b&&(Y+=" "+a.localeStrings.by+" "+b)}if(X=t("<p>",{style:"text-align: center; font-weight: bold"}),X.text(Y),H={axis:{y:{label:Z},x:{label:m,tick:{rotate:D,multiline:!1}}},data:{type:n.type},tooltip:{grouped:!1},color:{pattern:["#3366cc","#dc3912","#ff9900","#109618","#990099","#0099c6","#dd4477","#66aa00","#b82e2e","#316395","#994499","#22aa99","#aaaa11","#6633cc","#e67300","#8b0707","#651067","#329262","#5574a6","#3b3eac"]}},t.extend(!0,H,a.c3),"scatter"===n.type){nt={},T=0,y=[];for(M in O.x)T+=1,nt[M]=M+"_x",y.push([M+"_x"].concat(O.x[M])),y.push([M].concat(O.y[M]));H.data.xs=nt,H.data.columns=y,H.axis.x.tick={fit:!1},1===T&&(H.legend={show:!1}),H.tooltip.format={title:function(){return x},name:function(){return""},value:function(t,e,n,r){return O.t[n][r]}}}else H.axis.x.type="category",H.axis.x.categories=w,H.data.columns=f;return null!=n.stacked&&(H.data.groups=[function(){var t,e,n;for(n=[],e=0,t=J.length;t>e;e++)et=J[e],n.push(et.join("-"));return n}()]),U=t("<div>",{style:"display:none;"}).appendTo(t("body")),W=t("<div>").appendTo(U),H.bindto=W[0],e.generate(H),W.detach(),U.remove(),t("<div>").append(X,W)}},t.pivotUtilities.c3_renderers={"Line Chart":n(),"Bar Chart":n({type:"bar"}),"Stacked Bar Chart":n({type:"bar",stacked:!0}),"Area Chart":n({type:"area",stacked:!0}),"Scatter Chart":n({type:"scatter"})}})}).call(this);
//# sourceMappingURL=c3_renderers.min.js.map

@@ -36,5 +36,5 @@ (function() {

localeStrings: {
renderError: "Ocurri&oacute; un error durante la interpretaci&oacute;n de la tabla din&acute;mica.",
computeError: "Ocurri&oacute; un error durante el c&acute;lculo de la tabla din&acute;mica.",
uiRenderError: "Ocurri&oacute; un error durante el dibujado de la tabla din&acute;mica.",
renderError: "Ocurrió un error durante la interpretación de la tabla dinámica.",
computeError: "Ocurrió un error durante el cálculo de la tabla dinámica.",
uiRenderError: "Ocurrió un error durante el dibujado de la tabla dinámica.",
selectAll: "Seleccionar todo",

@@ -50,4 +50,4 @@ selectNone: "Deseleccionar todo",

"Cuenta": tpl.count(frFmtInt),
"Cuenta de valores &uacute;nicos": tpl.countUnique(frFmtInt),
"Lista de valores &uacute;nicos": tpl.listUnique(", "),
"Cuenta de valores únicos": tpl.countUnique(frFmtInt),
"Lista de valores únicos": tpl.listUnique(", "),
"Suma": tpl.sum(frFmt),

@@ -61,8 +61,8 @@ "Suma de enteros": tpl.sum(frFmtInt),

"Cota 80% inferior": tpl.sumOverSumBound80(false, frFmt),
"Proporci&oacute;n del total (suma)": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
"Proporci&oacute;n de la fila (suma)": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
"Proporci&oacute;n de la columna (suma)": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
"Proporci&oacute;n del total (cuenta)": tpl.fractionOf(tpl.count(), "total", frFmtPct),
"Proporci&oacute;n de la fila (cuenta)": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Proporci&oacute;n de la columna (cuenta)": tpl.fractionOf(tpl.count(), "col", frFmtPct)
"Proporción del total (suma)": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
"Proporción de la fila (suma)": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
"Proporción de la columna (suma)": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
"Proporción del total (cuenta)": tpl.fractionOf(tpl.count(), "total", frFmtPct),
"Proporción de la fila (cuenta)": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Proporción de la columna (cuenta)": tpl.fractionOf(tpl.count(), "col", frFmtPct)
},

@@ -69,0 +69,0 @@ renderers: {

@@ -1,2 +0,2 @@

(function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var a,t,r,o,i;return o=e.pivotUtilities.numberFormat,i=e.pivotUtilities.aggregatorTemplates,a=o({thousandsSep:" ",decimalSep:","}),t=o({digitsAfterDecimal:0,thousandsSep:" ",decimalSep:","}),r=o({digitsAfterDecimal:1,scaler:100,suffix:"%",thousandsSep:" ",decimalSep:","}),e.pivotUtilities.locales.es={localeStrings:{renderError:"Ocurri&oacute; un error durante la interpretaci&oacute;n de la tabla din&acute;mica.",computeError:"Ocurri&oacute; un error durante el c&acute;lculo de la tabla din&acute;mica.",uiRenderError:"Ocurri&oacute; un error durante el dibujado de la tabla din&acute;mica.",selectAll:"Seleccionar todo",selectNone:"Deseleccionar todo",tooMany:"(demasiados valores)",filterResults:"Filtrar resultados",totals:"Totales",vs:"vs",by:"por"},aggregators:{Cuenta:i.count(t),"Cuenta de valores &uacute;nicos":i.countUnique(t),"Lista de valores &uacute;nicos":i.listUnique(", "),Suma:i.sum(a),"Suma de enteros":i.sum(t),Promedio:i.average(a),"Mínimo":i.min(a),"Máximo":i.max(a),"Suma de sumas":i.sumOverSum(a),"Cota 80% superior":i.sumOverSumBound80(!0,a),"Cota 80% inferior":i.sumOverSumBound80(!1,a),"Proporci&oacute;n del total (suma)":i.fractionOf(i.sum(),"total",r),"Proporci&oacute;n de la fila (suma)":i.fractionOf(i.sum(),"row",r),"Proporci&oacute;n de la columna (suma)":i.fractionOf(i.sum(),"col",r),"Proporci&oacute;n del total (cuenta)":i.fractionOf(i.count(),"total",r),"Proporci&oacute;n de la fila (cuenta)":i.fractionOf(i.count(),"row",r),"Proporci&oacute;n de la columna (cuenta)":i.fractionOf(i.count(),"col",r)},renderers:{Tabla:e.pivotUtilities.renderers.Table,"Tabla con barras":e.pivotUtilities.renderers["Table Barchart"],Heatmap:e.pivotUtilities.renderers.Heatmap,"Heatmap por filas":e.pivotUtilities.renderers["Row Heatmap"],"Heatmap por columnas":e.pivotUtilities.renderers["Col Heatmap"]}}})}).call(this);
(function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var r,a,t,o,i;return o=e.pivotUtilities.numberFormat,i=e.pivotUtilities.aggregatorTemplates,r=o({thousandsSep:" ",decimalSep:","}),a=o({digitsAfterDecimal:0,thousandsSep:" ",decimalSep:","}),t=o({digitsAfterDecimal:1,scaler:100,suffix:"%",thousandsSep:" ",decimalSep:","}),e.pivotUtilities.locales.es={localeStrings:{renderError:"Ocurrió un error durante la interpretación de la tabla dinámica.",computeError:"Ocurrió un error durante el cálculo de la tabla dinámica.",uiRenderError:"Ocurrió un error durante el dibujado de la tabla dinámica.",selectAll:"Seleccionar todo",selectNone:"Deseleccionar todo",tooMany:"(demasiados valores)",filterResults:"Filtrar resultados",totals:"Totales",vs:"vs",by:"por"},aggregators:{Cuenta:i.count(a),"Cuenta de valores únicos":i.countUnique(a),"Lista de valores únicos":i.listUnique(", "),Suma:i.sum(r),"Suma de enteros":i.sum(a),Promedio:i.average(r),"Mínimo":i.min(r),"Máximo":i.max(r),"Suma de sumas":i.sumOverSum(r),"Cota 80% superior":i.sumOverSumBound80(!0,r),"Cota 80% inferior":i.sumOverSumBound80(!1,r),"Proporción del total (suma)":i.fractionOf(i.sum(),"total",t),"Proporción de la fila (suma)":i.fractionOf(i.sum(),"row",t),"Proporción de la columna (suma)":i.fractionOf(i.sum(),"col",t),"Proporción del total (cuenta)":i.fractionOf(i.count(),"total",t),"Proporción de la fila (cuenta)":i.fractionOf(i.count(),"row",t),"Proporción de la columna (cuenta)":i.fractionOf(i.count(),"col",t)},renderers:{Tabla:e.pivotUtilities.renderers.Table,"Tabla con barras":e.pivotUtilities.renderers["Table Barchart"],Heatmap:e.pivotUtilities.renderers.Heatmap,"Heatmap por filas":e.pivotUtilities.renderers["Row Heatmap"],"Heatmap por columnas":e.pivotUtilities.renderers["Col Heatmap"]}}})}).call(this);
//# sourceMappingURL=pivot.es.min.js.map

@@ -36,8 +36,8 @@ (function() {

localeStrings: {
renderError: "Une erreur est survenue en dessinant le tableau crois&eacute;.",
computeError: "Une erreur est survenue en calculant le tableau crois&eacute;.",
uiRenderError: "Une erreur est survenue en dessinant l'interface du tableau crois&eacute; dynamique.",
selectAll: "S&eacute;lectionner tout",
selectNone: "S&eacute;lectionner rien",
tooMany: "(trop de valeurs &agrave; afficher)",
renderError: "Une erreur est survenue en dessinant le tableau croisé.",
computeError: "Une erreur est survenue en calculant le tableau croisé.",
uiRenderError: "Une erreur est survenue en dessinant l'interface du tableau croisé dynamique.",
selectAll: "Sélectionner tout",
selectNone: "Sélectionner rien",
tooMany: "(trop de valeurs à afficher)",
filterResults: "Filtrer les valeurs",

@@ -58,4 +58,4 @@ totals: "Totaux",

"Ratio de sommes": tpl.sumOverSum(frFmt),
"Borne sup&eacute;rieure 80%": tpl.sumOverSumBound80(true, frFmt),
"Borne inf&eacute;rieure 80%": tpl.sumOverSumBound80(false, frFmt),
"Borne supérieure 80%": tpl.sumOverSumBound80(true, frFmt),
"Borne inférieure 80%": tpl.sumOverSumBound80(false, frFmt),
"Somme en proportion du totale": tpl.fractionOf(tpl.sum(), "total", frFmtPct),

@@ -62,0 +62,0 @@ "Somme en proportion de la ligne": tpl.fractionOf(tpl.sum(), "row", frFmtPct),

@@ -1,2 +0,2 @@

(function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var r,t,o,i,n;return i=e.pivotUtilities.numberFormat,n=e.pivotUtilities.aggregatorTemplates,r=i({thousandsSep:" ",decimalSep:","}),t=i({digitsAfterDecimal:0,thousandsSep:" ",decimalSep:","}),o=i({digitsAfterDecimal:1,scaler:100,suffix:"%",thousandsSep:" ",decimalSep:","}),e.pivotUtilities.locales.fr={localeStrings:{renderError:"Une erreur est survenue en dessinant le tableau crois&eacute;.",computeError:"Une erreur est survenue en calculant le tableau crois&eacute;.",uiRenderError:"Une erreur est survenue en dessinant l'interface du tableau crois&eacute; dynamique.",selectAll:"S&eacute;lectionner tout",selectNone:"S&eacute;lectionner rien",tooMany:"(trop de valeurs &agrave; afficher)",filterResults:"Filtrer les valeurs",totals:"Totaux",vs:"sur",by:"par"},aggregators:{Nombre:n.count(t),"Nombre de valeurs uniques":n.countUnique(t),"Liste de valeurs uniques":n.listUnique(", "),Somme:n.sum(r),"Somme en entiers":n.sum(t),Moyenne:n.average(r),Minimum:n.min(r),Maximum:n.max(r),"Ratio de sommes":n.sumOverSum(r),"Borne sup&eacute;rieure 80%":n.sumOverSumBound80(!0,r),"Borne inf&eacute;rieure 80%":n.sumOverSumBound80(!1,r),"Somme en proportion du totale":n.fractionOf(n.sum(),"total",o),"Somme en proportion de la ligne":n.fractionOf(n.sum(),"row",o),"Somme en proportion de la colonne":n.fractionOf(n.sum(),"col",o),"Nombre en proportion du totale":n.fractionOf(n.count(),"total",o),"Nombre en proportion de la ligne":n.fractionOf(n.count(),"row",o),"Nombre en proportion de la colonne":n.fractionOf(n.count(),"col",o)},renderers:{Table:e.pivotUtilities.renderers.Table,"Table avec barres":e.pivotUtilities.renderers["Table Barchart"],"Carte de chaleur":e.pivotUtilities.renderers.Heatmap,"Carte de chaleur par ligne":e.pivotUtilities.renderers["Row Heatmap"],"Carte de chaleur par colonne":e.pivotUtilities.renderers["Col Heatmap"]}}})}).call(this);
(function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var r,t,o,i,n;return i=e.pivotUtilities.numberFormat,n=e.pivotUtilities.aggregatorTemplates,r=i({thousandsSep:" ",decimalSep:","}),t=i({digitsAfterDecimal:0,thousandsSep:" ",decimalSep:","}),o=i({digitsAfterDecimal:1,scaler:100,suffix:"%",thousandsSep:" ",decimalSep:","}),e.pivotUtilities.locales.fr={localeStrings:{renderError:"Une erreur est survenue en dessinant le tableau croisé.",computeError:"Une erreur est survenue en calculant le tableau croisé.",uiRenderError:"Une erreur est survenue en dessinant l'interface du tableau croisé dynamique.",selectAll:"Sélectionner tout",selectNone:"Sélectionner rien",tooMany:"(trop de valeurs à afficher)",filterResults:"Filtrer les valeurs",totals:"Totaux",vs:"sur",by:"par"},aggregators:{Nombre:n.count(t),"Nombre de valeurs uniques":n.countUnique(t),"Liste de valeurs uniques":n.listUnique(", "),Somme:n.sum(r),"Somme en entiers":n.sum(t),Moyenne:n.average(r),Minimum:n.min(r),Maximum:n.max(r),"Ratio de sommes":n.sumOverSum(r),"Borne supérieure 80%":n.sumOverSumBound80(!0,r),"Borne inférieure 80%":n.sumOverSumBound80(!1,r),"Somme en proportion du totale":n.fractionOf(n.sum(),"total",o),"Somme en proportion de la ligne":n.fractionOf(n.sum(),"row",o),"Somme en proportion de la colonne":n.fractionOf(n.sum(),"col",o),"Nombre en proportion du totale":n.fractionOf(n.count(),"total",o),"Nombre en proportion de la ligne":n.fractionOf(n.count(),"row",o),"Nombre en proportion de la colonne":n.fractionOf(n.count(),"col",o)},renderers:{Table:e.pivotUtilities.renderers.Table,"Table avec barres":e.pivotUtilities.renderers["Table Barchart"],"Carte de chaleur":e.pivotUtilities.renderers.Heatmap,"Carte de chaleur par ligne":e.pivotUtilities.renderers["Row Heatmap"],"Carte de chaleur par colonne":e.pivotUtilities.renderers["Col Heatmap"]}}})}).call(this);
//# sourceMappingURL=pivot.fr.min.js.map

@@ -354,16 +354,16 @@ (function() {

renderers = {
"Table": function(pvtData, opts) {
return pivotTableRenderer(pvtData, opts);
"Table": function(data, opts) {
return pivotTableRenderer(data, opts);
},
"Table Barchart": function(pvtData, opts) {
return $(pivotTableRenderer(pvtData, opts)).barchart();
"Table Barchart": function(data, opts) {
return $(pivotTableRenderer(data, opts)).barchart();
},
"Heatmap": function(pvtData, opts) {
return $(pivotTableRenderer(pvtData, opts)).heatmap();
"Heatmap": function(data, opts) {
return $(pivotTableRenderer(data, opts)).heatmap("heatmap", opts);
},
"Row Heatmap": function(pvtData, opts) {
return $(pivotTableRenderer(pvtData, opts)).heatmap("rowheatmap");
"Row Heatmap": function(data, opts) {
return $(pivotTableRenderer(data, opts)).heatmap("rowheatmap", opts);
},
"Col Heatmap": function(pvtData, opts) {
return $(pivotTableRenderer(pvtData, opts)).heatmap("colheatmap");
"Col Heatmap": function(data, opts) {
return $(pivotTableRenderer(data, opts)).heatmap("colheatmap", opts);
}

@@ -741,3 +741,3 @@ };

pivotTableRenderer = function(pivotData, opts) {
var aggregator, c, colAttrs, colKey, colKeys, defaults, i, j, r, result, rowAttrs, rowKey, rowKeys, spanSize, td, th, totalAggregator, tr, txt, val, x;
var aggregator, c, colAttrs, colKey, colKeys, defaults, i, j, r, result, rowAttrs, rowKey, rowKeys, spanSize, tbody, td, th, thead, totalAggregator, tr, txt, val, x;
defaults = {

@@ -783,2 +783,3 @@ localeStrings: {

};
thead = document.createElement("thead");
for (j in colAttrs) {

@@ -820,3 +821,3 @@ if (!hasProp.call(colAttrs, j)) continue;

}
result.appendChild(tr);
thead.appendChild(tr);
}

@@ -839,4 +840,6 @@ if (rowAttrs.length !== 0) {

tr.appendChild(th);
result.appendChild(tr);
thead.appendChild(tr);
}
result.appendChild(thead);
tbody = document.createElement("tbody");
for (i in rowKeys) {

@@ -880,3 +883,3 @@ if (!hasProp.call(rowKeys, i)) continue;

tr.appendChild(td);
result.appendChild(tr);
tbody.appendChild(tr);
}

@@ -908,3 +911,4 @@ tr = document.createElement("tr");

tr.appendChild(td);
result.appendChild(tr);
tbody.appendChild(tr);
result.appendChild(tbody);
result.setAttribute("data-numrows", rowKeys.length);

@@ -924,2 +928,3 @@ result.setAttribute("data-numcols", colKeys.length);

vals: [],
dataClass: PivotData,
filter: function() {

@@ -939,3 +944,3 @@ return true;

try {
pivotData = new PivotData(input, opts);
pivotData = new opts.dataClass(input, opts);
try {

@@ -987,2 +992,3 @@ result = opts.renderer(pivotData, opts.rendererOptions);

vals: [],
dataClass: PivotData,
exclusions: {},

@@ -1245,3 +1251,4 @@ inclusions: {},

cols: [],
rows: []
rows: [],
dataClass: opts.dataClass
};

@@ -1381,4 +1388,4 @@ numInputsToProcess = (ref5 = opts.aggregators[aggregator.val()]([])().numInputs) != null ? ref5 : 0;

*/
$.fn.heatmap = function(scope) {
var colorGen, heatmapper, i, j, l, n, numCols, numRows, ref, ref1;
$.fn.heatmap = function(scope, opts) {
var colorScaleGenerator, heatmapper, i, j, l, n, numCols, numRows, ref, ref1, ref2;
if (scope == null) {

@@ -1389,33 +1396,18 @@ scope = "heatmap";

numCols = this.data("numcols");
colorGen = function(color, min, max) {
var hexGen;
hexGen = (function() {
switch (color) {
case "red":
return function(hex) {
return "ff" + hex + hex;
};
case "green":
return function(hex) {
return hex + "ff" + hex;
};
case "blue":
return function(hex) {
return "" + hex + hex + "ff";
};
}
})();
return function(x) {
var hex, intensity;
intensity = 255 - Math.round(255 * (x - min) / (max - min));
hex = intensity.toString(16).split(".")[0];
if (hex.length === 1) {
hex = 0 + hex;
}
return hexGen(hex);
colorScaleGenerator = opts != null ? (ref = opts.heatmap) != null ? ref.colorScaleGenerator : void 0 : void 0;
if (colorScaleGenerator == null) {
colorScaleGenerator = function(values) {
var max, min;
min = Math.min.apply(Math, values);
max = Math.max.apply(Math, values);
return function(x) {
var nonRed;
nonRed = 255 - Math.round(255 * (x - min) / (max - min));
return "rgb(255," + nonRed + "," + nonRed + ")";
};
};
};
}
heatmapper = (function(_this) {
return function(scope, color) {
var colorFor, forEachCell, values;
return function(scope) {
var colorScale, forEachCell, values;
forEachCell = function(f) {

@@ -1434,5 +1426,5 @@ return _this.find(scope).each(function() {

});
colorFor = colorGen(color, Math.min.apply(Math, values), Math.max.apply(Math, values));
colorScale = colorScaleGenerator(values);
return forEachCell(function(x, elem) {
return elem.css("background-color", "#" + colorFor(x));
return elem.css("background-color", colorScale(x));
});

@@ -1443,16 +1435,16 @@ };

case "heatmap":
heatmapper(".pvtVal", "red");
heatmapper(".pvtVal");
break;
case "rowheatmap":
for (i = l = 0, ref = numRows; 0 <= ref ? l < ref : l > ref; i = 0 <= ref ? ++l : --l) {
heatmapper(".pvtVal.row" + i, "red");
for (i = l = 0, ref1 = numRows; 0 <= ref1 ? l < ref1 : l > ref1; i = 0 <= ref1 ? ++l : --l) {
heatmapper(".pvtVal.row" + i);
}
break;
case "colheatmap":
for (j = n = 0, ref1 = numCols; 0 <= ref1 ? n < ref1 : n > ref1; j = 0 <= ref1 ? ++n : --n) {
heatmapper(".pvtVal.col" + j, "red");
for (j = n = 0, ref2 = numCols; 0 <= ref2 ? n < ref2 : n > ref2; j = 0 <= ref2 ? ++n : --n) {
heatmapper(".pvtVal.col" + j);
}
}
heatmapper(".pvtTotal.rowTotal", "red");
heatmapper(".pvtTotal.colTotal", "red");
heatmapper(".pvtTotal.rowTotal");
heatmapper(".pvtTotal.colTotal");
return this;

@@ -1459,0 +1451,0 @@ };

@@ -1,2 +0,2 @@

(function(){var t,e=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},n=[].slice,r=function(t,e){return function(){return t.apply(e,arguments)}},a={}.hasOwnProperty;(t=function(t){return"object"==typeof exports&&"object"==typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){var o,i,s,u,l,c,p,h,d,f,g,m,v,b,A,C,y,w;return i=function(t,e,n){var r,a,o,i;for(t+="",a=t.split("."),o=a[0],i=a.length>1?n+a[1]:"",r=/(\d+)(\d{3})/;r.test(o);)o=o.replace(r,"$1"+e+"$2");return o+i},g=function(e){var n;return n={digitsAfterDecimal:2,scaler:1,thousandsSep:",",decimalSep:".",prefix:"",suffix:"",showZero:!1},e=t.extend(n,e),function(t){var n;return isNaN(t)||!isFinite(t)?"":0!==t||e.showZero?(n=i((e.scaler*t).toFixed(e.digitsAfterDecimal),e.thousandsSep,e.decimalSep),""+e.prefix+n+e.suffix):""}},A=g(),C=g({digitsAfterDecimal:0}),y=g({digitsAfterDecimal:1,scaler:100,suffix:"%"}),s={count:function(t){return null==t&&(t=C),function(){return function(e,n,r){return{count:0,push:function(){return this.count++},value:function(){return this.count},format:t}}}},countUnique:function(t){return null==t&&(t=C),function(n){var r;return r=n[0],function(n,a,o){return{uniq:[],push:function(t){var n;return n=t[r],e.call(this.uniq,n)<0?this.uniq.push(t[r]):void 0},value:function(){return this.uniq.length},format:t,numInputs:null!=r?0:1}}}},listUnique:function(t){return function(n){var r;return r=n[0],function(n,a,o){return{uniq:[],push:function(t){var n;return n=t[r],e.call(this.uniq,n)<0?this.uniq.push(t[r]):void 0},value:function(){return this.uniq.join(t)},format:function(t){return t},numInputs:null!=r?0:1}}}},sum:function(t){return null==t&&(t=A),function(e){var n;return n=e[0],function(e,r,a){return{sum:0,push:function(t){return isNaN(parseFloat(t[n]))?void 0:this.sum+=parseFloat(t[n])},value:function(){return this.sum},format:t,numInputs:null!=n?0:1}}}},min:function(t){return null==t&&(t=A),function(e){var n;return n=e[0],function(e,r,a){return{val:null,push:function(t){var e,r;return r=parseFloat(t[n]),isNaN(r)?void 0:this.val=Math.min(r,null!=(e=this.val)?e:r)},value:function(){return this.val},format:t,numInputs:null!=n?0:1}}}},max:function(t){return null==t&&(t=A),function(e){var n;return n=e[0],function(e,r,a){return{val:null,push:function(t){var e,r;return r=parseFloat(t[n]),isNaN(r)?void 0:this.val=Math.max(r,null!=(e=this.val)?e:r)},value:function(){return this.val},format:t,numInputs:null!=n?0:1}}}},average:function(t){return null==t&&(t=A),function(e){var n;return n=e[0],function(e,r,a){return{sum:0,len:0,push:function(t){return isNaN(parseFloat(t[n]))?void 0:(this.sum+=parseFloat(t[n]),this.len++)},value:function(){return this.sum/this.len},format:t,numInputs:null!=n?0:1}}}},sumOverSum:function(t){return null==t&&(t=A),function(e){var n,r;return r=e[0],n=e[1],function(e,a,o){return{sumNum:0,sumDenom:0,push:function(t){return isNaN(parseFloat(t[r]))||(this.sumNum+=parseFloat(t[r])),isNaN(parseFloat(t[n]))?void 0:this.sumDenom+=parseFloat(t[n])},value:function(){return this.sumNum/this.sumDenom},format:t,numInputs:null!=r&&null!=n?0:2}}}},sumOverSumBound80:function(t,e){return null==t&&(t=!0),null==e&&(e=A),function(n){var r,a;return a=n[0],r=n[1],function(n,o,i){return{sumNum:0,sumDenom:0,push:function(t){return isNaN(parseFloat(t[a]))||(this.sumNum+=parseFloat(t[a])),isNaN(parseFloat(t[r]))?void 0:this.sumDenom+=parseFloat(t[r])},value:function(){var e;return e=t?1:-1,(.821187207574908/this.sumDenom+this.sumNum/this.sumDenom+1.2815515655446004*e*Math.sqrt(.410593603787454/(this.sumDenom*this.sumDenom)+this.sumNum*(1-this.sumNum/this.sumDenom)/(this.sumDenom*this.sumDenom)))/(1+1.642374415149816/this.sumDenom)},format:e,numInputs:null!=a&&null!=r?0:2}}}},fractionOf:function(t,e,r){return null==e&&(e="total"),null==r&&(r=y),function(){var a;return a=1<=arguments.length?n.call(arguments,0):[],function(n,o,i){return{selector:{total:[[],[]],row:[o,[]],col:[[],i]}[e],inner:t.apply(null,a)(n,o,i),push:function(t){return this.inner.push(t)},format:r,value:function(){return this.inner.value()/n.getAggregator.apply(n,this.selector).inner.value()},numInputs:t.apply(null,a)().numInputs}}}}},u=function(t){return{Count:t.count(C),"Count Unique Values":t.countUnique(C),"List Unique Values":t.listUnique(", "),Sum:t.sum(A),"Integer Sum":t.sum(C),Average:t.average(A),Minimum:t.min(A),Maximum:t.max(A),"Sum over Sum":t.sumOverSum(A),"80% Upper Bound":t.sumOverSumBound80(!0,A),"80% Lower Bound":t.sumOverSumBound80(!1,A),"Sum as Fraction of Total":t.fractionOf(t.sum(),"total",y),"Sum as Fraction of Rows":t.fractionOf(t.sum(),"row",y),"Sum as Fraction of Columns":t.fractionOf(t.sum(),"col",y),"Count as Fraction of Total":t.fractionOf(t.count(),"total",y),"Count as Fraction of Rows":t.fractionOf(t.count(),"row",y),"Count as Fraction of Columns":t.fractionOf(t.count(),"col",y)}}(s),v={Table:function(t,e){return m(t,e)},"Table Barchart":function(e,n){return t(m(e,n)).barchart()},Heatmap:function(e,n){return t(m(e,n)).heatmap()},"Row Heatmap":function(e,n){return t(m(e,n)).heatmap("rowheatmap")},"Col Heatmap":function(e,n){return t(m(e,n)).heatmap("colheatmap")}},h={en:{aggregators:u,renderers:v,localeStrings:{renderError:"An error occurred rendering the PivotTable results.",computeError:"An error occurred computing the PivotTable results.",uiRenderError:"An error occurred rendering the PivotTable UI.",selectAll:"Select All",selectNone:"Select None",tooMany:"(too many to list)",filterResults:"Filter results",totals:"Totals",vs:"vs",by:"by"}}},d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],w=function(t){return("0"+t).substr(-2,2)},c={bin:function(t,e){return function(n){return n[t]-n[t]%e}},dateFormat:function(t,e,n,r,a){var o;return null==n&&(n=!1),null==r&&(r=d),null==a&&(a=l),o=n?"UTC":"",function(n){var i;return i=new Date(Date.parse(n[t])),isNaN(i)?"":e.replace(/%(.)/g,function(t,e){switch(e){case"y":return i["get"+o+"FullYear"]();case"m":return w(i["get"+o+"Month"]()+1);case"n":return r[i["get"+o+"Month"]()];case"d":return w(i["get"+o+"Date"]());case"w":return a[i["get"+o+"Day"]()];case"x":return i["get"+o+"Day"]();case"H":return w(i["get"+o+"Hours"]());case"M":return w(i["get"+o+"Minutes"]());case"S":return w(i["get"+o+"Seconds"]());default:return"%"+e}})}}},f=function(t){return function(t,e){var n,r,a,o,i,s,u;if(s=/(\d+)|(\D+)/g,i=/\d/,u=/^0/,"number"==typeof t||"number"==typeof e)return isNaN(t)?1:isNaN(e)?-1:t-e;if(n=String(t).toLowerCase(),a=String(e).toLowerCase(),n===a)return 0;if(!i.test(n)||!i.test(a))return n>a?1:-1;for(n=n.match(s),a=a.match(s);n.length&&a.length;)if(r=n.shift(),o=a.shift(),r!==o)return i.test(r)&&i.test(o)?r.replace(u,".0")-o.replace(u,".0"):r>o?1:-1;return n.length-a.length}}(this),b=function(t){var e,n,r;n={};for(e in t)r=t[e],n[r]=e;return function(t,e){return null!=n[t]&&null!=n[e]?n[t]-n[e]:null!=n[t]?-1:null!=n[e]?1:f(t,e)}},p=function(e,n){var r;return r=e(n),t.isFunction(r)?r:f},o=function(){function e(t,n){this.getAggregator=r(this.getAggregator,this),this.getRowKeys=r(this.getRowKeys,this),this.getColKeys=r(this.getColKeys,this),this.sortKeys=r(this.sortKeys,this),this.arrSort=r(this.arrSort,this),this.aggregator=n.aggregator,this.aggregatorName=n.aggregatorName,this.colAttrs=n.cols,this.rowAttrs=n.rows,this.valAttrs=n.vals,this.sorters=n.sorters,this.tree={},this.rowKeys=[],this.colKeys=[],this.rowTotals={},this.colTotals={},this.allTotal=this.aggregator(this,[],[]),this.sorted=!1,e.forEachRecord(t,n.derivedAttributes,function(t){return function(e){return n.filter(e)?t.processRecord(e):void 0}}(this))}return e.forEachRecord=function(e,n,r){var o,i,s,u,l,c,p,h,d,f,g,m;if(o=t.isEmptyObject(n)?r:function(t){var e,a,o;for(e in n)o=n[e],t[e]=null!=(a=o(t))?a:t[e];return r(t)},t.isFunction(e))return e(o);if(t.isArray(e)){if(t.isArray(e[0])){f=[];for(s in e)if(a.call(e,s)&&(i=e[s],s>0)){h={},d=e[0];for(u in d)a.call(d,u)&&(l=d[u],h[l]=i[u]);f.push(o(h))}return f}for(g=[],c=0,p=e.length;p>c;c++)h=e[c],g.push(o(h));return g}if(e instanceof jQuery)return m=[],t("thead > tr > th",e).each(function(e){return m.push(t(this).text())}),t("tbody > tr",e).each(function(e){return h={},t("td",this).each(function(e){return h[m[e]]=t(this).text()}),o(h)});throw new Error("unknown input format")},e.convertToArray=function(t){var n;return n=[],e.forEachRecord(t,{},function(t){return n.push(t)}),n},e.prototype.arrSort=function(t){var e,n;return n=function(){var n,r,a;for(a=[],n=0,r=t.length;r>n;n++)e=t[n],a.push(p(this.sorters,e));return a}.call(this),function(t,e){var r,o,i;for(o in n)if(a.call(n,o)&&(i=n[o],r=i(t[o],e[o]),0!==r))return r;return 0}},e.prototype.sortKeys=function(){return this.sorted?void 0:(this.sorted=!0,this.rowKeys.sort(this.arrSort(this.rowAttrs)),this.colKeys.sort(this.arrSort(this.colAttrs)))},e.prototype.getColKeys=function(){return this.sortKeys(),this.colKeys},e.prototype.getRowKeys=function(){return this.sortKeys(),this.rowKeys},e.prototype.processRecord=function(t){var e,n,r,a,o,i,s,u,l,c,p,h,d;for(e=[],h=[],u=this.colAttrs,a=0,o=u.length;o>a;a++)d=u[a],e.push(null!=(l=t[d])?l:"null");for(c=this.rowAttrs,s=0,i=c.length;i>s;s++)d=c[s],h.push(null!=(p=t[d])?p:"null");return r=h.join(String.fromCharCode(0)),n=e.join(String.fromCharCode(0)),this.allTotal.push(t),0!==h.length&&(this.rowTotals[r]||(this.rowKeys.push(h),this.rowTotals[r]=this.aggregator(this,h,[])),this.rowTotals[r].push(t)),0!==e.length&&(this.colTotals[n]||(this.colKeys.push(e),this.colTotals[n]=this.aggregator(this,[],e)),this.colTotals[n].push(t)),0!==e.length&&0!==h.length?(this.tree[r]||(this.tree[r]={}),this.tree[r][n]||(this.tree[r][n]=this.aggregator(this,h,e)),this.tree[r][n].push(t)):void 0},e.prototype.getAggregator=function(t,e){var n,r,a;return a=t.join(String.fromCharCode(0)),r=e.join(String.fromCharCode(0)),n=0===t.length&&0===e.length?this.allTotal:0===t.length?this.colTotals[r]:0===e.length?this.rowTotals[a]:this.tree[a][r],null!=n?n:{value:function(){return null},format:function(){return""}}},e}(),t.pivotUtilities={aggregatorTemplates:s,aggregators:u,renderers:v,derivers:c,locales:h,naturalSort:f,numberFormat:g,sortAs:b,PivotData:o},m=function(e,n){var r,o,i,s,u,l,c,p,h,d,f,g,m,v,b,A,C,y,w,x,N;l={localeStrings:{totals:"Totals"}},n=t.extend(l,n),i=e.colAttrs,f=e.rowAttrs,m=e.getRowKeys(),u=e.getColKeys(),d=document.createElement("table"),d.className="pvtTable",v=function(t,e,n){var r,a,o,i,s,u,l,c;if(0!==e){for(i=!0,c=r=0,s=n;s>=0?s>=r:r>=s;c=s>=0?++r:--r)t[e-1][c]!==t[e][c]&&(i=!1);if(i)return-1}for(a=0;e+a<t.length;){for(l=!1,c=o=0,u=n;u>=0?u>=o:o>=u;c=u>=0?++o:--o)t[e][c]!==t[e+a][c]&&(l=!0);if(l)break;a++}return a};for(p in i)if(a.call(i,p)){o=i[p],y=document.createElement("tr"),0===parseInt(p)&&0!==f.length&&(A=document.createElement("th"),A.setAttribute("colspan",f.length),A.setAttribute("rowspan",i.length),y.appendChild(A)),A=document.createElement("th"),A.className="pvtAxisLabel",A.textContent=o,y.appendChild(A);for(c in u)a.call(u,c)&&(s=u[c],N=v(u,parseInt(c),parseInt(p)),-1!==N&&(A=document.createElement("th"),A.className="pvtColLabel",A.textContent=s[p],A.setAttribute("colspan",N),parseInt(p)===i.length-1&&0!==f.length&&A.setAttribute("rowspan",2),y.appendChild(A)));0===parseInt(p)&&(A=document.createElement("th"),A.className="pvtTotalLabel",A.innerHTML=n.localeStrings.totals,A.setAttribute("rowspan",i.length+(0===f.length?0:1)),y.appendChild(A)),d.appendChild(y)}if(0!==f.length){y=document.createElement("tr");for(c in f)a.call(f,c)&&(h=f[c],A=document.createElement("th"),A.className="pvtAxisLabel",A.textContent=h,y.appendChild(A));A=document.createElement("th"),0===i.length&&(A.className="pvtTotalLabel",A.innerHTML=n.localeStrings.totals),y.appendChild(A),d.appendChild(y)}for(c in m)if(a.call(m,c)){g=m[c],y=document.createElement("tr");for(p in g)a.call(g,p)&&(w=g[p],N=v(m,parseInt(c),parseInt(p)),-1!==N&&(A=document.createElement("th"),A.className="pvtRowLabel",A.textContent=w,A.setAttribute("rowspan",N),parseInt(p)===f.length-1&&0!==i.length&&A.setAttribute("colspan",2),y.appendChild(A)));for(p in u)a.call(u,p)&&(s=u[p],r=e.getAggregator(g,s),x=r.value(),b=document.createElement("td"),b.className="pvtVal row"+c+" col"+p,b.textContent=r.format(x),b.setAttribute("data-value",x),y.appendChild(b));C=e.getAggregator(g,[]),x=C.value(),b=document.createElement("td"),b.className="pvtTotal rowTotal",b.textContent=C.format(x),b.setAttribute("data-value",x),b.setAttribute("data-for","row"+c),y.appendChild(b),d.appendChild(y)}y=document.createElement("tr"),A=document.createElement("th"),A.className="pvtTotalLabel",A.innerHTML=n.localeStrings.totals,A.setAttribute("colspan",f.length+(0===i.length?0:1)),y.appendChild(A);for(p in u)a.call(u,p)&&(s=u[p],C=e.getAggregator([],s),x=C.value(),b=document.createElement("td"),b.className="pvtTotal colTotal",b.textContent=C.format(x),b.setAttribute("data-value",x),b.setAttribute("data-for","col"+p),y.appendChild(b));return C=e.getAggregator([],[]),x=C.value(),b=document.createElement("td"),b.className="pvtGrandTotal",b.textContent=C.format(x),b.setAttribute("data-value",x),y.appendChild(b),d.appendChild(y),d.setAttribute("data-numrows",m.length),d.setAttribute("data-numcols",u.length),d},t.fn.pivot=function(e,n){var r,a,i,u,l,c,p;r={cols:[],rows:[],vals:[],filter:function(){return!0},aggregator:s.count()(),aggregatorName:"Count",sorters:function(){},derivedAttributes:{},renderer:m,rendererOptions:null,localeStrings:h.en.localeStrings},n=t.extend(r,n),c=null;try{l=new o(e,n);try{c=n.renderer(l,n.rendererOptions)}catch(i){a=i,"undefined"!=typeof console&&null!==console&&console.error(a.stack),c=t("<span>").html(n.localeStrings.renderError)}}catch(u){a=u,"undefined"!=typeof console&&null!==console&&console.error(a.stack),c=t("<span>").html(n.localeStrings.computeError)}for(p=this[0];p.hasChildNodes();)p.removeChild(p.lastChild);return this.append(c)},t.fn.pivotUI=function(n,r,i,s){var u,l,c,d,g,m,v,b,A,C,y,w,x,N,T,S,F,E,D,k,R,I,O,M,K,L,q,U,V,j,H,B,P,J,_,z,Q,W,Z,$,G;null==i&&(i=!1),null==s&&(s="en"),null==h[s]&&(s="en"),v={derivedAttributes:{},aggregators:h[s].aggregators,renderers:h[s].renderers,hiddenAttributes:[],menuLimit:200,cols:[],rows:[],vals:[],exclusions:{},inclusions:{},unusedAttrsVertical:85,autoSortUnusedAttrs:!1,rendererOptions:{localeStrings:h[s].localeStrings},onRefresh:null,filter:function(){return!0},sorters:function(){},localeStrings:h[s].localeStrings},C=this.data("pivotUIOptions"),I=null==C||i?t.extend(v,r):C;try{n=o.convertToArray(n),_=function(){var t,e;t=n[0],e=[];for(N in t)a.call(t,N)&&e.push(N);return e}(),K=I.derivedAttributes;for(g in K)a.call(K,g)&&e.call(_,g)<0&&_.push(g);for(d={},T=0,S=_.length;S>T;T++)G=_[T],d[G]={};o.forEachRecord(n,I.derivedAttributes,function(t){var e,n,r;n=[];for(N in t)a.call(t,N)&&(r=t[N],I.filter(t)&&(null==r&&(r="null"),null==(e=d[N])[r]&&(e[r]=0),n.push(d[N][r]++)));return n}),W=t("<table>",{"class":"pvtUi"}).attr("cellpadding",5),P=t("<td>"),B=t("<select>").addClass("pvtRenderer").appendTo(P).bind("change",function(){return j()}),L=I.renderers;for(G in L)a.call(L,G)&&t("<option>").val(G).html(G).appendTo(B);if(m=t("<td>").addClass("pvtAxisContainer pvtUnused"),J=function(){var t,n,r;for(r=[],n=0,t=_.length;t>n;n++)g=_[n],e.call(I.hiddenAttributes,g)<0&&r.push(g);return r}(),$=!1,Z="auto"===I.unusedAttrsVertical?120:parseInt(I.unusedAttrsVertical),!isNaN(Z)){for(c=0,k=0,F=J.length;F>k;k++)u=J[k],c+=u.length;$=c>Z}I.unusedAttrsVertical===!0||$?m.addClass("pvtVertList"):m.addClass("pvtHorizList"),y=function(n){var r,a,o,i,s,u,l,c,h,f,g,v,b,A,C;if(l=function(){var t;t=[];for(N in d[n])t.push(N);return t}(),u=!1,C=t("<div>").addClass("pvtFilterBox").hide(),C.append(t("<h4>").text(n+" ("+l.length+")")),l.length>I.menuLimit)C.append(t("<p>").html(I.localeStrings.tooMany));else for(a=t("<p>").appendTo(C),a.append(t("<button>",{type:"button"}).html(I.localeStrings.selectAll).bind("click",function(){return C.find("input:visible").prop("checked",!0)})),a.append(t("<button>",{type:"button"}).html(I.localeStrings.selectNone).bind("click",function(){return C.find("input:visible").prop("checked",!1)})),a.append(t("<br>")),a.append(t("<input>",{type:"text",placeholder:I.localeStrings.filterResults,"class":"pvtSearch"}).bind("keyup",function(){var e;return e=t(this).val().toLowerCase(),C.find(".pvtCheckContainer p").each(function(){var n;return n=t(this).text().toLowerCase().indexOf(e),-1!==n?t(this).show():t(this).hide()})})),o=t("<div>").addClass("pvtCheckContainer").appendTo(C),f=l.sort(p(I.sorters,n)),h=0,c=f.length;c>h;h++)N=f[h],A=d[n][N],i=t("<label>"),s=!1,I.inclusions[n]?s=e.call(I.inclusions[n],N)<0:I.exclusions[n]&&(s=e.call(I.exclusions[n],N)>=0),u||(u=s),t("<input>").attr("type","checkbox").addClass("pvtFilter").attr("checked",!s).data("filter",[n,N]).appendTo(i),i.append(t("<span>").text(N)),i.append(t("<span>").text(" ("+A+")")),o.append(t("<p>").append(i));return b=function(){var t;return t=C.find("[type='checkbox']").length-C.find("[type='checkbox']:checked").length,t>0?r.addClass("pvtFilteredAttribute"):r.removeClass("pvtFilteredAttribute"),l.length>I.menuLimit?C.toggle():C.toggle(0,j)},t("<p>").appendTo(C).append(t("<button>",{type:"button"}).text("OK").bind("click",b)),g=function(e){var n,r,a;return a=t(e.currentTarget).position(),n=a.left,r=a.top,C.css({left:n+10,top:r+10}).toggle(),C.find(".pvtSearch").val(""),C.find(".pvtCheckContainer p").show()},v=t("<span>").addClass("pvtTriangle").html(" &#x25BE;").bind("click",g),r=t("<li>").addClass("axis_"+w).append(t("<span>").addClass("pvtAttr").text(n).data("attrName",n).append(v)),u&&r.addClass("pvtFilteredAttribute"),m.append(r).append(C),r.bind("dblclick",g)};for(w in J)a.call(J,w)&&(g=J[w],y(g));z=t("<tr>").appendTo(W),l=t("<select>").addClass("pvtAggregator").bind("change",function(){return j()}),q=I.aggregators;for(G in q)a.call(q,G)&&l.append(t("<option>").val(G).html(G));for(t("<td>").addClass("pvtVals").appendTo(z).append(l).append(t("<br>")),t("<td>").addClass("pvtAxisContainer pvtHorizList pvtCols").appendTo(z),Q=t("<tr>").appendTo(W),Q.append(t("<td>").addClass("pvtAxisContainer pvtRows").attr("valign","top")),O=t("<td>").attr("valign","top").addClass("pvtRendererArea").appendTo(Q),I.unusedAttrsVertical===!0||$?(W.find("tr:nth-child(1)").prepend(P),W.find("tr:nth-child(2)").prepend(m)):W.prepend(t("<tr>").append(P).append(m)),this.html(W),U=I.cols,R=0,E=U.length;E>R;R++)G=U[R],this.find(".pvtCols").append(this.find(".axis_"+t.inArray(G,J)));for(V=I.rows,M=0,D=V.length;D>M;M++)G=V[M],this.find(".pvtRows").append(this.find(".axis_"+t.inArray(G,J)));null!=I.aggregatorName&&this.find(".pvtAggregator").val(I.aggregatorName),null!=I.rendererName&&this.find(".pvtRenderer").val(I.rendererName),x=!0,H=function(r){return function(){var a,o,i,s,u,c,p,h,d,g,m,v,b,A,C;if(v={derivedAttributes:I.derivedAttributes,localeStrings:I.localeStrings,rendererOptions:I.rendererOptions,sorters:I.sorters,cols:[],rows:[]},c=null!=(d=I.aggregators[l.val()]([])().numInputs)?d:0,C=[],r.find(".pvtRows li span.pvtAttr").each(function(){return v.rows.push(t(this).data("attrName"))}),r.find(".pvtCols li span.pvtAttr").each(function(){return v.cols.push(t(this).data("attrName"))}),r.find(".pvtVals select.pvtAttrDropdown").each(function(){return 0===c?t(this).remove():(c--,""!==t(this).val()?C.push(t(this).val()):void 0)}),0!==c)for(h=r.find(".pvtVals"),G=m=0,g=c;g>=0?g>m:m>g;G=g>=0?++m:--m){for(u=t("<select>").addClass("pvtAttrDropdown").append(t("<option>")).bind("change",function(){return j()}),b=0,s=J.length;s>b;b++)a=J[b],u.append(t("<option>").val(a).text(a));h.append(u)}return x&&(C=I.vals,w=0,r.find(".pvtVals select.pvtAttrDropdown").each(function(){return t(this).val(C[w]),w++}),x=!1),v.aggregatorName=l.val(),v.vals=C,v.aggregator=I.aggregators[l.val()](C),v.renderer=I.renderers[B.val()],o={},r.find("input.pvtFilter").not(":checked").each(function(){var e;return e=t(this).data("filter"),null!=o[e[0]]?o[e[0]].push(e[1]):o[e[0]]=[e[1]]}),i={},r.find("input.pvtFilter:checked").each(function(){var e;return e=t(this).data("filter"),null!=o[e[0]]?null!=i[e[0]]?i[e[0]].push(e[1]):i[e[0]]=[e[1]]:void 0}),v.filter=function(t){var n,r;if(!I.filter(t))return!1;for(N in o)if(n=o[N],r=""+t[N],e.call(n,r)>=0)return!1;return!0},O.pivot(n,v),p=t.extend(I,{cols:v.cols,rows:v.rows,vals:C,exclusions:o,inclusions:i,inclusionsInfo:i,aggregatorName:l.val(),rendererName:B.val()}),r.data("pivotUIOptions",p),I.autoSortUnusedAttrs&&(A=r.find("td.pvtUnused.pvtAxisContainer"),t(A).children("li").sort(function(e,n){return f(t(e).text(),t(n).text())}).appendTo(A)),O.css("opacity",1),null!=I.onRefresh?I.onRefresh(p):void 0}}(this),j=function(t){return function(){return O.css("opacity",.5),setTimeout(H,10)}}(this),j(),this.find(".pvtAxisContainer").sortable({update:function(t,e){return null==e.sender?j():void 0},connectWith:this.find(".pvtAxisContainer"),items:"li",placeholder:"pvtPlaceholder"})}catch(A){b=A,"undefined"!=typeof console&&null!==console&&console.error(b.stack),this.html(I.localeStrings.uiRenderError)}return this},t.fn.heatmap=function(e){var n,r,a,o,i,s,u,l,c,p;switch(null==e&&(e="heatmap"),l=this.data("numrows"),u=this.data("numcols"),n=function(t,e,n){var r;return r=function(){switch(t){case"red":return function(t){return"ff"+t+t};case"green":return function(t){return t+"ff"+t};case"blue":return function(t){return""+t+t+"ff"}}}(),function(t){var a,o;return o=255-Math.round(255*(t-e)/(n-e)),a=o.toString(16).split(".")[0],1===a.length&&(a=0+a),r(a)}},r=function(e){return function(r,a){var o,i,s;return i=function(n){return e.find(r).each(function(){var e;return e=t(this).data("value"),null!=e&&isFinite(e)?n(e,t(this)):void 0})},s=[],i(function(t){return s.push(t)}),o=n(a,Math.min.apply(Math,s),Math.max.apply(Math,s)),i(function(t,e){return e.css("background-color","#"+o(t))})}}(this),e){case"heatmap":r(".pvtVal","red");break;case"rowheatmap":for(a=i=0,c=l;c>=0?c>i:i>c;a=c>=0?++i:--i)r(".pvtVal.row"+a,"red");break;case"colheatmap":for(o=s=0,p=u;p>=0?p>s:s>p;o=p>=0?++s:--s)r(".pvtVal.col"+o,"red")}return r(".pvtTotal.rowTotal","red"),r(".pvtTotal.colTotal","red"),this},t.fn.barchart=function(){var e,n,r,a,o,i;for(o=this.data("numrows"),a=this.data("numcols"),e=function(e){return function(n){var r,a,o,i;return r=function(r){return e.find(n).each(function(){var e;return e=t(this).data("value"),null!=e&&isFinite(e)?r(e,t(this)):void 0})},i=[],r(function(t){return i.push(t)}),a=Math.max.apply(Math,i),o=function(t){return 100*t/(1.4*a)},r(function(e,n){var r,a;return r=n.text(),a=t("<div>").css({position:"relative",height:"55px"}),a.append(t("<div>").css({position:"absolute",bottom:0,left:0,right:0,height:o(e)+"%","background-color":"gray"})),a.append(t("<div>").text(r).css({position:"relative","padding-left":"5px","padding-right":"5px"})),n.css({padding:0,"padding-top":"5px","text-align":"center"}).html(a)})}}(this),n=r=0,i=o;i>=0?i>r:r>i;n=i>=0?++r:--r)e(".pvtVal.row"+n);return e(".pvtTotal.colTotal"),this}})}).call(this);
(function(){var t,e=[].indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(e in this&&this[e]===t)return e;return-1},n=[].slice,r=function(t,e){return function(){return t.apply(e,arguments)}},a={}.hasOwnProperty;(t=function(t){return"object"==typeof exports&&"object"==typeof module?t(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(t){var o,i,s,u,l,c,p,h,d,f,m,g,v,C,b,A,y,w;return i=function(t,e,n){var r,a,o,i;for(t+="",a=t.split("."),o=a[0],i=a.length>1?n+a[1]:"",r=/(\d+)(\d{3})/;r.test(o);)o=o.replace(r,"$1"+e+"$2");return o+i},m=function(e){var n;return n={digitsAfterDecimal:2,scaler:1,thousandsSep:",",decimalSep:".",prefix:"",suffix:"",showZero:!1},e=t.extend(n,e),function(t){var n;return isNaN(t)||!isFinite(t)?"":0!==t||e.showZero?(n=i((e.scaler*t).toFixed(e.digitsAfterDecimal),e.thousandsSep,e.decimalSep),""+e.prefix+n+e.suffix):""}},b=m(),A=m({digitsAfterDecimal:0}),y=m({digitsAfterDecimal:1,scaler:100,suffix:"%"}),s={count:function(t){return null==t&&(t=A),function(){return function(e,n,r){return{count:0,push:function(){return this.count++},value:function(){return this.count},format:t}}}},countUnique:function(t){return null==t&&(t=A),function(n){var r;return r=n[0],function(n,a,o){return{uniq:[],push:function(t){var n;return n=t[r],e.call(this.uniq,n)<0?this.uniq.push(t[r]):void 0},value:function(){return this.uniq.length},format:t,numInputs:null!=r?0:1}}}},listUnique:function(t){return function(n){var r;return r=n[0],function(n,a,o){return{uniq:[],push:function(t){var n;return n=t[r],e.call(this.uniq,n)<0?this.uniq.push(t[r]):void 0},value:function(){return this.uniq.join(t)},format:function(t){return t},numInputs:null!=r?0:1}}}},sum:function(t){return null==t&&(t=b),function(e){var n;return n=e[0],function(e,r,a){return{sum:0,push:function(t){return isNaN(parseFloat(t[n]))?void 0:this.sum+=parseFloat(t[n])},value:function(){return this.sum},format:t,numInputs:null!=n?0:1}}}},min:function(t){return null==t&&(t=b),function(e){var n;return n=e[0],function(e,r,a){return{val:null,push:function(t){var e,r;return r=parseFloat(t[n]),isNaN(r)?void 0:this.val=Math.min(r,null!=(e=this.val)?e:r)},value:function(){return this.val},format:t,numInputs:null!=n?0:1}}}},max:function(t){return null==t&&(t=b),function(e){var n;return n=e[0],function(e,r,a){return{val:null,push:function(t){var e,r;return r=parseFloat(t[n]),isNaN(r)?void 0:this.val=Math.max(r,null!=(e=this.val)?e:r)},value:function(){return this.val},format:t,numInputs:null!=n?0:1}}}},average:function(t){return null==t&&(t=b),function(e){var n;return n=e[0],function(e,r,a){return{sum:0,len:0,push:function(t){return isNaN(parseFloat(t[n]))?void 0:(this.sum+=parseFloat(t[n]),this.len++)},value:function(){return this.sum/this.len},format:t,numInputs:null!=n?0:1}}}},sumOverSum:function(t){return null==t&&(t=b),function(e){var n,r;return r=e[0],n=e[1],function(e,a,o){return{sumNum:0,sumDenom:0,push:function(t){return isNaN(parseFloat(t[r]))||(this.sumNum+=parseFloat(t[r])),isNaN(parseFloat(t[n]))?void 0:this.sumDenom+=parseFloat(t[n])},value:function(){return this.sumNum/this.sumDenom},format:t,numInputs:null!=r&&null!=n?0:2}}}},sumOverSumBound80:function(t,e){return null==t&&(t=!0),null==e&&(e=b),function(n){var r,a;return a=n[0],r=n[1],function(n,o,i){return{sumNum:0,sumDenom:0,push:function(t){return isNaN(parseFloat(t[a]))||(this.sumNum+=parseFloat(t[a])),isNaN(parseFloat(t[r]))?void 0:this.sumDenom+=parseFloat(t[r])},value:function(){var e;return e=t?1:-1,(.821187207574908/this.sumDenom+this.sumNum/this.sumDenom+1.2815515655446004*e*Math.sqrt(.410593603787454/(this.sumDenom*this.sumDenom)+this.sumNum*(1-this.sumNum/this.sumDenom)/(this.sumDenom*this.sumDenom)))/(1+1.642374415149816/this.sumDenom)},format:e,numInputs:null!=a&&null!=r?0:2}}}},fractionOf:function(t,e,r){return null==e&&(e="total"),null==r&&(r=y),function(){var a;return a=1<=arguments.length?n.call(arguments,0):[],function(n,o,i){return{selector:{total:[[],[]],row:[o,[]],col:[[],i]}[e],inner:t.apply(null,a)(n,o,i),push:function(t){return this.inner.push(t)},format:r,value:function(){return this.inner.value()/n.getAggregator.apply(n,this.selector).inner.value()},numInputs:t.apply(null,a)().numInputs}}}}},u=function(t){return{Count:t.count(A),"Count Unique Values":t.countUnique(A),"List Unique Values":t.listUnique(", "),Sum:t.sum(b),"Integer Sum":t.sum(A),Average:t.average(b),Minimum:t.min(b),Maximum:t.max(b),"Sum over Sum":t.sumOverSum(b),"80% Upper Bound":t.sumOverSumBound80(!0,b),"80% Lower Bound":t.sumOverSumBound80(!1,b),"Sum as Fraction of Total":t.fractionOf(t.sum(),"total",y),"Sum as Fraction of Rows":t.fractionOf(t.sum(),"row",y),"Sum as Fraction of Columns":t.fractionOf(t.sum(),"col",y),"Count as Fraction of Total":t.fractionOf(t.count(),"total",y),"Count as Fraction of Rows":t.fractionOf(t.count(),"row",y),"Count as Fraction of Columns":t.fractionOf(t.count(),"col",y)}}(s),v={Table:function(t,e){return g(t,e)},"Table Barchart":function(e,n){return t(g(e,n)).barchart()},Heatmap:function(e,n){return t(g(e,n)).heatmap("heatmap",n)},"Row Heatmap":function(e,n){return t(g(e,n)).heatmap("rowheatmap",n)},"Col Heatmap":function(e,n){return t(g(e,n)).heatmap("colheatmap",n)}},h={en:{aggregators:u,renderers:v,localeStrings:{renderError:"An error occurred rendering the PivotTable results.",computeError:"An error occurred computing the PivotTable results.",uiRenderError:"An error occurred rendering the PivotTable UI.",selectAll:"Select All",selectNone:"Select None",tooMany:"(too many to list)",filterResults:"Filter results",totals:"Totals",vs:"vs",by:"by"}}},d=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],l=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],w=function(t){return("0"+t).substr(-2,2)},c={bin:function(t,e){return function(n){return n[t]-n[t]%e}},dateFormat:function(t,e,n,r,a){var o;return null==n&&(n=!1),null==r&&(r=d),null==a&&(a=l),o=n?"UTC":"",function(n){var i;return i=new Date(Date.parse(n[t])),isNaN(i)?"":e.replace(/%(.)/g,function(t,e){switch(e){case"y":return i["get"+o+"FullYear"]();case"m":return w(i["get"+o+"Month"]()+1);case"n":return r[i["get"+o+"Month"]()];case"d":return w(i["get"+o+"Date"]());case"w":return a[i["get"+o+"Day"]()];case"x":return i["get"+o+"Day"]();case"H":return w(i["get"+o+"Hours"]());case"M":return w(i["get"+o+"Minutes"]());case"S":return w(i["get"+o+"Seconds"]());default:return"%"+e}})}}},f=function(t){return function(t,e){var n,r,a,o,i,s,u;if(s=/(\d+)|(\D+)/g,i=/\d/,u=/^0/,"number"==typeof t||"number"==typeof e)return isNaN(t)?1:isNaN(e)?-1:t-e;if(n=String(t).toLowerCase(),a=String(e).toLowerCase(),n===a)return 0;if(!i.test(n)||!i.test(a))return n>a?1:-1;for(n=n.match(s),a=a.match(s);n.length&&a.length;)if(r=n.shift(),o=a.shift(),r!==o)return i.test(r)&&i.test(o)?r.replace(u,".0")-o.replace(u,".0"):r>o?1:-1;return n.length-a.length}}(this),C=function(t){var e,n,r;n={};for(e in t)r=t[e],n[r]=e;return function(t,e){return null!=n[t]&&null!=n[e]?n[t]-n[e]:null!=n[t]?-1:null!=n[e]?1:f(t,e)}},p=function(e,n){var r;return r=e(n),t.isFunction(r)?r:f},o=function(){function e(t,n){this.getAggregator=r(this.getAggregator,this),this.getRowKeys=r(this.getRowKeys,this),this.getColKeys=r(this.getColKeys,this),this.sortKeys=r(this.sortKeys,this),this.arrSort=r(this.arrSort,this),this.aggregator=n.aggregator,this.aggregatorName=n.aggregatorName,this.colAttrs=n.cols,this.rowAttrs=n.rows,this.valAttrs=n.vals,this.sorters=n.sorters,this.tree={},this.rowKeys=[],this.colKeys=[],this.rowTotals={},this.colTotals={},this.allTotal=this.aggregator(this,[],[]),this.sorted=!1,e.forEachRecord(t,n.derivedAttributes,function(t){return function(e){return n.filter(e)?t.processRecord(e):void 0}}(this))}return e.forEachRecord=function(e,n,r){var o,i,s,u,l,c,p,h,d,f,m,g;if(o=t.isEmptyObject(n)?r:function(t){var e,a,o;for(e in n)o=n[e],t[e]=null!=(a=o(t))?a:t[e];return r(t)},t.isFunction(e))return e(o);if(t.isArray(e)){if(t.isArray(e[0])){f=[];for(s in e)if(a.call(e,s)&&(i=e[s],s>0)){h={},d=e[0];for(u in d)a.call(d,u)&&(l=d[u],h[l]=i[u]);f.push(o(h))}return f}for(m=[],c=0,p=e.length;p>c;c++)h=e[c],m.push(o(h));return m}if(e instanceof jQuery)return g=[],t("thead > tr > th",e).each(function(e){return g.push(t(this).text())}),t("tbody > tr",e).each(function(e){return h={},t("td",this).each(function(e){return h[g[e]]=t(this).text()}),o(h)});throw new Error("unknown input format")},e.convertToArray=function(t){var n;return n=[],e.forEachRecord(t,{},function(t){return n.push(t)}),n},e.prototype.arrSort=function(t){var e,n;return n=function(){var n,r,a;for(a=[],n=0,r=t.length;r>n;n++)e=t[n],a.push(p(this.sorters,e));return a}.call(this),function(t,e){var r,o,i;for(o in n)if(a.call(n,o)&&(i=n[o],r=i(t[o],e[o]),0!==r))return r;return 0}},e.prototype.sortKeys=function(){return this.sorted?void 0:(this.sorted=!0,this.rowKeys.sort(this.arrSort(this.rowAttrs)),this.colKeys.sort(this.arrSort(this.colAttrs)))},e.prototype.getColKeys=function(){return this.sortKeys(),this.colKeys},e.prototype.getRowKeys=function(){return this.sortKeys(),this.rowKeys},e.prototype.processRecord=function(t){var e,n,r,a,o,i,s,u,l,c,p,h,d;for(e=[],h=[],u=this.colAttrs,a=0,o=u.length;o>a;a++)d=u[a],e.push(null!=(l=t[d])?l:"null");for(c=this.rowAttrs,s=0,i=c.length;i>s;s++)d=c[s],h.push(null!=(p=t[d])?p:"null");return r=h.join(String.fromCharCode(0)),n=e.join(String.fromCharCode(0)),this.allTotal.push(t),0!==h.length&&(this.rowTotals[r]||(this.rowKeys.push(h),this.rowTotals[r]=this.aggregator(this,h,[])),this.rowTotals[r].push(t)),0!==e.length&&(this.colTotals[n]||(this.colKeys.push(e),this.colTotals[n]=this.aggregator(this,[],e)),this.colTotals[n].push(t)),0!==e.length&&0!==h.length?(this.tree[r]||(this.tree[r]={}),this.tree[r][n]||(this.tree[r][n]=this.aggregator(this,h,e)),this.tree[r][n].push(t)):void 0},e.prototype.getAggregator=function(t,e){var n,r,a;return a=t.join(String.fromCharCode(0)),r=e.join(String.fromCharCode(0)),n=0===t.length&&0===e.length?this.allTotal:0===t.length?this.colTotals[r]:0===e.length?this.rowTotals[a]:this.tree[a][r],null!=n?n:{value:function(){return null},format:function(){return""}}},e}(),t.pivotUtilities={aggregatorTemplates:s,aggregators:u,renderers:v,derivers:c,locales:h,naturalSort:f,numberFormat:m,sortAs:C,PivotData:o},g=function(e,n){var r,o,i,s,u,l,c,p,h,d,f,m,g,v,C,b,A,y,w,x,N,T,S;l={localeStrings:{totals:"Totals"}},n=t.extend(l,n),i=e.colAttrs,f=e.rowAttrs,g=e.getRowKeys(),u=e.getColKeys(),d=document.createElement("table"),d.className="pvtTable",v=function(t,e,n){var r,a,o,i,s,u,l,c;if(0!==e){for(i=!0,c=r=0,s=n;s>=0?s>=r:r>=s;c=s>=0?++r:--r)t[e-1][c]!==t[e][c]&&(i=!1);if(i)return-1}for(a=0;e+a<t.length;){for(l=!1,c=o=0,u=n;u>=0?u>=o:o>=u;c=u>=0?++o:--o)t[e][c]!==t[e+a][c]&&(l=!0);if(l)break;a++}return a},y=document.createElement("thead");for(p in i)if(a.call(i,p)){o=i[p],x=document.createElement("tr"),0===parseInt(p)&&0!==f.length&&(A=document.createElement("th"),A.setAttribute("colspan",f.length),A.setAttribute("rowspan",i.length),x.appendChild(A)),A=document.createElement("th"),A.className="pvtAxisLabel",A.textContent=o,x.appendChild(A);for(c in u)a.call(u,c)&&(s=u[c],S=v(u,parseInt(c),parseInt(p)),-1!==S&&(A=document.createElement("th"),A.className="pvtColLabel",A.textContent=s[p],A.setAttribute("colspan",S),parseInt(p)===i.length-1&&0!==f.length&&A.setAttribute("rowspan",2),x.appendChild(A)));0===parseInt(p)&&(A=document.createElement("th"),A.className="pvtTotalLabel",A.innerHTML=n.localeStrings.totals,A.setAttribute("rowspan",i.length+(0===f.length?0:1)),x.appendChild(A)),y.appendChild(x)}if(0!==f.length){x=document.createElement("tr");for(c in f)a.call(f,c)&&(h=f[c],A=document.createElement("th"),A.className="pvtAxisLabel",A.textContent=h,x.appendChild(A));A=document.createElement("th"),0===i.length&&(A.className="pvtTotalLabel",A.innerHTML=n.localeStrings.totals),x.appendChild(A),y.appendChild(x)}d.appendChild(y),C=document.createElement("tbody");for(c in g)if(a.call(g,c)){m=g[c],x=document.createElement("tr");for(p in m)a.call(m,p)&&(N=m[p],S=v(g,parseInt(c),parseInt(p)),-1!==S&&(A=document.createElement("th"),A.className="pvtRowLabel",A.textContent=N,A.setAttribute("rowspan",S),parseInt(p)===f.length-1&&0!==i.length&&A.setAttribute("colspan",2),x.appendChild(A)));for(p in u)a.call(u,p)&&(s=u[p],r=e.getAggregator(m,s),T=r.value(),b=document.createElement("td"),b.className="pvtVal row"+c+" col"+p,b.textContent=r.format(T),b.setAttribute("data-value",T),x.appendChild(b));w=e.getAggregator(m,[]),T=w.value(),b=document.createElement("td"),b.className="pvtTotal rowTotal",b.textContent=w.format(T),b.setAttribute("data-value",T),b.setAttribute("data-for","row"+c),x.appendChild(b),C.appendChild(x)}x=document.createElement("tr"),A=document.createElement("th"),A.className="pvtTotalLabel",A.innerHTML=n.localeStrings.totals,A.setAttribute("colspan",f.length+(0===i.length?0:1)),x.appendChild(A);for(p in u)a.call(u,p)&&(s=u[p],w=e.getAggregator([],s),T=w.value(),b=document.createElement("td"),b.className="pvtTotal colTotal",b.textContent=w.format(T),b.setAttribute("data-value",T),b.setAttribute("data-for","col"+p),x.appendChild(b));return w=e.getAggregator([],[]),T=w.value(),b=document.createElement("td"),b.className="pvtGrandTotal",b.textContent=w.format(T),b.setAttribute("data-value",T),x.appendChild(b),C.appendChild(x),d.appendChild(C),d.setAttribute("data-numrows",g.length),d.setAttribute("data-numcols",u.length),d},t.fn.pivot=function(e,n){var r,a,i,u,l,c,p;r={cols:[],rows:[],vals:[],dataClass:o,filter:function(){return!0},aggregator:s.count()(),aggregatorName:"Count",sorters:function(){},derivedAttributes:{},renderer:g,rendererOptions:null,localeStrings:h.en.localeStrings},n=t.extend(r,n),c=null;try{l=new n.dataClass(e,n);try{c=n.renderer(l,n.rendererOptions)}catch(i){a=i,"undefined"!=typeof console&&null!==console&&console.error(a.stack),c=t("<span>").html(n.localeStrings.renderError)}}catch(u){a=u,"undefined"!=typeof console&&null!==console&&console.error(a.stack),c=t("<span>").html(n.localeStrings.computeError)}for(p=this[0];p.hasChildNodes();)p.removeChild(p.lastChild);return this.append(c)},t.fn.pivotUI=function(n,r,i,s){var u,l,c,d,m,g,v,C,b,A,y,w,x,N,T,S,F,E,D,k,R,I,O,M,K,L,q,U,V,j,H,B,P,J,_,z,G,Q,W,Z,$;null==i&&(i=!1),null==s&&(s="en"),null==h[s]&&(s="en"),v={derivedAttributes:{},aggregators:h[s].aggregators,renderers:h[s].renderers,hiddenAttributes:[],menuLimit:200,cols:[],rows:[],vals:[],dataClass:o,exclusions:{},inclusions:{},unusedAttrsVertical:85,autoSortUnusedAttrs:!1,rendererOptions:{localeStrings:h[s].localeStrings},onRefresh:null,filter:function(){return!0},sorters:function(){},localeStrings:h[s].localeStrings},A=this.data("pivotUIOptions"),I=null==A||i?t.extend(v,r):A;try{n=o.convertToArray(n),_=function(){var t,e;t=n[0],e=[];for(N in t)a.call(t,N)&&e.push(N);return e}(),K=I.derivedAttributes;for(m in K)a.call(K,m)&&e.call(_,m)<0&&_.push(m);for(d={},T=0,S=_.length;S>T;T++)$=_[T],d[$]={};o.forEachRecord(n,I.derivedAttributes,function(t){var e,n,r;n=[];for(N in t)a.call(t,N)&&(r=t[N],I.filter(t)&&(null==r&&(r="null"),null==(e=d[N])[r]&&(e[r]=0),n.push(d[N][r]++)));return n}),Q=t("<table>",{"class":"pvtUi"}).attr("cellpadding",5),P=t("<td>"),B=t("<select>").addClass("pvtRenderer").appendTo(P).bind("change",function(){return j()}),L=I.renderers;for($ in L)a.call(L,$)&&t("<option>").val($).html($).appendTo(B);if(g=t("<td>").addClass("pvtAxisContainer pvtUnused"),J=function(){var t,n,r;for(r=[],n=0,t=_.length;t>n;n++)m=_[n],e.call(I.hiddenAttributes,m)<0&&r.push(m);return r}(),Z=!1,W="auto"===I.unusedAttrsVertical?120:parseInt(I.unusedAttrsVertical),!isNaN(W)){for(c=0,k=0,F=J.length;F>k;k++)u=J[k],c+=u.length;Z=c>W}I.unusedAttrsVertical===!0||Z?g.addClass("pvtVertList"):g.addClass("pvtHorizList"),y=function(n){var r,a,o,i,s,u,l,c,h,f,m,v,C,b,A;if(l=function(){var t;t=[];for(N in d[n])t.push(N);return t}(),u=!1,A=t("<div>").addClass("pvtFilterBox").hide(),A.append(t("<h4>").text(n+" ("+l.length+")")),l.length>I.menuLimit)A.append(t("<p>").html(I.localeStrings.tooMany));else for(a=t("<p>").appendTo(A),a.append(t("<button>",{type:"button"}).html(I.localeStrings.selectAll).bind("click",function(){return A.find("input:visible").prop("checked",!0)})),a.append(t("<button>",{type:"button"}).html(I.localeStrings.selectNone).bind("click",function(){return A.find("input:visible").prop("checked",!1)})),a.append(t("<br>")),a.append(t("<input>",{type:"text",placeholder:I.localeStrings.filterResults,"class":"pvtSearch"}).bind("keyup",function(){var e;return e=t(this).val().toLowerCase(),A.find(".pvtCheckContainer p").each(function(){var n;return n=t(this).text().toLowerCase().indexOf(e),-1!==n?t(this).show():t(this).hide()})})),o=t("<div>").addClass("pvtCheckContainer").appendTo(A),f=l.sort(p(I.sorters,n)),h=0,c=f.length;c>h;h++)N=f[h],b=d[n][N],i=t("<label>"),s=!1,I.inclusions[n]?s=e.call(I.inclusions[n],N)<0:I.exclusions[n]&&(s=e.call(I.exclusions[n],N)>=0),u||(u=s),t("<input>").attr("type","checkbox").addClass("pvtFilter").attr("checked",!s).data("filter",[n,N]).appendTo(i),i.append(t("<span>").text(N)),i.append(t("<span>").text(" ("+b+")")),o.append(t("<p>").append(i));return C=function(){var t;return t=A.find("[type='checkbox']").length-A.find("[type='checkbox']:checked").length,t>0?r.addClass("pvtFilteredAttribute"):r.removeClass("pvtFilteredAttribute"),l.length>I.menuLimit?A.toggle():A.toggle(0,j)},t("<p>").appendTo(A).append(t("<button>",{type:"button"}).text("OK").bind("click",C)),m=function(e){var n,r,a;return a=t(e.currentTarget).position(),n=a.left,r=a.top,A.css({left:n+10,top:r+10}).toggle(),A.find(".pvtSearch").val(""),A.find(".pvtCheckContainer p").show()},v=t("<span>").addClass("pvtTriangle").html(" &#x25BE;").bind("click",m),r=t("<li>").addClass("axis_"+w).append(t("<span>").addClass("pvtAttr").text(n).data("attrName",n).append(v)),u&&r.addClass("pvtFilteredAttribute"),g.append(r).append(A),r.bind("dblclick",m)};for(w in J)a.call(J,w)&&(m=J[w],y(m));z=t("<tr>").appendTo(Q),l=t("<select>").addClass("pvtAggregator").bind("change",function(){return j()}),q=I.aggregators;for($ in q)a.call(q,$)&&l.append(t("<option>").val($).html($));for(t("<td>").addClass("pvtVals").appendTo(z).append(l).append(t("<br>")),t("<td>").addClass("pvtAxisContainer pvtHorizList pvtCols").appendTo(z),G=t("<tr>").appendTo(Q),G.append(t("<td>").addClass("pvtAxisContainer pvtRows").attr("valign","top")),O=t("<td>").attr("valign","top").addClass("pvtRendererArea").appendTo(G),I.unusedAttrsVertical===!0||Z?(Q.find("tr:nth-child(1)").prepend(P),Q.find("tr:nth-child(2)").prepend(g)):Q.prepend(t("<tr>").append(P).append(g)),this.html(Q),U=I.cols,R=0,E=U.length;E>R;R++)$=U[R],this.find(".pvtCols").append(this.find(".axis_"+t.inArray($,J)));for(V=I.rows,M=0,D=V.length;D>M;M++)$=V[M],this.find(".pvtRows").append(this.find(".axis_"+t.inArray($,J)));null!=I.aggregatorName&&this.find(".pvtAggregator").val(I.aggregatorName),null!=I.rendererName&&this.find(".pvtRenderer").val(I.rendererName),x=!0,H=function(r){return function(){var a,o,i,s,u,c,p,h,d,m,g,v,C,b,A;if(v={derivedAttributes:I.derivedAttributes,localeStrings:I.localeStrings,rendererOptions:I.rendererOptions,sorters:I.sorters,cols:[],rows:[],dataClass:I.dataClass},c=null!=(d=I.aggregators[l.val()]([])().numInputs)?d:0,A=[],r.find(".pvtRows li span.pvtAttr").each(function(){return v.rows.push(t(this).data("attrName"))}),r.find(".pvtCols li span.pvtAttr").each(function(){return v.cols.push(t(this).data("attrName"))}),r.find(".pvtVals select.pvtAttrDropdown").each(function(){return 0===c?t(this).remove():(c--,""!==t(this).val()?A.push(t(this).val()):void 0)}),0!==c)for(h=r.find(".pvtVals"),$=g=0,m=c;m>=0?m>g:g>m;$=m>=0?++g:--g){for(u=t("<select>").addClass("pvtAttrDropdown").append(t("<option>")).bind("change",function(){return j()}),C=0,s=J.length;s>C;C++)a=J[C],u.append(t("<option>").val(a).text(a));h.append(u)}return x&&(A=I.vals,w=0,r.find(".pvtVals select.pvtAttrDropdown").each(function(){return t(this).val(A[w]),w++}),x=!1),v.aggregatorName=l.val(),v.vals=A,v.aggregator=I.aggregators[l.val()](A),v.renderer=I.renderers[B.val()],o={},r.find("input.pvtFilter").not(":checked").each(function(){var e;return e=t(this).data("filter"),null!=o[e[0]]?o[e[0]].push(e[1]):o[e[0]]=[e[1]]}),i={},r.find("input.pvtFilter:checked").each(function(){var e;return e=t(this).data("filter"),null!=o[e[0]]?null!=i[e[0]]?i[e[0]].push(e[1]):i[e[0]]=[e[1]]:void 0}),v.filter=function(t){var n,r;if(!I.filter(t))return!1;for(N in o)if(n=o[N],r=""+t[N],e.call(n,r)>=0)return!1;return!0},O.pivot(n,v),p=t.extend(I,{cols:v.cols,rows:v.rows,vals:A,exclusions:o,inclusions:i,inclusionsInfo:i,aggregatorName:l.val(),rendererName:B.val()}),r.data("pivotUIOptions",p),I.autoSortUnusedAttrs&&(b=r.find("td.pvtUnused.pvtAxisContainer"),t(b).children("li").sort(function(e,n){return f(t(e).text(),t(n).text())}).appendTo(b)),O.css("opacity",1),null!=I.onRefresh?I.onRefresh(p):void 0}}(this),j=function(t){return function(){return O.css("opacity",.5),setTimeout(H,10)}}(this),j(),this.find(".pvtAxisContainer").sortable({update:function(t,e){return null==e.sender?j():void 0},connectWith:this.find(".pvtAxisContainer"),items:"li",placeholder:"pvtPlaceholder"})}catch(b){C=b,"undefined"!=typeof console&&null!==console&&console.error(C.stack),this.html(I.localeStrings.uiRenderError)}return this},t.fn.heatmap=function(e,n){var r,a,o,i,s,u,l,c,p,h,d;switch(null==e&&(e="heatmap"),c=this.data("numrows"),l=this.data("numcols"),r=null!=n&&null!=(p=n.heatmap)?p.colorScaleGenerator:void 0,null==r&&(r=function(t){var e,n;return n=Math.min.apply(Math,t),e=Math.max.apply(Math,t),function(t){var r;return r=255-Math.round(255*(t-n)/(e-n)),"rgb(255,"+r+","+r+")"}}),a=function(e){return function(n){var a,o,i;return o=function(r){return e.find(n).each(function(){var e;return e=t(this).data("value"),null!=e&&isFinite(e)?r(e,t(this)):void 0})},i=[],o(function(t){return i.push(t)}),a=r(i),o(function(t,e){return e.css("background-color",a(t))})}}(this),e){case"heatmap":a(".pvtVal");break;case"rowheatmap":for(o=s=0,h=c;h>=0?h>s:s>h;o=h>=0?++s:--s)a(".pvtVal.row"+o);break;case"colheatmap":for(i=u=0,d=l;d>=0?d>u:u>d;i=d>=0?++u:--u)a(".pvtVal.col"+i)}return a(".pvtTotal.rowTotal"),a(".pvtTotal.colTotal"),this},t.fn.barchart=function(){var e,n,r,a,o,i;for(o=this.data("numrows"),a=this.data("numcols"),e=function(e){return function(n){var r,a,o,i;return r=function(r){return e.find(n).each(function(){var e;return e=t(this).data("value"),null!=e&&isFinite(e)?r(e,t(this)):void 0})},i=[],r(function(t){return i.push(t)}),a=Math.max.apply(Math,i),o=function(t){return 100*t/(1.4*a)},r(function(e,n){var r,a;return r=n.text(),a=t("<div>").css({position:"relative",height:"55px"}),a.append(t("<div>").css({position:"absolute",bottom:0,left:0,right:0,height:o(e)+"%","background-color":"gray"})),a.append(t("<div>").text(r).css({position:"relative","padding-left":"5px","padding-right":"5px"})),n.css({padding:0,"padding-top":"5px","text-align":"center"}).html(a)})}}(this),n=r=0,i=o;i>=0?i>r:r>i;n=i>=0?++r:--r)e(".pvtVal.row"+n);return e(".pvtTotal.colTotal"),this}})}).call(this);
//# sourceMappingURL=pivot.min.js.map

@@ -36,3 +36,3 @@ (function() {

localeStrings: {
renderError: "Er is een fout opgetreden bij het renderen van de kruistabel..",
renderError: "Er is een fout opgetreden bij het renderen van de kruistabel.",
computeError: "Er is een fout opgetreden bij het berekenen van de kruistabel.",

@@ -39,0 +39,0 @@ uiRenderError: "Er is een fout opgetreden bij het tekenen van de interface van de kruistabel.",

@@ -1,2 +0,2 @@

(function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var t,r,i,n,o;return n=e.pivotUtilities.numberFormat,o=e.pivotUtilities.aggregatorTemplates,t=n({thousandsSep:" ",decimalSep:","}),r=n({digitsAfterDecimal:0,thousandsSep:" ",decimalSep:","}),i=n({digitsAfterDecimal:1,scaler:100,suffix:"%",thousandsSep:" ",decimalSep:","}),e.pivotUtilities.locales.fr={localeStrings:{renderError:"Er is een fout opgetreden bij het renderen van de kruistabel..",computeError:"Er is een fout opgetreden bij het berekenen van de kruistabel.",uiRenderError:"Er is een fout opgetreden bij het tekenen van de interface van de kruistabel.",selectAll:"Alles selecteren",selectNone:"Niets selecteren",tooMany:"(te veel waarden om weer te geven)",filterResults:"Filter resultaten",totals:"Totaal",vs:"versus",by:"per"},aggregators:{Aantal:o.count(r),"Aantal unieke waarden":o.countUnique(r),"Lijst unieke waarden":o.listUnique(", "),Som:o.sum(t),"Som van gehele getallen":o.sum(r),Gemiddelde:o.average(t),Minimum:o.min(t),Maximum:o.max(t),"Som over som":o.sumOverSum(t),"80% bovengrens":o.sumOverSumBound80(!0,t),"80% ondergrens":o.sumOverSumBound80(!1,t),"Som in verhouding tot het totaal":o.fractionOf(o.sum(),"total",i),"Som in verhouding tot de rij":o.fractionOf(o.sum(),"row",i),"Som in verhouding tot de kolom":o.fractionOf(o.sum(),"col",i),"Aantal in verhouding tot het totaal":o.fractionOf(o.count(),"total",i),"Aantal in verhouding tot de rij":o.fractionOf(o.count(),"row",i),"Aantal in verhouding tot de kolom":o.fractionOf(o.count(),"col",i)},renderers:{Tabel:e.pivotUtilities.renderers.Table,"Tabel met staafdiagrammen":e.pivotUtilities.renderers["Table Barchart"],Warmtekaart:e.pivotUtilities.renderers.Heatmap,"Warmtekaart per rij":e.pivotUtilities.renderers["Row Heatmap"],"Warmtekaart per kolom":e.pivotUtilities.renderers["Col Heatmap"]}}})}).call(this);
(function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var t,r,i,n,o;return n=e.pivotUtilities.numberFormat,o=e.pivotUtilities.aggregatorTemplates,t=n({thousandsSep:" ",decimalSep:","}),r=n({digitsAfterDecimal:0,thousandsSep:" ",decimalSep:","}),i=n({digitsAfterDecimal:1,scaler:100,suffix:"%",thousandsSep:" ",decimalSep:","}),e.pivotUtilities.locales.fr={localeStrings:{renderError:"Er is een fout opgetreden bij het renderen van de kruistabel.",computeError:"Er is een fout opgetreden bij het berekenen van de kruistabel.",uiRenderError:"Er is een fout opgetreden bij het tekenen van de interface van de kruistabel.",selectAll:"Alles selecteren",selectNone:"Niets selecteren",tooMany:"(te veel waarden om weer te geven)",filterResults:"Filter resultaten",totals:"Totaal",vs:"versus",by:"per"},aggregators:{Aantal:o.count(r),"Aantal unieke waarden":o.countUnique(r),"Lijst unieke waarden":o.listUnique(", "),Som:o.sum(t),"Som van gehele getallen":o.sum(r),Gemiddelde:o.average(t),Minimum:o.min(t),Maximum:o.max(t),"Som over som":o.sumOverSum(t),"80% bovengrens":o.sumOverSumBound80(!0,t),"80% ondergrens":o.sumOverSumBound80(!1,t),"Som in verhouding tot het totaal":o.fractionOf(o.sum(),"total",i),"Som in verhouding tot de rij":o.fractionOf(o.sum(),"row",i),"Som in verhouding tot de kolom":o.fractionOf(o.sum(),"col",i),"Aantal in verhouding tot het totaal":o.fractionOf(o.count(),"total",i),"Aantal in verhouding tot de rij":o.fractionOf(o.count(),"row",i),"Aantal in verhouding tot de kolom":o.fractionOf(o.count(),"col",i)},renderers:{Tabel:e.pivotUtilities.renderers.Table,"Tabel met staafdiagrammen":e.pivotUtilities.renderers["Table Barchart"],Warmtekaart:e.pivotUtilities.renderers.Heatmap,"Warmtekaart per rij":e.pivotUtilities.renderers["Row Heatmap"],"Warmtekaart per kolom":e.pivotUtilities.renderers["Col Heatmap"]}}})}).call(this);
//# sourceMappingURL=pivot.nl.min.js.map

@@ -40,5 +40,5 @@ (function() {

localeStrings: {
renderError: "Ocorreu um error ao renderizar os resultados da Tabela Din&atilde;mica.",
computeError: "Ocorreu um error ao computar os resultados da Tabela Din&atilde;mica.",
uiRenderError: "Ocorreu um error ao renderizar a interface da Tabela Din&atilde;mica.",
renderError: "Ocorreu um error ao renderizar os resultados da Tabela Dinãmica.",
computeError: "Ocorreu um error ao computar os resultados da Tabela Dinãmica.",
uiRenderError: "Ocorreu um error ao renderizar a interface da Tabela Dinãmica.",
selectAll: "Selecionar Tudo",

@@ -54,4 +54,4 @@ selectNone: "Selecionar Nenhum",

"Contagem": tpl.count(frFmtInt),
"Contagem de Valores &uacute;nicos": tpl.countUnique(frFmtInt),
"Lista de Valores &uacute;nicos": tpl.listUnique(", "),
"Contagem de Valores únicos": tpl.countUnique(frFmtInt),
"Lista de Valores únicos": tpl.listUnique(", "),
"Soma": tpl.sum(frFmt),

@@ -65,8 +65,8 @@ "Soma de Inteiros": tpl.sum(frFmtInt),

"Limite Inferior a 80%": tpl.sumOverSumBound80(false, frFmt),
"Soma como Fra&ccedil;&atilde;o do Total": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
"Soma como Fra&ccedil;&atilde;o da Linha": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
"Soma como Fra&ccedil;&atilde;o da Coluna": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
"Contagem como Fra&ccedil;&atilde;o do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct),
"Contagem como Fra&ccedil;&atilde;o da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Contagem como Fra&ccedil;&atilde;o da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
"Soma como Fração do Total": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
"Soma como Fração da Linha": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
"Soma como Fração da Coluna": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct),
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
},

@@ -83,6 +83,6 @@ renderers: {

$.pivotUtilities.locales.pt.gchart_renderers = {
"Gr&aacute;fico de Linhas": gcr["Line Chart"],
"Gr&aacute;fico de Barras": gcr["Bar Chart"],
"Gr&aacute;fico de Barras Empilhadas": gcr["Stacked Bar Chart"],
"Gr&aacute;fico de &Aacute;rea": gcr["Area Chart"]
"Gráfico de Linhas": gcr["Line Chart"],
"Gráfico de Barras": gcr["Bar Chart"],
"Gráfico de Barras Empilhadas": gcr["Stacked Bar Chart"],
"Gráfico de Área": gcr["Area Chart"]
};

@@ -97,6 +97,6 @@ }

$.pivotUtilities.locales.pt.c3_renderers = {
"Gr&aacute;fico de Linhas": c3r["Line Chart"],
"Gr&aacute;fico de Barras": c3r["Bar Chart"],
"Gr&aacute;fico de Barras Empilhadas": c3r["Stacked Bar Chart"],
"Gr&aacute;fico de &Aacute;rea": c3r["Area Chart"]
"Gráfico de Linhas": c3r["Line Chart"],
"Gráfico de Barras": c3r["Bar Chart"],
"Gráfico de Barras Empilhadas": c3r["Stacked Bar Chart"],
"Gráfico de Área": c3r["Area Chart"]
};

@@ -103,0 +103,0 @@ }

@@ -1,2 +0,2 @@

(function(){var a;(a=function(a){return"object"==typeof exports&&"object"==typeof module?a(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)})(function(a){var e,r,o,t,i,c,l,s,d;return l=a.pivotUtilities.numberFormat,d=a.pivotUtilities.aggregatorTemplates,s=a.pivotUtilities.renderers,c=a.pivotUtilities.gchart_renderers,r=a.pivotUtilities.d3_renderers,e=a.pivotUtilities.c3_renderers,o=l({thousandsSep:".",decimalSep:","}),t=l({digitsAfterDecimal:0,thousandsSep:".",decimalSep:","}),i=l({digitsAfterDecimal:2,scaler:100,suffix:"%",thousandsSep:".",decimalSep:","}),a.pivotUtilities.locales.pt={localeStrings:{renderError:"Ocorreu um error ao renderizar os resultados da Tabela Din&atilde;mica.",computeError:"Ocorreu um error ao computar os resultados da Tabela Din&atilde;mica.",uiRenderError:"Ocorreu um error ao renderizar a interface da Tabela Din&atilde;mica.",selectAll:"Selecionar Tudo",selectNone:"Selecionar Nenhum",tooMany:"(demais para listar)",filterResults:"Filtrar resultados",totals:"Totais",vs:"vs",by:"por"},aggregators:{Contagem:d.count(t),"Contagem de Valores &uacute;nicos":d.countUnique(t),"Lista de Valores &uacute;nicos":d.listUnique(", "),Soma:d.sum(o),"Soma de Inteiros":d.sum(t),"Média":d.average(o),"Mínimo":d.min(o),"Máximo":d.max(o),"Soma sobre Soma":d.sumOverSum(o),"Limite Superior a 80%":d.sumOverSumBound80(!0,o),"Limite Inferior a 80%":d.sumOverSumBound80(!1,o),"Soma como Fra&ccedil;&atilde;o do Total":d.fractionOf(d.sum(),"total",i),"Soma como Fra&ccedil;&atilde;o da Linha":d.fractionOf(d.sum(),"row",i),"Soma como Fra&ccedil;&atilde;o da Coluna":d.fractionOf(d.sum(),"col",i),"Contagem como Fra&ccedil;&atilde;o do Total":d.fractionOf(d.count(),"total",i),"Contagem como Fra&ccedil;&atilde;o da Linha":d.fractionOf(d.count(),"row",i),"Contagem como Fra&ccedil;&atilde;o da Coluna":d.fractionOf(d.count(),"col",i)},renderers:{Tabela:s.Table,"Tabela com Barras":s["Table Barchart"],"Mapa de Calor":s.Heatmap,"Mapa de Calor por Linhas":s["Row Heatmap"],"Mapa de Calor por Colunas":s["Col Heatmap"]}},c&&(a.pivotUtilities.locales.pt.gchart_renderers={"Gr&aacute;fico de Linhas":c["Line Chart"],"Gr&aacute;fico de Barras":c["Bar Chart"],"Gr&aacute;fico de Barras Empilhadas":c["Stacked Bar Chart"],"Gr&aacute;fico de &Aacute;rea":c["Area Chart"]}),r&&(a.pivotUtilities.locales.pt.d3_renderers={"Mapa de Árvore":r.Treemap}),e&&(a.pivotUtilities.locales.pt.c3_renderers={"Gr&aacute;fico de Linhas":e["Line Chart"],"Gr&aacute;fico de Barras":e["Bar Chart"],"Gr&aacute;fico de Barras Empilhadas":e["Stacked Bar Chart"],"Gr&aacute;fico de &Aacute;rea":e["Area Chart"]}),a.pivotUtilities.locales.pt})}).call(this);
(function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var a,r,o,t,i,s,n,l,c;return n=e.pivotUtilities.numberFormat,c=e.pivotUtilities.aggregatorTemplates,l=e.pivotUtilities.renderers,s=e.pivotUtilities.gchart_renderers,r=e.pivotUtilities.d3_renderers,a=e.pivotUtilities.c3_renderers,o=n({thousandsSep:".",decimalSep:","}),t=n({digitsAfterDecimal:0,thousandsSep:".",decimalSep:","}),i=n({digitsAfterDecimal:2,scaler:100,suffix:"%",thousandsSep:".",decimalSep:","}),e.pivotUtilities.locales.pt={localeStrings:{renderError:"Ocorreu um error ao renderizar os resultados da Tabela Dinãmica.",computeError:"Ocorreu um error ao computar os resultados da Tabela Dinãmica.",uiRenderError:"Ocorreu um error ao renderizar a interface da Tabela Dinãmica.",selectAll:"Selecionar Tudo",selectNone:"Selecionar Nenhum",tooMany:"(demais para listar)",filterResults:"Filtrar resultados",totals:"Totais",vs:"vs",by:"por"},aggregators:{Contagem:c.count(t),"Contagem de Valores únicos":c.countUnique(t),"Lista de Valores únicos":c.listUnique(", "),Soma:c.sum(o),"Soma de Inteiros":c.sum(t),"Média":c.average(o),"Mínimo":c.min(o),"Máximo":c.max(o),"Soma sobre Soma":c.sumOverSum(o),"Limite Superior a 80%":c.sumOverSumBound80(!0,o),"Limite Inferior a 80%":c.sumOverSumBound80(!1,o),"Soma como Fração do Total":c.fractionOf(c.sum(),"total",i),"Soma como Fração da Linha":c.fractionOf(c.sum(),"row",i),"Soma como Fração da Coluna":c.fractionOf(c.sum(),"col",i),"Contagem como Fração do Total":c.fractionOf(c.count(),"total",i),"Contagem como Fração da Linha":c.fractionOf(c.count(),"row",i),"Contagem como Fração da Coluna":c.fractionOf(c.count(),"col",i)},renderers:{Tabela:l.Table,"Tabela com Barras":l["Table Barchart"],"Mapa de Calor":l.Heatmap,"Mapa de Calor por Linhas":l["Row Heatmap"],"Mapa de Calor por Colunas":l["Col Heatmap"]}},s&&(e.pivotUtilities.locales.pt.gchart_renderers={"Gráfico de Linhas":s["Line Chart"],"Gráfico de Barras":s["Bar Chart"],"Gráfico de Barras Empilhadas":s["Stacked Bar Chart"],"Gráfico de Área":s["Area Chart"]}),r&&(e.pivotUtilities.locales.pt.d3_renderers={"Mapa de Árvore":r.Treemap}),a&&(e.pivotUtilities.locales.pt.c3_renderers={"Gráfico de Linhas":a["Line Chart"],"Gráfico de Barras":a["Bar Chart"],"Gráfico de Barras Empilhadas":a["Stacked Bar Chart"],"Gráfico de Área":a["Area Chart"]}),e.pivotUtilities.locales.pt})}).call(this);
//# sourceMappingURL=pivot.pt.min.js.map

@@ -36,9 +36,9 @@ (function() {

localeStrings: {
renderError: "Ошибка рендеринга страницы;.",
computeError: "Ошибка табличных расчетов;.",
renderError: "Ошибка рендеринга страницы.",
computeError: "Ошибка табличных расчетов.",
uiRenderError: "Ошибка во время прорисовки и динамического расчета таблицы.",
selectAll: "Выбрать все",
selectNone: "Ничего не выбирать",
selectNone: "Снять выделение",
tooMany: "(Выбрано слишком много значений)",
filterResults: "Значение фильтра",
filterResults: "Возможные значения",
totals: "Всего",

@@ -49,4 +49,4 @@ vs: "на",

aggregators: {
"Счет": tpl.count(frFmtInt),
"Счет уникальных": tpl.countUnique(frFmtInt),
"Кол-во": tpl.count(frFmtInt),
"Кол-во уникальных": tpl.countUnique(frFmtInt),
"Список уникальных": tpl.listUnique(", "),

@@ -64,5 +64,5 @@ "Сумма": tpl.sum(frFmt),

"Доля по столбцу": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
"Счет по всему": tpl.fractionOf(tpl.count(), "total", frFmtPct),
"Счет по строке": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Счет по столбцу": tpl.fractionOf(tpl.count(), "col", frFmtPct)
"Кол-во по всему": tpl.fractionOf(tpl.count(), "total", frFmtPct),
"Кол-во по строке": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Кол-во по столбцу": tpl.fractionOf(tpl.count(), "col", frFmtPct)
},

@@ -72,3 +72,3 @@ renderers: {

"График столбцы": $.pivotUtilities.renderers["Table Barchart"],
"Теплова карта": $.pivotUtilities.renderers["Heatmap"],
"Тепловая карта": $.pivotUtilities.renderers["Heatmap"],
"Тепловая карта по строке": $.pivotUtilities.renderers["Row Heatmap"],

@@ -75,0 +75,0 @@ "Тепловая карта по столбцу": $.pivotUtilities.renderers["Col Heatmap"]

@@ -1,2 +0,2 @@

(function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var t,r,i,o,s;return o=e.pivotUtilities.numberFormat,s=e.pivotUtilities.aggregatorTemplates,t=o({thousandsSep:" ",decimalSep:","}),r=o({digitsAfterDecimal:0,thousandsSep:" ",decimalSep:","}),i=o({digitsAfterDecimal:1,scaler:100,suffix:"%",thousandsSep:" ",decimalSep:","}),e.pivotUtilities.locales.ru={localeStrings:{renderError:"Ошибка рендеринга страницы;.",computeError:"Ошибка табличных расчетов;.",uiRenderError:"Ошибка во время прорисовки и динамического расчета таблицы.",selectAll:"Выбрать все",selectNone:"Ничего не выбирать",tooMany:"(Выбрано слишком много значений)",filterResults:"Значение фильтра",totals:"Всего",vs:"на",by:"с"},aggregators:{"Счет":s.count(r),"Счет уникальных":s.countUnique(r),"Список уникальных":s.listUnique(", "),"Сумма":s.sum(t),"Сумма целых":s.sum(r),"Среднее":s.average(t),"Минимум":s.min(t),"Максимум":s.max(t),"Сумма по сумме":s.sumOverSum(t),"80% верхней границы":s.sumOverSumBound80(!0,t),"80% нижней границы":s.sumOverSumBound80(!1,t),"Доля по всему":s.fractionOf(s.sum(),"total",i),"Доля по строке":s.fractionOf(s.sum(),"row",i),"Доля по столбцу":s.fractionOf(s.sum(),"col",i),"Счет по всему":s.fractionOf(s.count(),"total",i),"Счет по строке":s.fractionOf(s.count(),"row",i),"Счет по столбцу":s.fractionOf(s.count(),"col",i)},renderers:{"Таблица":e.pivotUtilities.renderers.Table,"График столбцы":e.pivotUtilities.renderers["Table Barchart"],"Теплова карта":e.pivotUtilities.renderers.Heatmap,"Тепловая карта по строке":e.pivotUtilities.renderers["Row Heatmap"],"Тепловая карта по столбцу":e.pivotUtilities.renderers["Col Heatmap"]}}})}).call(this);
(function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var t,r,i,o,s;return o=e.pivotUtilities.numberFormat,s=e.pivotUtilities.aggregatorTemplates,t=o({thousandsSep:" ",decimalSep:","}),r=o({digitsAfterDecimal:0,thousandsSep:" ",decimalSep:","}),i=o({digitsAfterDecimal:1,scaler:100,suffix:"%",thousandsSep:" ",decimalSep:","}),e.pivotUtilities.locales.ru={localeStrings:{renderError:"Ошибка рендеринга страницы.",computeError:"Ошибка табличных расчетов.",uiRenderError:"Ошибка во время прорисовки и динамического расчета таблицы.",selectAll:"Выбрать все",selectNone:"Снять выделение",tooMany:"(Выбрано слишком много значений)",filterResults:"Возможные значения",totals:"Всего",vs:"на",by:"с"},aggregators:{"Кол-во":s.count(r),"Кол-во уникальных":s.countUnique(r),"Список уникальных":s.listUnique(", "),"Сумма":s.sum(t),"Сумма целых":s.sum(r),"Среднее":s.average(t),"Минимум":s.min(t),"Максимум":s.max(t),"Сумма по сумме":s.sumOverSum(t),"80% верхней границы":s.sumOverSumBound80(!0,t),"80% нижней границы":s.sumOverSumBound80(!1,t),"Доля по всему":s.fractionOf(s.sum(),"total",i),"Доля по строке":s.fractionOf(s.sum(),"row",i),"Доля по столбцу":s.fractionOf(s.sum(),"col",i),"Кол-во по всему":s.fractionOf(s.count(),"total",i),"Кол-во по строке":s.fractionOf(s.count(),"row",i),"Кол-во по столбцу":s.fractionOf(s.count(),"col",i)},renderers:{"Таблица":e.pivotUtilities.renderers.Table,"График столбцы":e.pivotUtilities.renderers["Table Barchart"],"Тепловая карта":e.pivotUtilities.renderers.Heatmap,"Тепловая карта по строке":e.pivotUtilities.renderers["Row Heatmap"],"Тепловая карта по столбцу":e.pivotUtilities.renderers["Col Heatmap"]}}})}).call(this);
//# sourceMappingURL=pivot.ru.min.js.map

@@ -40,9 +40,9 @@ (function() {

localeStrings: {
renderError: "PivotTable sonu&ccedil;lar&#305;n&#305; olu&#351;tuturken hata olu&#351;tu",
computeError: "PivotTable sonu&ccedil;lar&#305;n&#305; i&#351;lerken hata olu&#351;tu",
uiRenderError: "PivotTable UI sonu&ccedil;lar&#305;n&#305; olu&#351;tuturken hata olu&#351;tu",
selectAll: "T&uuml;m&uuml;n&uuml; Se&ccedil;",
selectNone: "T&uuml;m&uuml;n&uuml; B&#305;rak",
tooMany: "(listelemek i&ccedil;in fazla)",
filterResults: "Sonu&ccedil;lar&#305; filtrele",
renderError: "PivotTable sonuçlarını oluştuturken hata oluştu",
computeError: "PivotTable sonuçlarını işlerken hata oluştu",
uiRenderError: "PivotTable UI sonuçlarını oluştuturken hata oluştu",
selectAll: "Tümünü Seç",
selectNone: "Tümünü Bırak",
tooMany: "(listelemek için fazla)",
filterResults: "Sonuçları filtrele",
totals: "Toplam",

@@ -53,26 +53,26 @@ vs: "vs",

aggregators: {
"Say&#305;": tpl.count(frFmtInt),
"Benzersiz de&#287;erler say&#305;s&#305;": tpl.countUnique(frFmtInt),
"Benzersiz de&#287;erler listesi": tpl.listUnique(", "),
"Sayı": tpl.count(frFmtInt),
"Benzersiz değerler sayısı": tpl.countUnique(frFmtInt),
"Benzersiz değerler listesi": tpl.listUnique(", "),
"Toplam": tpl.sum(frFmt),
"Toplam (tam say&#305;)": tpl.sum(frFmtInt),
"Toplam (tam sayı)": tpl.sum(frFmtInt),
"Ortalama": tpl.average(frFmt),
"Min": tpl.min(frFmt),
"Maks": tpl.max(frFmt),
"Miktarlar&#305;n toplam&#305;": tpl.sumOverSum(frFmt),
"%80 daha y&uuml;ksek": tpl.sumOverSumBound80(true, frFmt),
"%80 daha d&uuml;&#351;&uuml;k": tpl.sumOverSumBound80(false, frFmt),
"Toplam oran&#305; (toplam)": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
"Sat&#305;r oran&#305; (toplam)": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
"S&uuml;tunun oran&#305; (toplam)": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
"Toplam oran&#305; (say&#305;)": tpl.fractionOf(tpl.count(), "total", frFmtPct),
"Sat&#305;r oran&#305; (say&#305;)": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"S&uuml;tunun oran&#305; (say&#305;)": tpl.fractionOf(tpl.count(), "col", frFmtPct)
"Miktarların toplamı": tpl.sumOverSum(frFmt),
"%80 daha yüksek": tpl.sumOverSumBound80(true, frFmt),
"%80 daha düşük": tpl.sumOverSumBound80(false, frFmt),
"Toplam oranı (toplam)": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
"Satır oranı (toplam)": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
"Sütunun oranı (toplam)": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
"Toplam oranı (sayı)": tpl.fractionOf(tpl.count(), "total", frFmtPct),
"Satır oranı (sayı)": tpl.fractionOf(tpl.count(), "row", frFmtPct),
"Sütunun oranı (sayı)": tpl.fractionOf(tpl.count(), "col", frFmtPct)
},
renderers: {
"Tablo": r["Table"],
"Tablo (&Ccedil;ubuklar)": r["Table Barchart"],
"&#304;lgi haritas&#305;": r["Heatmap"],
"Sat&#305;r ilgi haritas&#305;": r["Row Heatmap"],
"S&uuml;tun ilgi haritas&#305;": r["Col Heatmap"]
"Tablo (Çubuklar)": r["Table Barchart"],
"İlgi haritası": r["Heatmap"],
"Satır ilgi haritası": r["Row Heatmap"],
"Sütun ilgi haritası": r["Col Heatmap"]
}

@@ -82,6 +82,6 @@ };

$.pivotUtilities.locales.tr.gchart_renderers = {
"&Ccedil;izgi Grafi&#287;i": gcr["Line Chart"],
"Bar Grafi&#287;i": gcr["Bar Chart"],
"Y&#305;&#287;&#305;lm&#305;&#351; &Ccedil;ubuk Grafik ": gcr["Stacked Bar Chart"],
"Alan Grafi&#287;i": gcr["Area Chart"]
"Çizgi Grafiği": gcr["Line Chart"],
"Bar Grafiği": gcr["Bar Chart"],
"Yığılmış Çubuk Grafik ": gcr["Stacked Bar Chart"],
"Alan Grafiği": gcr["Area Chart"]
};

@@ -91,3 +91,3 @@ }

$.pivotUtilities.locales.tr.d3_renderers = {
"Hiyerar&#351;ik Alan Grafi&#287;i (Treemap)": d3r["Treemap"]
"Hiyerarşik Alan Grafiği (Treemap)": d3r["Treemap"]
};

@@ -97,6 +97,6 @@ }

$.pivotUtilities.locales.tr.c3_renderers = {
"&Ccedil;izgi Grafi&#287;i": c3r["Line Chart"],
"Bar Grafi&#287;i": c3r["Bar Chart"],
"Y&#305;&#287;&#305;lm&#305;&#351; &Ccedil;ubuk Grafik ": c3r["Stacked Bar Chart"],
"Alan Grafi&#287;i": c3r["Area Chart"]
"Çizgi Grafiği": c3r["Line Chart"],
"Bar Grafiği": c3r["Bar Chart"],
"Yığılmış Çubuk Grafik ": c3r["Stacked Bar Chart"],
"Alan Grafiği": c3r["Area Chart"]
};

@@ -103,0 +103,0 @@ }

@@ -1,2 +0,2 @@

(function(){var e;(e=function(e){return"object"==typeof exports&&"object"==typeof module?e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){var a,r,t,i,l,o,u,n,s;return u=e.pivotUtilities.numberFormat,s=e.pivotUtilities.aggregatorTemplates,n=e.pivotUtilities.renderers,o=e.pivotUtilities.gchart_renderers,r=e.pivotUtilities.d3_renderers,a=e.pivotUtilities.c3_renderers,t=u({thousandsSep:".",decimalSep:","}),i=u({digitsAfterDecimal:0,thousandsSep:".",decimalSep:","}),l=u({digitsAfterDecimal:2,scaler:100,suffix:"%",thousandsSep:".",decimalSep:","}),e.pivotUtilities.locales.tr={localeStrings:{renderError:"PivotTable sonu&ccedil;lar&#305;n&#305; olu&#351;tuturken hata olu&#351;tu",computeError:"PivotTable sonu&ccedil;lar&#305;n&#305; i&#351;lerken hata olu&#351;tu",uiRenderError:"PivotTable UI sonu&ccedil;lar&#305;n&#305; olu&#351;tuturken hata olu&#351;tu",selectAll:"T&uuml;m&uuml;n&uuml; Se&ccedil;",selectNone:"T&uuml;m&uuml;n&uuml; B&#305;rak",tooMany:"(listelemek i&ccedil;in fazla)",filterResults:"Sonu&ccedil;lar&#305; filtrele",totals:"Toplam",vs:"vs",by:"ile"},aggregators:{"Say&#305;":s.count(i),"Benzersiz de&#287;erler say&#305;s&#305;":s.countUnique(i),"Benzersiz de&#287;erler listesi":s.listUnique(", "),Toplam:s.sum(t),"Toplam (tam say&#305;)":s.sum(i),Ortalama:s.average(t),Min:s.min(t),Maks:s.max(t),"Miktarlar&#305;n toplam&#305;":s.sumOverSum(t),"%80 daha y&uuml;ksek":s.sumOverSumBound80(!0,t),"%80 daha d&uuml;&#351;&uuml;k":s.sumOverSumBound80(!1,t),"Toplam oran&#305; (toplam)":s.fractionOf(s.sum(),"total",l),"Sat&#305;r oran&#305; (toplam)":s.fractionOf(s.sum(),"row",l),"S&uuml;tunun oran&#305; (toplam)":s.fractionOf(s.sum(),"col",l),"Toplam oran&#305; (say&#305;)":s.fractionOf(s.count(),"total",l),"Sat&#305;r oran&#305; (say&#305;)":s.fractionOf(s.count(),"row",l),"S&uuml;tunun oran&#305; (say&#305;)":s.fractionOf(s.count(),"col",l)},renderers:{Tablo:n.Table,"Tablo (&Ccedil;ubuklar)":n["Table Barchart"],"&#304;lgi haritas&#305;":n.Heatmap,"Sat&#305;r ilgi haritas&#305;":n["Row Heatmap"],"S&uuml;tun ilgi haritas&#305;":n["Col Heatmap"]}},o&&(e.pivotUtilities.locales.tr.gchart_renderers={"&Ccedil;izgi Grafi&#287;i":o["Line Chart"],"Bar Grafi&#287;i":o["Bar Chart"],"Y&#305;&#287;&#305;lm&#305;&#351; &Ccedil;ubuk Grafik ":o["Stacked Bar Chart"],"Alan Grafi&#287;i":o["Area Chart"]}),r&&(e.pivotUtilities.locales.tr.d3_renderers={"Hiyerar&#351;ik Alan Grafi&#287;i (Treemap)":r.Treemap}),a&&(e.pivotUtilities.locales.tr.c3_renderers={"&Ccedil;izgi Grafi&#287;i":a["Line Chart"],"Bar Grafi&#287;i":a["Bar Chart"],"Y&#305;&#287;&#305;lm&#305;&#351; &Ccedil;ubuk Grafik ":a["Stacked Bar Chart"],"Alan Grafi&#287;i":a["Area Chart"]}),e.pivotUtilities.locales.tr})}).call(this);
(function(){var a;(a=function(a){return"object"==typeof exports&&"object"==typeof module?a(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)})(function(a){var e,r,t,i,l,o,n,s,u;return n=a.pivotUtilities.numberFormat,u=a.pivotUtilities.aggregatorTemplates,s=a.pivotUtilities.renderers,o=a.pivotUtilities.gchart_renderers,r=a.pivotUtilities.d3_renderers,e=a.pivotUtilities.c3_renderers,t=n({thousandsSep:".",decimalSep:","}),i=n({digitsAfterDecimal:0,thousandsSep:".",decimalSep:","}),l=n({digitsAfterDecimal:2,scaler:100,suffix:"%",thousandsSep:".",decimalSep:","}),a.pivotUtilities.locales.tr={localeStrings:{renderError:"PivotTable sonuçlarını oluştuturken hata oluştu",computeError:"PivotTable sonuçlarını işlerken hata oluştu",uiRenderError:"PivotTable UI sonuçlarını oluştuturken hata oluştu",selectAll:"Tümünü Seç",selectNone:"Tümünü Bırak",tooMany:"(listelemek için fazla)",filterResults:"Sonuçları filtrele",totals:"Toplam",vs:"vs",by:"ile"},aggregators:{"Sayı":u.count(i),"Benzersiz değerler sayısı":u.countUnique(i),"Benzersiz değerler listesi":u.listUnique(", "),Toplam:u.sum(t),"Toplam (tam sayı)":u.sum(i),Ortalama:u.average(t),Min:u.min(t),Maks:u.max(t),"Miktarların toplamı":u.sumOverSum(t),"%80 daha yüksek":u.sumOverSumBound80(!0,t),"%80 daha düşük":u.sumOverSumBound80(!1,t),"Toplam oranı (toplam)":u.fractionOf(u.sum(),"total",l),"Satır oranı (toplam)":u.fractionOf(u.sum(),"row",l),"Sütunun oranı (toplam)":u.fractionOf(u.sum(),"col",l),"Toplam oranı (sayı)":u.fractionOf(u.count(),"total",l),"Satır oranı (sayı)":u.fractionOf(u.count(),"row",l),"Sütunun oranı (sayı)":u.fractionOf(u.count(),"col",l)},renderers:{Tablo:s.Table,"Tablo (Çubuklar)":s["Table Barchart"],"İlgi haritası":s.Heatmap,"Satır ilgi haritası":s["Row Heatmap"],"Sütun ilgi haritası":s["Col Heatmap"]}},o&&(a.pivotUtilities.locales.tr.gchart_renderers={"Çizgi Grafiği":o["Line Chart"],"Bar Grafiği":o["Bar Chart"],"Yığılmış Çubuk Grafik ":o["Stacked Bar Chart"],"Alan Grafiği":o["Area Chart"]}),r&&(a.pivotUtilities.locales.tr.d3_renderers={"Hiyerarşik Alan Grafiği (Treemap)":r.Treemap}),e&&(a.pivotUtilities.locales.tr.c3_renderers={"Çizgi Grafiği":e["Line Chart"],"Bar Grafiği":e["Bar Chart"],"Yığılmış Çubuk Grafik ":e["Stacked Bar Chart"],"Alan Grafiği":e["Area Chart"]}),a.pivotUtilities.locales.tr})}).call(this);
//# sourceMappingURL=pivot.tr.min.js.map

@@ -14,3 +14,4 @@ var gulp = require('gulp'),

concat = require('gulp-concat'),
minifyCSS = require('gulp-minify-css');
minifyCSS = require('gulp-minify-css'),
serve = require('gulp-serve');

@@ -27,3 +28,3 @@ gulp.task('makeCss', function() {

gulp.src('./*.coffee')
gulp.src(['./*.coffee', './locales/*.coffee'])
//compile to js (and create map files)

@@ -91,2 +92,4 @@ .pipe(sourcemaps.init())

gulp.task('serve', serve('.'));
gulp.task('watch', function() {

@@ -93,0 +96,0 @@ gulp.watch('./*.coffee', ['makeJs']);

{
"name": "pivottable",
"version": "2.0.2",
"version": "2.1.0",
"description": "Javascript Pivot Table (aka Pivot Grid, Pivot Chart, Cross-Tab) implementation with drag'n'drop",

@@ -34,2 +34,3 @@ "main": "dist/pivot.js",

"gulp-sourcemaps": "^1.2.8",
"gulp-serve": "^1.2.0",
"gulp": "^3.8.10",

@@ -36,0 +37,0 @@ "run-sequence": "^1.0.2",

@@ -1,2 +0,2 @@

[![npm](https://img.shields.io/badge/npm-pivottable-red.svg)](https://www.npmjs.com/package/pivottable) [![cdnjs](https://img.shields.io/badge/cdnjs-pivottable-orange.svg)](https://cdnjs.com/libraries/pivottable) [![tests](https://img.shields.io/badge/tests-jasmine-green.svg)](http://nicolas.kruchten.com/pivottable/tests/) [![license](https://img.shields.io/badge/license-mit-blue.svg)](https://github.com/nicolaskruchten/pivottable/blob/master/LICENSE.md)
[![npm](http://nicolas.kruchten.com/pivottable/images/npm.svg)](https://www.npmjs.com/package/pivottable) [![cdnjs](http://nicolas.kruchten.com/pivottable/images/cdnjs.svg)](https://cdnjs.com/libraries/pivottable) [![tests](http://nicolas.kruchten.com/pivottable/images/tests.svg)](http://nicolas.kruchten.com/pivottable/tests/) [![license](http://nicolas.kruchten.com/pivottable/images/license.svg)](https://github.com/nicolaskruchten/pivottable/blob/master/LICENSE.md)

@@ -20,2 +20,11 @@

## Where are the demos/examples?
There are lots on the [examples page](http://nicolas.kruchten.com/pivottable/examples/index.html) but here are some good entry points:
* [a JSFiddle where you can play with the code](https://jsfiddle.net/nicolaskruchten/kn381h7s/)
* [a simple demo running on the "Canadian Parliament 2012" dataset](http://nicolaskruchten.github.io/pivottable/examples/mps_prepop.html)
* [fully-loaded demo running on the 700+ datasets that ship with R](http://nicolas.kruchten.com/pivottable/examples/rcsvs.html)
* [fully-loaded demo where you provide your own CSV file for input](http://nicolas.kruchten.com/pivottable/examples/local.html)
## Why is it good?

@@ -36,10 +45,2 @@

## Where are the demos/examples?
There are lots on the [examples page](http://nicolas.kruchten.com/pivottable/examples/index.html) but here are some good entry points:
* [a simple demo running on the "Canadian Parliament 2012" dataset](http://nicolaskruchten.github.io/pivottable/examples/mps_prepop.html)
* [fully-loaded demo running on the 700+ datasets that ship with R](http://nicolas.kruchten.com/pivottable/examples/rcsvs.html)
* [fully-loaded demo where you provide a CSV file for input](http://nicolaskruchten.github.io/pivottable/examples/fully_loaded.html)
## How do I use the UI?

@@ -114,3 +115,3 @@

Note that **`pivot()` and `pivotUI()` take different parameters in general**, even though in the example above we passed the same parameters to both.
Note that **`pivot()` and `pivotUI()` take different parameters in general**, even though in the example above we passed the same parameters to both. See the [FAQ](https://github.com/nicolaskruchten/pivottable/wiki/Frequently-Asked-Questions#params).

@@ -142,2 +143,4 @@ See the wiki for [full parameter documentation](https://github.com/nicolaskruchten/pivottable/wiki/Parameters).

The easiest way to modify the code and work with the examples is to leave a `node_modules/gulp/bin/gulp.js watch serve` command running, which will automatically compile the CoffeeScript files when they are modified and will also run a local web server you can connect to to run the tests and examples.
## How can I contribute?

@@ -153,3 +156,3 @@

PivotTable.js is © 2012-2013 Nicolas Kruchten, Datacratic, other contributors
PivotTable.js is © 2012-2016 Nicolas Kruchten, Datacratic, other contributors

@@ -156,0 +159,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc