postrest 0.0.3 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app.rb +1 -1
- data/public/index.htm +116 -0
- data/public/node_modules/pivottable/CONTRIBUTING.md +19 -0
- data/public/node_modules/pivottable/LICENSE.md +9 -0
- data/public/node_modules/pivottable/ReadMe.md +155 -0
- data/public/node_modules/pivottable/bower.json +31 -0
- data/public/node_modules/pivottable/c3_renderers.coffee +155 -0
- data/public/node_modules/pivottable/d3_renderers.coffee +73 -0
- data/public/node_modules/pivottable/dist/c3_renderers.js +256 -0
- data/public/node_modules/pivottable/dist/c3_renderers.js.map +1 -0
- data/public/node_modules/pivottable/dist/c3_renderers.min.js +2 -0
- data/public/node_modules/pivottable/dist/c3_renderers.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/d3_renderers.js +105 -0
- data/public/node_modules/pivottable/dist/d3_renderers.js.map +1 -0
- data/public/node_modules/pivottable/dist/d3_renderers.min.js +2 -0
- data/public/node_modules/pivottable/dist/d3_renderers.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/export_renderers.js +80 -0
- data/public/node_modules/pivottable/dist/export_renderers.js.map +1 -0
- data/public/node_modules/pivottable/dist/export_renderers.min.js +2 -0
- data/public/node_modules/pivottable/dist/export_renderers.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/gchart_renderers.js +183 -0
- data/public/node_modules/pivottable/dist/gchart_renderers.js.map +1 -0
- data/public/node_modules/pivottable/dist/gchart_renderers.min.js +2 -0
- data/public/node_modules/pivottable/dist/gchart_renderers.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.css +97 -0
- data/public/node_modules/pivottable/dist/pivot.es.js +78 -0
- data/public/node_modules/pivottable/dist/pivot.es.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.es.min.js +2 -0
- data/public/node_modules/pivottable/dist/pivot.es.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.fr.js +78 -0
- data/public/node_modules/pivottable/dist/pivot.fr.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.fr.min.js +2 -0
- data/public/node_modules/pivottable/dist/pivot.fr.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.js +1511 -0
- data/public/node_modules/pivottable/dist/pivot.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.min.css +1 -0
- data/public/node_modules/pivottable/dist/pivot.min.js +2 -0
- data/public/node_modules/pivottable/dist/pivot.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.nl.js +78 -0
- data/public/node_modules/pivottable/dist/pivot.nl.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.nl.min.js +2 -0
- data/public/node_modules/pivottable/dist/pivot.nl.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.pt.js +104 -0
- data/public/node_modules/pivottable/dist/pivot.pt.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.pt.min.js +2 -0
- data/public/node_modules/pivottable/dist/pivot.pt.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.ru.js +78 -0
- data/public/node_modules/pivottable/dist/pivot.ru.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.ru.min.js +2 -0
- data/public/node_modules/pivottable/dist/pivot.ru.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.tr.js +104 -0
- data/public/node_modules/pivottable/dist/pivot.tr.js.map +1 -0
- data/public/node_modules/pivottable/dist/pivot.tr.min.js +2 -0
- data/public/node_modules/pivottable/dist/pivot.tr.min.js.map +1 -0
- data/public/node_modules/pivottable/dist/tips_data.min.js +247 -0
- data/public/node_modules/pivottable/examples/c3.html +61 -0
- data/public/node_modules/pivottable/examples/d3.html +49 -0
- data/public/node_modules/pivottable/examples/fully_loaded.html +80 -0
- data/public/node_modules/pivottable/examples/gchart.html +53 -0
- data/public/node_modules/pivottable/examples/gh-fork-ribbon.css +140 -0
- data/public/node_modules/pivottable/examples/gh-fork-ribbon.ie.css +78 -0
- data/public/node_modules/pivottable/examples/index.html +85 -0
- data/public/node_modules/pivottable/examples/local.html +74 -0
- data/public/node_modules/pivottable/examples/montreal_2014.csv +366 -0
- data/public/node_modules/pivottable/examples/montreal_2014.html +106 -0
- data/public/node_modules/pivottable/examples/mps.csv +309 -0
- data/public/node_modules/pivottable/examples/mps.html +45 -0
- data/public/node_modules/pivottable/examples/mps.json +1 -0
- data/public/node_modules/pivottable/examples/mps_agg.html +44 -0
- data/public/node_modules/pivottable/examples/mps_csv.html +42 -0
- data/public/node_modules/pivottable/examples/mps_export.html +44 -0
- data/public/node_modules/pivottable/examples/mps_fr.html +40 -0
- data/public/node_modules/pivottable/examples/mps_prepop.html +42 -0
- data/public/node_modules/pivottable/examples/onrefresh.html +52 -0
- data/public/node_modules/pivottable/examples/rcsvs.html +87 -0
- data/public/node_modules/pivottable/examples/scatter.html +53 -0
- data/public/node_modules/pivottable/examples/show_code.js +17 -0
- data/public/node_modules/pivottable/examples/simple.html +41 -0
- data/public/node_modules/pivottable/examples/simple_agg.html +51 -0
- data/public/node_modules/pivottable/examples/simple_function.html +57 -0
- data/public/node_modules/pivottable/examples/simple_ui.html +42 -0
- data/public/node_modules/pivottable/examples/simple_ui_from_table.html +60 -0
- data/public/node_modules/pivottable/export_renderers.coffee +57 -0
- data/public/node_modules/pivottable/gchart_renderers.coffee +111 -0
- data/public/node_modules/pivottable/gulpFile.js +95 -0
- data/public/node_modules/pivottable/images/animation.gif +0 -0
- data/public/node_modules/pivottable/images/filters.png +0 -0
- data/public/node_modules/pivottable/images/gender_age_bins.png +0 -0
- data/public/node_modules/pivottable/images/gender_imbalance.png +0 -0
- data/public/node_modules/pivottable/images/gender_imbalance_instructions.png +0 -0
- data/public/node_modules/pivottable/images/initial_state.png +0 -0
- data/public/node_modules/pivottable/images/province_x_party_heatmap.png +0 -0
- data/public/node_modules/pivottable/images/province_x_party_heatmap_instructions.png +0 -0
- data/public/node_modules/pivottable/images/simple.png +0 -0
- data/public/node_modules/pivottable/images/simple_ui.png +0 -0
- data/public/node_modules/pivottable/images/whats_what.png +0 -0
- data/public/node_modules/pivottable/index.html +14 -0
- data/public/node_modules/pivottable/node_modules/jquery/AUTHORS.txt +278 -0
- data/public/node_modules/pivottable/node_modules/jquery/LICENSE.txt +36 -0
- data/public/node_modules/pivottable/node_modules/jquery/README.md +65 -0
- data/public/node_modules/pivottable/node_modules/jquery/bower.json +14 -0
- data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.js +9842 -0
- data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.min.js +4 -0
- data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.min.map +1 -0
- data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.slim.js +7877 -0
- data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.slim.min.js +4 -0
- data/public/node_modules/pivottable/node_modules/jquery/dist/jquery.slim.min.map +1 -0
- data/public/node_modules/pivottable/node_modules/jquery/package.json +122 -0
- data/public/node_modules/pivottable/node_modules/jquery/sizzle/LICENSE.txt +36 -0
- data/public/node_modules/pivottable/node_modules/jquery/sizzle/dist/sizzle.js +2143 -0
- data/public/node_modules/pivottable/node_modules/jquery/sizzle/dist/sizzle.min.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/sizzle/dist/sizzle.min.map +1 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/ajax.js +845 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/ajax/jsonp.js +100 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/ajax/load.js +83 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/ajax/parseJSON.js +13 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/ajax/parseXML.js +27 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/ajax/script.js +68 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/ajax/var/location.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/ajax/var/nonce.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/ajax/var/rquery.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/ajax/xhr.js +167 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/attributes.js +11 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/attributes/attr.js +142 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/attributes/classes.js +177 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/attributes/prop.js +125 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/attributes/support.js +36 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/attributes/val.js +177 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/callbacks.js +232 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/core.js +494 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/core/DOMEval.js +14 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/core/access.js +65 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/core/init.js +134 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/core/parseHTML.js +41 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/core/ready.js +103 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/core/support.js +18 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/core/var/rsingleTag.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css.js +515 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/addGetHookIf.js +24 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/adjustCSS.js +65 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/curCSS.js +60 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/defaultDisplay.js +72 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/hiddenVisibleSelectors.js +18 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/showHide.js +48 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/support.js +121 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/var/cssExpand.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/var/getStyles.js +15 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/var/isHidden.js +16 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/var/rmargin.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/var/rnumnonpx.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/css/var/swap.js +24 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/data.js +187 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/data/Data.js +200 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/data/accepts.js +20 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/data/support.js +23 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/data/var/acceptData.js +18 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/data/var/dataPriv.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/data/var/dataUser.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/deferred.js +158 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/deferred/exceptionHook.js +19 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/deprecated.js +32 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/dimensions.js +54 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/effects.js +629 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/effects/Tween.js +121 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/effects/animatedSelector.js +13 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/effects/support.js +58 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/event.js +710 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/event/ajax.js +20 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/event/alias.js +27 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/event/focusin.js +53 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/event/support.js +9 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/event/trigger.js +199 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/exports/amd.js +24 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/exports/global.js +26 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/intro.js +44 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/jquery.js +37 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation.js +481 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/_evalUrl.js +20 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/buildFragment.js +102 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/createSafeFragment.js +20 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/getAll.js +21 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/setGlobalEval.js +20 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/support.js +33 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/nodeNames.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rleadingWhitespace.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rscriptType.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/var/rtagName.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/manipulation/wrapMap.js +27 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/offset.js +218 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/outro.js +2 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/queue.js +143 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/queue/delay.js +22 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/selector-native.js +211 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/selector-sizzle.js +14 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/selector.js +1 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/serialize.js +125 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/support.js +63 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/traversing.js +175 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/traversing/findFilter.js +100 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/traversing/var/dir.js +20 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/traversing/var/siblings.js +15 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/arr.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/class2type.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/concat.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/deletedIds.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/document.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/documentElement.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/hasOwn.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/indexOf.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/pnum.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/push.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/rcssNum.js +7 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/rnotwhite.js +3 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/slice.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/support.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/var/toString.js +5 -0
- data/public/node_modules/pivottable/node_modules/jquery/src/wrap.js +79 -0
- data/public/node_modules/pivottable/package.json +70 -0
- data/public/node_modules/pivottable/pivot.coffee +957 -0
- data/public/node_modules/pivottable/pivot.es.coffee +57 -0
- data/public/node_modules/pivottable/pivot.fr.coffee +57 -0
- data/public/node_modules/pivottable/pivot.nl.coffee +55 -0
- data/public/node_modules/pivottable/pivot.pt.coffee +80 -0
- data/public/node_modules/pivottable/pivot.ru.coffee +56 -0
- data/public/node_modules/pivottable/pivot.tr.coffee +80 -0
- data/public/node_modules/pivottable/pivottable.jquery.json +33 -0
- data/public/node_modules/pivottable/tests/boot.js +152 -0
- data/public/node_modules/pivottable/tests/index.html +35 -0
- data/public/node_modules/pivottable/tests/pivot_spec.coffee +458 -0
- data/public/vendor.js +5 -0
- metadata +232 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["pivot.coffee"],"names":[],"mappings":"AAAA;AAAA,MAAA,cAAA;IAAA;;;;;EAAA,cAAA,GAAiB,SAAC,WAAD;IACb,IAAG,OAAO,OAAP,KAAkB,QAAlB,IAA+B,OAAO,MAAP,KAAiB,QAAnD;aACI,WAAA,CAAY,OAAA,CAAQ,QAAR,CAAZ,EADJ;KAAA,MAEK,IAAG,OAAO,MAAP,KAAiB,UAAjB,IAAgC,MAAM,CAAC,GAA1C;aACD,MAAA,CAAO,CAAC,QAAD,CAAP,EAAmB,WAAnB,EADC;KAAA,MAAA;aAID,WAAA,CAAY,MAAZ,EAJC;;EAHQ;;EASjB,cAAA,CAAe,SAAC,CAAD;;AAEX;;;AAAA,QAAA;IAIA,aAAA,GAAgB,SAAC,IAAD,EAAO,YAAP,EAAqB,UAArB;AACZ,UAAA;MAAA,IAAA,IAAQ;MACR,CAAA,GAAI,IAAI,CAAC,KAAL,CAAW,GAAX;MACJ,EAAA,GAAK,CAAE,CAAA,CAAA;MACP,EAAA,GAAQ,CAAC,CAAC,MAAF,GAAW,CAAd,GAAsB,UAAA,GAAa,CAAE,CAAA,CAAA,CAArC,GAA6C;MAClD,GAAA,GAAM;AAC2C,aAAM,GAAG,CAAC,IAAJ,CAAS,EAAT,CAAN;QAAjD,EAAA,GAAK,EAAE,CAAC,OAAH,CAAW,GAAX,EAAgB,IAAA,GAAO,YAAP,GAAsB,IAAtC;MAA4C;AACjD,aAAO,EAAA,GAAK;IAPA;IAShB,YAAA,GAAe,SAAC,IAAD;AACX,UAAA;MAAA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U,MADV;aADM;YAGV,OAAO,CAAC,MAAR,CAAe,CAAA,CAAE,OAAF,CAAU,CAAC,GAAX,CACX;cAAA,UAAA,EAAY,UAAZ;cACA,QAAA,EAAU,CADV;cAEA,MAAA,EAAQ,CAFR;cAGA,OAAA,EAAS,CAHT;cAIA,QAAA,EAAU,MAAA,CAAO,CAAP,CAAA,GAAY,GAJtB;cAKA,kBAAA,EAAoB,MALpB;aADW,CAAf;YAOA,OAAO,CAAC,MAAR,CAAe,CAAA,CAAE,OAAF,CAAU,CAAC,IAAX,CAAgB,IAAhB,CAAqB,CAAC,GAAtB,CACX;cAAA,UAAA,EAAW,UAAX;cACA,cAAA,EAAe,KADf;cAEA,eAAA,EAAgB,KAFhB;aADW,CAAf;mBAKA,IAAI,CAAC,GAAL,CAAS;cAAA,SAAA,EAAW,CAAX;cAAa,aAAA,EAAe,KAA5B;cAAmC,YAAA,EAAc,QAAjD;aAAT,CAAmE,CAAC,IAApE,CAAyE,OAAzE;UAjBQ,CAAZ;QAVS;MAAA,CAAA,CAAA,CAAA,IAAA;AA6Bb,WAAsC,gFAAtC;QAAA,UAAA,CAAW,aAAA,GAAc,CAAzB;AAAA;MACA,UAAA,CAAW,oBAAX;AAEA,aAAO;IApCM;EA74BN,CAAf;AATA","file":"pivot.js","sourceRoot":"/source/","sourcesContent":["callWithJQuery = (pivotModule) ->\n if typeof exports is \"object\" and typeof module is \"object\" # CommonJS\n pivotModule require(\"jquery\")\n else if typeof define is \"function\" and define.amd # AMD\n define [\"jquery\"], pivotModule\n # Plain browser env\n else\n pivotModule jQuery\n \ncallWithJQuery ($) ->\n\n ###\n Utilities\n ###\n\n addSeparators = (nStr, thousandsSep, decimalSep) ->\n nStr += ''\n x = nStr.split('.')\n x1 = x[0]\n x2 = if x.length > 1 then decimalSep + x[1] else ''\n rgx = /(\\d+)(\\d{3})/\n x1 = x1.replace(rgx, '$1' + thousandsSep + '$2') while rgx.test(x1)\n return x1 + x2\n\n numberFormat = (opts) ->\n defaults = \n digitsAfterDecimal: 2, scaler: 1, \n thousandsSep: \",\", decimalSep: \".\"\n prefix: \"\", suffix: \"\"\n showZero: false\n opts = $.extend defaults, opts\n (x) ->\n return \"\" if isNaN(x) or not isFinite(x)\n return \"\" if x == 0 and not opts.showZero\n result = addSeparators (opts.scaler*x).toFixed(opts.digitsAfterDecimal), opts.thousandsSep, opts.decimalSep\n return \"\"+opts.prefix+result+opts.suffix\n\n #aggregator templates default to US number formatting but this is overrideable\n usFmt = numberFormat()\n usFmtInt = numberFormat(digitsAfterDecimal: 0)\n usFmtPct = numberFormat(digitsAfterDecimal:1, scaler: 100, suffix: \"%\")\n\n aggregatorTemplates =\n count: (formatter=usFmtInt) -> () -> (data, rowKey, colKey) ->\n count: 0\n push: -> @count++\n value: -> @count\n format: formatter\n\n countUnique: (formatter=usFmtInt) -> ([attr]) -> (data, rowKey, colKey) ->\n uniq: []\n push: (record) -> @uniq.push(record[attr]) if record[attr] not in @uniq\n value: -> @uniq.length\n format: formatter\n numInputs: if attr? then 0 else 1\n\n listUnique: (sep) -> ([attr]) -> (data, rowKey, colKey) ->\n uniq: []\n push: (record) -> @uniq.push(record[attr]) if record[attr] not in @uniq\n value: -> @uniq.join sep\n format: (x) -> x\n numInputs: if attr? then 0 else 1\n\n sum: (formatter=usFmt) -> ([attr]) -> (data, rowKey, colKey) ->\n sum: 0\n push: (record) -> @sum += parseFloat(record[attr]) if not isNaN parseFloat(record[attr])\n value: -> @sum\n format: formatter\n numInputs: if attr? then 0 else 1\n\n min: (formatter=usFmt) -> ([attr]) -> (data, rowKey, colKey) ->\n val: null\n push: (record) ->\n x = parseFloat(record[attr])\n if not isNaN x then @val = Math.min(x, @val ? x)\n value: -> @val\n format: formatter\n numInputs: if attr? then 0 else 1\n\n max: (formatter=usFmt) -> ([attr]) -> (data, rowKey, colKey) ->\n val: null\n push: (record) -> \n x = parseFloat(record[attr])\n if not isNaN x then @val = Math.max(x, @val ? x)\n value: -> @val\n format: formatter\n numInputs: if attr? then 0 else 1\n\n average: (formatter=usFmt) -> ([attr]) -> (data, rowKey, colKey) ->\n sum: 0\n len: 0\n push: (record) ->\n if not isNaN parseFloat(record[attr])\n @sum += parseFloat(record[attr])\n @len++\n value: -> @sum/@len\n format: formatter\n numInputs: if attr? then 0 else 1\n\n sumOverSum: (formatter=usFmt) -> ([num, denom]) -> (data, rowKey, colKey) ->\n sumNum: 0\n sumDenom: 0\n push: (record) ->\n @sumNum += parseFloat(record[num]) if not isNaN parseFloat(record[num])\n @sumDenom += parseFloat(record[denom]) if not isNaN parseFloat(record[denom])\n value: -> @sumNum/@sumDenom\n format: formatter\n numInputs: if num? and denom? then 0 else 2\n\n sumOverSumBound80: (upper=true, formatter=usFmt) -> ([num, denom]) -> (data, rowKey, colKey) ->\n sumNum: 0\n sumDenom: 0\n push: (record) ->\n @sumNum += parseFloat(record[num]) if not isNaN parseFloat(record[num])\n @sumDenom += parseFloat(record[denom]) if not isNaN parseFloat(record[denom])\n value: ->\n sign = if upper then 1 else -1\n (0.821187207574908/@sumDenom + @sumNum/@sumDenom + 1.2815515655446004*sign*\n Math.sqrt(0.410593603787454/ (@sumDenom*@sumDenom) + (@sumNum*(1 - @sumNum/ @sumDenom))/ (@sumDenom*@sumDenom)))/\n (1 + 1.642374415149816/@sumDenom)\n format: formatter\n numInputs: if num? and denom? then 0 else 2\n\n fractionOf: (wrapped, type=\"total\", formatter=usFmtPct) -> (x...) -> (data, rowKey, colKey) ->\n selector: {total:[[],[]],row:[rowKey,[]],col:[[],colKey]}[type]\n inner: wrapped(x...)(data, rowKey, colKey)\n push: (record) -> @inner.push record\n format: formatter\n value: -> @inner.value() / data.getAggregator(@selector...).inner.value()\n numInputs: wrapped(x...)().numInputs\n\n #default aggregators & renderers use US naming and number formatting\n aggregators = do (tpl = aggregatorTemplates) -> \n \"Count\": tpl.count(usFmtInt)\n \"Count Unique Values\": tpl.countUnique(usFmtInt)\n \"List Unique Values\": tpl.listUnique(\", \")\n \"Sum\": tpl.sum(usFmt)\n \"Integer Sum\": tpl.sum(usFmtInt)\n \"Average\": tpl.average(usFmt)\n \"Minimum\": tpl.min(usFmt)\n \"Maximum\": tpl.max(usFmt)\n \"Sum over Sum\": tpl.sumOverSum(usFmt)\n \"80% Upper Bound\": tpl.sumOverSumBound80(true, usFmt)\n \"80% Lower Bound\": tpl.sumOverSumBound80(false, usFmt)\n \"Sum as Fraction of Total\": tpl.fractionOf(tpl.sum(), \"total\", usFmtPct)\n \"Sum as Fraction of Rows\": tpl.fractionOf(tpl.sum(), \"row\", usFmtPct)\n \"Sum as Fraction of Columns\": tpl.fractionOf(tpl.sum(), \"col\", usFmtPct)\n \"Count as Fraction of Total\": tpl.fractionOf(tpl.count(), \"total\", usFmtPct)\n \"Count as Fraction of Rows\": tpl.fractionOf(tpl.count(), \"row\", usFmtPct)\n \"Count as Fraction of Columns\": tpl.fractionOf(tpl.count(), \"col\", usFmtPct)\n\n renderers =\n \"Table\": (pvtData, opts) -> pivotTableRenderer(pvtData, opts)\n \"Table Barchart\": (pvtData, opts) -> $(pivotTableRenderer(pvtData, opts)).barchart()\n \"Heatmap\": (pvtData, opts) -> $(pivotTableRenderer(pvtData, opts)).heatmap()\n \"Row Heatmap\": (pvtData, opts) -> $(pivotTableRenderer(pvtData, opts)).heatmap(\"rowheatmap\")\n \"Col Heatmap\": (pvtData, opts) -> $(pivotTableRenderer(pvtData, opts)).heatmap(\"colheatmap\")\n\n locales = \n en: \n aggregators: aggregators\n renderers: renderers\n localeStrings: \n renderError: \"An error occurred rendering the PivotTable results.\"\n computeError: \"An error occurred computing the PivotTable results.\"\n uiRenderError: \"An error occurred rendering the PivotTable UI.\"\n selectAll: \"Select All\"\n selectNone: \"Select None\"\n tooMany: \"(too many to list)\"\n filterResults: \"Filter results\"\n totals: \"Totals\" #for table renderer\n vs: \"vs\" #for gchart renderer\n by: \"by\" #for gchart renderer\n\n #dateFormat deriver l10n requires month and day names to be passed in directly\n mthNamesEn = [\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"]\n dayNamesEn = [\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"]\n zeroPad = (number) -> (\"0\"+number).substr(-2,2)\n\n derivers =\n bin: (col, binWidth) -> (record) -> record[col] - record[col] % binWidth\n dateFormat: (col, formatString, utcOutput=false, mthNames=mthNamesEn, dayNames=dayNamesEn) ->\n utc = if utcOutput then \"UTC\" else \"\"\n (record) -> #thanks http://stackoverflow.com/a/12213072/112871\n date = new Date(Date.parse(record[col]))\n if isNaN(date) then return \"\"\n formatString.replace /%(.)/g, (m, p) ->\n switch p\n when \"y\" then date[\"get#{utc}FullYear\"]()\n when \"m\" then zeroPad(date[\"get#{utc}Month\"]()+1)\n when \"n\" then mthNames[date[\"get#{utc}Month\"]()]\n when \"d\" then zeroPad(date[\"get#{utc}Date\"]())\n when \"w\" then dayNames[date[\"get#{utc}Day\"]()]\n when \"x\" then date[\"get#{utc}Day\"]()\n when \"H\" then zeroPad(date[\"get#{utc}Hours\"]())\n when \"M\" then zeroPad(date[\"get#{utc}Minutes\"]())\n when \"S\" then zeroPad(date[\"get#{utc}Seconds\"]())\n else \"%\" + p\n\n naturalSort = (as, bs) => #thanks http://stackoverflow.com/a/4373421/112871\n rx = /(\\d+)|(\\D+)/g\n rd = /\\d/\n rz = /^0/\n if typeof as is \"number\" or typeof bs is \"number\"\n return 1 if isNaN(as)\n return -1 if isNaN(bs)\n return as - bs\n a = String(as).toLowerCase()\n b = String(bs).toLowerCase()\n return 0 if a is b\n return (if a > b then 1 else -1) unless rd.test(a) and rd.test(b)\n a = a.match(rx)\n b = b.match(rx)\n while a.length and b.length\n a1 = a.shift()\n b1 = b.shift()\n if a1 isnt b1\n if rd.test(a1) and rd.test(b1)\n return a1.replace(rz, \".0\") - b1.replace(rz, \".0\")\n else\n return (if a1 > b1 then 1 else -1)\n a.length - b.length\n\n sortAs = (order) -> \n mapping = {}\n for i, x of order\n mapping[x] = i\n (a, b) ->\n if mapping[a]? and mapping[b]?\n return mapping[a] - mapping[b]\n else if mapping[a]?\n return -1\n else if mapping[b]?\n return 1\n else\n return naturalSort(a,b)\n\n getSort = (sorters, attr) ->\n sort = sorters(attr)\n if $.isFunction(sort)\n return sort \n else\n return naturalSort\n\n ###\n Data Model class\n ###\n\n class PivotData\n constructor: (input, opts) ->\n @aggregator = opts.aggregator\n @aggregatorName = opts.aggregatorName\n @colAttrs = opts.cols\n @rowAttrs = opts.rows\n @valAttrs = opts.vals\n @sorters = opts.sorters\n @tree = {}\n @rowKeys = []\n @colKeys = []\n @rowTotals = {}\n @colTotals = {}\n @allTotal = @aggregator(this, [], [])\n @sorted = false\n\n # iterate through input, accumulating data for cells\n PivotData.forEachRecord input, opts.derivedAttributes, (record) =>\n @processRecord(record) if opts.filter(record)\n\n #can handle arrays or jQuery selections of tables\n @forEachRecord = (input, derivedAttributes, f) ->\n if $.isEmptyObject derivedAttributes\n addRecord = f\n else\n addRecord = (record) -> \n record[k] = v(record) ? record[k] for k, v of derivedAttributes\n f(record)\n\n #if it's a function, have it call us back\n if $.isFunction(input)\n input(addRecord)\n else if $.isArray(input)\n if $.isArray(input[0]) #array of arrays\n for own i, compactRecord of input when i > 0\n record = {}\n record[k] = compactRecord[j] for own j, k of input[0]\n addRecord(record)\n else #array of objects\n addRecord(record) for record in input\n else if input instanceof jQuery\n tblCols = []\n $(\"thead > tr > th\", input).each (i) -> tblCols.push $(this).text()\n $(\"tbody > tr\", input).each (i) ->\n record = {}\n $(\"td\", this).each (j) -> record[tblCols[j]] = $(this).text()\n addRecord(record)\n else\n throw new Error(\"unknown input format\")\n\n #converts to [{attr:val, attr:val},{attr:val, attr:val}] using method above\n @convertToArray = (input) ->\n result = []\n PivotData.forEachRecord input, {}, (record) -> result.push record\n return result\n\n arrSort: (attrs) => \n sortersArr = (getSort(@sorters, a) for a in attrs)\n (a,b) -> \n for own i, sorter of sortersArr\n comparison = sorter(a[i], b[i])\n return comparison if comparison != 0\n return 0\n\n sortKeys: () =>\n if not @sorted\n @sorted = true\n @rowKeys.sort @arrSort(@rowAttrs)\n @colKeys.sort @arrSort(@colAttrs)\n\n getColKeys: () =>\n @sortKeys()\n return @colKeys\n\n getRowKeys: () =>\n @sortKeys()\n return @rowKeys\n\n processRecord: (record) -> #this code is called in a tight loop\n colKey = []\n rowKey = []\n colKey.push record[x] ? \"null\" for x in @colAttrs \n rowKey.push record[x] ? \"null\" for x in @rowAttrs\n flatRowKey = rowKey.join(String.fromCharCode(0))\n flatColKey = colKey.join(String.fromCharCode(0))\n\n @allTotal.push record\n\n if rowKey.length != 0\n if not @rowTotals[flatRowKey]\n @rowKeys.push rowKey\n @rowTotals[flatRowKey] = @aggregator(this, rowKey, [])\n @rowTotals[flatRowKey].push record\n\n if colKey.length != 0\n if not @colTotals[flatColKey]\n @colKeys.push colKey\n @colTotals[flatColKey] = @aggregator(this, [], colKey)\n @colTotals[flatColKey].push record\n\n if colKey.length != 0 and rowKey.length != 0\n if not @tree[flatRowKey]\n @tree[flatRowKey] = {}\n if not @tree[flatRowKey][flatColKey]\n @tree[flatRowKey][flatColKey] = @aggregator(this, rowKey, colKey)\n @tree[flatRowKey][flatColKey].push record\n\n getAggregator: (rowKey, colKey) =>\n flatRowKey = rowKey.join(String.fromCharCode(0))\n flatColKey = colKey.join(String.fromCharCode(0))\n if rowKey.length == 0 and colKey.length == 0\n agg = @allTotal\n else if rowKey.length == 0\n agg = @colTotals[flatColKey]\n else if colKey.length == 0\n agg = @rowTotals[flatRowKey]\n else\n agg = @tree[flatRowKey][flatColKey]\n return agg ? {value: (-> null), format: -> \"\"}\n\n #expose these to the outside world\n $.pivotUtilities = {aggregatorTemplates, aggregators, renderers, derivers, locales,\n naturalSort, numberFormat, sortAs, PivotData}\n\n ###\n Default Renderer for hierarchical table layout\n ###\n\n pivotTableRenderer = (pivotData, opts) ->\n\n defaults =\n localeStrings:\n totals: \"Totals\"\n\n opts = $.extend defaults, opts\n\n colAttrs = pivotData.colAttrs\n rowAttrs = pivotData.rowAttrs\n rowKeys = pivotData.getRowKeys()\n colKeys = pivotData.getColKeys()\n\n #now actually build the output\n result = document.createElement(\"table\")\n result.className = \"pvtTable\"\n\n #helper function for setting row/col-span in pivotTableRenderer\n spanSize = (arr, i, j) ->\n if i != 0\n noDraw = true\n for x in [0..j]\n if arr[i-1][x] != arr[i][x]\n noDraw = false\n if noDraw\n return -1 #do not draw cell\n len = 0\n while i+len < arr.length\n stop = false\n for x in [0..j]\n stop = true if arr[i][x] != arr[i+len][x]\n break if stop\n len++\n return len\n\n #the first few rows are for col headers\n for own j, c of colAttrs\n tr = document.createElement(\"tr\")\n if parseInt(j) == 0 and rowAttrs.length != 0\n th = document.createElement(\"th\")\n th.setAttribute(\"colspan\", rowAttrs.length)\n th.setAttribute(\"rowspan\", colAttrs.length)\n tr.appendChild th\n th = document.createElement(\"th\")\n th.className = \"pvtAxisLabel\"\n th.textContent = c\n tr.appendChild th\n for own i, colKey of colKeys\n x = spanSize(colKeys, parseInt(i), parseInt(j))\n if x != -1\n th = document.createElement(\"th\")\n th.className = \"pvtColLabel\"\n th.textContent = colKey[j]\n th.setAttribute(\"colspan\", x)\n if parseInt(j) == colAttrs.length-1 and rowAttrs.length != 0\n th.setAttribute(\"rowspan\", 2)\n tr.appendChild th\n if parseInt(j) == 0\n th = document.createElement(\"th\")\n th.className = \"pvtTotalLabel\"\n th.innerHTML = opts.localeStrings.totals\n th.setAttribute(\"rowspan\", colAttrs.length + (if rowAttrs.length ==0 then 0 else 1))\n tr.appendChild th\n result.appendChild tr\n\n #then a row for row header headers\n if rowAttrs.length !=0\n tr = document.createElement(\"tr\")\n for own i, r of rowAttrs\n th = document.createElement(\"th\")\n th.className = \"pvtAxisLabel\"\n th.textContent = r\n tr.appendChild th \n th = document.createElement(\"th\")\n if colAttrs.length ==0\n th.className = \"pvtTotalLabel\"\n th.innerHTML = opts.localeStrings.totals\n tr.appendChild th\n result.appendChild tr\n\n #now the actual data rows, with their row headers and totals\n for own i, rowKey of rowKeys\n tr = document.createElement(\"tr\")\n for own j, txt of rowKey\n x = spanSize(rowKeys, parseInt(i), parseInt(j))\n if x != -1\n th = document.createElement(\"th\")\n th.className = \"pvtRowLabel\"\n th.textContent = txt\n th.setAttribute(\"rowspan\", x)\n if parseInt(j) == rowAttrs.length-1 and colAttrs.length !=0\n th.setAttribute(\"colspan\",2)\n tr.appendChild th\n for own j, colKey of colKeys #this is the tight loop\n aggregator = pivotData.getAggregator(rowKey, colKey)\n val = aggregator.value()\n td = document.createElement(\"td\")\n td.className = \"pvtVal row#{i} col#{j}\"\n td.textContent = aggregator.format(val)\n td.setAttribute(\"data-value\", val)\n tr.appendChild td\n\n totalAggregator = pivotData.getAggregator(rowKey, [])\n val = totalAggregator.value()\n td = document.createElement(\"td\")\n td.className = \"pvtTotal rowTotal\"\n td.textContent = totalAggregator.format(val)\n td.setAttribute(\"data-value\", val)\n td.setAttribute(\"data-for\", \"row\"+i)\n tr.appendChild td\n result.appendChild tr\n\n #finally, the row for col totals, and a grand total\n tr = document.createElement(\"tr\")\n th = document.createElement(\"th\")\n th.className = \"pvtTotalLabel\"\n th.innerHTML = opts.localeStrings.totals\n th.setAttribute(\"colspan\", rowAttrs.length + (if colAttrs.length == 0 then 0 else 1))\n tr.appendChild th\n for own j, colKey of colKeys\n totalAggregator = pivotData.getAggregator([], colKey)\n val = totalAggregator.value()\n td = document.createElement(\"td\")\n td.className = \"pvtTotal colTotal\"\n td.textContent = totalAggregator.format(val)\n td.setAttribute(\"data-value\", val)\n td.setAttribute(\"data-for\", \"col\"+j)\n tr.appendChild td\n totalAggregator = pivotData.getAggregator([], [])\n val = totalAggregator.value()\n td = document.createElement(\"td\")\n td.className = \"pvtGrandTotal\"\n td.textContent = totalAggregator.format(val)\n td.setAttribute(\"data-value\", val)\n tr.appendChild td\n result.appendChild tr\n\n #squirrel this away for later\n result.setAttribute(\"data-numrows\", rowKeys.length)\n result.setAttribute(\"data-numcols\", colKeys.length)\n\n return result\n\n ###\n Pivot Table core: create PivotData object and call Renderer on it\n ###\n\n $.fn.pivot = (input, opts) ->\n defaults =\n cols : []\n rows: []\n vals: []\n filter: -> true\n aggregator: aggregatorTemplates.count()()\n aggregatorName: \"Count\"\n sorters: -> \n derivedAttributes: {},\n renderer: pivotTableRenderer\n rendererOptions: null\n localeStrings: locales.en.localeStrings\n\n opts = $.extend defaults, opts\n\n result = null\n try\n pivotData = new PivotData(input, opts)\n try\n result = opts.renderer(pivotData, opts.rendererOptions)\n catch e\n console.error(e.stack) if console?\n result = $(\"<span>\").html opts.localeStrings.renderError\n catch e\n console.error(e.stack) if console?\n result = $(\"<span>\").html opts.localeStrings.computeError\n \n x = this[0]\n x.removeChild(x.lastChild) while x.hasChildNodes()\n return @append result\n\n\n ###\n Pivot Table UI: calls Pivot Table core above with options set by user\n ###\n\n $.fn.pivotUI = (input, inputOpts, overwrite = false, locale=\"en\") ->\n if not locales[locale]?\n locale = \"en\"\n defaults =\n derivedAttributes: {}\n aggregators: locales[locale].aggregators\n renderers: locales[locale].renderers\n hiddenAttributes: []\n menuLimit: 200\n cols: [], rows: [], vals: []\n exclusions: {}\n inclusions: {}\n unusedAttrsVertical: 85\n autoSortUnusedAttrs: false\n rendererOptions: localeStrings: locales[locale].localeStrings\n onRefresh: null\n filter: -> true\n sorters: -> \n localeStrings: locales[locale].localeStrings\n\n existingOpts = @data \"pivotUIOptions\"\n if not existingOpts? or overwrite\n opts = $.extend defaults, inputOpts\n else\n opts = existingOpts\n\n try\n #cache the input in some useful form\n input = PivotData.convertToArray(input)\n tblCols = (k for own k of input[0])\n tblCols.push c for own c of opts.derivedAttributes when (c not in tblCols)\n\n #figure out the cardinality and some stats\n axisValues = {}\n axisValues[x] = {} for x in tblCols\n\n PivotData.forEachRecord input, opts.derivedAttributes, (record) ->\n for own k, v of record when opts.filter(record)\n v ?= \"null\"\n axisValues[k][v] ?= 0\n axisValues[k][v]++\n\n #start building the output\n uiTable = $(\"<table>\", \"class\": \"pvtUi\").attr(\"cellpadding\", 5)\n\n #renderer control\n rendererControl = $(\"<td>\")\n\n renderer = $(\"<select>\")\n .addClass('pvtRenderer')\n .appendTo(rendererControl)\n .bind \"change\", -> refresh() #capture reference\n for own x of opts.renderers\n $(\"<option>\").val(x).html(x).appendTo(renderer)\n\n\n #axis list, including the double-click menu\n colList = $(\"<td>\").addClass('pvtAxisContainer pvtUnused')\n shownAttributes = (c for c in tblCols when c not in opts.hiddenAttributes)\n\n unusedAttrsVerticalAutoOverride = false\n if opts.unusedAttrsVertical == \"auto\"\n unusedAttrsVerticalAutoCutoff = 120 # legacy support\n else\n unusedAttrsVerticalAutoCutoff = parseInt opts.unusedAttrsVertical\n\n if not isNaN(unusedAttrsVerticalAutoCutoff)\n attrLength = 0\n attrLength += a.length for a in shownAttributes\n unusedAttrsVerticalAutoOverride = attrLength > unusedAttrsVerticalAutoCutoff\n\n if opts.unusedAttrsVertical == true or unusedAttrsVerticalAutoOverride\n colList.addClass('pvtVertList')\n else\n colList.addClass('pvtHorizList')\n\n for own i, c of shownAttributes\n do (c) ->\n keys = (k for k of axisValues[c])\n hasExcludedItem = false\n valueList = $(\"<div>\").addClass('pvtFilterBox').hide()\n\n valueList.append $(\"<h4>\").text(\"#{c} (#{keys.length})\")\n if keys.length > opts.menuLimit\n valueList.append $(\"<p>\").html(opts.localeStrings.tooMany)\n else\n btns = $(\"<p>\").appendTo(valueList)\n btns.append $(\"<button>\", {type:\"button\"}).html(opts.localeStrings.selectAll).bind \"click\", ->\n valueList.find(\"input:visible\").prop \"checked\", true\n btns.append $(\"<button>\", {type:\"button\"}).html(opts.localeStrings.selectNone).bind \"click\", ->\n valueList.find(\"input:visible\").prop \"checked\", false\n btns.append $(\"<br>\")\n btns.append $(\"<input>\", {type: \"text\", placeholder: opts.localeStrings.filterResults, class: \"pvtSearch\"}).bind \"keyup\", ->\n filter = $(this).val().toLowerCase()\n valueList.find('.pvtCheckContainer p').each ->\n testString = $(this).text().toLowerCase().indexOf(filter)\n if testString isnt -1\n $(this).show()\n else\n $(this).hide()\n\n checkContainer = $(\"<div>\").addClass(\"pvtCheckContainer\").appendTo(valueList)\n\n for k in keys.sort(getSort(opts.sorters, c))\n v = axisValues[c][k]\n filterItem = $(\"<label>\")\n filterItemExcluded = false\n if opts.inclusions[c]\n filterItemExcluded = (k not in opts.inclusions[c])\n else if opts.exclusions[c]\n filterItemExcluded = (k in opts.exclusions[c])\n hasExcludedItem ||= filterItemExcluded\n $(\"<input>\")\n .attr(\"type\", \"checkbox\").addClass('pvtFilter')\n .attr(\"checked\", !filterItemExcluded).data(\"filter\", [c,k])\n .appendTo filterItem\n filterItem.append $(\"<span>\").text k\n filterItem.append $(\"<span>\").text \" (\"+v+\")\"\n checkContainer.append $(\"<p>\").append(filterItem)\n\n updateFilter = ->\n unselectedCount = valueList.find(\"[type='checkbox']\").length -\n valueList.find(\"[type='checkbox']:checked\").length\n if unselectedCount > 0\n attrElem.addClass \"pvtFilteredAttribute\"\n else\n attrElem.removeClass \"pvtFilteredAttribute\"\n if keys.length > opts.menuLimit\n valueList.toggle()\n else\n valueList.toggle(0, refresh)\n\n $(\"<p>\").appendTo(valueList)\n .append $(\"<button>\", {type:\"button\"}).text(\"OK\").bind \"click\", updateFilter\n\n showFilterList = (e) ->\n {left: clickLeft, top: clickTop, } = $(e.currentTarget).position()\n valueList.css(left: clickLeft+10, top: clickTop+10).toggle()\n valueList.find('.pvtSearch').val('')\n valueList.find('.pvtCheckContainer p').show()\n\n triangleLink = $(\"<span>\").addClass('pvtTriangle').html(\" ▾\")\n .bind \"click\", showFilterList\n\n attrElem = $(\"<li>\").addClass(\"axis_#{i}\")\n .append $(\"<span>\").addClass('pvtAttr').text(c).data(\"attrName\", c).append(triangleLink)\n attrElem.addClass('pvtFilteredAttribute') if hasExcludedItem\n colList.append(attrElem).append(valueList)\n\n attrElem.bind \"dblclick\", showFilterList\n\n tr1 = $(\"<tr>\").appendTo(uiTable)\n\n #aggregator menu and value area\n\n aggregator = $(\"<select>\").addClass('pvtAggregator')\n .bind \"change\", -> refresh() #capture reference\n for own x of opts.aggregators\n aggregator.append $(\"<option>\").val(x).html(x)\n\n $(\"<td>\").addClass('pvtVals')\n .appendTo(tr1)\n .append(aggregator)\n .append($(\"<br>\"))\n\n #column axes\n $(\"<td>\").addClass('pvtAxisContainer pvtHorizList pvtCols').appendTo(tr1)\n\n tr2 = $(\"<tr>\").appendTo(uiTable)\n\n #row axes\n tr2.append $(\"<td>\").addClass('pvtAxisContainer pvtRows').attr(\"valign\", \"top\")\n\n #the actual pivot table container\n pivotTable = $(\"<td>\")\n .attr(\"valign\", \"top\")\n .addClass('pvtRendererArea')\n .appendTo(tr2)\n\n #finally the renderer dropdown and unused attribs are inserted at the requested location\n if opts.unusedAttrsVertical == true or unusedAttrsVerticalAutoOverride\n uiTable.find('tr:nth-child(1)').prepend rendererControl\n uiTable.find('tr:nth-child(2)').prepend colList\n else\n uiTable.prepend $(\"<tr>\").append(rendererControl).append(colList)\n\n #render the UI in its default state\n @html uiTable\n\n #set up the UI initial state as requested by moving elements around\n\n for x in opts.cols\n @find(\".pvtCols\").append @find(\".axis_#{$.inArray(x, shownAttributes)}\")\n for x in opts.rows\n @find(\".pvtRows\").append @find(\".axis_#{$.inArray(x, shownAttributes)}\")\n if opts.aggregatorName?\n @find(\".pvtAggregator\").val opts.aggregatorName\n if opts.rendererName?\n @find(\".pvtRenderer\").val opts.rendererName\n\n initialRender = true\n\n #set up for refreshing\n refreshDelayed = =>\n subopts =\n derivedAttributes: opts.derivedAttributes\n localeStrings: opts.localeStrings\n rendererOptions: opts.rendererOptions\n sorters: opts.sorters\n cols: [], rows: []\n\n numInputsToProcess = opts.aggregators[aggregator.val()]([])().numInputs ? 0\n vals = []\n @find(\".pvtRows li span.pvtAttr\").each -> subopts.rows.push $(this).data(\"attrName\")\n @find(\".pvtCols li span.pvtAttr\").each -> subopts.cols.push $(this).data(\"attrName\")\n @find(\".pvtVals select.pvtAttrDropdown\").each ->\n if numInputsToProcess == 0\n $(this).remove()\n else\n numInputsToProcess--\n vals.push $(this).val() if $(this).val() != \"\"\n\n if numInputsToProcess != 0\n pvtVals = @find(\".pvtVals\")\n for x in [0...numInputsToProcess]\n newDropdown = $(\"<select>\")\n .addClass('pvtAttrDropdown')\n .append($(\"<option>\"))\n .bind \"change\", -> refresh()\n for attr in shownAttributes\n newDropdown.append($(\"<option>\").val(attr).text(attr))\n pvtVals.append(newDropdown)\n\n if initialRender\n vals = opts.vals\n i = 0\n @find(\".pvtVals select.pvtAttrDropdown\").each ->\n $(this).val vals[i]\n i++\n initialRender = false\n\n subopts.aggregatorName = aggregator.val()\n subopts.vals = vals\n subopts.aggregator = opts.aggregators[aggregator.val()](vals)\n subopts.renderer = opts.renderers[renderer.val()]\n\n #construct filter here\n exclusions = {}\n @find('input.pvtFilter').not(':checked').each ->\n filter = $(this).data(\"filter\")\n if exclusions[filter[0]]?\n exclusions[filter[0]].push( filter[1] )\n else\n exclusions[filter[0]] = [ filter[1] ]\n #include inclusions when exclusions present\n inclusions = {}\n @find('input.pvtFilter:checked').each ->\n filter = $(this).data(\"filter\")\n if exclusions[filter[0]]?\n if inclusions[filter[0]]?\n inclusions[filter[0]].push( filter[1] )\n else\n inclusions[filter[0]] = [ filter[1] ]\n\n subopts.filter = (record) ->\n return false if not opts.filter(record)\n for k,excludedItems of exclusions\n return false if \"\"+record[k] in excludedItems\n return true\n\n pivotTable.pivot(input,subopts)\n pivotUIOptions = $.extend opts,\n cols: subopts.cols\n rows: subopts.rows\n vals: vals\n exclusions: exclusions\n inclusions: inclusions\n inclusionsInfo: inclusions #duplicated for backwards-compatibility\n aggregatorName: aggregator.val()\n rendererName: renderer.val()\n\n @data \"pivotUIOptions\", pivotUIOptions\n\n # if requested make sure unused columns are in alphabetical order\n if opts.autoSortUnusedAttrs\n unusedAttrsContainer = @find(\"td.pvtUnused.pvtAxisContainer\")\n $(unusedAttrsContainer).children(\"li\")\n .sort((a, b) => naturalSort($(a).text(), $(b).text()))\n .appendTo unusedAttrsContainer\n\n pivotTable.css(\"opacity\", 1)\n opts.onRefresh(pivotUIOptions) if opts.onRefresh?\n\n refresh = =>\n pivotTable.css(\"opacity\", 0.5)\n setTimeout refreshDelayed, 10\n\n #the very first refresh will actually display the table\n refresh()\n\n @find(\".pvtAxisContainer\").sortable\n update: (e, ui) -> refresh() if not ui.sender?\n connectWith: @find(\".pvtAxisContainer\")\n items: 'li'\n placeholder: 'pvtPlaceholder'\n catch e\n console.error(e.stack) if console?\n @html opts.localeStrings.uiRenderError\n return this\n\n ###\n Heatmap post-processing\n ###\n\n $.fn.heatmap = (scope = \"heatmap\") ->\n numRows = @data \"numrows\"\n numCols = @data \"numcols\"\n\n colorGen = (color, min, max) ->\n hexGen = switch color\n when \"red\" then (hex) -> \"ff#{hex}#{hex}\"\n when \"green\" then (hex) -> \"#{hex}ff#{hex}\"\n when \"blue\" then (hex) -> \"#{hex}#{hex}ff\"\n\n return (x) ->\n intensity = 255 - Math.round 255*(x-min)/(max-min)\n hex = intensity.toString(16).split(\".\")[0]\n hex = 0+hex if hex.length == 1\n return hexGen(hex)\n\n heatmapper = (scope, color) =>\n forEachCell = (f) =>\n @find(scope).each ->\n x = $(this).data(\"value\")\n f(x, $(this)) if x? and isFinite(x)\n\n values = []\n forEachCell (x) -> values.push x\n colorFor = colorGen color, Math.min(values...), Math.max(values...)\n forEachCell (x, elem) -> elem.css \"background-color\", \"#\" + colorFor(x)\n\n switch scope\n when \"heatmap\"\n heatmapper \".pvtVal\", \"red\"\n when \"rowheatmap\"\n heatmapper \".pvtVal.row#{i}\", \"red\" for i in [0...numRows]\n when \"colheatmap\"\n heatmapper \".pvtVal.col#{j}\", \"red\" for j in [0...numCols]\n\n heatmapper \".pvtTotal.rowTotal\", \"red\"\n heatmapper \".pvtTotal.colTotal\", \"red\"\n\n return this\n\n ###\n Barchart post-processing\n ###\n\n $.fn.barchart = ->\n numRows = @data \"numrows\"\n numCols = @data \"numcols\"\n\n barcharter = (scope) =>\n forEachCell = (f) =>\n @find(scope).each ->\n x = $(this).data(\"value\")\n f(x, $(this)) if x? and isFinite(x)\n\n values = []\n forEachCell (x) -> values.push x\n max = Math.max(values...)\n scaler = (x) -> 100*x/(1.4*max)\n forEachCell (x, elem) ->\n text = elem.text()\n wrapper = $(\"<div>\").css\n \"position\": \"relative\"\n \"height\": \"55px\"\n wrapper.append $(\"<div>\").css\n \"position\": \"absolute\"\n \"bottom\": 0\n \"left\": 0\n \"right\": 0\n \"height\": scaler(x) + \"%\"\n \"background-color\": \"gray\"\n wrapper.append $(\"<div>\").text(text).css\n \"position\":\"relative\"\n \"padding-left\":\"5px\"\n \"padding-right\":\"5px\"\n\n elem.css(\"padding\": 0,\"padding-top\": \"5px\", \"text-align\": \"center\").html wrapper\n\n barcharter \".pvtVal.row#{i}\" for i in [0...numRows]\n barcharter \".pvtTotal.colTotal\"\n\n return this\n\n\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
.pvtUi{color:#333}table.pvtTable{font-size:8pt;text-align:left;border-collapse:collapse}table.pvtTable tr th{background-color:#e6EEEE;border:1px solid #CDCDCD;font-size:8pt;padding:5px}table.pvtTable .pvtColLabel{text-align:center}table.pvtTable .pvtTotalLabel{text-align:right}table.pvtTable tr td{color:#3D3D3D;padding:5px;background-color:#FFF;border:1px solid #CDCDCD;vertical-align:top;text-align:right}.pvtGrandTotal,.pvtTotal{font-weight:700}.pvtVals{text-align:center}.pvtAggregator{margin-bottom:5px}.pvtAxisContainer,.pvtVals{border:1px solid gray;background:#EEE;padding:5px;min-width:20px;min-height:20px}.pvtAxisContainer li{padding:8px 6px;list-style-type:none;cursor:move}.pvtAxisContainer li.pvtPlaceholder{-webkit-border-radius:5px;padding:3px 15px;-moz-border-radius:5px;border-radius:5px;border:1px dashed #aaa}.pvtAxisContainer li span.pvtAttr{-webkit-text-size-adjust:100%;background:#F3F3F3;border:1px solid #DEDEDE;padding:2px 5px;white-space:nowrap;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px}.pvtTriangle{cursor:pointer;color:grey}.pvtHorizList li{display:inline}.pvtVertList{vertical-align:top}.pvtFilteredAttribute{font-style:italic}.pvtFilterBox{z-index:100;width:280px;border:1px solid gray;background-color:#fff;position:absolute;padding:20px;text-align:center}.pvtFilterBox h4{margin:0}.pvtFilterBox p{margin:1em auto}.pvtFilterBox label{font-weight:400}.pvtFilterBox input[type=checkbox]{margin-right:5px}.pvtCheckContainer{text-align:left;overflow:scroll;width:100%;max-height:200px}.pvtCheckContainer p{margin:5px}.pvtRendererArea{padding:5px}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(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(" ▾").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);
|
2
|
+
//# sourceMappingURL=pivot.min.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["/source/pivot.coffee","pivot.min.js"],"names":["callWithJQuery","indexOf","item","i","l","this","length","slice","bind","fn","me","apply","arguments","hasProp","hasOwnProperty","pivotModule","exports","module","require","define","amd","jQuery","$","PivotData","addSeparators","aggregatorTemplates","aggregators","dayNamesEn","derivers","getSort","locales","mthNamesEn","naturalSort","numberFormat","pivotTableRenderer","renderers","sortAs","usFmt","usFmtInt","usFmtPct","zeroPad","nStr","thousandsSep","decimalSep","rgx","x","x1","x2","split","test","replace","opts","defaults","digitsAfterDecimal","scaler","prefix","suffix","showZero","extend","result","isNaN","isFinite","toFixed","count","formatter","data","rowKey","colKey","push","value","format","countUnique","arg","attr","uniq","record","ref","call","numInputs","listUnique","sep","join","sum","parseFloat","min","val","Math","max","average","len","sumOverSum","denom","num","sumNum","sumDenom","sumOverSumBound80","upper","sign","sqrt","fractionOf","wrapped","type","selector","total","row","col","inner","getAggregator","tpl","Count","Count Unique Values","List Unique Values","Sum","Integer Sum","Average","Minimum","Maximum","Sum over Sum","80% Upper Bound","80% Lower Bound","Sum as Fraction of Total","Sum as Fraction of Rows","Sum as Fraction of Columns","Count as Fraction of Total","Count as Fraction of Rows","Count as Fraction of Columns","Table","pvtData","Table Barchart","barchart","Heatmap","heatmap","Row Heatmap","Col Heatmap","en","localeStrings","renderError","computeError","uiRenderError","selectAll","selectNone","tooMany","filterResults","totals","vs","by","number","substr","bin","binWidth","dateFormat","formatString","utcOutput","mthNames","dayNames","utc","date","Date","parse","m","p","_this","as","bs","a","a1","b","b1","rd","rx","rz","String","toLowerCase","match","shift","order","mapping","sorters","sort","isFunction","input","getRowKeys","getColKeys","sortKeys","arrSort","aggregator","aggregatorName","colAttrs","cols","rowAttrs","rows","valAttrs","vals","tree","rowKeys","colKeys","rowTotals","colTotals","allTotal","sorted","forEachRecord","derivedAttributes","filter","processRecord","f","addRecord","compactRecord","j","k","len1","results","results1","tblCols","isEmptyObject","v","isArray","each","text","Error","convertToArray","prototype","attrs","sortersArr","comparison","sorter","flatColKey","flatRowKey","len2","n","ref1","ref2","ref3","fromCharCode","agg","pivotUtilities","pivotData","c","r","spanSize","td","th","totalAggregator","tr","txt","document","createElement","className","arr","noDraw","stop","parseInt","setAttribute","appendChild","textContent","innerHTML","pivot","e","error","error1","renderer","rendererOptions","console","stack","html","hasChildNodes","removeChild","lastChild","append","pivotUI","inputOpts","overwrite","locale","attrLength","axisValues","colList","existingOpts","initialRender","len3","len4","o","pivotTable","q","ref4","refresh","refreshDelayed","rendererControl","shownAttributes","tr1","tr2","uiTable","unusedAttrsVerticalAutoCutoff","unusedAttrsVerticalAutoOverride","hiddenAttributes","menuLimit","exclusions","inclusions","unusedAttrsVertical","autoSortUnusedAttrs","onRefresh","base","class","addClass","appendTo","attrElem","btns","checkContainer","filterItem","filterItemExcluded","hasExcludedItem","keys","showFilterList","triangleLink","updateFilter","valueList","hide","find","prop","placeholder","testString","show","unselectedCount","removeClass","toggle","clickLeft","clickTop","currentTarget","position","left","top","css","prepend","inArray","rendererName","len5","newDropdown","numInputsToProcess","pivotUIOptions","pvtVals","ref5","ref6","s","subopts","t","unusedAttrsContainer","remove","not","excludedItems","ref7","inclusionsInfo","children","setTimeout","sortable","update","ui","sender","connectWith","items","scope","colorGen","heatmapper","numCols","numRows","color","hexGen","hex","intensity","round","toString","colorFor","forEachCell","values","elem","barcharter","wrapper","height","bottom","right","background-color","padding-left","padding-right","padding","padding-top","text-align"],"mappings":"CAAA,WAAA,GAAAA,GAAAC,KAAAA,SAAA,SAAAC,GAAA,IAAA,GAAAC,GAAA,EAAAC,EAAAC,KAAAC,OAAAF,EAAAD,EAAAA,IAAA,GAAAA,IAAAE,OAAAA,KAAAF,KAAAD,EAAA,MAAAC,EAAA,OAAA,ICGII,KAAWA,MACXC,EAAO,SAASC,EAAIC,GAAK,MAAO,YAAY,MAAOD,GAAGE,MAAMD,EAAIE,aAChEC,KAAaC,gBDLjBd,EAAiB,SAACe,GACd,MAAqB,gBAAXC,UAAyC,gBAAVC,QACrCF,EAAYG,QAAQ,WACC,kBAAVC,SAAyBA,OAAOC,IAC3CD,QAAQ,UAAWJ,GAGnBA,EAAYM,UAEL,SAACC,GAEZ,GAAAC,GAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,CC65CA,ODz5CAhB,GAAgB,SAACiB,EAAMC,EAAcC,GACjC,GAAAC,GAAAC,EAAAC,EAAAC,CAKiD,KALjDN,GAAQ,GACRI,EAAIJ,EAAKO,MAAM,KACfF,EAAKD,EAAE,GACPE,EAAQF,EAAEvC,OAAS,EAAQqC,EAAaE,EAAE,GAAQ,GAClDD,EAAM,eACiDA,EAAIK,KAAKH,IAAhEA,EAAKA,EAAGI,QAAQN,EAAK,KAAOF,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rP,EAAE,SAASmT,KACtBH,SAAY,WACZiD,OAAU,EACVhD,KAAQ,EACRiD,MAAS,EACTF,OAAUhU,EAAOT,GAAK,IACtB4U,mBAAoB,UACxBJ,EAAQ1G,OAAOrP,EAAE,SAASmM,KAAKA,GAAMgH,KACjCH,SAAW,WACXoD,eAAe,MACfC,gBAAgB,SAEpBR,EAAK1C,KAAImD,QAAW,EAAEC,cAAe,MAAOC,aAAc,WAAUvH,KAAK8G,OA3BpEhX,MA6ByBF,EAAAC,EAAA,EAAAwE,EAAA6R,EAAA7R,GAAA,EAAAA,EAAAxE,EAAAA,EAAAwE,EAAAzE,EAAAyE,GAAA,IAAAxE,IAAAA,EAAtCgX,EAAW,cAAcjX,EAGzB,OAFAiX,GAAW,sBAEJ/W,UC0iBZwE,KAAKxE","file":"pivot.min.js","sourcesContent":["callWithJQuery = (pivotModule) ->\n if typeof exports is \"object\" and typeof module is \"object\" # CommonJS\n pivotModule require(\"jquery\")\n else if typeof define is \"function\" and define.amd # AMD\n define [\"jquery\"], pivotModule\n # Plain browser env\n else\n pivotModule jQuery\n \ncallWithJQuery ($) ->\n\n ###\n Utilities\n ###\n\n addSeparators = (nStr, thousandsSep, decimalSep) ->\n nStr += ''\n x = nStr.split('.')\n x1 = x[0]\n x2 = if x.length > 1 then decimalSep + x[1] else ''\n rgx = /(\\d+)(\\d{3})/\n x1 = x1.replace(rgx, '$1' + thousandsSep + '$2') while rgx.test(x1)\n return x1 + x2\n\n numberFormat = (opts) ->\n defaults = \n digitsAfterDecimal: 2, scaler: 1, \n thousandsSep: \",\", decimalSep: \".\"\n prefix: \"\", suffix: \"\"\n showZero: false\n opts = $.extend defaults, opts\n (x) ->\n return \"\" if isNaN(x) or not isFinite(x)\n return \"\" if x == 0 and not opts.showZero\n result = addSeparators (opts.scaler*x).toFixed(opts.digitsAfterDecimal), opts.thousandsSep, opts.decimalSep\n return \"\"+opts.prefix+result+opts.suffix\n\n #aggregator templates default to US number formatting but this is overrideable\n usFmt = numberFormat()\n usFmtInt = numberFormat(digitsAfterDecimal: 0)\n usFmtPct = numberFormat(digitsAfterDecimal:1, scaler: 100, suffix: \"%\")\n\n aggregatorTemplates =\n count: (formatter=usFmtInt) -> () -> (data, rowKey, colKey) ->\n count: 0\n push: -> @count++\n value: -> @count\n format: formatter\n\n countUnique: (formatter=usFmtInt) -> ([attr]) -> (data, rowKey, colKey) ->\n uniq: []\n push: (record) -> @uniq.push(record[attr]) if record[attr] not in @uniq\n value: -> @uniq.length\n format: formatter\n numInputs: if attr? then 0 else 1\n\n listUnique: (sep) -> ([attr]) -> (data, rowKey, colKey) ->\n uniq: []\n push: (record) -> @uniq.push(record[attr]) if record[attr] not in @uniq\n value: -> @uniq.join sep\n format: (x) -> x\n numInputs: if attr? then 0 else 1\n\n sum: (formatter=usFmt) -> ([attr]) -> (data, rowKey, colKey) ->\n sum: 0\n push: (record) -> @sum += parseFloat(record[attr]) if not isNaN parseFloat(record[attr])\n value: -> @sum\n format: formatter\n numInputs: if attr? then 0 else 1\n\n min: (formatter=usFmt) -> ([attr]) -> (data, rowKey, colKey) ->\n val: null\n push: (record) ->\n x = parseFloat(record[attr])\n if not isNaN x then @val = Math.min(x, @val ? x)\n value: -> @val\n format: formatter\n numInputs: if attr? then 0 else 1\n\n max: (formatter=usFmt) -> ([attr]) -> (data, rowKey, colKey) ->\n val: null\n push: (record) -> \n x = parseFloat(record[attr])\n if not isNaN x then @val = Math.max(x, @val ? x)\n value: -> @val\n format: formatter\n numInputs: if attr? then 0 else 1\n\n average: (formatter=usFmt) -> ([attr]) -> (data, rowKey, colKey) ->\n sum: 0\n len: 0\n push: (record) ->\n if not isNaN parseFloat(record[attr])\n @sum += parseFloat(record[attr])\n @len++\n value: -> @sum/@len\n format: formatter\n numInputs: if attr? then 0 else 1\n\n sumOverSum: (formatter=usFmt) -> ([num, denom]) -> (data, rowKey, colKey) ->\n sumNum: 0\n sumDenom: 0\n push: (record) ->\n @sumNum += parseFloat(record[num]) if not isNaN parseFloat(record[num])\n @sumDenom += parseFloat(record[denom]) if not isNaN parseFloat(record[denom])\n value: -> @sumNum/@sumDenom\n format: formatter\n numInputs: if num? and denom? then 0 else 2\n\n sumOverSumBound80: (upper=true, formatter=usFmt) -> ([num, denom]) -> (data, rowKey, colKey) ->\n sumNum: 0\n sumDenom: 0\n push: (record) ->\n @sumNum += parseFloat(record[num]) if not isNaN parseFloat(record[num])\n @sumDenom += parseFloat(record[denom]) if not isNaN parseFloat(record[denom])\n value: ->\n sign = if upper then 1 else -1\n (0.821187207574908/@sumDenom + @sumNum/@sumDenom + 1.2815515655446004*sign*\n Math.sqrt(0.410593603787454/ (@sumDenom*@sumDenom) + (@sumNum*(1 - @sumNum/ @sumDenom))/ (@sumDenom*@sumDenom)))/\n (1 + 1.642374415149816/@sumDenom)\n format: formatter\n numInputs: if num? and denom? then 0 else 2\n\n fractionOf: (wrapped, type=\"total\", formatter=usFmtPct) -> (x...) -> (data, rowKey, colKey) ->\n selector: {total:[[],[]],row:[rowKey,[]],col:[[],colKey]}[type]\n inner: wrapped(x...)(data, rowKey, colKey)\n push: (record) -> @inner.push record\n format: formatter\n value: -> @inner.value() / data.getAggregator(@selector...).inner.value()\n numInputs: wrapped(x...)().numInputs\n\n #default aggregators & renderers use US naming and number formatting\n aggregators = do (tpl = aggregatorTemplates) -> \n \"Count\": tpl.count(usFmtInt)\n \"Count Unique Values\": tpl.countUnique(usFmtInt)\n \"List Unique Values\": tpl.listUnique(\", \")\n \"Sum\": tpl.sum(usFmt)\n \"Integer Sum\": tpl.sum(usFmtInt)\n \"Average\": tpl.average(usFmt)\n \"Minimum\": tpl.min(usFmt)\n \"Maximum\": tpl.max(usFmt)\n \"Sum over Sum\": tpl.sumOverSum(usFmt)\n \"80% Upper Bound\": tpl.sumOverSumBound80(true, usFmt)\n \"80% Lower Bound\": tpl.sumOverSumBound80(false, usFmt)\n \"Sum as Fraction of Total\": tpl.fractionOf(tpl.sum(), \"total\", usFmtPct)\n \"Sum as Fraction of Rows\": tpl.fractionOf(tpl.sum(), \"row\", usFmtPct)\n \"Sum as Fraction of Columns\": tpl.fractionOf(tpl.sum(), \"col\", usFmtPct)\n \"Count as Fraction of Total\": tpl.fractionOf(tpl.count(), \"total\", usFmtPct)\n \"Count as Fraction of Rows\": tpl.fractionOf(tpl.count(), \"row\", usFmtPct)\n \"Count as Fraction of Columns\": tpl.fractionOf(tpl.count(), \"col\", usFmtPct)\n\n renderers =\n \"Table\": (pvtData, opts) -> pivotTableRenderer(pvtData, opts)\n \"Table Barchart\": (pvtData, opts) -> $(pivotTableRenderer(pvtData, opts)).barchart()\n \"Heatmap\": (pvtData, opts) -> $(pivotTableRenderer(pvtData, opts)).heatmap()\n \"Row Heatmap\": (pvtData, opts) -> $(pivotTableRenderer(pvtData, opts)).heatmap(\"rowheatmap\")\n \"Col Heatmap\": (pvtData, opts) -> $(pivotTableRenderer(pvtData, opts)).heatmap(\"colheatmap\")\n\n locales = \n en: \n aggregators: aggregators\n renderers: renderers\n localeStrings: \n renderError: \"An error occurred rendering the PivotTable results.\"\n computeError: \"An error occurred computing the PivotTable results.\"\n uiRenderError: \"An error occurred rendering the PivotTable UI.\"\n selectAll: \"Select All\"\n selectNone: \"Select None\"\n tooMany: \"(too many to list)\"\n filterResults: \"Filter results\"\n totals: \"Totals\" #for table renderer\n vs: \"vs\" #for gchart renderer\n by: \"by\" #for gchart renderer\n\n #dateFormat deriver l10n requires month and day names to be passed in directly\n mthNamesEn = [\"Jan\",\"Feb\",\"Mar\",\"Apr\",\"May\",\"Jun\",\"Jul\",\"Aug\",\"Sep\",\"Oct\",\"Nov\",\"Dec\"]\n dayNamesEn = [\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"]\n zeroPad = (number) -> (\"0\"+number).substr(-2,2)\n\n derivers =\n bin: (col, binWidth) -> (record) -> record[col] - record[col] % binWidth\n dateFormat: (col, formatString, utcOutput=false, mthNames=mthNamesEn, dayNames=dayNamesEn) ->\n utc = if utcOutput then \"UTC\" else \"\"\n (record) -> #thanks http://stackoverflow.com/a/12213072/112871\n date = new Date(Date.parse(record[col]))\n if isNaN(date) then return \"\"\n formatString.replace /%(.)/g, (m, p) ->\n switch p\n when \"y\" then date[\"get#{utc}FullYear\"]()\n when \"m\" then zeroPad(date[\"get#{utc}Month\"]()+1)\n when \"n\" then mthNames[date[\"get#{utc}Month\"]()]\n when \"d\" then zeroPad(date[\"get#{utc}Date\"]())\n when \"w\" then dayNames[date[\"get#{utc}Day\"]()]\n when \"x\" then date[\"get#{utc}Day\"]()\n when \"H\" then zeroPad(date[\"get#{utc}Hours\"]())\n when \"M\" then zeroPad(date[\"get#{utc}Minutes\"]())\n when \"S\" then zeroPad(date[\"get#{utc}Seconds\"]())\n else \"%\" + p\n\n naturalSort = (as, bs) => #thanks http://stackoverflow.com/a/4373421/112871\n rx = /(\\d+)|(\\D+)/g\n rd = /\\d/\n rz = /^0/\n if typeof as is \"number\" or typeof bs is \"number\"\n return 1 if isNaN(as)\n return -1 if isNaN(bs)\n return as - bs\n a = String(as).toLowerCase()\n b = String(bs).toLowerCase()\n return 0 if a is b\n return (if a > b then 1 else -1) unless rd.test(a) and rd.test(b)\n a = a.match(rx)\n b = b.match(rx)\n while a.length and b.length\n a1 = a.shift()\n b1 = b.shift()\n if a1 isnt b1\n if rd.test(a1) and rd.test(b1)\n return a1.replace(rz, \".0\") - b1.replace(rz, \".0\")\n else\n return (if a1 > b1 then 1 else -1)\n a.length - b.length\n\n sortAs = (order) -> \n mapping = {}\n for i, x of order\n mapping[x] = i\n (a, b) ->\n if mapping[a]? and mapping[b]?\n return mapping[a] - mapping[b]\n else if mapping[a]?\n return -1\n else if mapping[b]?\n return 1\n else\n return naturalSort(a,b)\n\n getSort = (sorters, attr) ->\n sort = sorters(attr)\n if $.isFunction(sort)\n return sort \n else\n return naturalSort\n\n ###\n Data Model class\n ###\n\n class PivotData\n constructor: (input, opts) ->\n @aggregator = opts.aggregator\n @aggregatorName = opts.aggregatorName\n @colAttrs = opts.cols\n @rowAttrs = opts.rows\n @valAttrs = opts.vals\n @sorters = opts.sorters\n @tree = {}\n @rowKeys = []\n @colKeys = []\n @rowTotals = {}\n @colTotals = {}\n @allTotal = @aggregator(this, [], [])\n @sorted = false\n\n # iterate through input, accumulating data for cells\n PivotData.forEachRecord input, opts.derivedAttributes, (record) =>\n @processRecord(record) if opts.filter(record)\n\n #can handle arrays or jQuery selections of tables\n @forEachRecord = (input, derivedAttributes, f) ->\n if $.isEmptyObject derivedAttributes\n addRecord = f\n else\n addRecord = (record) -> \n record[k] = v(record) ? record[k] for k, v of derivedAttributes\n f(record)\n\n #if it's a function, have it call us back\n if $.isFunction(input)\n input(addRecord)\n else if $.isArray(input)\n if $.isArray(input[0]) #array of arrays\n for own i, compactRecord of input when i > 0\n record = {}\n record[k] = compactRecord[j] for own j, k of input[0]\n addRecord(record)\n else #array of objects\n addRecord(record) for record in input\n else if input instanceof jQuery\n tblCols = []\n $(\"thead > tr > th\", input).each (i) -> tblCols.push $(this).text()\n $(\"tbody > tr\", input).each (i) ->\n record = {}\n $(\"td\", this).each (j) -> record[tblCols[j]] = $(this).text()\n addRecord(record)\n else\n throw new Error(\"unknown input format\")\n\n #converts to [{attr:val, attr:val},{attr:val, attr:val}] using method above\n @convertToArray = (input) ->\n result = []\n PivotData.forEachRecord input, {}, (record) -> result.push record\n return result\n\n arrSort: (attrs) => \n sortersArr = (getSort(@sorters, a) for a in attrs)\n (a,b) -> \n for own i, sorter of sortersArr\n comparison = sorter(a[i], b[i])\n return comparison if comparison != 0\n return 0\n\n sortKeys: () =>\n if not @sorted\n @sorted = true\n @rowKeys.sort @arrSort(@rowAttrs)\n @colKeys.sort @arrSort(@colAttrs)\n\n getColKeys: () =>\n @sortKeys()\n return @colKeys\n\n getRowKeys: () =>\n @sortKeys()\n return @rowKeys\n\n processRecord: (record) -> #this code is called in a tight loop\n colKey = []\n rowKey = []\n colKey.push record[x] ? \"null\" for x in @colAttrs \n rowKey.push record[x] ? \"null\" for x in @rowAttrs\n flatRowKey = rowKey.join(String.fromCharCode(0))\n flatColKey = colKey.join(String.fromCharCode(0))\n\n @allTotal.push record\n\n if rowKey.length != 0\n if not @rowTotals[flatRowKey]\n @rowKeys.push rowKey\n @rowTotals[flatRowKey] = @aggregator(this, rowKey, [])\n @rowTotals[flatRowKey].push record\n\n if colKey.length != 0\n if not @colTotals[flatColKey]\n @colKeys.push colKey\n @colTotals[flatColKey] = @aggregator(this, [], colKey)\n @colTotals[flatColKey].push record\n\n if colKey.length != 0 and rowKey.length != 0\n if not @tree[flatRowKey]\n @tree[flatRowKey] = {}\n if not @tree[flatRowKey][flatColKey]\n @tree[flatRowKey][flatColKey] = @aggregator(this, rowKey, colKey)\n @tree[flatRowKey][flatColKey].push record\n\n getAggregator: (rowKey, colKey) =>\n flatRowKey = rowKey.join(String.fromCharCode(0))\n flatColKey = colKey.join(String.fromCharCode(0))\n if rowKey.length == 0 and colKey.length == 0\n agg = @allTotal\n else if rowKey.length == 0\n agg = @colTotals[flatColKey]\n else if colKey.length == 0\n agg = @rowTotals[flatRowKey]\n else\n agg = @tree[flatRowKey][flatColKey]\n return agg ? {value: (-> null), format: -> \"\"}\n\n #expose these to the outside world\n $.pivotUtilities = {aggregatorTemplates, aggregators, renderers, derivers, locales,\n naturalSort, numberFormat, sortAs, PivotData}\n\n ###\n Default Renderer for hierarchical table layout\n ###\n\n pivotTableRenderer = (pivotData, opts) ->\n\n defaults =\n localeStrings:\n totals: \"Totals\"\n\n opts = $.extend defaults, opts\n\n colAttrs = pivotData.colAttrs\n rowAttrs = pivotData.rowAttrs\n rowKeys = pivotData.getRowKeys()\n colKeys = pivotData.getColKeys()\n\n #now actually build the output\n result = document.createElement(\"table\")\n result.className = \"pvtTable\"\n\n #helper function for setting row/col-span in pivotTableRenderer\n spanSize = (arr, i, j) ->\n if i != 0\n noDraw = true\n for x in [0..j]\n if arr[i-1][x] != arr[i][x]\n noDraw = false\n if noDraw\n return -1 #do not draw cell\n len = 0\n while i+len < arr.length\n stop = false\n for x in [0..j]\n stop = true if arr[i][x] != arr[i+len][x]\n break if stop\n len++\n return len\n\n #the first few rows are for col headers\n for own j, c of colAttrs\n tr = document.createElement(\"tr\")\n if parseInt(j) == 0 and rowAttrs.length != 0\n th = document.createElement(\"th\")\n th.setAttribute(\"colspan\", rowAttrs.length)\n th.setAttribute(\"rowspan\", colAttrs.length)\n tr.appendChild th\n th = document.createElement(\"th\")\n th.className = \"pvtAxisLabel\"\n th.textContent = c\n tr.appendChild th\n for own i, colKey of colKeys\n x = spanSize(colKeys, parseInt(i), parseInt(j))\n if x != -1\n th = document.createElement(\"th\")\n th.className = \"pvtColLabel\"\n th.textContent = colKey[j]\n th.setAttribute(\"colspan\", x)\n if parseInt(j) == colAttrs.length-1 and rowAttrs.length != 0\n th.setAttribute(\"rowspan\", 2)\n tr.appendChild th\n if parseInt(j) == 0\n th = document.createElement(\"th\")\n th.className = \"pvtTotalLabel\"\n th.innerHTML = opts.localeStrings.totals\n th.setAttribute(\"rowspan\", colAttrs.length + (if rowAttrs.length ==0 then 0 else 1))\n tr.appendChild th\n result.appendChild tr\n\n #then a row for row header headers\n if rowAttrs.length !=0\n tr = document.createElement(\"tr\")\n for own i, r of rowAttrs\n th = document.createElement(\"th\")\n th.className = \"pvtAxisLabel\"\n th.textContent = r\n tr.appendChild th \n th = document.createElement(\"th\")\n if colAttrs.length ==0\n th.className = \"pvtTotalLabel\"\n th.innerHTML = opts.localeStrings.totals\n tr.appendChild th\n result.appendChild tr\n\n #now the actual data rows, with their row headers and totals\n for own i, rowKey of rowKeys\n tr = document.createElement(\"tr\")\n for own j, txt of rowKey\n x = spanSize(rowKeys, parseInt(i), parseInt(j))\n if x != -1\n th = document.createElement(\"th\")\n th.className = \"pvtRowLabel\"\n th.textContent = txt\n th.setAttribute(\"rowspan\", x)\n if parseInt(j) == rowAttrs.length-1 and colAttrs.length !=0\n th.setAttribute(\"colspan\",2)\n tr.appendChild th\n for own j, colKey of colKeys #this is the tight loop\n aggregator = pivotData.getAggregator(rowKey, colKey)\n val = aggregator.value()\n td = document.createElement(\"td\")\n td.className = \"pvtVal row#{i} col#{j}\"\n td.textContent = aggregator.format(val)\n td.setAttribute(\"data-value\", val)\n tr.appendChild td\n\n totalAggregator = pivotData.getAggregator(rowKey, [])\n val = totalAggregator.value()\n td = document.createElement(\"td\")\n td.className = \"pvtTotal rowTotal\"\n td.textContent = totalAggregator.format(val)\n td.setAttribute(\"data-value\", val)\n td.setAttribute(\"data-for\", \"row\"+i)\n tr.appendChild td\n result.appendChild tr\n\n #finally, the row for col totals, and a grand total\n tr = document.createElement(\"tr\")\n th = document.createElement(\"th\")\n th.className = \"pvtTotalLabel\"\n th.innerHTML = opts.localeStrings.totals\n th.setAttribute(\"colspan\", rowAttrs.length + (if colAttrs.length == 0 then 0 else 1))\n tr.appendChild th\n for own j, colKey of colKeys\n totalAggregator = pivotData.getAggregator([], colKey)\n val = totalAggregator.value()\n td = document.createElement(\"td\")\n td.className = \"pvtTotal colTotal\"\n td.textContent = totalAggregator.format(val)\n td.setAttribute(\"data-value\", val)\n td.setAttribute(\"data-for\", \"col\"+j)\n tr.appendChild td\n totalAggregator = pivotData.getAggregator([], [])\n val = totalAggregator.value()\n td = document.createElement(\"td\")\n td.className = \"pvtGrandTotal\"\n td.textContent = totalAggregator.format(val)\n td.setAttribute(\"data-value\", val)\n tr.appendChild td\n result.appendChild tr\n\n #squirrel this away for later\n result.setAttribute(\"data-numrows\", rowKeys.length)\n result.setAttribute(\"data-numcols\", colKeys.length)\n\n return result\n\n ###\n Pivot Table core: create PivotData object and call Renderer on it\n ###\n\n $.fn.pivot = (input, opts) ->\n defaults =\n cols : []\n rows: []\n vals: []\n filter: -> true\n aggregator: aggregatorTemplates.count()()\n aggregatorName: \"Count\"\n sorters: -> \n derivedAttributes: {},\n renderer: pivotTableRenderer\n rendererOptions: null\n localeStrings: locales.en.localeStrings\n\n opts = $.extend defaults, opts\n\n result = null\n try\n pivotData = new PivotData(input, opts)\n try\n result = opts.renderer(pivotData, opts.rendererOptions)\n catch e\n console.error(e.stack) if console?\n result = $(\"<span>\").html opts.localeStrings.renderError\n catch e\n console.error(e.stack) if console?\n result = $(\"<span>\").html opts.localeStrings.computeError\n \n x = this[0]\n x.removeChild(x.lastChild) while x.hasChildNodes()\n return @append result\n\n\n ###\n Pivot Table UI: calls Pivot Table core above with options set by user\n ###\n\n $.fn.pivotUI = (input, inputOpts, overwrite = false, locale=\"en\") ->\n if not locales[locale]?\n locale = \"en\"\n defaults =\n derivedAttributes: {}\n aggregators: locales[locale].aggregators\n renderers: locales[locale].renderers\n hiddenAttributes: []\n menuLimit: 200\n cols: [], rows: [], vals: []\n exclusions: {}\n inclusions: {}\n unusedAttrsVertical: 85\n autoSortUnusedAttrs: false\n rendererOptions: localeStrings: locales[locale].localeStrings\n onRefresh: null\n filter: -> true\n sorters: -> \n localeStrings: locales[locale].localeStrings\n\n existingOpts = @data \"pivotUIOptions\"\n if not existingOpts? or overwrite\n opts = $.extend defaults, inputOpts\n else\n opts = existingOpts\n\n try\n #cache the input in some useful form\n input = PivotData.convertToArray(input)\n tblCols = (k for own k of input[0])\n tblCols.push c for own c of opts.derivedAttributes when (c not in tblCols)\n\n #figure out the cardinality and some stats\n axisValues = {}\n axisValues[x] = {} for x in tblCols\n\n PivotData.forEachRecord input, opts.derivedAttributes, (record) ->\n for own k, v of record when opts.filter(record)\n v ?= \"null\"\n axisValues[k][v] ?= 0\n axisValues[k][v]++\n\n #start building the output\n uiTable = $(\"<table>\", \"class\": \"pvtUi\").attr(\"cellpadding\", 5)\n\n #renderer control\n rendererControl = $(\"<td>\")\n\n renderer = $(\"<select>\")\n .addClass('pvtRenderer')\n .appendTo(rendererControl)\n .bind \"change\", -> refresh() #capture reference\n for own x of opts.renderers\n $(\"<option>\").val(x).html(x).appendTo(renderer)\n\n\n #axis list, including the double-click menu\n colList = $(\"<td>\").addClass('pvtAxisContainer pvtUnused')\n shownAttributes = (c for c in tblCols when c not in opts.hiddenAttributes)\n\n unusedAttrsVerticalAutoOverride = false\n if opts.unusedAttrsVertical == \"auto\"\n unusedAttrsVerticalAutoCutoff = 120 # legacy support\n else\n unusedAttrsVerticalAutoCutoff = parseInt opts.unusedAttrsVertical\n\n if not isNaN(unusedAttrsVerticalAutoCutoff)\n attrLength = 0\n attrLength += a.length for a in shownAttributes\n unusedAttrsVerticalAutoOverride = attrLength > unusedAttrsVerticalAutoCutoff\n\n if opts.unusedAttrsVertical == true or unusedAttrsVerticalAutoOverride\n colList.addClass('pvtVertList')\n else\n colList.addClass('pvtHorizList')\n\n for own i, c of shownAttributes\n do (c) ->\n keys = (k for k of axisValues[c])\n hasExcludedItem = false\n valueList = $(\"<div>\").addClass('pvtFilterBox').hide()\n\n valueList.append $(\"<h4>\").text(\"#{c} (#{keys.length})\")\n if keys.length > opts.menuLimit\n valueList.append $(\"<p>\").html(opts.localeStrings.tooMany)\n else\n btns = $(\"<p>\").appendTo(valueList)\n btns.append $(\"<button>\", {type:\"button\"}).html(opts.localeStrings.selectAll).bind \"click\", ->\n valueList.find(\"input:visible\").prop \"checked\", true\n btns.append $(\"<button>\", {type:\"button\"}).html(opts.localeStrings.selectNone).bind \"click\", ->\n valueList.find(\"input:visible\").prop \"checked\", false\n btns.append $(\"<br>\")\n btns.append $(\"<input>\", {type: \"text\", placeholder: opts.localeStrings.filterResults, class: \"pvtSearch\"}).bind \"keyup\", ->\n filter = $(this).val().toLowerCase()\n valueList.find('.pvtCheckContainer p').each ->\n testString = $(this).text().toLowerCase().indexOf(filter)\n if testString isnt -1\n $(this).show()\n else\n $(this).hide()\n\n checkContainer = $(\"<div>\").addClass(\"pvtCheckContainer\").appendTo(valueList)\n\n for k in keys.sort(getSort(opts.sorters, c))\n v = axisValues[c][k]\n filterItem = $(\"<label>\")\n filterItemExcluded = false\n if opts.inclusions[c]\n filterItemExcluded = (k not in opts.inclusions[c])\n else if opts.exclusions[c]\n filterItemExcluded = (k in opts.exclusions[c])\n hasExcludedItem ||= filterItemExcluded\n $(\"<input>\")\n .attr(\"type\", \"checkbox\").addClass('pvtFilter')\n .attr(\"checked\", !filterItemExcluded).data(\"filter\", [c,k])\n .appendTo filterItem\n filterItem.append $(\"<span>\").text k\n filterItem.append $(\"<span>\").text \" (\"+v+\")\"\n checkContainer.append $(\"<p>\").append(filterItem)\n\n updateFilter = ->\n unselectedCount = valueList.find(\"[type='checkbox']\").length -\n valueList.find(\"[type='checkbox']:checked\").length\n if unselectedCount > 0\n attrElem.addClass \"pvtFilteredAttribute\"\n else\n attrElem.removeClass \"pvtFilteredAttribute\"\n if keys.length > opts.menuLimit\n valueList.toggle()\n else\n valueList.toggle(0, refresh)\n\n $(\"<p>\").appendTo(valueList)\n .append $(\"<button>\", {type:\"button\"}).text(\"OK\").bind \"click\", updateFilter\n\n showFilterList = (e) ->\n {left: clickLeft, top: clickTop, } = $(e.currentTarget).position()\n valueList.css(left: clickLeft+10, top: clickTop+10).toggle()\n valueList.find('.pvtSearch').val('')\n valueList.find('.pvtCheckContainer p').show()\n\n triangleLink = $(\"<span>\").addClass('pvtTriangle').html(\" ▾\")\n .bind \"click\", showFilterList\n\n attrElem = $(\"<li>\").addClass(\"axis_#{i}\")\n .append $(\"<span>\").addClass('pvtAttr').text(c).data(\"attrName\", c).append(triangleLink)\n attrElem.addClass('pvtFilteredAttribute') if hasExcludedItem\n colList.append(attrElem).append(valueList)\n\n attrElem.bind \"dblclick\", showFilterList\n\n tr1 = $(\"<tr>\").appendTo(uiTable)\n\n #aggregator menu and value area\n\n aggregator = $(\"<select>\").addClass('pvtAggregator')\n .bind \"change\", -> refresh() #capture reference\n for own x of opts.aggregators\n aggregator.append $(\"<option>\").val(x).html(x)\n\n $(\"<td>\").addClass('pvtVals')\n .appendTo(tr1)\n .append(aggregator)\n .append($(\"<br>\"))\n\n #column axes\n $(\"<td>\").addClass('pvtAxisContainer pvtHorizList pvtCols').appendTo(tr1)\n\n tr2 = $(\"<tr>\").appendTo(uiTable)\n\n #row axes\n tr2.append $(\"<td>\").addClass('pvtAxisContainer pvtRows').attr(\"valign\", \"top\")\n\n #the actual pivot table container\n pivotTable = $(\"<td>\")\n .attr(\"valign\", \"top\")\n .addClass('pvtRendererArea')\n .appendTo(tr2)\n\n #finally the renderer dropdown and unused attribs are inserted at the requested location\n if opts.unusedAttrsVertical == true or unusedAttrsVerticalAutoOverride\n uiTable.find('tr:nth-child(1)').prepend rendererControl\n uiTable.find('tr:nth-child(2)').prepend colList\n else\n uiTable.prepend $(\"<tr>\").append(rendererControl).append(colList)\n\n #render the UI in its default state\n @html uiTable\n\n #set up the UI initial state as requested by moving elements around\n\n for x in opts.cols\n @find(\".pvtCols\").append @find(\".axis_#{$.inArray(x, shownAttributes)}\")\n for x in opts.rows\n @find(\".pvtRows\").append @find(\".axis_#{$.inArray(x, shownAttributes)}\")\n if opts.aggregatorName?\n @find(\".pvtAggregator\").val opts.aggregatorName\n if opts.rendererName?\n @find(\".pvtRenderer\").val opts.rendererName\n\n initialRender = true\n\n #set up for refreshing\n refreshDelayed = =>\n subopts =\n derivedAttributes: opts.derivedAttributes\n localeStrings: opts.localeStrings\n rendererOptions: opts.rendererOptions\n sorters: opts.sorters\n cols: [], rows: []\n\n numInputsToProcess = opts.aggregators[aggregator.val()]([])().numInputs ? 0\n vals = []\n @find(\".pvtRows li span.pvtAttr\").each -> subopts.rows.push $(this).data(\"attrName\")\n @find(\".pvtCols li span.pvtAttr\").each -> subopts.cols.push $(this).data(\"attrName\")\n @find(\".pvtVals select.pvtAttrDropdown\").each ->\n if numInputsToProcess == 0\n $(this).remove()\n else\n numInputsToProcess--\n vals.push $(this).val() if $(this).val() != \"\"\n\n if numInputsToProcess != 0\n pvtVals = @find(\".pvtVals\")\n for x in [0...numInputsToProcess]\n newDropdown = $(\"<select>\")\n .addClass('pvtAttrDropdown')\n .append($(\"<option>\"))\n .bind \"change\", -> refresh()\n for attr in shownAttributes\n newDropdown.append($(\"<option>\").val(attr).text(attr))\n pvtVals.append(newDropdown)\n\n if initialRender\n vals = opts.vals\n i = 0\n @find(\".pvtVals select.pvtAttrDropdown\").each ->\n $(this).val vals[i]\n i++\n initialRender = false\n\n subopts.aggregatorName = aggregator.val()\n subopts.vals = vals\n subopts.aggregator = opts.aggregators[aggregator.val()](vals)\n subopts.renderer = opts.renderers[renderer.val()]\n\n #construct filter here\n exclusions = {}\n @find('input.pvtFilter').not(':checked').each ->\n filter = $(this).data(\"filter\")\n if exclusions[filter[0]]?\n exclusions[filter[0]].push( filter[1] )\n else\n exclusions[filter[0]] = [ filter[1] ]\n #include inclusions when exclusions present\n inclusions = {}\n @find('input.pvtFilter:checked').each ->\n filter = $(this).data(\"filter\")\n if exclusions[filter[0]]?\n if inclusions[filter[0]]?\n inclusions[filter[0]].push( filter[1] )\n else\n inclusions[filter[0]] = [ filter[1] ]\n\n subopts.filter = (record) ->\n return false if not opts.filter(record)\n for k,excludedItems of exclusions\n return false if \"\"+record[k] in excludedItems\n return true\n\n pivotTable.pivot(input,subopts)\n pivotUIOptions = $.extend opts,\n cols: subopts.cols\n rows: subopts.rows\n vals: vals\n exclusions: exclusions\n inclusions: inclusions\n inclusionsInfo: inclusions #duplicated for backwards-compatibility\n aggregatorName: aggregator.val()\n rendererName: renderer.val()\n\n @data \"pivotUIOptions\", pivotUIOptions\n\n # if requested make sure unused columns are in alphabetical order\n if opts.autoSortUnusedAttrs\n unusedAttrsContainer = @find(\"td.pvtUnused.pvtAxisContainer\")\n $(unusedAttrsContainer).children(\"li\")\n .sort((a, b) => naturalSort($(a).text(), $(b).text()))\n .appendTo unusedAttrsContainer\n\n pivotTable.css(\"opacity\", 1)\n opts.onRefresh(pivotUIOptions) if opts.onRefresh?\n\n refresh = =>\n pivotTable.css(\"opacity\", 0.5)\n setTimeout refreshDelayed, 10\n\n #the very first refresh will actually display the table\n refresh()\n\n @find(\".pvtAxisContainer\").sortable\n update: (e, ui) -> refresh() if not ui.sender?\n connectWith: @find(\".pvtAxisContainer\")\n items: 'li'\n placeholder: 'pvtPlaceholder'\n catch e\n console.error(e.stack) if console?\n @html opts.localeStrings.uiRenderError\n return this\n\n ###\n Heatmap post-processing\n ###\n\n $.fn.heatmap = (scope = \"heatmap\") ->\n numRows = @data \"numrows\"\n numCols = @data \"numcols\"\n\n colorGen = (color, min, max) ->\n hexGen = switch color\n when \"red\" then (hex) -> \"ff#{hex}#{hex}\"\n when \"green\" then (hex) -> \"#{hex}ff#{hex}\"\n when \"blue\" then (hex) -> \"#{hex}#{hex}ff\"\n\n return (x) ->\n intensity = 255 - Math.round 255*(x-min)/(max-min)\n hex = intensity.toString(16).split(\".\")[0]\n hex = 0+hex if hex.length == 1\n return hexGen(hex)\n\n heatmapper = (scope, color) =>\n forEachCell = (f) =>\n @find(scope).each ->\n x = $(this).data(\"value\")\n f(x, $(this)) if x? and isFinite(x)\n\n values = []\n forEachCell (x) -> values.push x\n colorFor = colorGen color, Math.min(values...), Math.max(values...)\n forEachCell (x, elem) -> elem.css \"background-color\", \"#\" + colorFor(x)\n\n switch scope\n when \"heatmap\"\n heatmapper \".pvtVal\", \"red\"\n when \"rowheatmap\"\n heatmapper \".pvtVal.row#{i}\", \"red\" for i in [0...numRows]\n when \"colheatmap\"\n heatmapper \".pvtVal.col#{j}\", \"red\" for j in [0...numCols]\n\n heatmapper \".pvtTotal.rowTotal\", \"red\"\n heatmapper \".pvtTotal.colTotal\", \"red\"\n\n return this\n\n ###\n Barchart post-processing\n ###\n\n $.fn.barchart = ->\n numRows = @data \"numrows\"\n numCols = @data \"numcols\"\n\n barcharter = (scope) =>\n forEachCell = (f) =>\n @find(scope).each ->\n x = $(this).data(\"value\")\n f(x, $(this)) if x? and isFinite(x)\n\n values = []\n forEachCell (x) -> values.push x\n max = Math.max(values...)\n scaler = (x) -> 100*x/(1.4*max)\n forEachCell (x, elem) ->\n text = elem.text()\n wrapper = $(\"<div>\").css\n \"position\": \"relative\"\n \"height\": \"55px\"\n wrapper.append $(\"<div>\").css\n \"position\": \"absolute\"\n \"bottom\": 0\n \"left\": 0\n \"right\": 0\n \"height\": scaler(x) + \"%\"\n \"background-color\": \"gray\"\n wrapper.append $(\"<div>\").text(text).css\n \"position\":\"relative\"\n \"padding-left\":\"5px\"\n \"padding-right\":\"5px\"\n\n elem.css(\"padding\": 0,\"padding-top\": \"5px\", \"text-align\": \"center\").html wrapper\n\n barcharter \".pvtVal.row#{i}\" for i in [0...numRows]\n barcharter \".pvtTotal.colTotal\"\n\n return this\n\n\n","(function() {\n var callWithJQuery,\n indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; },\n slice = [].slice,\n bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; },\n hasProp = {}.hasOwnProperty;\n\n callWithJQuery = function(pivotModule) {\n if (typeof exports === \"object\" && typeof module === \"object\") {\n return pivotModule(require(\"jquery\"));\n } else if (typeof define === \"function\" && define.amd) {\n return define([\"jquery\"], pivotModule);\n } else {\n return pivotModule(jQuery);\n }\n };\n\n callWithJQuery(function($) {\n\n /*\n Utilities\n */\n var PivotData, addSeparators, aggregatorTemplates, aggregators, dayNamesEn, derivers, getSort, locales, mthNamesEn, naturalSort, numberFormat, pivotTableRenderer, renderers, sortAs, usFmt, usFmtInt, usFmtPct, zeroPad;\n addSeparators = function(nStr, thousandsSep, decimalSep) {\n var rgx, x, x1, x2;\n nStr += '';\n x = nStr.split('.');\n x1 = x[0];\n x2 = x.length > 1 ? decimalSep + x[1] : '';\n rgx = /(\\d+)(\\d{3})/;\n while (rgx.test(x1)) {\n x1 = x1.replace(rgx, '$1' + thousandsSep + '$2');\n }\n return x1 + x2;\n };\n numberFormat = function(opts) {\n var defaults;\n defaults = {\n digitsAfterDecimal: 2,\n scaler: 1,\n thousandsSep: \",\",\n decimalSep: \".\",\n prefix: \"\",\n suffix: \"\",\n showZero: false\n };\n opts = $.extend(defaults, opts);\n return function(x) {\n var result;\n if (isNaN(x) || !isFinite(x)) {\n return \"\";\n }\n if (x === 0 && !opts.showZero) {\n return \"\";\n }\n result = addSeparators((opts.scaler * x).toFixed(opts.digitsAfterDecimal), opts.thousandsSep, opts.decimalSep);\n return \"\" + opts.prefix + result + opts.suffix;\n };\n };\n usFmt = numberFormat();\n usFmtInt = numberFormat({\n digitsAfterDecimal: 0\n });\n usFmtPct = numberFormat({\n digitsAfterDecimal: 1,\n scaler: 100,\n suffix: \"%\"\n });\n aggregatorTemplates = {\n count: function(formatter) {\n if (formatter == null) {\n formatter = usFmtInt;\n }\n return function() {\n return function(data, rowKey, colKey) {\n return {\n count: 0,\n push: function() {\n return this.count++;\n },\n value: function() {\n return this.count;\n },\n format: formatter\n };\n };\n };\n },\n countUnique: function(formatter) {\n if (formatter == null) {\n formatter = usFmtInt;\n }\n return function(arg) {\n var attr;\n attr = arg[0];\n return function(data, rowKey, colKey) {\n return {\n uniq: [],\n push: function(record) {\n var ref;\n if (ref = record[attr], indexOf.call(this.uniq, ref) < 0) {\n return this.uniq.push(record[attr]);\n }\n },\n value: function() {\n return this.uniq.length;\n },\n format: formatter,\n numInputs: attr != null ? 0 : 1\n };\n };\n };\n },\n listUnique: function(sep) {\n return function(arg) {\n var attr;\n attr = arg[0];\n return function(data, rowKey, colKey) {\n return {\n uniq: [],\n push: function(record) {\n var ref;\n if (ref = record[attr], indexOf.call(this.uniq, ref) < 0) {\n return this.uniq.push(record[attr]);\n }\n },\n value: function() {\n return this.uniq.join(sep);\n },\n format: function(x) {\n return x;\n },\n numInputs: attr != null ? 0 : 1\n };\n };\n };\n },\n sum: function(formatter) {\n if (formatter == null) {\n formatter = usFmt;\n }\n return function(arg) {\n var attr;\n attr = arg[0];\n return function(data, rowKey, colKey) {\n return {\n sum: 0,\n push: function(record) {\n if (!isNaN(parseFloat(record[attr]))) {\n return this.sum += parseFloat(record[attr]);\n }\n },\n value: function() {\n return this.sum;\n },\n format: formatter,\n numInputs: attr != null ? 0 : 1\n };\n };\n };\n },\n min: function(formatter) {\n if (formatter == null) {\n formatter = usFmt;\n }\n return function(arg) {\n var attr;\n attr = arg[0];\n return function(data, rowKey, colKey) {\n return {\n val: null,\n push: function(record) {\n var ref, x;\n x = parseFloat(record[attr]);\n if (!isNaN(x)) {\n return this.val = Math.min(x, (ref = this.val) != null ? ref : x);\n }\n },\n value: function() {\n return this.val;\n },\n format: formatter,\n numInputs: attr != null ? 0 : 1\n };\n };\n };\n },\n max: function(formatter) {\n if (formatter == null) {\n formatter = usFmt;\n }\n return function(arg) {\n var attr;\n attr = arg[0];\n return function(data, rowKey, colKey) {\n return {\n val: null,\n push: function(record) {\n var ref, x;\n x = parseFloat(record[attr]);\n if (!isNaN(x)) {\n return this.val = Math.max(x, (ref = this.val) != null ? ref : x);\n }\n },\n value: function() {\n return this.val;\n },\n format: formatter,\n numInputs: attr != null ? 0 : 1\n };\n };\n };\n },\n average: function(formatter) {\n if (formatter == null) {\n formatter = usFmt;\n }\n return function(arg) {\n var attr;\n attr = arg[0];\n return function(data, rowKey, colKey) {\n return {\n sum: 0,\n len: 0,\n push: function(record) {\n if (!isNaN(parseFloat(record[attr]))) {\n this.sum += parseFloat(record[attr]);\n return this.len++;\n }\n },\n value: function() {\n return this.sum / this.len;\n },\n format: formatter,\n numInputs: attr != null ? 0 : 1\n };\n };\n };\n },\n sumOverSum: function(formatter) {\n if (formatter == null) {\n formatter = usFmt;\n }\n return function(arg) {\n var denom, num;\n num = arg[0], denom = arg[1];\n return function(data, rowKey, colKey) {\n return {\n sumNum: 0,\n sumDenom: 0,\n push: function(record) {\n if (!isNaN(parseFloat(record[num]))) {\n this.sumNum += parseFloat(record[num]);\n }\n if (!isNaN(parseFloat(record[denom]))) {\n return this.sumDenom += parseFloat(record[denom]);\n }\n },\n value: function() {\n return this.sumNum / this.sumDenom;\n },\n format: formatter,\n numInputs: (num != null) && (denom != null) ? 0 : 2\n };\n };\n };\n },\n sumOverSumBound80: function(upper, formatter) {\n if (upper == null) {\n upper = true;\n }\n if (formatter == null) {\n formatter = usFmt;\n }\n return function(arg) {\n var denom, num;\n num = arg[0], denom = arg[1];\n return function(data, rowKey, colKey) {\n return {\n sumNum: 0,\n sumDenom: 0,\n push: function(record) {\n if (!isNaN(parseFloat(record[num]))) {\n this.sumNum += parseFloat(record[num]);\n }\n if (!isNaN(parseFloat(record[denom]))) {\n return this.sumDenom += parseFloat(record[denom]);\n }\n },\n value: function() {\n var sign;\n sign = upper ? 1 : -1;\n return (0.821187207574908 / this.sumDenom + this.sumNum / this.sumDenom + 1.2815515655446004 * sign * Math.sqrt(0.410593603787454 / (this.sumDenom * this.sumDenom) + (this.sumNum * (1 - this.sumNum / this.sumDenom)) / (this.sumDenom * this.sumDenom))) / (1 + 1.642374415149816 / this.sumDenom);\n },\n format: formatter,\n numInputs: (num != null) && (denom != null) ? 0 : 2\n };\n };\n };\n },\n fractionOf: function(wrapped, type, formatter) {\n if (type == null) {\n type = \"total\";\n }\n if (formatter == null) {\n formatter = usFmtPct;\n }\n return function() {\n var x;\n x = 1 <= arguments.length ? slice.call(arguments, 0) : [];\n return function(data, rowKey, colKey) {\n return {\n selector: {\n total: [[], []],\n row: [rowKey, []],\n col: [[], colKey]\n }[type],\n inner: wrapped.apply(null, x)(data, rowKey, colKey),\n push: function(record) {\n return this.inner.push(record);\n },\n format: formatter,\n value: function() {\n return this.inner.value() / data.getAggregator.apply(data, this.selector).inner.value();\n },\n numInputs: wrapped.apply(null, x)().numInputs\n };\n };\n };\n }\n };\n aggregators = (function(tpl) {\n return {\n \"Count\": tpl.count(usFmtInt),\n \"Count Unique Values\": tpl.countUnique(usFmtInt),\n \"List Unique Values\": tpl.listUnique(\", \"),\n \"Sum\": tpl.sum(usFmt),\n \"Integer Sum\": tpl.sum(usFmtInt),\n \"Average\": tpl.average(usFmt),\n \"Minimum\": tpl.min(usFmt),\n \"Maximum\": tpl.max(usFmt),\n \"Sum over Sum\": tpl.sumOverSum(usFmt),\n \"80% Upper Bound\": tpl.sumOverSumBound80(true, usFmt),\n \"80% Lower Bound\": tpl.sumOverSumBound80(false, usFmt),\n \"Sum as Fraction of Total\": tpl.fractionOf(tpl.sum(), \"total\", usFmtPct),\n \"Sum as Fraction of Rows\": tpl.fractionOf(tpl.sum(), \"row\", usFmtPct),\n \"Sum as Fraction of Columns\": tpl.fractionOf(tpl.sum(), \"col\", usFmtPct),\n \"Count as Fraction of Total\": tpl.fractionOf(tpl.count(), \"total\", usFmtPct),\n \"Count as Fraction of Rows\": tpl.fractionOf(tpl.count(), \"row\", usFmtPct),\n \"Count as Fraction of Columns\": tpl.fractionOf(tpl.count(), \"col\", usFmtPct)\n };\n })(aggregatorTemplates);\n renderers = {\n \"Table\": function(pvtData, opts) {\n return pivotTableRenderer(pvtData, opts);\n },\n \"Table Barchart\": function(pvtData, opts) {\n return $(pivotTableRenderer(pvtData, opts)).barchart();\n },\n \"Heatmap\": function(pvtData, opts) {\n return $(pivotTableRenderer(pvtData, opts)).heatmap();\n },\n \"Row Heatmap\": function(pvtData, opts) {\n return $(pivotTableRenderer(pvtData, opts)).heatmap(\"rowheatmap\");\n },\n \"Col Heatmap\": function(pvtData, opts) {\n return $(pivotTableRenderer(pvtData, opts)).heatmap(\"colheatmap\");\n }\n };\n locales = {\n en: {\n aggregators: aggregators,\n renderers: renderers,\n localeStrings: {\n renderError: \"An error occurred rendering the PivotTable results.\",\n computeError: \"An error occurred computing the PivotTable results.\",\n uiRenderError: \"An error occurred rendering the PivotTable UI.\",\n selectAll: \"Select All\",\n selectNone: \"Select None\",\n tooMany: \"(too many to list)\",\n filterResults: \"Filter results\",\n totals: \"Totals\",\n vs: \"vs\",\n by: \"by\"\n }\n }\n };\n mthNamesEn = [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"];\n dayNamesEn = [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"];\n zeroPad = function(number) {\n return (\"0\" + number).substr(-2, 2);\n };\n derivers = {\n bin: function(col, binWidth) {\n return function(record) {\n return record[col] - record[col] % binWidth;\n };\n },\n dateFormat: function(col, formatString, utcOutput, mthNames, dayNames) {\n var utc;\n if (utcOutput == null) {\n utcOutput = false;\n }\n if (mthNames == null) {\n mthNames = mthNamesEn;\n }\n if (dayNames == null) {\n dayNames = dayNamesEn;\n }\n utc = utcOutput ? \"UTC\" : \"\";\n return function(record) {\n var date;\n date = new Date(Date.parse(record[col]));\n if (isNaN(date)) {\n return \"\";\n }\n return formatString.replace(/%(.)/g, function(m, p) {\n switch (p) {\n case \"y\":\n return date[\"get\" + utc + \"FullYear\"]();\n case \"m\":\n return zeroPad(date[\"get\" + utc + \"Month\"]() + 1);\n case \"n\":\n return mthNames[date[\"get\" + utc + \"Month\"]()];\n case \"d\":\n return zeroPad(date[\"get\" + utc + \"Date\"]());\n case \"w\":\n return dayNames[date[\"get\" + utc + \"Day\"]()];\n case \"x\":\n return date[\"get\" + utc + \"Day\"]();\n case \"H\":\n return zeroPad(date[\"get\" + utc + \"Hours\"]());\n case \"M\":\n return zeroPad(date[\"get\" + utc + \"Minutes\"]());\n case \"S\":\n return zeroPad(date[\"get\" + utc + \"Seconds\"]());\n default:\n return \"%\" + p;\n }\n });\n };\n }\n };\n naturalSort = (function(_this) {\n return function(as, bs) {\n var a, a1, b, b1, rd, rx, rz;\n rx = /(\\d+)|(\\D+)/g;\n rd = /\\d/;\n rz = /^0/;\n if (typeof as === \"number\" || typeof bs === \"number\") {\n if (isNaN(as)) {\n return 1;\n }\n if (isNaN(bs)) {\n return -1;\n }\n return as - bs;\n }\n a = String(as).toLowerCase();\n b = String(bs).toLowerCase();\n if (a === b) {\n return 0;\n }\n if (!(rd.test(a) && rd.test(b))) {\n return (a > b ? 1 : -1);\n }\n a = a.match(rx);\n b = b.match(rx);\n while (a.length && b.length) {\n a1 = a.shift();\n b1 = b.shift();\n if (a1 !== b1) {\n if (rd.test(a1) && rd.test(b1)) {\n return a1.replace(rz, \".0\") - b1.replace(rz, \".0\");\n } else {\n return (a1 > b1 ? 1 : -1);\n }\n }\n }\n return a.length - b.length;\n };\n })(this);\n sortAs = function(order) {\n var i, mapping, x;\n mapping = {};\n for (i in order) {\n x = order[i];\n mapping[x] = i;\n }\n return function(a, b) {\n if ((mapping[a] != null) && (mapping[b] != null)) {\n return mapping[a] - mapping[b];\n } else if (mapping[a] != null) {\n return -1;\n } else if (mapping[b] != null) {\n return 1;\n } else {\n return naturalSort(a, b);\n }\n };\n };\n getSort = function(sorters, attr) {\n var sort;\n sort = sorters(attr);\n if ($.isFunction(sort)) {\n return sort;\n } else {\n return naturalSort;\n }\n };\n\n /*\n Data Model class\n */\n PivotData = (function() {\n function PivotData(input, opts) {\n this.getAggregator = bind(this.getAggregator, this);\n this.getRowKeys = bind(this.getRowKeys, this);\n this.getColKeys = bind(this.getColKeys, this);\n this.sortKeys = bind(this.sortKeys, this);\n this.arrSort = bind(this.arrSort, this);\n this.aggregator = opts.aggregator;\n this.aggregatorName = opts.aggregatorName;\n this.colAttrs = opts.cols;\n this.rowAttrs = opts.rows;\n this.valAttrs = opts.vals;\n this.sorters = opts.sorters;\n this.tree = {};\n this.rowKeys = [];\n this.colKeys = [];\n this.rowTotals = {};\n this.colTotals = {};\n this.allTotal = this.aggregator(this, [], []);\n this.sorted = false;\n PivotData.forEachRecord(input, opts.derivedAttributes, (function(_this) {\n return function(record) {\n if (opts.filter(record)) {\n return _this.processRecord(record);\n }\n };\n })(this));\n }\n\n PivotData.forEachRecord = function(input, derivedAttributes, f) {\n var addRecord, compactRecord, i, j, k, l, len1, record, ref, results, results1, tblCols;\n if ($.isEmptyObject(derivedAttributes)) {\n addRecord = f;\n } else {\n addRecord = function(record) {\n var k, ref, v;\n for (k in derivedAttributes) {\n v = derivedAttributes[k];\n record[k] = (ref = v(record)) != null ? ref : record[k];\n }\n return f(record);\n };\n }\n if ($.isFunction(input)) {\n return input(addRecord);\n } else if ($.isArray(input)) {\n if ($.isArray(input[0])) {\n results = [];\n for (i in input) {\n if (!hasProp.call(input, i)) continue;\n compactRecord = input[i];\n if (!(i > 0)) {\n continue;\n }\n record = {};\n ref = input[0];\n for (j in ref) {\n if (!hasProp.call(ref, j)) continue;\n k = ref[j];\n record[k] = compactRecord[j];\n }\n results.push(addRecord(record));\n }\n return results;\n } else {\n results1 = [];\n for (l = 0, len1 = input.length; l < len1; l++) {\n record = input[l];\n results1.push(addRecord(record));\n }\n return results1;\n }\n } else if (input instanceof jQuery) {\n tblCols = [];\n $(\"thead > tr > th\", input).each(function(i) {\n return tblCols.push($(this).text());\n });\n return $(\"tbody > tr\", input).each(function(i) {\n record = {};\n $(\"td\", this).each(function(j) {\n return record[tblCols[j]] = $(this).text();\n });\n return addRecord(record);\n });\n } else {\n throw new Error(\"unknown input format\");\n }\n };\n\n PivotData.convertToArray = function(input) {\n var result;\n result = [];\n PivotData.forEachRecord(input, {}, function(record) {\n return result.push(record);\n });\n return result;\n };\n\n PivotData.prototype.arrSort = function(attrs) {\n var a, sortersArr;\n sortersArr = (function() {\n var l, len1, results;\n results = [];\n for (l = 0, len1 = attrs.length; l < len1; l++) {\n a = attrs[l];\n results.push(getSort(this.sorters, a));\n }\n return results;\n }).call(this);\n return function(a, b) {\n var comparison, i, sorter;\n for (i in sortersArr) {\n if (!hasProp.call(sortersArr, i)) continue;\n sorter = sortersArr[i];\n comparison = sorter(a[i], b[i]);\n if (comparison !== 0) {\n return comparison;\n }\n }\n return 0;\n };\n };\n\n PivotData.prototype.sortKeys = function() {\n if (!this.sorted) {\n this.sorted = true;\n this.rowKeys.sort(this.arrSort(this.rowAttrs));\n return this.colKeys.sort(this.arrSort(this.colAttrs));\n }\n };\n\n PivotData.prototype.getColKeys = function() {\n this.sortKeys();\n return this.colKeys;\n };\n\n PivotData.prototype.getRowKeys = function() {\n this.sortKeys();\n return this.rowKeys;\n };\n\n PivotData.prototype.processRecord = function(record) {\n var colKey, flatColKey, flatRowKey, l, len1, len2, n, ref, ref1, ref2, ref3, rowKey, x;\n colKey = [];\n rowKey = [];\n ref = this.colAttrs;\n for (l = 0, len1 = ref.length; l < len1; l++) {\n x = ref[l];\n colKey.push((ref1 = record[x]) != null ? ref1 : \"null\");\n }\n ref2 = this.rowAttrs;\n for (n = 0, len2 = ref2.length; n < len2; n++) {\n x = ref2[n];\n rowKey.push((ref3 = record[x]) != null ? ref3 : \"null\");\n }\n flatRowKey = rowKey.join(String.fromCharCode(0));\n flatColKey = colKey.join(String.fromCharCode(0));\n this.allTotal.push(record);\n if (rowKey.length !== 0) {\n if (!this.rowTotals[flatRowKey]) {\n this.rowKeys.push(rowKey);\n this.rowTotals[flatRowKey] = this.aggregator(this, rowKey, []);\n }\n this.rowTotals[flatRowKey].push(record);\n }\n if (colKey.length !== 0) {\n if (!this.colTotals[flatColKey]) {\n this.colKeys.push(colKey);\n this.colTotals[flatColKey] = this.aggregator(this, [], colKey);\n }\n this.colTotals[flatColKey].push(record);\n }\n if (colKey.length !== 0 && rowKey.length !== 0) {\n if (!this.tree[flatRowKey]) {\n this.tree[flatRowKey] = {};\n }\n if (!this.tree[flatRowKey][flatColKey]) {\n this.tree[flatRowKey][flatColKey] = this.aggregator(this, rowKey, colKey);\n }\n return this.tree[flatRowKey][flatColKey].push(record);\n }\n };\n\n PivotData.prototype.getAggregator = function(rowKey, colKey) {\n var agg, flatColKey, flatRowKey;\n flatRowKey = rowKey.join(String.fromCharCode(0));\n flatColKey = colKey.join(String.fromCharCode(0));\n if (rowKey.length === 0 && colKey.length === 0) {\n agg = this.allTotal;\n } else if (rowKey.length === 0) {\n agg = this.colTotals[flatColKey];\n } else if (colKey.length === 0) {\n agg = this.rowTotals[flatRowKey];\n } else {\n agg = this.tree[flatRowKey][flatColKey];\n }\n return agg != null ? agg : {\n value: (function() {\n return null;\n }),\n format: function() {\n return \"\";\n }\n };\n };\n\n return PivotData;\n\n })();\n $.pivotUtilities = {\n aggregatorTemplates: aggregatorTemplates,\n aggregators: aggregators,\n renderers: renderers,\n derivers: derivers,\n locales: locales,\n naturalSort: naturalSort,\n numberFormat: numberFormat,\n sortAs: sortAs,\n PivotData: PivotData\n };\n\n /*\n Default Renderer for hierarchical table layout\n */\n pivotTableRenderer = function(pivotData, opts) {\n var aggregator, c, colAttrs, colKey, colKeys, defaults, i, j, r, result, rowAttrs, rowKey, rowKeys, spanSize, td, th, totalAggregator, tr, txt, val, x;\n defaults = {\n localeStrings: {\n totals: \"Totals\"\n }\n };\n opts = $.extend(defaults, opts);\n colAttrs = pivotData.colAttrs;\n rowAttrs = pivotData.rowAttrs;\n rowKeys = pivotData.getRowKeys();\n colKeys = pivotData.getColKeys();\n result = document.createElement(\"table\");\n result.className = \"pvtTable\";\n spanSize = function(arr, i, j) {\n var l, len, n, noDraw, ref, ref1, stop, x;\n if (i !== 0) {\n noDraw = true;\n for (x = l = 0, ref = j; 0 <= ref ? l <= ref : l >= ref; x = 0 <= ref ? ++l : --l) {\n if (arr[i - 1][x] !== arr[i][x]) {\n noDraw = false;\n }\n }\n if (noDraw) {\n return -1;\n }\n }\n len = 0;\n while (i + len < arr.length) {\n stop = false;\n for (x = n = 0, ref1 = j; 0 <= ref1 ? n <= ref1 : n >= ref1; x = 0 <= ref1 ? ++n : --n) {\n if (arr[i][x] !== arr[i + len][x]) {\n stop = true;\n }\n }\n if (stop) {\n break;\n }\n len++;\n }\n return len;\n };\n for (j in colAttrs) {\n if (!hasProp.call(colAttrs, j)) continue;\n c = colAttrs[j];\n tr = document.createElement(\"tr\");\n if (parseInt(j) === 0 && rowAttrs.length !== 0) {\n th = document.createElement(\"th\");\n th.setAttribute(\"colspan\", rowAttrs.length);\n th.setAttribute(\"rowspan\", colAttrs.length);\n tr.appendChild(th);\n }\n th = document.createElement(\"th\");\n th.className = \"pvtAxisLabel\";\n th.textContent = c;\n tr.appendChild(th);\n for (i in colKeys) {\n if (!hasProp.call(colKeys, i)) continue;\n colKey = colKeys[i];\n x = spanSize(colKeys, parseInt(i), parseInt(j));\n if (x !== -1) {\n th = document.createElement(\"th\");\n th.className = \"pvtColLabel\";\n th.textContent = colKey[j];\n th.setAttribute(\"colspan\", x);\n if (parseInt(j) === colAttrs.length - 1 && rowAttrs.length !== 0) {\n th.setAttribute(\"rowspan\", 2);\n }\n tr.appendChild(th);\n }\n }\n if (parseInt(j) === 0) {\n th = document.createElement(\"th\");\n th.className = \"pvtTotalLabel\";\n th.innerHTML = opts.localeStrings.totals;\n th.setAttribute(\"rowspan\", colAttrs.length + (rowAttrs.length === 0 ? 0 : 1));\n tr.appendChild(th);\n }\n result.appendChild(tr);\n }\n if (rowAttrs.length !== 0) {\n tr = document.createElement(\"tr\");\n for (i in rowAttrs) {\n if (!hasProp.call(rowAttrs, i)) continue;\n r = rowAttrs[i];\n th = document.createElement(\"th\");\n th.className = \"pvtAxisLabel\";\n th.textContent = r;\n tr.appendChild(th);\n }\n th = document.createElement(\"th\");\n if (colAttrs.length === 0) {\n th.className = \"pvtTotalLabel\";\n th.innerHTML = opts.localeStrings.totals;\n }\n tr.appendChild(th);\n result.appendChild(tr);\n }\n for (i in rowKeys) {\n if (!hasProp.call(rowKeys, i)) continue;\n rowKey = rowKeys[i];\n tr = document.createElement(\"tr\");\n for (j in rowKey) {\n if (!hasProp.call(rowKey, j)) continue;\n txt = rowKey[j];\n x = spanSize(rowKeys, parseInt(i), parseInt(j));\n if (x !== -1) {\n th = document.createElement(\"th\");\n th.className = \"pvtRowLabel\";\n th.textContent = txt;\n th.setAttribute(\"rowspan\", x);\n if (parseInt(j) === rowAttrs.length - 1 && colAttrs.length !== 0) {\n th.setAttribute(\"colspan\", 2);\n }\n tr.appendChild(th);\n }\n }\n for (j in colKeys) {\n if (!hasProp.call(colKeys, j)) continue;\n colKey = colKeys[j];\n aggregator = pivotData.getAggregator(rowKey, colKey);\n val = aggregator.value();\n td = document.createElement(\"td\");\n td.className = \"pvtVal row\" + i + \" col\" + j;\n td.textContent = aggregator.format(val);\n td.setAttribute(\"data-value\", val);\n tr.appendChild(td);\n }\n totalAggregator = pivotData.getAggregator(rowKey, []);\n val = totalAggregator.value();\n td = document.createElement(\"td\");\n td.className = \"pvtTotal rowTotal\";\n td.textContent = totalAggregator.format(val);\n td.setAttribute(\"data-value\", val);\n td.setAttribute(\"data-for\", \"row\" + i);\n tr.appendChild(td);\n result.appendChild(tr);\n }\n tr = document.createElement(\"tr\");\n th = document.createElement(\"th\");\n th.className = \"pvtTotalLabel\";\n th.innerHTML = opts.localeStrings.totals;\n th.setAttribute(\"colspan\", rowAttrs.length + (colAttrs.length === 0 ? 0 : 1));\n tr.appendChild(th);\n for (j in colKeys) {\n if (!hasProp.call(colKeys, j)) continue;\n colKey = colKeys[j];\n totalAggregator = pivotData.getAggregator([], colKey);\n val = totalAggregator.value();\n td = document.createElement(\"td\");\n td.className = \"pvtTotal colTotal\";\n td.textContent = totalAggregator.format(val);\n td.setAttribute(\"data-value\", val);\n td.setAttribute(\"data-for\", \"col\" + j);\n tr.appendChild(td);\n }\n totalAggregator = pivotData.getAggregator([], []);\n val = totalAggregator.value();\n td = document.createElement(\"td\");\n td.className = \"pvtGrandTotal\";\n td.textContent = totalAggregator.format(val);\n td.setAttribute(\"data-value\", val);\n tr.appendChild(td);\n result.appendChild(tr);\n result.setAttribute(\"data-numrows\", rowKeys.length);\n result.setAttribute(\"data-numcols\", colKeys.length);\n return result;\n };\n\n /*\n Pivot Table core: create PivotData object and call Renderer on it\n */\n $.fn.pivot = function(input, opts) {\n var defaults, e, error, error1, pivotData, result, x;\n defaults = {\n cols: [],\n rows: [],\n vals: [],\n filter: function() {\n return true;\n },\n aggregator: aggregatorTemplates.count()(),\n aggregatorName: \"Count\",\n sorters: function() {},\n derivedAttributes: {},\n renderer: pivotTableRenderer,\n rendererOptions: null,\n localeStrings: locales.en.localeStrings\n };\n opts = $.extend(defaults, opts);\n result = null;\n try {\n pivotData = new PivotData(input, opts);\n try {\n result = opts.renderer(pivotData, opts.rendererOptions);\n } catch (error) {\n e = error;\n if (typeof console !== \"undefined\" && console !== null) {\n console.error(e.stack);\n }\n result = $(\"<span>\").html(opts.localeStrings.renderError);\n }\n } catch (error1) {\n e = error1;\n if (typeof console !== \"undefined\" && console !== null) {\n console.error(e.stack);\n }\n result = $(\"<span>\").html(opts.localeStrings.computeError);\n }\n x = this[0];\n while (x.hasChildNodes()) {\n x.removeChild(x.lastChild);\n }\n return this.append(result);\n };\n\n /*\n Pivot Table UI: calls Pivot Table core above with options set by user\n */\n $.fn.pivotUI = function(input, inputOpts, overwrite, locale) {\n var a, aggregator, attrLength, axisValues, c, colList, defaults, e, error, existingOpts, fn, i, initialRender, k, l, len1, len2, len3, len4, n, o, opts, pivotTable, q, ref, ref1, ref2, ref3, ref4, refresh, refreshDelayed, renderer, rendererControl, shownAttributes, tblCols, tr1, tr2, uiTable, unusedAttrsVerticalAutoCutoff, unusedAttrsVerticalAutoOverride, x;\n if (overwrite == null) {\n overwrite = false;\n }\n if (locale == null) {\n locale = \"en\";\n }\n if (locales[locale] == null) {\n locale = \"en\";\n }\n defaults = {\n derivedAttributes: {},\n aggregators: locales[locale].aggregators,\n renderers: locales[locale].renderers,\n hiddenAttributes: [],\n menuLimit: 200,\n cols: [],\n rows: [],\n vals: [],\n exclusions: {},\n inclusions: {},\n unusedAttrsVertical: 85,\n autoSortUnusedAttrs: false,\n rendererOptions: {\n localeStrings: locales[locale].localeStrings\n },\n onRefresh: null,\n filter: function() {\n return true;\n },\n sorters: function() {},\n localeStrings: locales[locale].localeStrings\n };\n existingOpts = this.data(\"pivotUIOptions\");\n if ((existingOpts == null) || overwrite) {\n opts = $.extend(defaults, inputOpts);\n } else {\n opts = existingOpts;\n }\n try {\n input = PivotData.convertToArray(input);\n tblCols = (function() {\n var ref, results;\n ref = input[0];\n results = [];\n for (k in ref) {\n if (!hasProp.call(ref, k)) continue;\n results.push(k);\n }\n return results;\n })();\n ref = opts.derivedAttributes;\n for (c in ref) {\n if (!hasProp.call(ref, c)) continue;\n if ((indexOf.call(tblCols, c) < 0)) {\n tblCols.push(c);\n }\n }\n axisValues = {};\n for (l = 0, len1 = tblCols.length; l < len1; l++) {\n x = tblCols[l];\n axisValues[x] = {};\n }\n PivotData.forEachRecord(input, opts.derivedAttributes, function(record) {\n var base, results, v;\n results = [];\n for (k in record) {\n if (!hasProp.call(record, k)) continue;\n v = record[k];\n if (!(opts.filter(record))) {\n continue;\n }\n if (v == null) {\n v = \"null\";\n }\n if ((base = axisValues[k])[v] == null) {\n base[v] = 0;\n }\n results.push(axisValues[k][v]++);\n }\n return results;\n });\n uiTable = $(\"<table>\", {\n \"class\": \"pvtUi\"\n }).attr(\"cellpadding\", 5);\n rendererControl = $(\"<td>\");\n renderer = $(\"<select>\").addClass('pvtRenderer').appendTo(rendererControl).bind(\"change\", function() {\n return refresh();\n });\n ref1 = opts.renderers;\n for (x in ref1) {\n if (!hasProp.call(ref1, x)) continue;\n $(\"<option>\").val(x).html(x).appendTo(renderer);\n }\n colList = $(\"<td>\").addClass('pvtAxisContainer pvtUnused');\n shownAttributes = (function() {\n var len2, n, results;\n results = [];\n for (n = 0, len2 = tblCols.length; n < len2; n++) {\n c = tblCols[n];\n if (indexOf.call(opts.hiddenAttributes, c) < 0) {\n results.push(c);\n }\n }\n return results;\n })();\n unusedAttrsVerticalAutoOverride = false;\n if (opts.unusedAttrsVertical === \"auto\") {\n unusedAttrsVerticalAutoCutoff = 120;\n } else {\n unusedAttrsVerticalAutoCutoff = parseInt(opts.unusedAttrsVertical);\n }\n if (!isNaN(unusedAttrsVerticalAutoCutoff)) {\n attrLength = 0;\n for (n = 0, len2 = shownAttributes.length; n < len2; n++) {\n a = shownAttributes[n];\n attrLength += a.length;\n }\n unusedAttrsVerticalAutoOverride = attrLength > unusedAttrsVerticalAutoCutoff;\n }\n if (opts.unusedAttrsVertical === true || unusedAttrsVerticalAutoOverride) {\n colList.addClass('pvtVertList');\n } else {\n colList.addClass('pvtHorizList');\n }\n fn = function(c) {\n var attrElem, btns, checkContainer, filterItem, filterItemExcluded, hasExcludedItem, keys, len3, o, ref2, showFilterList, triangleLink, updateFilter, v, valueList;\n keys = (function() {\n var results;\n results = [];\n for (k in axisValues[c]) {\n results.push(k);\n }\n return results;\n })();\n hasExcludedItem = false;\n valueList = $(\"<div>\").addClass('pvtFilterBox').hide();\n valueList.append($(\"<h4>\").text(c + \" (\" + keys.length + \")\"));\n if (keys.length > opts.menuLimit) {\n valueList.append($(\"<p>\").html(opts.localeStrings.tooMany));\n } else {\n btns = $(\"<p>\").appendTo(valueList);\n btns.append($(\"<button>\", {\n type: \"button\"\n }).html(opts.localeStrings.selectAll).bind(\"click\", function() {\n return valueList.find(\"input:visible\").prop(\"checked\", true);\n }));\n btns.append($(\"<button>\", {\n type: \"button\"\n }).html(opts.localeStrings.selectNone).bind(\"click\", function() {\n return valueList.find(\"input:visible\").prop(\"checked\", false);\n }));\n btns.append($(\"<br>\"));\n btns.append($(\"<input>\", {\n type: \"text\",\n placeholder: opts.localeStrings.filterResults,\n \"class\": \"pvtSearch\"\n }).bind(\"keyup\", function() {\n var filter;\n filter = $(this).val().toLowerCase();\n return valueList.find('.pvtCheckContainer p').each(function() {\n var testString;\n testString = $(this).text().toLowerCase().indexOf(filter);\n if (testString !== -1) {\n return $(this).show();\n } else {\n return $(this).hide();\n }\n });\n }));\n checkContainer = $(\"<div>\").addClass(\"pvtCheckContainer\").appendTo(valueList);\n ref2 = keys.sort(getSort(opts.sorters, c));\n for (o = 0, len3 = ref2.length; o < len3; o++) {\n k = ref2[o];\n v = axisValues[c][k];\n filterItem = $(\"<label>\");\n filterItemExcluded = false;\n if (opts.inclusions[c]) {\n filterItemExcluded = (indexOf.call(opts.inclusions[c], k) < 0);\n } else if (opts.exclusions[c]) {\n filterItemExcluded = (indexOf.call(opts.exclusions[c], k) >= 0);\n }\n hasExcludedItem || (hasExcludedItem = filterItemExcluded);\n $(\"<input>\").attr(\"type\", \"checkbox\").addClass('pvtFilter').attr(\"checked\", !filterItemExcluded).data(\"filter\", [c, k]).appendTo(filterItem);\n filterItem.append($(\"<span>\").text(k));\n filterItem.append($(\"<span>\").text(\" (\" + v + \")\"));\n checkContainer.append($(\"<p>\").append(filterItem));\n }\n }\n updateFilter = function() {\n var unselectedCount;\n unselectedCount = valueList.find(\"[type='checkbox']\").length - valueList.find(\"[type='checkbox']:checked\").length;\n if (unselectedCount > 0) {\n attrElem.addClass(\"pvtFilteredAttribute\");\n } else {\n attrElem.removeClass(\"pvtFilteredAttribute\");\n }\n if (keys.length > opts.menuLimit) {\n return valueList.toggle();\n } else {\n return valueList.toggle(0, refresh);\n }\n };\n $(\"<p>\").appendTo(valueList).append($(\"<button>\", {\n type: \"button\"\n }).text(\"OK\").bind(\"click\", updateFilter));\n showFilterList = function(e) {\n var clickLeft, clickTop, ref3;\n ref3 = $(e.currentTarget).position(), clickLeft = ref3.left, clickTop = ref3.top;\n valueList.css({\n left: clickLeft + 10,\n top: clickTop + 10\n }).toggle();\n valueList.find('.pvtSearch').val('');\n return valueList.find('.pvtCheckContainer p').show();\n };\n triangleLink = $(\"<span>\").addClass('pvtTriangle').html(\" ▾\").bind(\"click\", showFilterList);\n attrElem = $(\"<li>\").addClass(\"axis_\" + i).append($(\"<span>\").addClass('pvtAttr').text(c).data(\"attrName\", c).append(triangleLink));\n if (hasExcludedItem) {\n attrElem.addClass('pvtFilteredAttribute');\n }\n colList.append(attrElem).append(valueList);\n return attrElem.bind(\"dblclick\", showFilterList);\n };\n for (i in shownAttributes) {\n if (!hasProp.call(shownAttributes, i)) continue;\n c = shownAttributes[i];\n fn(c);\n }\n tr1 = $(\"<tr>\").appendTo(uiTable);\n aggregator = $(\"<select>\").addClass('pvtAggregator').bind(\"change\", function() {\n return refresh();\n });\n ref2 = opts.aggregators;\n for (x in ref2) {\n if (!hasProp.call(ref2, x)) continue;\n aggregator.append($(\"<option>\").val(x).html(x));\n }\n $(\"<td>\").addClass('pvtVals').appendTo(tr1).append(aggregator).append($(\"<br>\"));\n $(\"<td>\").addClass('pvtAxisContainer pvtHorizList pvtCols').appendTo(tr1);\n tr2 = $(\"<tr>\").appendTo(uiTable);\n tr2.append($(\"<td>\").addClass('pvtAxisContainer pvtRows').attr(\"valign\", \"top\"));\n pivotTable = $(\"<td>\").attr(\"valign\", \"top\").addClass('pvtRendererArea').appendTo(tr2);\n if (opts.unusedAttrsVertical === true || unusedAttrsVerticalAutoOverride) {\n uiTable.find('tr:nth-child(1)').prepend(rendererControl);\n uiTable.find('tr:nth-child(2)').prepend(colList);\n } else {\n uiTable.prepend($(\"<tr>\").append(rendererControl).append(colList));\n }\n this.html(uiTable);\n ref3 = opts.cols;\n for (o = 0, len3 = ref3.length; o < len3; o++) {\n x = ref3[o];\n this.find(\".pvtCols\").append(this.find(\".axis_\" + ($.inArray(x, shownAttributes))));\n }\n ref4 = opts.rows;\n for (q = 0, len4 = ref4.length; q < len4; q++) {\n x = ref4[q];\n this.find(\".pvtRows\").append(this.find(\".axis_\" + ($.inArray(x, shownAttributes))));\n }\n if (opts.aggregatorName != null) {\n this.find(\".pvtAggregator\").val(opts.aggregatorName);\n }\n if (opts.rendererName != null) {\n this.find(\".pvtRenderer\").val(opts.rendererName);\n }\n initialRender = true;\n refreshDelayed = (function(_this) {\n return function() {\n var attr, exclusions, inclusions, len5, newDropdown, numInputsToProcess, pivotUIOptions, pvtVals, ref5, ref6, s, subopts, t, unusedAttrsContainer, vals;\n subopts = {\n derivedAttributes: opts.derivedAttributes,\n localeStrings: opts.localeStrings,\n rendererOptions: opts.rendererOptions,\n sorters: opts.sorters,\n cols: [],\n rows: []\n };\n numInputsToProcess = (ref5 = opts.aggregators[aggregator.val()]([])().numInputs) != null ? ref5 : 0;\n vals = [];\n _this.find(\".pvtRows li span.pvtAttr\").each(function() {\n return subopts.rows.push($(this).data(\"attrName\"));\n });\n _this.find(\".pvtCols li span.pvtAttr\").each(function() {\n return subopts.cols.push($(this).data(\"attrName\"));\n });\n _this.find(\".pvtVals select.pvtAttrDropdown\").each(function() {\n if (numInputsToProcess === 0) {\n return $(this).remove();\n } else {\n numInputsToProcess--;\n if ($(this).val() !== \"\") {\n return vals.push($(this).val());\n }\n }\n });\n if (numInputsToProcess !== 0) {\n pvtVals = _this.find(\".pvtVals\");\n for (x = s = 0, ref6 = numInputsToProcess; 0 <= ref6 ? s < ref6 : s > ref6; x = 0 <= ref6 ? ++s : --s) {\n newDropdown = $(\"<select>\").addClass('pvtAttrDropdown').append($(\"<option>\")).bind(\"change\", function() {\n return refresh();\n });\n for (t = 0, len5 = shownAttributes.length; t < len5; t++) {\n attr = shownAttributes[t];\n newDropdown.append($(\"<option>\").val(attr).text(attr));\n }\n pvtVals.append(newDropdown);\n }\n }\n if (initialRender) {\n vals = opts.vals;\n i = 0;\n _this.find(\".pvtVals select.pvtAttrDropdown\").each(function() {\n $(this).val(vals[i]);\n return i++;\n });\n initialRender = false;\n }\n subopts.aggregatorName = aggregator.val();\n subopts.vals = vals;\n subopts.aggregator = opts.aggregators[aggregator.val()](vals);\n subopts.renderer = opts.renderers[renderer.val()];\n exclusions = {};\n _this.find('input.pvtFilter').not(':checked').each(function() {\n var filter;\n filter = $(this).data(\"filter\");\n if (exclusions[filter[0]] != null) {\n return exclusions[filter[0]].push(filter[1]);\n } else {\n return exclusions[filter[0]] = [filter[1]];\n }\n });\n inclusions = {};\n _this.find('input.pvtFilter:checked').each(function() {\n var filter;\n filter = $(this).data(\"filter\");\n if (exclusions[filter[0]] != null) {\n if (inclusions[filter[0]] != null) {\n return inclusions[filter[0]].push(filter[1]);\n } else {\n return inclusions[filter[0]] = [filter[1]];\n }\n }\n });\n subopts.filter = function(record) {\n var excludedItems, ref7;\n if (!opts.filter(record)) {\n return false;\n }\n for (k in exclusions) {\n excludedItems = exclusions[k];\n if (ref7 = \"\" + record[k], indexOf.call(excludedItems, ref7) >= 0) {\n return false;\n }\n }\n return true;\n };\n pivotTable.pivot(input, subopts);\n pivotUIOptions = $.extend(opts, {\n cols: subopts.cols,\n rows: subopts.rows,\n vals: vals,\n exclusions: exclusions,\n inclusions: inclusions,\n inclusionsInfo: inclusions,\n aggregatorName: aggregator.val(),\n rendererName: renderer.val()\n });\n _this.data(\"pivotUIOptions\", pivotUIOptions);\n if (opts.autoSortUnusedAttrs) {\n unusedAttrsContainer = _this.find(\"td.pvtUnused.pvtAxisContainer\");\n $(unusedAttrsContainer).children(\"li\").sort(function(a, b) {\n return naturalSort($(a).text(), $(b).text());\n }).appendTo(unusedAttrsContainer);\n }\n pivotTable.css(\"opacity\", 1);\n if (opts.onRefresh != null) {\n return opts.onRefresh(pivotUIOptions);\n }\n };\n })(this);\n refresh = (function(_this) {\n return function() {\n pivotTable.css(\"opacity\", 0.5);\n return setTimeout(refreshDelayed, 10);\n };\n })(this);\n refresh();\n this.find(\".pvtAxisContainer\").sortable({\n update: function(e, ui) {\n if (ui.sender == null) {\n return refresh();\n }\n },\n connectWith: this.find(\".pvtAxisContainer\"),\n items: 'li',\n placeholder: 'pvtPlaceholder'\n });\n } catch (error) {\n e = error;\n if (typeof console !== \"undefined\" && console !== null) {\n console.error(e.stack);\n }\n this.html(opts.localeStrings.uiRenderError);\n }\n return this;\n };\n\n /*\n Heatmap post-processing\n */\n $.fn.heatmap = function(scope) {\n var colorGen, heatmapper, i, j, l, n, numCols, numRows, ref, ref1;\n if (scope == null) {\n scope = \"heatmap\";\n }\n numRows = this.data(\"numrows\");\n numCols = this.data(\"numcols\");\n colorGen = function(color, min, max) {\n var hexGen;\n hexGen = (function() {\n switch (color) {\n case \"red\":\n return function(hex) {\n return \"ff\" + hex + hex;\n };\n case \"green\":\n return function(hex) {\n return hex + \"ff\" + hex;\n };\n case \"blue\":\n return function(hex) {\n return \"\" + hex + hex + \"ff\";\n };\n }\n })();\n return function(x) {\n var hex, intensity;\n intensity = 255 - Math.round(255 * (x - min) / (max - min));\n hex = intensity.toString(16).split(\".\")[0];\n if (hex.length === 1) {\n hex = 0 + hex;\n }\n return hexGen(hex);\n };\n };\n heatmapper = (function(_this) {\n return function(scope, color) {\n var colorFor, forEachCell, values;\n forEachCell = function(f) {\n return _this.find(scope).each(function() {\n var x;\n x = $(this).data(\"value\");\n if ((x != null) && isFinite(x)) {\n return f(x, $(this));\n }\n });\n };\n values = [];\n forEachCell(function(x) {\n return values.push(x);\n });\n colorFor = colorGen(color, Math.min.apply(Math, values), Math.max.apply(Math, values));\n return forEachCell(function(x, elem) {\n return elem.css(\"background-color\", \"#\" + colorFor(x));\n });\n };\n })(this);\n switch (scope) {\n case \"heatmap\":\n heatmapper(\".pvtVal\", \"red\");\n break;\n case \"rowheatmap\":\n for (i = l = 0, ref = numRows; 0 <= ref ? l < ref : l > ref; i = 0 <= ref ? ++l : --l) {\n heatmapper(\".pvtVal.row\" + i, \"red\");\n }\n break;\n case \"colheatmap\":\n for (j = n = 0, ref1 = numCols; 0 <= ref1 ? n < ref1 : n > ref1; j = 0 <= ref1 ? ++n : --n) {\n heatmapper(\".pvtVal.col\" + j, \"red\");\n }\n }\n heatmapper(\".pvtTotal.rowTotal\", \"red\");\n heatmapper(\".pvtTotal.colTotal\", \"red\");\n return this;\n };\n\n /*\n Barchart post-processing\n */\n return $.fn.barchart = function() {\n var barcharter, i, l, numCols, numRows, ref;\n numRows = this.data(\"numrows\");\n numCols = this.data(\"numcols\");\n barcharter = (function(_this) {\n return function(scope) {\n var forEachCell, max, scaler, values;\n forEachCell = function(f) {\n return _this.find(scope).each(function() {\n var x;\n x = $(this).data(\"value\");\n if ((x != null) && isFinite(x)) {\n return f(x, $(this));\n }\n });\n };\n values = [];\n forEachCell(function(x) {\n return values.push(x);\n });\n max = Math.max.apply(Math, values);\n scaler = function(x) {\n return 100 * x / (1.4 * max);\n };\n return forEachCell(function(x, elem) {\n var text, wrapper;\n text = elem.text();\n wrapper = $(\"<div>\").css({\n \"position\": \"relative\",\n \"height\": \"55px\"\n });\n wrapper.append($(\"<div>\").css({\n \"position\": \"absolute\",\n \"bottom\": 0,\n \"left\": 0,\n \"right\": 0,\n \"height\": scaler(x) + \"%\",\n \"background-color\": \"gray\"\n }));\n wrapper.append($(\"<div>\").text(text).css({\n \"position\": \"relative\",\n \"padding-left\": \"5px\",\n \"padding-right\": \"5px\"\n }));\n return elem.css({\n \"padding\": 0,\n \"padding-top\": \"5px\",\n \"text-align\": \"center\"\n }).html(wrapper);\n });\n };\n })(this);\n for (i = l = 0, ref = numRows; 0 <= ref ? l < ref : l > ref; i = 0 <= ref ? ++l : --l) {\n barcharter(\".pvtVal.row\" + i);\n }\n barcharter(\".pvtTotal.colTotal\");\n return this;\n };\n });\n\n}).call(this);\n\n//# sourceMappingURL=pivot.js.map\n"],"sourceRoot":"/source/"}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
(function() {
|
2
|
+
var callWithJQuery;
|
3
|
+
|
4
|
+
callWithJQuery = function(pivotModule) {
|
5
|
+
if (typeof exports === "object" && typeof module === "object") {
|
6
|
+
return pivotModule(require("jquery"));
|
7
|
+
} else if (typeof define === "function" && define.amd) {
|
8
|
+
return define(["jquery"], pivotModule);
|
9
|
+
} else {
|
10
|
+
return pivotModule(jQuery);
|
11
|
+
}
|
12
|
+
};
|
13
|
+
|
14
|
+
callWithJQuery(function($) {
|
15
|
+
var frFmt, frFmtInt, frFmtPct, nf, tpl;
|
16
|
+
nf = $.pivotUtilities.numberFormat;
|
17
|
+
tpl = $.pivotUtilities.aggregatorTemplates;
|
18
|
+
frFmt = nf({
|
19
|
+
thousandsSep: " ",
|
20
|
+
decimalSep: ","
|
21
|
+
});
|
22
|
+
frFmtInt = nf({
|
23
|
+
digitsAfterDecimal: 0,
|
24
|
+
thousandsSep: " ",
|
25
|
+
decimalSep: ","
|
26
|
+
});
|
27
|
+
frFmtPct = nf({
|
28
|
+
digitsAfterDecimal: 1,
|
29
|
+
scaler: 100,
|
30
|
+
suffix: "%",
|
31
|
+
thousandsSep: " ",
|
32
|
+
decimalSep: ","
|
33
|
+
});
|
34
|
+
return $.pivotUtilities.locales.fr = {
|
35
|
+
localeStrings: {
|
36
|
+
renderError: "Er is een fout opgetreden bij het renderen van de kruistabel..",
|
37
|
+
computeError: "Er is een fout opgetreden bij het berekenen van de kruistabel.",
|
38
|
+
uiRenderError: "Er is een fout opgetreden bij het tekenen van de interface van de kruistabel.",
|
39
|
+
selectAll: "Alles selecteren",
|
40
|
+
selectNone: "Niets selecteren",
|
41
|
+
tooMany: "(te veel waarden om weer te geven)",
|
42
|
+
filterResults: "Filter resultaten",
|
43
|
+
totals: "Totaal",
|
44
|
+
vs: "versus",
|
45
|
+
by: "per"
|
46
|
+
},
|
47
|
+
aggregators: {
|
48
|
+
"Aantal": tpl.count(frFmtInt),
|
49
|
+
"Aantal unieke waarden": tpl.countUnique(frFmtInt),
|
50
|
+
"Lijst unieke waarden": tpl.listUnique(", "),
|
51
|
+
"Som": tpl.sum(frFmt),
|
52
|
+
"Som van gehele getallen": tpl.sum(frFmtInt),
|
53
|
+
"Gemiddelde": tpl.average(frFmt),
|
54
|
+
"Minimum": tpl.min(frFmt),
|
55
|
+
"Maximum": tpl.max(frFmt),
|
56
|
+
"Som over som": tpl.sumOverSum(frFmt),
|
57
|
+
"80% bovengrens": tpl.sumOverSumBound80(true, frFmt),
|
58
|
+
"80% ondergrens": tpl.sumOverSumBound80(false, frFmt),
|
59
|
+
"Som in verhouding tot het totaal": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
|
60
|
+
"Som in verhouding tot de rij": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
|
61
|
+
"Som in verhouding tot de kolom": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
|
62
|
+
"Aantal in verhouding tot het totaal": tpl.fractionOf(tpl.count(), "total", frFmtPct),
|
63
|
+
"Aantal in verhouding tot de rij": tpl.fractionOf(tpl.count(), "row", frFmtPct),
|
64
|
+
"Aantal in verhouding tot de kolom": tpl.fractionOf(tpl.count(), "col", frFmtPct)
|
65
|
+
},
|
66
|
+
renderers: {
|
67
|
+
"Tabel": $.pivotUtilities.renderers["Table"],
|
68
|
+
"Tabel met staafdiagrammen": $.pivotUtilities.renderers["Table Barchart"],
|
69
|
+
"Warmtekaart": $.pivotUtilities.renderers["Heatmap"],
|
70
|
+
"Warmtekaart per rij": $.pivotUtilities.renderers["Row Heatmap"],
|
71
|
+
"Warmtekaart per kolom": $.pivotUtilities.renderers["Col Heatmap"]
|
72
|
+
}
|
73
|
+
};
|
74
|
+
});
|
75
|
+
|
76
|
+
}).call(this);
|
77
|
+
|
78
|
+
//# sourceMappingURL=pivot.nl.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["pivot.nl.coffee"],"names":[],"mappings":"AAAA;AAAA,MAAA;;EAAA,cAAA,GAAiB,SAAC,WAAD;IACb,IAAG,OAAO,OAAP,KAAkB,QAAlB,IAA+B,OAAO,MAAP,KAAiB,QAAnD;aACI,WAAA,CAAY,OAAA,CAAQ,QAAR,CAAZ,EADJ;KAAA,MAEK,IAAG,OAAO,MAAP,KAAiB,UAAjB,IAAgC,MAAM,CAAC,GAA1C;aACD,MAAA,CAAO,CAAC,QAAD,CAAP,EAAmB,WAAnB,EADC;KAAA,MAAA;aAID,WAAA,CAAY,MAAZ,EAJC;;EAHQ;;EASjB,cAAA,CAAe,SAAC,CAAD;AACX,QAAA;IAAA,EAAA,GAAK,CAAC,CAAC,cAAc,CAAC;IACtB,GAAA,GAAM,CAAC,CAAC,cAAc,CAAC;IAEvB,KAAA,GAAW,EAAA,CAAG;MAAA,YAAA,EAAc,GAAd;MAAmB,UAAA,EAAY,GAA/B;KAAH;IACX,QAAA,GAAW,EAAA,CAAG;MAAA,kBAAA,EAAoB,CAApB;MAAuB,YAAA,EAAc,GAArC;MAA0C,UAAA,EAAY,GAAtD;KAAH;IACX,QAAA,GAAW,EAAA,CAAG;MAAA,kBAAA,EAAoB,CAApB;MAAuB,MAAA,EAAQ,GAA/B;MAAoC,MAAA,EAAQ,GAA5C;MAAiD,YAAA,EAAc,GAA/D;MAAoE,UAAA,EAAY,GAAhF;KAAH;WAEX,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,EAAzB,GACI;MAAA,aAAA,EACI;QAAA,WAAA,EAAa,gEAAb;QACA,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AAqC,QAArC,CAbvC;QAcA,qCAAA,EAAuC,GAAG,CAAC,UAAJ,CAAe,GAAG,CAAC,KAAJ,CAAA,CAAf,EAA4B,OAA5B,EAAqC,QAArC,CAdvC;QAeA,iCAAA,EAAuC,GAAG,CAAC,UAAJ,CAAe,GAAG,CAAC,KAAJ,CAAA,CAAf,EAA4B,KAA5B,EAAqC,QAArC,CAfvC;QAgBA,mCAAA,EAAuC,GAAG,CAAC,UAAJ,CAAe,GAAG,CAAC,KAAJ,CAAA,CAAf,EAA4B,KAA5B,EAAqC,QAArC,CAhBvC;OAbJ;MA+BA,SAAA,EACI;QAAA,OAAA,EAAmC,CAAC,CAAC,cAAc,CAAC,SAAU,CAAA,OAAA,CAA9D;QACA,2BAAA,EAA2C,CAAC,CAAC,cAAc,CAAC,SAAU,CAAA,gBAAA,CADtE;QAEA,aAAA,EAAmC,CAAC,CAAC,cAAc,CAAC,SAAU,CAAA,SAAA,CAF9D;QAGA,qBAAA,EAAmC,CAAC,CAAC,cAAc,CAAC,SAAU,CAAA,aAAA,CAH9D;QAIA,uBAAA,EAAmC,CAAC,CAAC,cAAc,CAAC,SAAU,CAAA,aAAA,CAJ9D;OAhCJ;;EATO,CAAf;AATA","file":"pivot.nl.js","sourceRoot":"/source/","sourcesContent":["callWithJQuery = (pivotModule) ->\n if typeof exports is \"object\" and typeof module is \"object\" # CommonJS\n pivotModule require(\"jquery\")\n else if typeof define is \"function\" and define.amd # AMD\n define [\"jquery\"], pivotModule\n # Plain browser env\n else\n pivotModule jQuery\n \ncallWithJQuery ($) ->\n nf = $.pivotUtilities.numberFormat\n tpl = $.pivotUtilities.aggregatorTemplates\n\n frFmt = nf(thousandsSep: \" \", decimalSep: \",\")\n frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: \" \", decimalSep: \",\")\n frFmtPct = nf(digitsAfterDecimal: 1, scaler: 100, suffix: \"%\", thousandsSep: \" \", decimalSep: \",\")\n\n $.pivotUtilities.locales.fr = \n localeStrings:\n renderError: \"Er is een fout opgetreden bij het renderen van de kruistabel..\"\n computeError: \"Er is een fout opgetreden bij het berekenen van de kruistabel.\"\n uiRenderError: \"Er is een fout opgetreden bij het tekenen van de interface van de kruistabel.\"\n selectAll: \"Alles selecteren\"\n selectNone: \"Niets selecteren\"\n tooMany: \"(te veel waarden om weer te geven)\"\n filterResults: \"Filter resultaten\"\n totals: \"Totaal\"\n vs: \"versus\"\n by: \"per\"\n\n aggregators: \n \"Aantal\": tpl.count(frFmtInt)\n \"Aantal unieke waarden\": tpl.countUnique(frFmtInt)\n \"Lijst unieke waarden\": tpl.listUnique(\", \")\n \"Som\": tpl.sum(frFmt)\n \"Som van gehele getallen\": tpl.sum(frFmtInt)\n \"Gemiddelde\": tpl.average(frFmt)\n \"Minimum\": tpl.min(frFmt)\n \"Maximum\": tpl.max(frFmt)\n \"Som over som\": tpl.sumOverSum(frFmt)\n \"80% bovengrens\": tpl.sumOverSumBound80(true, frFmt)\n \"80% ondergrens\": \t\t\t tpl.sumOverSumBound80(false, frFmt)\n \"Som in verhouding tot het totaal\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct)\n \"Som in verhouding tot de rij\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct)\n \"Som in verhouding tot de kolom\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct)\n \"Aantal in verhouding tot het totaal\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct)\n \"Aantal in verhouding tot de rij\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct)\n \"Aantal in verhouding tot de kolom\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n\n renderers:\n \"Tabel\": $.pivotUtilities.renderers[\"Table\"]\n \"Tabel met staafdiagrammen\": $.pivotUtilities.renderers[\"Table Barchart\"]\n \"Warmtekaart\": $.pivotUtilities.renderers[\"Heatmap\"]\n \"Warmtekaart per rij\": $.pivotUtilities.renderers[\"Row Heatmap\"]\n \"Warmtekaart per kolom\": $.pivotUtilities.renderers[\"Col Heatmap\"]\n"]}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(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);
|
2
|
+
//# sourceMappingURL=pivot.nl.min.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["/source/pivot.nl.coffee","pivot.nl.min.js"],"names":["callWithJQuery","pivotModule","exports","module","require","define","amd","jQuery","$","frFmt","frFmtInt","frFmtPct","nf","tpl","pivotUtilities","numberFormat","aggregatorTemplates","thousandsSep","decimalSep","digitsAfterDecimal","scaler","suffix","locales","fr","localeStrings","renderError","computeError","uiRenderError","selectAll","selectNone","tooMany","filterResults","totals","vs","by","aggregators","Aantal","count","Aantal unieke waarden","countUnique","Lijst unieke waarden","listUnique","Som","sum","Som van gehele getallen","Gemiddelde","average","Minimum","min","Maximum","max","Som over som","sumOverSum","80% bovengrens","sumOverSumBound80","80% ondergrens","Som in verhouding tot het totaal","fractionOf","Som in verhouding tot de rij","Som in verhouding tot de kolom","Aantal in verhouding tot het totaal","Aantal in verhouding tot de rij","Aantal in verhouding tot de kolom","renderers","Tabel","Tabel met staafdiagrammen","Warmtekaart","Warmtekaart per rij","Warmtekaart per kolom","call","this"],"mappings":"CAAA,WAAA,GAAAA,IAAAA,EAAiB,SAACC,GACd,MAAqB,gBAAXC,UAAyC,gBAAVC,QACrCF,EAAYG,QAAQ,WACC,kBAAVC,SAAyBA,OAAOC,IAC3CD,QAAQ,UAAWJ,GAGnBA,EAAYM,UAEL,SAACC,GACZ,GAAAC,GAAAC,EAAAC,EAAAC,EAAAC,CCuBA,ODvBAD,GAAKJ,EAAEM,eAAeC,aACtBF,EAAML,EAAEM,eAAeE,oBAEvBP,EAAWG,GAAGK,aAAc,IAAKC,WAAY,MAC7CR,EAAWE,GAAGO,mBAAoB,EAAGF,aAAc,IAAKC,WAAY,MACpEP,EAAWC,GAAGO,mBAAoB,EAAGC,OAAQ,IAAKC,OAAQ,IAAKJ,aAAc,IAAKC,WAAY,MAE9FV,EAAEM,eAAeQ,QAAQC,IACrBC,eACIC,YAAa,iEACbC,aAAc,iEACdC,cAAe,gFACfC,UAAW,mBACXC,WAAY,mBACZC,QAAS,qCACTC,cAAe,oBACfC,OAAQ,SACRC,GAAI,SACJC,GAAI,OAERC,aACIC,OAAuCvB,EAAIwB,MAAM3B,GACjD4B,wBAAuCzB,EAAI0B,YAAY7B,GACvD8B,uBAAuC3B,EAAI4B,WAAW,MACtDC,IAAuC7B,EAAI8B,IAAIlC,GAC/CmC,0BAAuC/B,EAAI8B,IAAIjC,GAC/CmC,WAAuChC,EAAIiC,QAAQrC,GACnDsC,QAAuClC,EAAImC,IAAIvC,GAC/CwC,QAAuCpC,EAAIqC,IAAIzC,GAC/C0C,eAAuCtC,EAAIuC,WAAW3C,GACtD4C,iBAAuCxC,EAAIyC,mBAAkB,EAAM7C,GACnE8C,iBAA+B1C,EAAIyC,mBAAkB,EAAO7C,GAC5D+C,mCAAuC3C,EAAI4C,WAAW5C,EAAI8B,MAAS,QAAShC,GAC5E+C,+BAAuC7C,EAAI4C,WAAW5C,EAAI8B,MAAS,MAAShC,GAC5EgD,iCAAuC9C,EAAI4C,WAAW5C,EAAI8B,MAAS,MAAShC,GAC5EiD,sCAAuC/C,EAAI4C,WAAW5C,EAAIwB,QAAS,QAAS1B,GAC5EkD,kCAAuChD,EAAI4C,WAAW5C,EAAIwB,QAAS,MAAS1B,GAC5EmD,oCAAuCjD,EAAI4C,WAAW5C,EAAIwB,QAAS,MAAS1B,IAEhFoD,WACIC,MAAmCxD,EAAEM,eAAeiD,UAAU,MAC9DE,4BAA2CzD,EAAEM,eAAeiD,UAAU,kBACtEG,YAAmC1D,EAAEM,eAAeiD,UAAU,QAC9DI,sBAAmC3D,EAAEM,eAAeiD,UAAU,eAC9DK,wBAAmC5D,EAAEM,eAAeiD,UAAU,qBCqBvEM,KAAKC","file":"pivot.nl.min.js","sourcesContent":["callWithJQuery = (pivotModule) ->\n if typeof exports is \"object\" and typeof module is \"object\" # CommonJS\n pivotModule require(\"jquery\")\n else if typeof define is \"function\" and define.amd # AMD\n define [\"jquery\"], pivotModule\n # Plain browser env\n else\n pivotModule jQuery\n \ncallWithJQuery ($) ->\n nf = $.pivotUtilities.numberFormat\n tpl = $.pivotUtilities.aggregatorTemplates\n\n frFmt = nf(thousandsSep: \" \", decimalSep: \",\")\n frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: \" \", decimalSep: \",\")\n frFmtPct = nf(digitsAfterDecimal: 1, scaler: 100, suffix: \"%\", thousandsSep: \" \", decimalSep: \",\")\n\n $.pivotUtilities.locales.fr = \n localeStrings:\n renderError: \"Er is een fout opgetreden bij het renderen van de kruistabel..\"\n computeError: \"Er is een fout opgetreden bij het berekenen van de kruistabel.\"\n uiRenderError: \"Er is een fout opgetreden bij het tekenen van de interface van de kruistabel.\"\n selectAll: \"Alles selecteren\"\n selectNone: \"Niets selecteren\"\n tooMany: \"(te veel waarden om weer te geven)\"\n filterResults: \"Filter resultaten\"\n totals: \"Totaal\"\n vs: \"versus\"\n by: \"per\"\n\n aggregators: \n \"Aantal\": tpl.count(frFmtInt)\n \"Aantal unieke waarden\": tpl.countUnique(frFmtInt)\n \"Lijst unieke waarden\": tpl.listUnique(\", \")\n \"Som\": tpl.sum(frFmt)\n \"Som van gehele getallen\": tpl.sum(frFmtInt)\n \"Gemiddelde\": tpl.average(frFmt)\n \"Minimum\": tpl.min(frFmt)\n \"Maximum\": tpl.max(frFmt)\n \"Som over som\": tpl.sumOverSum(frFmt)\n \"80% bovengrens\": tpl.sumOverSumBound80(true, frFmt)\n \"80% ondergrens\": \t\t\t tpl.sumOverSumBound80(false, frFmt)\n \"Som in verhouding tot het totaal\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct)\n \"Som in verhouding tot de rij\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct)\n \"Som in verhouding tot de kolom\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct)\n \"Aantal in verhouding tot het totaal\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct)\n \"Aantal in verhouding tot de rij\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct)\n \"Aantal in verhouding tot de kolom\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n\n renderers:\n \"Tabel\": $.pivotUtilities.renderers[\"Table\"]\n \"Tabel met staafdiagrammen\": $.pivotUtilities.renderers[\"Table Barchart\"]\n \"Warmtekaart\": $.pivotUtilities.renderers[\"Heatmap\"]\n \"Warmtekaart per rij\": $.pivotUtilities.renderers[\"Row Heatmap\"]\n \"Warmtekaart per kolom\": $.pivotUtilities.renderers[\"Col Heatmap\"]\n","(function() {\n var callWithJQuery;\n\n callWithJQuery = function(pivotModule) {\n if (typeof exports === \"object\" && typeof module === \"object\") {\n return pivotModule(require(\"jquery\"));\n } else if (typeof define === \"function\" && define.amd) {\n return define([\"jquery\"], pivotModule);\n } else {\n return pivotModule(jQuery);\n }\n };\n\n callWithJQuery(function($) {\n var frFmt, frFmtInt, frFmtPct, nf, tpl;\n nf = $.pivotUtilities.numberFormat;\n tpl = $.pivotUtilities.aggregatorTemplates;\n frFmt = nf({\n thousandsSep: \" \",\n decimalSep: \",\"\n });\n frFmtInt = nf({\n digitsAfterDecimal: 0,\n thousandsSep: \" \",\n decimalSep: \",\"\n });\n frFmtPct = nf({\n digitsAfterDecimal: 1,\n scaler: 100,\n suffix: \"%\",\n thousandsSep: \" \",\n decimalSep: \",\"\n });\n return $.pivotUtilities.locales.fr = {\n localeStrings: {\n renderError: \"Er is een fout opgetreden bij het renderen van de kruistabel..\",\n computeError: \"Er is een fout opgetreden bij het berekenen van de kruistabel.\",\n uiRenderError: \"Er is een fout opgetreden bij het tekenen van de interface van de kruistabel.\",\n selectAll: \"Alles selecteren\",\n selectNone: \"Niets selecteren\",\n tooMany: \"(te veel waarden om weer te geven)\",\n filterResults: \"Filter resultaten\",\n totals: \"Totaal\",\n vs: \"versus\",\n by: \"per\"\n },\n aggregators: {\n \"Aantal\": tpl.count(frFmtInt),\n \"Aantal unieke waarden\": tpl.countUnique(frFmtInt),\n \"Lijst unieke waarden\": tpl.listUnique(\", \"),\n \"Som\": tpl.sum(frFmt),\n \"Som van gehele getallen\": tpl.sum(frFmtInt),\n \"Gemiddelde\": tpl.average(frFmt),\n \"Minimum\": tpl.min(frFmt),\n \"Maximum\": tpl.max(frFmt),\n \"Som over som\": tpl.sumOverSum(frFmt),\n \"80% bovengrens\": tpl.sumOverSumBound80(true, frFmt),\n \"80% ondergrens\": tpl.sumOverSumBound80(false, frFmt),\n \"Som in verhouding tot het totaal\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct),\n \"Som in verhouding tot de rij\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct),\n \"Som in verhouding tot de kolom\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct),\n \"Aantal in verhouding tot het totaal\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct),\n \"Aantal in verhouding tot de rij\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct),\n \"Aantal in verhouding tot de kolom\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n },\n renderers: {\n \"Tabel\": $.pivotUtilities.renderers[\"Table\"],\n \"Tabel met staafdiagrammen\": $.pivotUtilities.renderers[\"Table Barchart\"],\n \"Warmtekaart\": $.pivotUtilities.renderers[\"Heatmap\"],\n \"Warmtekaart per rij\": $.pivotUtilities.renderers[\"Row Heatmap\"],\n \"Warmtekaart per kolom\": $.pivotUtilities.renderers[\"Col Heatmap\"]\n }\n };\n });\n\n}).call(this);\n\n//# sourceMappingURL=pivot.nl.js.map\n"],"sourceRoot":"/source/"}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
(function() {
|
2
|
+
var callWithJQuery;
|
3
|
+
|
4
|
+
callWithJQuery = function(pivotModule) {
|
5
|
+
if (typeof exports === "object" && typeof module === "object") {
|
6
|
+
return pivotModule(require("jquery"));
|
7
|
+
} else if (typeof define === "function" && define.amd) {
|
8
|
+
return define(["jquery"], pivotModule);
|
9
|
+
} else {
|
10
|
+
return pivotModule(jQuery);
|
11
|
+
}
|
12
|
+
};
|
13
|
+
|
14
|
+
callWithJQuery(function($) {
|
15
|
+
var c3r, d3r, frFmt, frFmtInt, frFmtPct, gcr, nf, r, tpl;
|
16
|
+
nf = $.pivotUtilities.numberFormat;
|
17
|
+
tpl = $.pivotUtilities.aggregatorTemplates;
|
18
|
+
r = $.pivotUtilities.renderers;
|
19
|
+
gcr = $.pivotUtilities.gchart_renderers;
|
20
|
+
d3r = $.pivotUtilities.d3_renderers;
|
21
|
+
c3r = $.pivotUtilities.c3_renderers;
|
22
|
+
frFmt = nf({
|
23
|
+
thousandsSep: ".",
|
24
|
+
decimalSep: ","
|
25
|
+
});
|
26
|
+
frFmtInt = nf({
|
27
|
+
digitsAfterDecimal: 0,
|
28
|
+
thousandsSep: ".",
|
29
|
+
decimalSep: ","
|
30
|
+
});
|
31
|
+
frFmtPct = nf({
|
32
|
+
digitsAfterDecimal: 2,
|
33
|
+
scaler: 100,
|
34
|
+
suffix: "%",
|
35
|
+
thousandsSep: ".",
|
36
|
+
decimalSep: ","
|
37
|
+
});
|
38
|
+
$.pivotUtilities.locales.pt = {
|
39
|
+
localeStrings: {
|
40
|
+
renderError: "Ocorreu um error ao renderizar os resultados da Tabela Dinãmica.",
|
41
|
+
computeError: "Ocorreu um error ao computar os resultados da Tabela Dinãmica.",
|
42
|
+
uiRenderError: "Ocorreu um error ao renderizar a interface da Tabela Dinãmica.",
|
43
|
+
selectAll: "Selecionar Tudo",
|
44
|
+
selectNone: "Selecionar Nenhum",
|
45
|
+
tooMany: "(demais para listar)",
|
46
|
+
filterResults: "Filtrar resultados",
|
47
|
+
totals: "Totais",
|
48
|
+
vs: "vs",
|
49
|
+
by: "por"
|
50
|
+
},
|
51
|
+
aggregators: {
|
52
|
+
"Contagem": tpl.count(frFmtInt),
|
53
|
+
"Contagem de Valores únicos": tpl.countUnique(frFmtInt),
|
54
|
+
"Lista de Valores únicos": tpl.listUnique(", "),
|
55
|
+
"Soma": tpl.sum(frFmt),
|
56
|
+
"Soma de Inteiros": tpl.sum(frFmtInt),
|
57
|
+
"Média": tpl.average(frFmt),
|
58
|
+
"Mínimo": tpl.min(frFmt),
|
59
|
+
"Máximo": tpl.max(frFmt),
|
60
|
+
"Soma sobre Soma": tpl.sumOverSum(frFmt),
|
61
|
+
"Limite Superior a 80%": tpl.sumOverSumBound80(true, frFmt),
|
62
|
+
"Limite Inferior a 80%": tpl.sumOverSumBound80(false, frFmt),
|
63
|
+
"Soma como Fração do Total": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
|
64
|
+
"Soma como Fração da Linha": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
|
65
|
+
"Soma como Fração da Coluna": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
|
66
|
+
"Contagem como Fração do Total": tpl.fractionOf(tpl.count(), "total", frFmtPct),
|
67
|
+
"Contagem como Fração da Linha": tpl.fractionOf(tpl.count(), "row", frFmtPct),
|
68
|
+
"Contagem como Fração da Coluna": tpl.fractionOf(tpl.count(), "col", frFmtPct)
|
69
|
+
},
|
70
|
+
renderers: {
|
71
|
+
"Tabela": r["Table"],
|
72
|
+
"Tabela com Barras": r["Table Barchart"],
|
73
|
+
"Mapa de Calor": r["Heatmap"],
|
74
|
+
"Mapa de Calor por Linhas": r["Row Heatmap"],
|
75
|
+
"Mapa de Calor por Colunas": r["Col Heatmap"]
|
76
|
+
}
|
77
|
+
};
|
78
|
+
if (gcr) {
|
79
|
+
$.pivotUtilities.locales.pt.gchart_renderers = {
|
80
|
+
"Gráfico de Linhas": gcr["Line Chart"],
|
81
|
+
"Gráfico de Barras": gcr["Bar Chart"],
|
82
|
+
"Gráfico de Barras Empilhadas": gcr["Stacked Bar Chart"],
|
83
|
+
"Gráfico de Área": gcr["Area Chart"]
|
84
|
+
};
|
85
|
+
}
|
86
|
+
if (d3r) {
|
87
|
+
$.pivotUtilities.locales.pt.d3_renderers = {
|
88
|
+
"Mapa de Árvore": d3r["Treemap"]
|
89
|
+
};
|
90
|
+
}
|
91
|
+
if (c3r) {
|
92
|
+
$.pivotUtilities.locales.pt.c3_renderers = {
|
93
|
+
"Gráfico de Linhas": c3r["Line Chart"],
|
94
|
+
"Gráfico de Barras": c3r["Bar Chart"],
|
95
|
+
"Gráfico de Barras Empilhadas": c3r["Stacked Bar Chart"],
|
96
|
+
"Gráfico de Área": c3r["Area Chart"]
|
97
|
+
};
|
98
|
+
}
|
99
|
+
return $.pivotUtilities.locales.pt;
|
100
|
+
});
|
101
|
+
|
102
|
+
}).call(this);
|
103
|
+
|
104
|
+
//# sourceMappingURL=pivot.pt.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["pivot.pt.coffee"],"names":[],"mappings":"AAAA;AAAA,MAAA;;EAAA,cAAA,GAAiB,SAAC,WAAD;IACb,IAAG,OAAO,OAAP,KAAkB,QAAlB,IAA+B,OAAO,MAAP,KAAiB,QAAnD;aACI,WAAA,CAAY,OAAA,CAAQ,QAAR,CAAZ,EADJ;KAAA,MAEK,IAAG,OAAO,MAAP,KAAiB,UAAjB,IAAgC,MAAM,CAAC,GAA1C;aACD,MAAA,CAAO,CAAC,QAAD,CAAP,EAAmB,WAAnB,EADC;KAAA,MAAA;aAID,WAAA,CAAY,MAAZ,EAJC;;EAHQ;;EASjB,cAAA,CAAe,SAAC,CAAD;AACX,QAAA;IAAA,EAAA,GAAK,CAAC,CAAC,cAAc,CAAC;IACtB,GAAA,GAAM,CAAC,CAAC,cAAc,CAAC;IACvB,CAAA,GAAI,CAAC,CAAC,cAAc,CAAC;IACrB,GAAA,GAAM,CAAC,CAAC,cAAc,CAAC;IACvB,GAAA,GAAM,CAAC,CAAC,cAAc,CAAC;IACvB,GAAA,GAAM,CAAC,CAAC,cAAc,CAAC;IAEvB,KAAA,GAAW,EAAA,CAAG;MAAA,YAAA,EAAc,GAAd;MAAmB,UAAA,EAAY,GAA/B;KAAH;IACX,QAAA,GAAW,EAAA,CAAG;MAAA,kBAAA,EAAoB,CAApB;MAAuB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,GAAH;MACI,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,YAA5B,GACI;QAAA,gBAAA,EAAkB,GAAI,CAAA,SAAA,CAAtB;QAFR;;IAIA,IAAG,GAAH;MACE,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,YAA5B,GACE;QAAA,0BAAA,EAA4B,GAAI,CAAA,YAAA,CAAhC;QACA,0BAAA,EAA4B,GAAI,CAAA,WAAA,CADhC;QAEA,qCAAA,EAAuC,GAAI,CAAA,mBAAA,CAF3C;QAGA,+BAAA,EAAuC,GAAI,CAAA,YAAA,CAH3C;QAFJ;;AAOA,WAAO,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC;EAtErB,CAAf;AATA","file":"pivot.pt.js","sourceRoot":"/source/","sourcesContent":["callWithJQuery = (pivotModule) ->\n if typeof exports is \"object\" and typeof module is \"object\" # CommonJS\n pivotModule require(\"jquery\")\n else if typeof define is \"function\" and define.amd # AMD\n define [\"jquery\"], pivotModule\n # Plain browser env\n else\n pivotModule jQuery\n \ncallWithJQuery ($) ->\n nf = $.pivotUtilities.numberFormat\n tpl = $.pivotUtilities.aggregatorTemplates\n r = $.pivotUtilities.renderers\n gcr = $.pivotUtilities.gchart_renderers\n d3r = $.pivotUtilities.d3_renderers\n c3r = $.pivotUtilities.c3_renderers\n\n frFmt = nf(thousandsSep: \".\", decimalSep: \",\")\n frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: \".\", decimalSep: \",\")\n frFmtPct = nf(digitsAfterDecimal: 2, scaler: 100, suffix: \"%\", thousandsSep: \".\", decimalSep: \",\")\n\n $.pivotUtilities.locales.pt = \n\n localeStrings:\n renderError: \"Ocorreu um error ao renderizar os resultados da Tabela Dinãmica.\"\n computeError: \"Ocorreu um error ao computar os resultados da Tabela Dinãmica.\"\n uiRenderError: \"Ocorreu um error ao renderizar a interface da Tabela Dinãmica.\"\n selectAll: \"Selecionar Tudo\"\n selectNone: \"Selecionar Nenhum\"\n tooMany: \"(demais para listar)\"\n filterResults: \"Filtrar resultados\"\n totals: \"Totais\"\n vs: \"vs\"\n by: \"por\"\n\n aggregators:\n \"Contagem\": tpl.count(frFmtInt)\n \"Contagem de Valores únicos\": tpl.countUnique(frFmtInt)\n \"Lista de Valores únicos\": tpl.listUnique(\", \")\n \"Soma\": tpl.sum(frFmt)\n \"Soma de Inteiros\": tpl.sum(frFmtInt)\n \"Média\": tpl.average(frFmt)\n \"Mínimo\": tpl.min(frFmt)\n \"Máximo\": tpl.max(frFmt)\n \"Soma sobre Soma\": tpl.sumOverSum(frFmt)\n \"Limite Superior a 80%\": tpl.sumOverSumBound80(true, frFmt)\n \"Limite Inferior a 80%\": tpl.sumOverSumBound80(false, frFmt)\n \"Soma como Fração do Total\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct)\n \"Soma como Fração da Linha\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct)\n \"Soma como Fração da Coluna\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct)\n \"Contagem como Fração do Total\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct)\n \"Contagem como Fração da Linha\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct)\n \"Contagem como Fração da Coluna\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n\n renderers:\n \"Tabela\": r[\"Table\"]\n \"Tabela com Barras\": r[\"Table Barchart\"]\n \"Mapa de Calor\": r[\"Heatmap\"]\n \"Mapa de Calor por Linhas\": r[\"Row Heatmap\"]\n \"Mapa de Calor por Colunas\": r[\"Col Heatmap\"]\n\n if gcr\n $.pivotUtilities.locales.pt.gchart_renderers =\n \"Gráfico de Linhas\": gcr[\"Line Chart\"]\n \"Gráfico de Barras\": gcr[\"Bar Chart\"]\n \"Gráfico de Barras Empilhadas\": gcr[\"Stacked Bar Chart\"]\n \"Gráfico de Área\": gcr[\"Area Chart\"]\n\n if d3r\n $.pivotUtilities.locales.pt.d3_renderers =\n \"Mapa de Árvore\": d3r[\"Treemap\"]\n\n if c3r\n $.pivotUtilities.locales.pt.c3_renderers =\n \"Gráfico de Linhas\": c3r[\"Line Chart\"]\n \"Gráfico de Barras\": c3r[\"Bar Chart\"]\n \"Gráfico de Barras Empilhadas\": c3r[\"Stacked Bar Chart\"]\n \"Gráfico de Área\": c3r[\"Area Chart\"]\n\n return $.pivotUtilities.locales.pt\n"]}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(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ã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:d.count(t),"Contagem de Valores únicos":d.countUnique(t),"Lista de Valores ú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ção do Total":d.fractionOf(d.sum(),"total",i),"Soma como Fração da Linha":d.fractionOf(d.sum(),"row",i),"Soma como Fração da Coluna":d.fractionOf(d.sum(),"col",i),"Contagem como Fração do Total":d.fractionOf(d.count(),"total",i),"Contagem como Fração da Linha":d.fractionOf(d.count(),"row",i),"Contagem como Fraçã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áfico de Linhas":c["Line Chart"],"Gráfico de Barras":c["Bar Chart"],"Gráfico de Barras Empilhadas":c["Stacked Bar Chart"],"Gráfico de Área":c["Area Chart"]}),r&&(a.pivotUtilities.locales.pt.d3_renderers={"Mapa de Árvore":r.Treemap}),e&&(a.pivotUtilities.locales.pt.c3_renderers={"Gráfico de Linhas":e["Line Chart"],"Gráfico de Barras":e["Bar Chart"],"Gráfico de Barras Empilhadas":e["Stacked Bar Chart"],"Gráfico de Área":e["Area Chart"]}),a.pivotUtilities.locales.pt})}).call(this);
|
2
|
+
//# sourceMappingURL=pivot.pt.min.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["/source/pivot.pt.coffee","pivot.pt.min.js"],"names":["callWithJQuery","pivotModule","exports","module","require","define","amd","jQuery","$","c3r","d3r","frFmt","frFmtInt","frFmtPct","gcr","nf","r","tpl","pivotUtilities","numberFormat","aggregatorTemplates","renderers","gchart_renderers","d3_renderers","c3_renderers","thousandsSep","decimalSep","digitsAfterDecimal","scaler","suffix","locales","pt","localeStrings","renderError","computeError","uiRenderError","selectAll","selectNone","tooMany","filterResults","totals","vs","by","aggregators","Contagem","count","Contagem de Valores únicos","countUnique","Lista de Valores únicos","listUnique","Soma","sum","Soma de Inteiros","Média","average","Mínimo","min","Máximo","max","Soma sobre Soma","sumOverSum","Limite Superior a 80%","sumOverSumBound80","Limite Inferior a 80%","Soma como Fração do Total","fractionOf","Soma como Fração da Linha","Soma como Fração da Coluna","Contagem como Fração do Total","Contagem como Fração da Linha","Contagem como Fração da Coluna","Tabela","Tabela com Barras","Mapa de Calor","Mapa de Calor por Linhas","Mapa de Calor por Colunas","Gráfico de Linhas","Gráfico de Barras","Gráfico de Barras Empilhadas","Gráfico de Área","Mapa de Árvore","call","this"],"mappings":"CAAA,WAAA,GAAAA,IAAAA,EAAiB,SAACC,GACd,MAAqB,gBAAXC,UAAyC,gBAAVC,QACrCF,EAAYG,QAAQ,WACC,kBAAVC,SAAyBA,OAAOC,IAC3CD,QAAQ,UAAWJ,GAGnBA,EAAYM,UAEL,SAACC,GACZ,GAAAC,GAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,EAAAC,CAqEA,OArEAF,GAAKP,EAAEU,eAAeC,aACtBF,EAAMT,EAAEU,eAAeE,oBACvBJ,EAAIR,EAAEU,eAAeG,UACrBP,EAAMN,EAAEU,eAAeI,iBACvBZ,EAAMF,EAAEU,eAAeK,aACvBd,EAAMD,EAAEU,eAAeM,aAEvBb,EAAWI,GAAGU,aAAc,IAAKC,WAAY,MAC7Cd,EAAWG,GAAGY,mBAAoB,EAAGF,aAAc,IAAKC,WAAY,MACpEb,EAAWE,GAAGY,mBAAoB,EAAGC,OAAQ,IAAKC,OAAQ,IAAKJ,aAAc,IAAKC,WAAY,MAE9FlB,EAAEU,eAAeY,QAAQC,IAErBC,eACIC,YAAa,0EACbC,aAAc,wEACdC,cAAe,wEACfC,UAAW,kBACXC,WAAY,oBACZC,QAAS,uBACTC,cAAe,qBACfC,OAAQ,SACRC,GAAI,KACJC,GAAI,OAERC,aACIC,SAAgD3B,EAAI4B,MAAMjC,GAC1DkC,oCAAgD7B,EAAI8B,YAAYnC,GAChEoC,iCAAgD/B,EAAIgC,WAAW,MAC/DC,KAAgDjC,EAAIkC,IAAIxC,GACxDyC,mBAAgDnC,EAAIkC,IAAIvC,GACxDyC,QAAgDpC,EAAIqC,QAAQ3C,GAC5D4C,SAAgDtC,EAAIuC,IAAI7C,GACxD8C,SAAgDxC,EAAIyC,IAAI/C,GACxDgD,kBAAgD1C,EAAI2C,WAAWjD,GAC/DkD,wBAAgD5C,EAAI6C,mBAAkB,EAAMnD,GAC5EoD,wBAAgD9C,EAAI6C,mBAAkB,EAAOnD,GAC7EqD,0CAAgD/C,EAAIgD,WAAWhD,EAAIkC,MAAS,QAAStC,GACrFqD,0CAAgDjD,EAAIgD,WAAWhD,EAAIkC,MAAS,MAAStC,GACrFsD,2CAAgDlD,EAAIgD,WAAWhD,EAAIkC,MAAS,MAAStC,GACrFuD,8CAAgDnD,EAAIgD,WAAWhD,EAAI4B,QAAS,QAAShC,GACrFwD,8CAAgDpD,EAAIgD,WAAWhD,EAAI4B,QAAS,MAAShC,GACrFyD,+CAAgDrD,EAAIgD,WAAWhD,EAAI4B,QAAS,MAAShC,IAEzFQ,WACIkD,OAA6BvD,EAAE,MAC/BwD,oBAA6BxD,EAAE,kBAC/ByD,gBAA6BzD,EAAE,QAC/B0D,2BAA6B1D,EAAE,eAC/B2D,4BAA6B3D,EAAE,iBAEpCF,IACCN,EAAEU,eAAeY,QAAQC,GAAGT,kBACxBsD,2BAAuC9D,EAAI,cAC3C+D,2BAAuC/D,EAAI,aAC3CgE,sCAAuChE,EAAI,qBAC3CiE,gCAAuCjE,EAAI,gBAEhDJ,IACCF,EAAEU,eAAeY,QAAQC,GAAGR,cACxByD,iBAAkBtE,EAAI,UAE3BD,IACDD,EAAEU,eAAeY,QAAQC,GAAGP,cAC1BoD,2BAA4BnE,EAAI,cAChCoE,2BAA4BpE,EAAI,aAChCqE,sCAAuCrE,EAAI,qBAC3CsE,gCAAuCtE,EAAI,gBAExCD,EAAEU,eAAeY,QAAQC,OCsBjCkD,KAAKC","file":"pivot.pt.min.js","sourcesContent":["callWithJQuery = (pivotModule) ->\n if typeof exports is \"object\" and typeof module is \"object\" # CommonJS\n pivotModule require(\"jquery\")\n else if typeof define is \"function\" and define.amd # AMD\n define [\"jquery\"], pivotModule\n # Plain browser env\n else\n pivotModule jQuery\n \ncallWithJQuery ($) ->\n nf = $.pivotUtilities.numberFormat\n tpl = $.pivotUtilities.aggregatorTemplates\n r = $.pivotUtilities.renderers\n gcr = $.pivotUtilities.gchart_renderers\n d3r = $.pivotUtilities.d3_renderers\n c3r = $.pivotUtilities.c3_renderers\n\n frFmt = nf(thousandsSep: \".\", decimalSep: \",\")\n frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: \".\", decimalSep: \",\")\n frFmtPct = nf(digitsAfterDecimal: 2, scaler: 100, suffix: \"%\", thousandsSep: \".\", decimalSep: \",\")\n\n $.pivotUtilities.locales.pt = \n\n localeStrings:\n renderError: \"Ocorreu um error ao renderizar os resultados da Tabela Dinãmica.\"\n computeError: \"Ocorreu um error ao computar os resultados da Tabela Dinãmica.\"\n uiRenderError: \"Ocorreu um error ao renderizar a interface da Tabela Dinãmica.\"\n selectAll: \"Selecionar Tudo\"\n selectNone: \"Selecionar Nenhum\"\n tooMany: \"(demais para listar)\"\n filterResults: \"Filtrar resultados\"\n totals: \"Totais\"\n vs: \"vs\"\n by: \"por\"\n\n aggregators:\n \"Contagem\": tpl.count(frFmtInt)\n \"Contagem de Valores únicos\": tpl.countUnique(frFmtInt)\n \"Lista de Valores únicos\": tpl.listUnique(\", \")\n \"Soma\": tpl.sum(frFmt)\n \"Soma de Inteiros\": tpl.sum(frFmtInt)\n \"Média\": tpl.average(frFmt)\n \"Mínimo\": tpl.min(frFmt)\n \"Máximo\": tpl.max(frFmt)\n \"Soma sobre Soma\": tpl.sumOverSum(frFmt)\n \"Limite Superior a 80%\": tpl.sumOverSumBound80(true, frFmt)\n \"Limite Inferior a 80%\": tpl.sumOverSumBound80(false, frFmt)\n \"Soma como Fração do Total\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct)\n \"Soma como Fração da Linha\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct)\n \"Soma como Fração da Coluna\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct)\n \"Contagem como Fração do Total\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct)\n \"Contagem como Fração da Linha\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct)\n \"Contagem como Fração da Coluna\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n\n renderers:\n \"Tabela\": r[\"Table\"]\n \"Tabela com Barras\": r[\"Table Barchart\"]\n \"Mapa de Calor\": r[\"Heatmap\"]\n \"Mapa de Calor por Linhas\": r[\"Row Heatmap\"]\n \"Mapa de Calor por Colunas\": r[\"Col Heatmap\"]\n\n if gcr\n $.pivotUtilities.locales.pt.gchart_renderers =\n \"Gráfico de Linhas\": gcr[\"Line Chart\"]\n \"Gráfico de Barras\": gcr[\"Bar Chart\"]\n \"Gráfico de Barras Empilhadas\": gcr[\"Stacked Bar Chart\"]\n \"Gráfico de Área\": gcr[\"Area Chart\"]\n\n if d3r\n $.pivotUtilities.locales.pt.d3_renderers =\n \"Mapa de Árvore\": d3r[\"Treemap\"]\n\n if c3r\n $.pivotUtilities.locales.pt.c3_renderers =\n \"Gráfico de Linhas\": c3r[\"Line Chart\"]\n \"Gráfico de Barras\": c3r[\"Bar Chart\"]\n \"Gráfico de Barras Empilhadas\": c3r[\"Stacked Bar Chart\"]\n \"Gráfico de Área\": c3r[\"Area Chart\"]\n\n return $.pivotUtilities.locales.pt\n","(function() {\n var callWithJQuery;\n\n callWithJQuery = function(pivotModule) {\n if (typeof exports === \"object\" && typeof module === \"object\") {\n return pivotModule(require(\"jquery\"));\n } else if (typeof define === \"function\" && define.amd) {\n return define([\"jquery\"], pivotModule);\n } else {\n return pivotModule(jQuery);\n }\n };\n\n callWithJQuery(function($) {\n var c3r, d3r, frFmt, frFmtInt, frFmtPct, gcr, nf, r, tpl;\n nf = $.pivotUtilities.numberFormat;\n tpl = $.pivotUtilities.aggregatorTemplates;\n r = $.pivotUtilities.renderers;\n gcr = $.pivotUtilities.gchart_renderers;\n d3r = $.pivotUtilities.d3_renderers;\n c3r = $.pivotUtilities.c3_renderers;\n frFmt = nf({\n thousandsSep: \".\",\n decimalSep: \",\"\n });\n frFmtInt = nf({\n digitsAfterDecimal: 0,\n thousandsSep: \".\",\n decimalSep: \",\"\n });\n frFmtPct = nf({\n digitsAfterDecimal: 2,\n scaler: 100,\n suffix: \"%\",\n thousandsSep: \".\",\n decimalSep: \",\"\n });\n $.pivotUtilities.locales.pt = {\n localeStrings: {\n renderError: \"Ocorreu um error ao renderizar os resultados da Tabela Dinãmica.\",\n computeError: \"Ocorreu um error ao computar os resultados da Tabela Dinãmica.\",\n uiRenderError: \"Ocorreu um error ao renderizar a interface da Tabela Dinãmica.\",\n selectAll: \"Selecionar Tudo\",\n selectNone: \"Selecionar Nenhum\",\n tooMany: \"(demais para listar)\",\n filterResults: \"Filtrar resultados\",\n totals: \"Totais\",\n vs: \"vs\",\n by: \"por\"\n },\n aggregators: {\n \"Contagem\": tpl.count(frFmtInt),\n \"Contagem de Valores únicos\": tpl.countUnique(frFmtInt),\n \"Lista de Valores únicos\": tpl.listUnique(\", \"),\n \"Soma\": tpl.sum(frFmt),\n \"Soma de Inteiros\": tpl.sum(frFmtInt),\n \"Média\": tpl.average(frFmt),\n \"Mínimo\": tpl.min(frFmt),\n \"Máximo\": tpl.max(frFmt),\n \"Soma sobre Soma\": tpl.sumOverSum(frFmt),\n \"Limite Superior a 80%\": tpl.sumOverSumBound80(true, frFmt),\n \"Limite Inferior a 80%\": tpl.sumOverSumBound80(false, frFmt),\n \"Soma como Fração do Total\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct),\n \"Soma como Fração da Linha\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct),\n \"Soma como Fração da Coluna\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct),\n \"Contagem como Fração do Total\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct),\n \"Contagem como Fração da Linha\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct),\n \"Contagem como Fração da Coluna\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n },\n renderers: {\n \"Tabela\": r[\"Table\"],\n \"Tabela com Barras\": r[\"Table Barchart\"],\n \"Mapa de Calor\": r[\"Heatmap\"],\n \"Mapa de Calor por Linhas\": r[\"Row Heatmap\"],\n \"Mapa de Calor por Colunas\": r[\"Col Heatmap\"]\n }\n };\n if (gcr) {\n $.pivotUtilities.locales.pt.gchart_renderers = {\n \"Gráfico de Linhas\": gcr[\"Line Chart\"],\n \"Gráfico de Barras\": gcr[\"Bar Chart\"],\n \"Gráfico de Barras Empilhadas\": gcr[\"Stacked Bar Chart\"],\n \"Gráfico de Área\": gcr[\"Area Chart\"]\n };\n }\n if (d3r) {\n $.pivotUtilities.locales.pt.d3_renderers = {\n \"Mapa de Árvore\": d3r[\"Treemap\"]\n };\n }\n if (c3r) {\n $.pivotUtilities.locales.pt.c3_renderers = {\n \"Gráfico de Linhas\": c3r[\"Line Chart\"],\n \"Gráfico de Barras\": c3r[\"Bar Chart\"],\n \"Gráfico de Barras Empilhadas\": c3r[\"Stacked Bar Chart\"],\n \"Gráfico de Área\": c3r[\"Area Chart\"]\n };\n }\n return $.pivotUtilities.locales.pt;\n });\n\n}).call(this);\n\n//# sourceMappingURL=pivot.pt.js.map\n"],"sourceRoot":"/source/"}
|
@@ -0,0 +1,78 @@
|
|
1
|
+
(function() {
|
2
|
+
var callWithJQuery;
|
3
|
+
|
4
|
+
callWithJQuery = function(pivotModule) {
|
5
|
+
if (typeof exports === "object" && typeof module === "object") {
|
6
|
+
return pivotModule(require("jquery"));
|
7
|
+
} else if (typeof define === "function" && define.amd) {
|
8
|
+
return define(["jquery"], pivotModule);
|
9
|
+
} else {
|
10
|
+
return pivotModule(jQuery);
|
11
|
+
}
|
12
|
+
};
|
13
|
+
|
14
|
+
callWithJQuery(function($) {
|
15
|
+
var frFmt, frFmtInt, frFmtPct, nf, tpl;
|
16
|
+
nf = $.pivotUtilities.numberFormat;
|
17
|
+
tpl = $.pivotUtilities.aggregatorTemplates;
|
18
|
+
frFmt = nf({
|
19
|
+
thousandsSep: " ",
|
20
|
+
decimalSep: ","
|
21
|
+
});
|
22
|
+
frFmtInt = nf({
|
23
|
+
digitsAfterDecimal: 0,
|
24
|
+
thousandsSep: " ",
|
25
|
+
decimalSep: ","
|
26
|
+
});
|
27
|
+
frFmtPct = nf({
|
28
|
+
digitsAfterDecimal: 1,
|
29
|
+
scaler: 100,
|
30
|
+
suffix: "%",
|
31
|
+
thousandsSep: " ",
|
32
|
+
decimalSep: ","
|
33
|
+
});
|
34
|
+
return $.pivotUtilities.locales.ru = {
|
35
|
+
localeStrings: {
|
36
|
+
renderError: "Ошибка рендеринга страницы;.",
|
37
|
+
computeError: "Ошибка табличных расчетов;.",
|
38
|
+
uiRenderError: "Ошибка во время прорисовки и динамического расчета таблицы.",
|
39
|
+
selectAll: "Выбрать все",
|
40
|
+
selectNone: "Ничего не выбирать",
|
41
|
+
tooMany: "(Выбрано слишком много значений)",
|
42
|
+
filterResults: "Значение фильтра",
|
43
|
+
totals: "Всего",
|
44
|
+
vs: "на",
|
45
|
+
by: "с"
|
46
|
+
},
|
47
|
+
aggregators: {
|
48
|
+
"Счет": tpl.count(frFmtInt),
|
49
|
+
"Счет уникальных": tpl.countUnique(frFmtInt),
|
50
|
+
"Список уникальных": tpl.listUnique(", "),
|
51
|
+
"Сумма": tpl.sum(frFmt),
|
52
|
+
"Сумма целых": tpl.sum(frFmtInt),
|
53
|
+
"Среднее": tpl.average(frFmt),
|
54
|
+
"Минимум": tpl.min(frFmt),
|
55
|
+
"Максимум": tpl.max(frFmt),
|
56
|
+
"Сумма по сумме": tpl.sumOverSum(frFmt),
|
57
|
+
"80% верхней границы": tpl.sumOverSumBound80(true, frFmt),
|
58
|
+
"80% нижней границы": tpl.sumOverSumBound80(false, frFmt),
|
59
|
+
"Доля по всему": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
|
60
|
+
"Доля по строке": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
|
61
|
+
"Доля по столбцу": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
|
62
|
+
"Счет по всему": tpl.fractionOf(tpl.count(), "total", frFmtPct),
|
63
|
+
"Счет по строке": tpl.fractionOf(tpl.count(), "row", frFmtPct),
|
64
|
+
"Счет по столбцу": tpl.fractionOf(tpl.count(), "col", frFmtPct)
|
65
|
+
},
|
66
|
+
renderers: {
|
67
|
+
"Таблица": $.pivotUtilities.renderers["Table"],
|
68
|
+
"График столбцы": $.pivotUtilities.renderers["Table Barchart"],
|
69
|
+
"Теплова карта": $.pivotUtilities.renderers["Heatmap"],
|
70
|
+
"Тепловая карта по строке": $.pivotUtilities.renderers["Row Heatmap"],
|
71
|
+
"Тепловая карта по столбцу": $.pivotUtilities.renderers["Col Heatmap"]
|
72
|
+
}
|
73
|
+
};
|
74
|
+
});
|
75
|
+
|
76
|
+
}).call(this);
|
77
|
+
|
78
|
+
//# sourceMappingURL=pivot.ru.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["pivot.ru.coffee"],"names":[],"mappings":"AAAA;AAAA,MAAA;;EAAA,cAAA,GAAiB,SAAC,WAAD;IACb,IAAG,OAAO,OAAP,KAAkB,QAAlB,IAA+B,OAAO,MAAP,KAAiB,QAAnD;aACI,WAAA,CAAY,OAAA,CAAQ,QAAR,CAAZ,EADJ;KAAA,MAEK,IAAG,OAAO,MAAP,KAAiB,UAAjB,IAAgC,MAAM,CAAC,GAA1C;aACD,MAAA,CAAO,CAAC,QAAD,CAAP,EAAmB,WAAnB,EADC;KAAA,MAAA;aAID,WAAA,CAAY,MAAZ,EAJC;;EAHQ;;EASjB,cAAA,CAAe,SAAC,CAAD;AACX,QAAA;IAAA,EAAA,GAAK,CAAC,CAAC,cAAc,CAAC;IACtB,GAAA,GAAM,CAAC,CAAC,cAAc,CAAC;IAEvB,KAAA,GAAW,EAAA,CAAG;MAAA,YAAA,EAAc,GAAd;MAAmB,UAAA,EAAY,GAA/B;KAAH;IACX,QAAA,GAAW,E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CAAsB,KAAtB,EAA6B,KAA7B,CAVtB;QAWA,eAAA,EAAiB,GAAG,CAAC,UAAJ,CAAe,GAAG,CAAC,GAAJ,CAAA,CAAf,EAA0B,OAA1B,EAAmC,QAAnC,CAXjB;QAYA,gBAAA,EAAkB,GAAG,CAAC,UAAJ,CAAe,GAAG,CAAC,GAAJ,CAAA,CAAf,EAA0B,KAA1B,EAAiC,QAAjC,CAZlB;QAaA,iBAAA,EAAmB,GAAG,CAAC,UAAJ,CAAe,GAAG,CAAC,GAAJ,CAAA,CAAf,EAA0B,KAA1B,EAAiC,QAAjC,CAbnB;QAcA,eAAA,EAAiB,GAAG,CAAC,UAAJ,CAAe,GAAG,CAAC,KAAJ,CAAA,CAAf,EAA4B,OAA5B,EAAqC,QAArC,CAdjB;QAeA,gBAAA,EAAkB,GAAG,CAAC,UAAJ,CAAe,GAAG,CAAC,KAAJ,CAAA,CAAf,EAA4B,KAA5B,EAAmC,QAAnC,CAflB;QAgBA,iBAAA,EAAmB,GAAG,CAAC,UAAJ,CAAe,GAAG,CAAC,KAAJ,CAAA,CAAf,EAA4B,KAA5B,EAAmC,QAAnC,CAhBnB;OAbJ;MA+BA,SAAA,EACI;QAAA,SAAA,EAAW,CAAC,CAAC,cAAc,CAAC,SAAU,CAAA,OAAA,CAAtC;QACA,gBAAA,EAAkB,CAAC,CAAC,cAAc,CAAC,SAAU,CAAA,gBAAA,CAD7C;QAEA,eAAA,EAAiB,CAAC,CAAC,cAAc,CAAC,SAAU,CAAA,SAAA,CAF5C;QAGA,0BAAA,EAA4B,CAAC,CAAC,cAAc,CAAC,SAAU,CAAA,aAAA,CAHvD;QAIA,2BAAA,EAA6B,CAAC,CAAC,cAAc,CAAC,SAAU,CAAA,aAAA,CAJxD;OAhCJ;;EATO,CAAf;AATA","file":"pivot.ru.js","sourceRoot":"/source/","sourcesContent":["callWithJQuery = (pivotModule) ->\n if typeof exports is \"object\" and typeof module is \"object\" # CommonJS\n pivotModule require(\"jquery\")\n else if typeof define is \"function\" and define.amd # AMD\n define [\"jquery\"], pivotModule\n # Plain browser env\n else\n pivotModule jQuery\n \ncallWithJQuery ($) ->\n nf = $.pivotUtilities.numberFormat\n tpl = $.pivotUtilities.aggregatorTemplates\n\n frFmt = nf(thousandsSep: \" \", decimalSep: \",\")\n frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: \" \", decimalSep: \",\")\n frFmtPct = nf(digitsAfterDecimal: 1, scaler: 100, suffix: \"%\", thousandsSep: \" \", decimalSep: \",\")\n\n $.pivotUtilities.locales.ru = \n localeStrings:\n renderError: \"Ошибка рендеринга страницы;.\",\n computeError: \"Ошибка табличных расчетов;.\",\n uiRenderError: \"Ошибка во время прорисовки и динамического расчета таблицы.\",\n selectAll: \"Выбрать все\",\n selectNone: \"Ничего не выбирать\",\n tooMany: \"(Выбрано слишком много значений)\",\n filterResults: \"Значение фильтра\",\n totals: \"Всего\",\n vs: \"на\",\n by: \"с\"\n\n aggregators: \n \"Счет\": tpl.count(frFmtInt),\n \"Счет уникальных\": tpl.countUnique(frFmtInt),\n \"Список уникальных\": tpl.listUnique(\", \"),\n \"Сумма\": tpl.sum(frFmt),\n \"Сумма целых\": tpl.sum(frFmtInt),\n \"Среднее\": tpl.average(frFmt),\n \"Минимум\": tpl.min(frFmt),\n \"Максимум\": tpl.max(frFmt),\n \"Сумма по сумме\": tpl.sumOverSum(frFmt),\n \"80% верхней границы\": tpl.sumOverSumBound80(true, frFmt),\n \"80% нижней границы\": tpl.sumOverSumBound80(false, frFmt),\n \"Доля по всему\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct),\n \"Доля по строке\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct),\n \"Доля по столбцу\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct),\n \"Счет по всему\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct),\n \"Счет по строке\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct),\n \"Счет по столбцу\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n\n renderers:\n \"Таблица\": $.pivotUtilities.renderers[\"Table\"]\n \"График столбцы\": $.pivotUtilities.renderers[\"Table Barchart\"]\n \"Теплова карта\": $.pivotUtilities.renderers[\"Heatmap\"]\n \"Тепловая карта по строке\": $.pivotUtilities.renderers[\"Row Heatmap\"]\n \"Тепловая карта по столбцу\": $.pivotUtilities.renderers[\"Col Heatmap\"]\n\n"]}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(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);
|
2
|
+
//# sourceMappingURL=pivot.ru.min.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["/source/pivot.ru.coffee","pivot.ru.min.js"],"names":["callWithJQuery","pivotModule","exports","module","require","define","amd","jQuery","$","frFmt","frFmtInt","frFmtPct","nf","tpl","pivotUtilities","numberFormat","aggregatorTemplates","thousandsSep","decimalSep","digitsAfterDecimal","scaler","suffix","locales","ru","localeStrings","renderError","computeError","uiRenderError","selectAll","selectNone","tooMany","filterResults","totals","vs","by","aggregators","Счет","count","Счет уникальных","countUnique","Список уникальных","listUnique","Сумма","sum","Сумма целых","Среднее","average","Минимум","min","Максимум","max","Сумма по сумме","sumOverSum","80% верхней границы","sumOverSumBound80","80% нижней границы","Доля по всему","fractionOf","Доля по строке","Доля по столбцу","Счет по всему","Счет по строке","Счет по столбцу","renderers","Таблица","График столбцы","Теплова карта","Тепловая карта по строке","Тепловая карта по столбцу","call","this"],"mappings":"CAAA,WAAA,GAAAA,IAAAA,EAAiB,SAACC,GACd,MAAqB,gBAAXC,UAAyC,gBAAVC,QACrCF,EAAYG,QAAQ,WACC,kBAAVC,SAAyBA,OAAOC,IAC3CD,QAAQ,UAAWJ,GAGnBA,EAAYM,UAEL,SAACC,GACZ,GAAAC,GAAAC,EAAAC,EAAAC,EAAAC,CCuBA,ODvBAD,GAAKJ,EAAEM,eAAeC,aACtBF,EAAML,EAAEM,eAAeE,oBAEvBP,EAAWG,GAAGK,aAAc,IAAKC,WAAY,MAC7CR,EAAWE,GAAGO,mBAAoB,EAAGF,aAAc,IAAKC,WAAY,MACpEP,EAAWC,GAAGO,mBAAoB,EAAGC,OAAQ,IAAKC,OAAQ,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object\" and typeof module is \"object\" # CommonJS\n pivotModule require(\"jquery\")\n else if typeof define is \"function\" and define.amd # AMD\n define [\"jquery\"], pivotModule\n # Plain browser env\n else\n pivotModule jQuery\n \ncallWithJQuery ($) ->\n nf = $.pivotUtilities.numberFormat\n tpl = $.pivotUtilities.aggregatorTemplates\n\n frFmt = nf(thousandsSep: \" \", decimalSep: \",\")\n frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: \" \", decimalSep: \",\")\n frFmtPct = nf(digitsAfterDecimal: 1, scaler: 100, suffix: \"%\", thousandsSep: \" \", decimalSep: \",\")\n\n $.pivotUtilities.locales.ru = \n localeStrings:\n renderError: \"Ошибка рендеринга страницы;.\",\n computeError: \"Ошибка табличных расчетов;.\",\n uiRenderError: \"Ошибка во время прорисовки и динамического расчета таблицы.\",\n selectAll: \"Выбрать все\",\n selectNone: \"Ничего не выбирать\",\n tooMany: \"(Выбрано слишком много значений)\",\n filterResults: \"Значение фильтра\",\n totals: \"Всего\",\n vs: \"на\",\n by: \"с\"\n\n aggregators: \n \"Счет\": tpl.count(frFmtInt),\n \"Счет уникальных\": tpl.countUnique(frFmtInt),\n \"Список уникальных\": tpl.listUnique(\", \"),\n \"Сумма\": tpl.sum(frFmt),\n \"Сумма целых\": tpl.sum(frFmtInt),\n \"Среднее\": tpl.average(frFmt),\n \"Минимум\": tpl.min(frFmt),\n \"Максимум\": tpl.max(frFmt),\n \"Сумма по сумме\": tpl.sumOverSum(frFmt),\n \"80% верхней границы\": tpl.sumOverSumBound80(true, frFmt),\n \"80% нижней границы\": tpl.sumOverSumBound80(false, frFmt),\n \"Доля по всему\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct),\n \"Доля по строке\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct),\n \"Доля по столбцу\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct),\n \"Счет по всему\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct),\n \"Счет по строке\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct),\n \"Счет по столбцу\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n\n renderers:\n \"Таблица\": $.pivotUtilities.renderers[\"Table\"]\n \"График столбцы\": $.pivotUtilities.renderers[\"Table Barchart\"]\n \"Теплова карта\": $.pivotUtilities.renderers[\"Heatmap\"]\n \"Тепловая карта по строке\": $.pivotUtilities.renderers[\"Row Heatmap\"]\n \"Тепловая карта по столбцу\": $.pivotUtilities.renderers[\"Col Heatmap\"]\n\n","(function() {\n var callWithJQuery;\n\n callWithJQuery = function(pivotModule) {\n if (typeof exports === \"object\" && typeof module === \"object\") {\n return pivotModule(require(\"jquery\"));\n } else if (typeof define === \"function\" && define.amd) {\n return define([\"jquery\"], pivotModule);\n } else {\n return pivotModule(jQuery);\n }\n };\n\n callWithJQuery(function($) {\n var frFmt, frFmtInt, frFmtPct, nf, tpl;\n nf = $.pivotUtilities.numberFormat;\n tpl = $.pivotUtilities.aggregatorTemplates;\n frFmt = nf({\n thousandsSep: \" \",\n decimalSep: \",\"\n });\n frFmtInt = nf({\n digitsAfterDecimal: 0,\n thousandsSep: \" \",\n decimalSep: \",\"\n });\n frFmtPct = nf({\n digitsAfterDecimal: 1,\n scaler: 100,\n suffix: \"%\",\n thousandsSep: \" \",\n decimalSep: \",\"\n });\n return $.pivotUtilities.locales.ru = {\n localeStrings: {\n renderError: \"Ошибка рендеринга страницы;.\",\n computeError: \"Ошибка табличных расчетов;.\",\n uiRenderError: \"Ошибка во время прорисовки и динамического расчета таблицы.\",\n selectAll: \"Выбрать все\",\n selectNone: \"Ничего не выбирать\",\n tooMany: \"(Выбрано слишком много значений)\",\n filterResults: \"Значение фильтра\",\n totals: \"Всего\",\n vs: \"на\",\n by: \"с\"\n },\n aggregators: {\n \"Счет\": tpl.count(frFmtInt),\n \"Счет уникальных\": tpl.countUnique(frFmtInt),\n \"Список уникальных\": tpl.listUnique(\", \"),\n \"Сумма\": tpl.sum(frFmt),\n \"Сумма целых\": tpl.sum(frFmtInt),\n \"Среднее\": tpl.average(frFmt),\n \"Минимум\": tpl.min(frFmt),\n \"Максимум\": tpl.max(frFmt),\n \"Сумма по сумме\": tpl.sumOverSum(frFmt),\n \"80% верхней границы\": tpl.sumOverSumBound80(true, frFmt),\n \"80% нижней границы\": tpl.sumOverSumBound80(false, frFmt),\n \"Доля по всему\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct),\n \"Доля по строке\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct),\n \"Доля по столбцу\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct),\n \"Счет по всему\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct),\n \"Счет по строке\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct),\n \"Счет по столбцу\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n },\n renderers: {\n \"Таблица\": $.pivotUtilities.renderers[\"Table\"],\n \"График столбцы\": $.pivotUtilities.renderers[\"Table Barchart\"],\n \"Теплова карта\": $.pivotUtilities.renderers[\"Heatmap\"],\n \"Тепловая карта по строке\": $.pivotUtilities.renderers[\"Row Heatmap\"],\n \"Тепловая карта по столбцу\": $.pivotUtilities.renderers[\"Col Heatmap\"]\n }\n };\n });\n\n}).call(this);\n\n//# sourceMappingURL=pivot.ru.js.map\n"],"sourceRoot":"/source/"}
|
@@ -0,0 +1,104 @@
|
|
1
|
+
(function() {
|
2
|
+
var callWithJQuery;
|
3
|
+
|
4
|
+
callWithJQuery = function(pivotModule) {
|
5
|
+
if (typeof exports === "object" && typeof module === "object") {
|
6
|
+
return pivotModule(require("jquery"));
|
7
|
+
} else if (typeof define === "function" && define.amd) {
|
8
|
+
return define(["jquery"], pivotModule);
|
9
|
+
} else {
|
10
|
+
return pivotModule(jQuery);
|
11
|
+
}
|
12
|
+
};
|
13
|
+
|
14
|
+
callWithJQuery(function($) {
|
15
|
+
var c3r, d3r, frFmt, frFmtInt, frFmtPct, gcr, nf, r, tpl;
|
16
|
+
nf = $.pivotUtilities.numberFormat;
|
17
|
+
tpl = $.pivotUtilities.aggregatorTemplates;
|
18
|
+
r = $.pivotUtilities.renderers;
|
19
|
+
gcr = $.pivotUtilities.gchart_renderers;
|
20
|
+
d3r = $.pivotUtilities.d3_renderers;
|
21
|
+
c3r = $.pivotUtilities.c3_renderers;
|
22
|
+
frFmt = nf({
|
23
|
+
thousandsSep: ".",
|
24
|
+
decimalSep: ","
|
25
|
+
});
|
26
|
+
frFmtInt = nf({
|
27
|
+
digitsAfterDecimal: 0,
|
28
|
+
thousandsSep: ".",
|
29
|
+
decimalSep: ","
|
30
|
+
});
|
31
|
+
frFmtPct = nf({
|
32
|
+
digitsAfterDecimal: 2,
|
33
|
+
scaler: 100,
|
34
|
+
suffix: "%",
|
35
|
+
thousandsSep: ".",
|
36
|
+
decimalSep: ","
|
37
|
+
});
|
38
|
+
$.pivotUtilities.locales.tr = {
|
39
|
+
localeStrings: {
|
40
|
+
renderError: "PivotTable sonuçlarını oluştuturken hata oluştu",
|
41
|
+
computeError: "PivotTable sonuçlarını işlerken hata oluştu",
|
42
|
+
uiRenderError: "PivotTable UI sonuçlarını oluştuturken hata oluştu",
|
43
|
+
selectAll: "Tümünü Seç",
|
44
|
+
selectNone: "Tümünü Bırak",
|
45
|
+
tooMany: "(listelemek için fazla)",
|
46
|
+
filterResults: "Sonuçları filtrele",
|
47
|
+
totals: "Toplam",
|
48
|
+
vs: "vs",
|
49
|
+
by: "ile"
|
50
|
+
},
|
51
|
+
aggregators: {
|
52
|
+
"Sayı": tpl.count(frFmtInt),
|
53
|
+
"Benzersiz değerler sayısı": tpl.countUnique(frFmtInt),
|
54
|
+
"Benzersiz değerler listesi": tpl.listUnique(", "),
|
55
|
+
"Toplam": tpl.sum(frFmt),
|
56
|
+
"Toplam (tam sayı)": tpl.sum(frFmtInt),
|
57
|
+
"Ortalama": tpl.average(frFmt),
|
58
|
+
"Min": tpl.min(frFmt),
|
59
|
+
"Maks": tpl.max(frFmt),
|
60
|
+
"Miktarların toplamı": tpl.sumOverSum(frFmt),
|
61
|
+
"%80 daha yüksek": tpl.sumOverSumBound80(true, frFmt),
|
62
|
+
"%80 daha düşük": tpl.sumOverSumBound80(false, frFmt),
|
63
|
+
"Toplam oranı (toplam)": tpl.fractionOf(tpl.sum(), "total", frFmtPct),
|
64
|
+
"Satır oranı (toplam)": tpl.fractionOf(tpl.sum(), "row", frFmtPct),
|
65
|
+
"Sütunun oranı (toplam)": tpl.fractionOf(tpl.sum(), "col", frFmtPct),
|
66
|
+
"Toplam oranı (sayı)": tpl.fractionOf(tpl.count(), "total", frFmtPct),
|
67
|
+
"Satır oranı (sayı)": tpl.fractionOf(tpl.count(), "row", frFmtPct),
|
68
|
+
"Sütunun oranı (sayı)": tpl.fractionOf(tpl.count(), "col", frFmtPct)
|
69
|
+
},
|
70
|
+
renderers: {
|
71
|
+
"Tablo": r["Table"],
|
72
|
+
"Tablo (Çubuklar)": r["Table Barchart"],
|
73
|
+
"İlgi haritası": r["Heatmap"],
|
74
|
+
"Satır ilgi haritası": r["Row Heatmap"],
|
75
|
+
"Sütun ilgi haritası": r["Col Heatmap"]
|
76
|
+
}
|
77
|
+
};
|
78
|
+
if (gcr) {
|
79
|
+
$.pivotUtilities.locales.tr.gchart_renderers = {
|
80
|
+
"Çizgi Grafiği": gcr["Line Chart"],
|
81
|
+
"Bar Grafiği": gcr["Bar Chart"],
|
82
|
+
"Yığılmış Çubuk Grafik ": gcr["Stacked Bar Chart"],
|
83
|
+
"Alan Grafiği": gcr["Area Chart"]
|
84
|
+
};
|
85
|
+
}
|
86
|
+
if (d3r) {
|
87
|
+
$.pivotUtilities.locales.tr.d3_renderers = {
|
88
|
+
"Hiyerarşik Alan Grafiği (Treemap)": d3r["Treemap"]
|
89
|
+
};
|
90
|
+
}
|
91
|
+
if (c3r) {
|
92
|
+
$.pivotUtilities.locales.tr.c3_renderers = {
|
93
|
+
"Çizgi Grafiği": c3r["Line Chart"],
|
94
|
+
"Bar Grafiği": c3r["Bar Chart"],
|
95
|
+
"Yığılmış Çubuk Grafik ": c3r["Stacked Bar Chart"],
|
96
|
+
"Alan Grafiği": c3r["Area Chart"]
|
97
|
+
};
|
98
|
+
}
|
99
|
+
return $.pivotUtilities.locales.tr;
|
100
|
+
});
|
101
|
+
|
102
|
+
}).call(this);
|
103
|
+
|
104
|
+
//# sourceMappingURL=pivot.tr.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["pivot.tr.coffee"],"names":[],"mappings":"AAAA;AAAA,MAAA;;EAAA,cAAA,GAAiB,SAAC,WAAD;IACf,IAAG,OAAO,OAAP,KAAkB,QAAlB,IAA+B,OAAO,MAAP,KAAiB,QAAnD;aACE,WAAA,CAAY,OAAA,CAAQ,QAAR,CAAZ,EADF;KAAA,MAEK,IAAG,OAAO,MAAP,KAAiB,UAAjB,IAAgC,MAAM,CAAC,GAA1C;aACH,MAAA,CAAO,CAAC,QAAD,CAAP,EAAmB,WAAnB,EADG;KAAA,MAAA;aAIH,WAAA,CAAY,MAAZ,EAJG;;EAHU;;EASjB,cAAA,CAAe,SAAC,CAAD;AACb,QAAA;IAAA,EAAA,GAAK,CAAC,CAAC,cAAc,CAAC;IACtB,GAAA,GAAM,CAAC,CAAC,cAAc,CAAC;IACvB,CAAA,GAAI,CAAC,CAAC,cAAc,CAAC;IACrB,GAAA,GAAM,CAAC,CAAC,cAAc,CAAC;IACvB,GAAA,GAAM,CAAC,CAAC,cAAc,CAAC;IACvB,GAAA,GAAM,CAAC,CAAC,cAAc,CAAC;IAEvB,KAAA,GAAQ,EAAA,CAAG;MAAA,YAAA,EAAc,GAAd;MAAmB,UAAA,EAAY,GAA/B;KAAH;IACR,QAAA,GAAW,EAAA,CAAG;MAAA,kBAAA,EAAoB,CAApB;MAAuB,YAAA,EAAc,GAArC;MAA0C,UAAA,EAAY,GAAtD;KAAH;IACX,QAAA,GAAW,EAAA,CAAG;MAAA,kBAAA,EAAoB,CAApB;MAAuB,MAAA,EAAQ,GAA/B;MAAoC,MAAA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CAAC,cAAc,CAAC,OAAO,CAAC,EAAE,CAAC,YAA5B,GACE;QAAA,2BAAA,EAA6B,GAAI,CAAA,YAAA,CAAjC;QACA,kBAAA,EAAoB,GAAI,CAAA,WAAA,CADxB;QAEA,wDAAA,EAA0D,GAAI,CAAA,mBAAA,CAF9D;QAGA,mBAAA,EAAqB,GAAI,CAAA,YAAA,CAHzB;QAFJ;;AAOA,WAAO,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC;EArEnB,CAAf;AATA","file":"pivot.tr.js","sourceRoot":"/source/","sourcesContent":["callWithJQuery = (pivotModule) ->\n if typeof exports is \"object\" and typeof module is \"object\" # CommonJS\n pivotModule require(\"jquery\")\n else if typeof define is \"function\" and define.amd # AMD\n define [\"jquery\"], pivotModule\n# Plain browser env\n else\n pivotModule jQuery\n\ncallWithJQuery ($) ->\n nf = $.pivotUtilities.numberFormat\n tpl = $.pivotUtilities.aggregatorTemplates\n r = $.pivotUtilities.renderers\n gcr = $.pivotUtilities.gchart_renderers\n d3r = $.pivotUtilities.d3_renderers\n c3r = $.pivotUtilities.c3_renderers\n\n frFmt = nf(thousandsSep: \".\", decimalSep: \",\")\n frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: \".\", decimalSep: \",\")\n frFmtPct = nf(digitsAfterDecimal: 2, scaler: 100, suffix: \"%\", thousandsSep: \".\", decimalSep: \",\")\n\n $.pivotUtilities.locales.tr =\n\n localeStrings:\n renderError: \"PivotTable sonuçlarını oluştuturken hata oluştu\"\n computeError: \"PivotTable sonuçlarını işlerken hata oluştu\"\n uiRenderError: \"PivotTable UI sonuçlarını oluştuturken hata oluştu\"\n selectAll: \"Tümünü Seç\"\n selectNone: \"Tümünü Bırak\"\n tooMany: \"(listelemek için fazla)\"\n filterResults: \"Sonuçları filtrele\"\n totals: \"Toplam\"\n vs: \"vs\"\n by: \"ile\"\n\n aggregators:\n \"Sayı\": tpl.count(frFmtInt)\n \"Benzersiz değerler sayısı\": tpl.countUnique(frFmtInt)\n \"Benzersiz değerler listesi\": tpl.listUnique(\", \")\n \"Toplam\": tpl.sum(frFmt)\n \"Toplam (tam sayı)\": tpl.sum(frFmtInt)\n \"Ortalama\": tpl.average(frFmt)\n \"Min\": tpl.min(frFmt)\n \"Maks\": tpl.max(frFmt)\n \"Miktarların toplamı\": tpl.sumOverSum(frFmt)\n \"%80 daha yüksek\": tpl.sumOverSumBound80(true, frFmt)\n \"%80 daha düşük\": tpl.sumOverSumBound80(false, frFmt)\n \"Toplam oranı (toplam)\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct)\n \"Satır oranı (toplam)\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct)\n \"Sütunun oranı (toplam)\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct)\n \"Toplam oranı (sayı)\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct)\n \"Satır oranı (sayı)\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct)\n \"Sütunun oranı (sayı)\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n\n renderers:\n \"Tablo\": r[\"Table\"]\n \"Tablo (Çubuklar)\": r[\"Table Barchart\"]\n \"İlgi haritası\": r[\"Heatmap\"]\n \"Satır ilgi haritası\": r[\"Row Heatmap\"]\n \"Sütun ilgi haritası\": r[\"Col Heatmap\"]\n if gcr\n $.pivotUtilities.locales.tr.gchart_renderers =\n \"Çizgi Grafiği\": gcr[\"Line Chart\"]\n \"Bar Grafiği\": gcr[\"Bar Chart\"]\n \"Yığılmış Çubuk Grafik \": gcr[\"Stacked Bar Chart\"]\n \"Alan Grafiği\": gcr[\"Area Chart\"]\n\n if d3r\n $.pivotUtilities.locales.tr.d3_renderers =\n \"Hiyerarşik Alan Grafiği (Treemap)\": d3r[\"Treemap\"]\n\n if c3r\n $.pivotUtilities.locales.tr.c3_renderers =\n \"Çizgi Grafiği\": c3r[\"Line Chart\"]\n \"Bar Grafiği\": c3r[\"Bar Chart\"]\n \"Yığılmış Çubuk Grafik \": c3r[\"Stacked Bar Chart\"]\n \"Alan Grafiği\": c3r[\"Area Chart\"]\n\n return $.pivotUtilities.locales.tr\n\n"]}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
(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ç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ı":s.count(i),"Benzersiz değerler sayısı":s.countUnique(i),"Benzersiz değerler listesi":s.listUnique(", "),Toplam:s.sum(t),"Toplam (tam sayı)":s.sum(i),Ortalama:s.average(t),Min:s.min(t),Maks:s.max(t),"Miktarların toplamı":s.sumOverSum(t),"%80 daha yüksek":s.sumOverSumBound80(!0,t),"%80 daha düşük":s.sumOverSumBound80(!1,t),"Toplam oranı (toplam)":s.fractionOf(s.sum(),"total",l),"Satır oranı (toplam)":s.fractionOf(s.sum(),"row",l),"Sütunun oranı (toplam)":s.fractionOf(s.sum(),"col",l),"Toplam oranı (sayı)":s.fractionOf(s.count(),"total",l),"Satır oranı (sayı)":s.fractionOf(s.count(),"row",l),"Sütunun oranı (sayı)":s.fractionOf(s.count(),"col",l)},renderers:{Tablo:n.Table,"Tablo (Çubuklar)":n["Table Barchart"],"İlgi haritası":n.Heatmap,"Satır ilgi haritası":n["Row Heatmap"],"Sütun ilgi haritası":n["Col Heatmap"]}},o&&(e.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&&(e.pivotUtilities.locales.tr.d3_renderers={"Hiyerarşik Alan Grafiği (Treemap)":r.Treemap}),a&&(e.pivotUtilities.locales.tr.c3_renderers={"Çizgi Grafiği":a["Line Chart"],"Bar Grafiği":a["Bar Chart"],"Yığılmış Çubuk Grafik ":a["Stacked Bar Chart"],"Alan Grafiği":a["Area Chart"]}),e.pivotUtilities.locales.tr})}).call(this);
|
2
|
+
//# sourceMappingURL=pivot.tr.min.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["/source/pivot.tr.coffee","pivot.tr.min.js"],"names":["callWithJQuery","pivotModule","exports","module","require","define","amd","jQuery","$","c3r","d3r","frFmt","frFmtInt","frFmtPct","gcr","nf","r","tpl","pivotUtilities","numberFormat","aggregatorTemplates","renderers","gchart_renderers","d3_renderers","c3_renderers","thousandsSep","decimalSep","digitsAfterDecimal","scaler","suffix","locales","tr","localeStrings","renderError","computeError","uiRenderError","selectAll","selectNone","tooMany","filterResults","totals","vs","by","aggregators","Sayı","count","Benzersiz değerler sayısı","countUnique","Benzersiz değerler listesi","listUnique","Toplam","sum","Toplam (tam sayı)","Ortalama","average","Min","min","Maks","max","Miktarların toplamı","sumOverSum","%80 daha yüksek","sumOverSumBound80","%80 daha düşük","Toplam oranı (toplam)","fractionOf","Satır oranı (toplam)","Sütunun oranı (toplam)","Toplam oranı (sayı)","Satır oranı (sayı)","Sütunun oranı (sayı)","Tablo","Tablo (Çubuklar)","İlgi haritası","Satır ilgi haritası","Sütun ilgi haritası","Çizgi Grafiği","Bar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D,gCAAiC9C,EAAI6C,mBAAkB,EAAOnD,GAC9DqD,6BAA8B/C,EAAIgD,WAAWhD,EAAIkC,MAAO,QAAStC,GACjEqD,iCAAkCjD,EAAIgD,WAAWhD,EAAIkC,MAAO,MAAOtC,GACnEsD,mCAAoClD,EAAIgD,WAAWhD,EAAIkC,MAAO,MAAOtC,GACrEuD,gCAAiCnD,EAAIgD,WAAWhD,EAAI4B,QAAS,QAAShC,GACtEwD,oCAAqCpD,EAAIgD,WAAWhD,EAAI4B,QAAS,MAAOhC,GACxEyD,sCAAuCrD,EAAIgD,WAAWhD,EAAI4B,QAAS,MAAOhC,IAE5EQ,WACEkD,MAASvD,EAAE,MACXwD,0BAA2BxD,EAAE,kBAC7ByD,0BAA2BzD,EAAE,QAC7B0D,gCAAiC1D,EAAE,eACnC2D,gCAAiC3D,EAAE,iBACpCF,IACDN,EAAEU,eAAeY,QAAQC,GAAGT,kBAC1BsD,4BAA6B9D,EAAI,cACjC+D,mBAAoB/D,EAAI,aACxBgE,yDAA0DhE,EAAI,qBAC9DiE,oBAAqBjE,EAAI,gBAE1BJ,IACDF,EAAEU,eAAeY,QAAQC,GAAGR,cAC1ByD,8CAA+CtE,EAAI,UAEpDD,IACDD,EAAEU,eAAeY,QAAQC,GAAGP,cAC1BoD,4BAA6BnE,EAAI,cACjCoE,mBAAoBpE,EAAI,aACxBqE,yDAA0DrE,EAAI,qBAC9DsE,oBAAqBtE,EAAI,gBAEtBD,EAAEU,eAAeY,QAAQC,OCuB/BkD,KAAKC","file":"pivot.tr.min.js","sourcesContent":["callWithJQuery = (pivotModule) ->\n if typeof exports is \"object\" and typeof module is \"object\" # CommonJS\n pivotModule require(\"jquery\")\n else if typeof define is \"function\" and define.amd # AMD\n define [\"jquery\"], pivotModule\n# Plain browser env\n else\n pivotModule jQuery\n\ncallWithJQuery ($) ->\n nf = $.pivotUtilities.numberFormat\n tpl = $.pivotUtilities.aggregatorTemplates\n r = $.pivotUtilities.renderers\n gcr = $.pivotUtilities.gchart_renderers\n d3r = $.pivotUtilities.d3_renderers\n c3r = $.pivotUtilities.c3_renderers\n\n frFmt = nf(thousandsSep: \".\", decimalSep: \",\")\n frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: \".\", decimalSep: \",\")\n frFmtPct = nf(digitsAfterDecimal: 2, scaler: 100, suffix: \"%\", thousandsSep: \".\", decimalSep: \",\")\n\n $.pivotUtilities.locales.tr =\n\n localeStrings:\n renderError: \"PivotTable sonuçlarını oluştuturken hata oluştu\"\n computeError: \"PivotTable sonuçlarını işlerken hata oluştu\"\n uiRenderError: \"PivotTable UI sonuçlarını oluştuturken hata oluştu\"\n selectAll: \"Tümünü Seç\"\n selectNone: \"Tümünü Bırak\"\n tooMany: \"(listelemek için fazla)\"\n filterResults: \"Sonuçları filtrele\"\n totals: \"Toplam\"\n vs: \"vs\"\n by: \"ile\"\n\n aggregators:\n \"Sayı\": tpl.count(frFmtInt)\n \"Benzersiz değerler sayısı\": tpl.countUnique(frFmtInt)\n \"Benzersiz değerler listesi\": tpl.listUnique(\", \")\n \"Toplam\": tpl.sum(frFmt)\n \"Toplam (tam sayı)\": tpl.sum(frFmtInt)\n \"Ortalama\": tpl.average(frFmt)\n \"Min\": tpl.min(frFmt)\n \"Maks\": tpl.max(frFmt)\n \"Miktarların toplamı\": tpl.sumOverSum(frFmt)\n \"%80 daha yüksek\": tpl.sumOverSumBound80(true, frFmt)\n \"%80 daha düşük\": tpl.sumOverSumBound80(false, frFmt)\n \"Toplam oranı (toplam)\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct)\n \"Satır oranı (toplam)\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct)\n \"Sütunun oranı (toplam)\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct)\n \"Toplam oranı (sayı)\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct)\n \"Satır oranı (sayı)\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct)\n \"Sütunun oranı (sayı)\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n\n renderers:\n \"Tablo\": r[\"Table\"]\n \"Tablo (Çubuklar)\": r[\"Table Barchart\"]\n \"İlgi haritası\": r[\"Heatmap\"]\n \"Satır ilgi haritası\": r[\"Row Heatmap\"]\n \"Sütun ilgi haritası\": r[\"Col Heatmap\"]\n if gcr\n $.pivotUtilities.locales.tr.gchart_renderers =\n \"Çizgi Grafiği\": gcr[\"Line Chart\"]\n \"Bar Grafiği\": gcr[\"Bar Chart\"]\n \"Yığılmış Çubuk Grafik \": gcr[\"Stacked Bar Chart\"]\n \"Alan Grafiği\": gcr[\"Area Chart\"]\n\n if d3r\n $.pivotUtilities.locales.tr.d3_renderers =\n \"Hiyerarşik Alan Grafiği (Treemap)\": d3r[\"Treemap\"]\n\n if c3r\n $.pivotUtilities.locales.tr.c3_renderers =\n \"Çizgi Grafiği\": c3r[\"Line Chart\"]\n \"Bar Grafiği\": c3r[\"Bar Chart\"]\n \"Yığılmış Çubuk Grafik \": c3r[\"Stacked Bar Chart\"]\n \"Alan Grafiği\": c3r[\"Area Chart\"]\n\n return $.pivotUtilities.locales.tr\n\n","(function() {\n var callWithJQuery;\n\n callWithJQuery = function(pivotModule) {\n if (typeof exports === \"object\" && typeof module === \"object\") {\n return pivotModule(require(\"jquery\"));\n } else if (typeof define === \"function\" && define.amd) {\n return define([\"jquery\"], pivotModule);\n } else {\n return pivotModule(jQuery);\n }\n };\n\n callWithJQuery(function($) {\n var c3r, d3r, frFmt, frFmtInt, frFmtPct, gcr, nf, r, tpl;\n nf = $.pivotUtilities.numberFormat;\n tpl = $.pivotUtilities.aggregatorTemplates;\n r = $.pivotUtilities.renderers;\n gcr = $.pivotUtilities.gchart_renderers;\n d3r = $.pivotUtilities.d3_renderers;\n c3r = $.pivotUtilities.c3_renderers;\n frFmt = nf({\n thousandsSep: \".\",\n decimalSep: \",\"\n });\n frFmtInt = nf({\n digitsAfterDecimal: 0,\n thousandsSep: \".\",\n decimalSep: \",\"\n });\n frFmtPct = nf({\n digitsAfterDecimal: 2,\n scaler: 100,\n suffix: \"%\",\n thousandsSep: \".\",\n decimalSep: \",\"\n });\n $.pivotUtilities.locales.tr = {\n localeStrings: {\n renderError: \"PivotTable sonuçlarını oluştuturken hata oluştu\",\n computeError: \"PivotTable sonuçlarını işlerken hata oluştu\",\n uiRenderError: \"PivotTable UI sonuçlarını oluştuturken hata oluştu\",\n selectAll: \"Tümünü Seç\",\n selectNone: \"Tümünü Bırak\",\n tooMany: \"(listelemek için fazla)\",\n filterResults: \"Sonuçları filtrele\",\n totals: \"Toplam\",\n vs: \"vs\",\n by: \"ile\"\n },\n aggregators: {\n \"Sayı\": tpl.count(frFmtInt),\n \"Benzersiz değerler sayısı\": tpl.countUnique(frFmtInt),\n \"Benzersiz değerler listesi\": tpl.listUnique(\", \"),\n \"Toplam\": tpl.sum(frFmt),\n \"Toplam (tam sayı)\": tpl.sum(frFmtInt),\n \"Ortalama\": tpl.average(frFmt),\n \"Min\": tpl.min(frFmt),\n \"Maks\": tpl.max(frFmt),\n \"Miktarların toplamı\": tpl.sumOverSum(frFmt),\n \"%80 daha yüksek\": tpl.sumOverSumBound80(true, frFmt),\n \"%80 daha düşük\": tpl.sumOverSumBound80(false, frFmt),\n \"Toplam oranı (toplam)\": tpl.fractionOf(tpl.sum(), \"total\", frFmtPct),\n \"Satır oranı (toplam)\": tpl.fractionOf(tpl.sum(), \"row\", frFmtPct),\n \"Sütunun oranı (toplam)\": tpl.fractionOf(tpl.sum(), \"col\", frFmtPct),\n \"Toplam oranı (sayı)\": tpl.fractionOf(tpl.count(), \"total\", frFmtPct),\n \"Satır oranı (sayı)\": tpl.fractionOf(tpl.count(), \"row\", frFmtPct),\n \"Sütunun oranı (sayı)\": tpl.fractionOf(tpl.count(), \"col\", frFmtPct)\n },\n renderers: {\n \"Tablo\": r[\"Table\"],\n \"Tablo (Çubuklar)\": r[\"Table Barchart\"],\n \"İlgi haritası\": r[\"Heatmap\"],\n \"Satır ilgi haritası\": r[\"Row Heatmap\"],\n \"Sütun ilgi haritası\": r[\"Col Heatmap\"]\n }\n };\n if (gcr) {\n $.pivotUtilities.locales.tr.gchart_renderers = {\n \"Çizgi Grafiği\": gcr[\"Line Chart\"],\n \"Bar Grafiği\": gcr[\"Bar Chart\"],\n \"Yığılmış Çubuk Grafik \": gcr[\"Stacked Bar Chart\"],\n \"Alan Grafiği\": gcr[\"Area Chart\"]\n };\n }\n if (d3r) {\n $.pivotUtilities.locales.tr.d3_renderers = {\n \"Hiyerarşik Alan Grafiği (Treemap)\": d3r[\"Treemap\"]\n };\n }\n if (c3r) {\n $.pivotUtilities.locales.tr.c3_renderers = {\n \"Çizgi Grafiği\": c3r[\"Line Chart\"],\n \"Bar Grafiği\": c3r[\"Bar Chart\"],\n \"Yığılmış Çubuk Grafik \": c3r[\"Stacked Bar Chart\"],\n \"Alan Grafiği\": c3r[\"Area Chart\"]\n };\n }\n return $.pivotUtilities.locales.tr;\n });\n\n}).call(this);\n\n//# sourceMappingURL=pivot.tr.js.map\n"],"sourceRoot":"/source/"}
|
@@ -0,0 +1,247 @@
|
|
1
|
+
$.pivotUtilities.tipsData = [
|
2
|
+
["row","total_bill","tip","sex","smoker","day","time","size"],
|
3
|
+
["1",16.99,1.01,"Female","No","Sun","Dinner",2],
|
4
|
+
["2",10.34,1.66,"Male","No","Sun","Dinner",3],
|
5
|
+
["3",21.01,3.5,"Male","No","Sun","Dinner",3],
|
6
|
+
["4",23.68,3.31,"Male","No","Sun","Dinner",2],
|
7
|
+
["5",24.59,3.61,"Female","No","Sun","Dinner",4],
|
8
|
+
["6",25.29,4.71,"Male","No","Sun","Dinner",4],
|
9
|
+
["7",8.77,2,"Male","No","Sun","Dinner",2],
|
10
|
+
["8",26.88,3.12,"Male","No","Sun","Dinner",4],
|
11
|
+
["9",15.04,1.96,"Male","No","Sun","Dinner",2],
|
12
|
+
["10",14.78,3.23,"Male","No","Sun","Dinner",2],
|
13
|
+
["11",10.27,1.71,"Male","No","Sun","Dinner",2],
|
14
|
+
["12",35.26,5,"Female","No","Sun","Dinner",4],
|
15
|
+
["13",15.42,1.57,"Male","No","Sun","Dinner",2],
|
16
|
+
["14",18.43,3,"Male","No","Sun","Dinner",4],
|
17
|
+
["15",14.83,3.02,"Female","No","Sun","Dinner",2],
|
18
|
+
["16",21.58,3.92,"Male","No","Sun","Dinner",2],
|
19
|
+
["17",10.33,1.67,"Female","No","Sun","Dinner",3],
|
20
|
+
["18",16.29,3.71,"Male","No","Sun","Dinner",3],
|
21
|
+
["19",16.97,3.5,"Female","No","Sun","Dinner",3],
|
22
|
+
["20",20.65,3.35,"Male","No","Sat","Dinner",3],
|
23
|
+
["21",17.92,4.08,"Male","No","Sat","Dinner",2],
|
24
|
+
["22",20.29,2.75,"Female","No","Sat","Dinner",2],
|
25
|
+
["23",15.77,2.23,"Female","No","Sat","Dinner",2],
|
26
|
+
["24",39.42,7.58,"Male","No","Sat","Dinner",4],
|
27
|
+
["25",19.82,3.18,"Male","No","Sat","Dinner",2],
|
28
|
+
["26",17.81,2.34,"Male","No","Sat","Dinner",4],
|
29
|
+
["27",13.37,2,"Male","No","Sat","Dinner",2],
|
30
|
+
["28",12.69,2,"Male","No","Sat","Dinner",2],
|
31
|
+
["29",21.7,4.3,"Male","No","Sat","Dinner",2],
|
32
|
+
["30",19.65,3,"Female","No","Sat","Dinner",2],
|
33
|
+
["31",9.55,1.45,"Male","No","Sat","Dinner",2],
|
34
|
+
["32",18.35,2.5,"Male","No","Sat","Dinner",4],
|
35
|
+
["33",15.06,3,"Female","No","Sat","Dinner",2],
|
36
|
+
["34",20.69,2.45,"Female","No","Sat","Dinner",4],
|
37
|
+
["35",17.78,3.27,"Male","No","Sat","Dinner",2],
|
38
|
+
["36",24.06,3.6,"Male","No","Sat","Dinner",3],
|
39
|
+
["37",16.31,2,"Male","No","Sat","Dinner",3],
|
40
|
+
["38",16.93,3.07,"Female","No","Sat","Dinner",3],
|
41
|
+
["39",18.69,2.31,"Male","No","Sat","Dinner",3],
|
42
|
+
["40",31.27,5,"Male","No","Sat","Dinner",3],
|
43
|
+
["41",16.04,2.24,"Male","No","Sat","Dinner",3],
|
44
|
+
["42",17.46,2.54,"Male","No","Sun","Dinner",2],
|
45
|
+
["43",13.94,3.06,"Male","No","Sun","Dinner",2],
|
46
|
+
["44",9.68,1.32,"Male","No","Sun","Dinner",2],
|
47
|
+
["45",30.4,5.6,"Male","No","Sun","Dinner",4],
|
48
|
+
["46",18.29,3,"Male","No","Sun","Dinner",2],
|
49
|
+
["47",22.23,5,"Male","No","Sun","Dinner",2],
|
50
|
+
["48",32.4,6,"Male","No","Sun","Dinner",4],
|
51
|
+
["49",28.55,2.05,"Male","No","Sun","Dinner",3],
|
52
|
+
["50",18.04,3,"Male","No","Sun","Dinner",2],
|
53
|
+
["51",12.54,2.5,"Male","No","Sun","Dinner",2],
|
54
|
+
["52",10.29,2.6,"Female","No","Sun","Dinner",2],
|
55
|
+
["53",34.81,5.2,"Female","No","Sun","Dinner",4],
|
56
|
+
["54",9.94,1.56,"Male","No","Sun","Dinner",2],
|
57
|
+
["55",25.56,4.34,"Male","No","Sun","Dinner",4],
|
58
|
+
["56",19.49,3.51,"Male","No","Sun","Dinner",2],
|
59
|
+
["57",38.01,3,"Male","Yes","Sat","Dinner",4],
|
60
|
+
["58",26.41,1.5,"Female","No","Sat","Dinner",2],
|
61
|
+
["59",11.24,1.76,"Male","Yes","Sat","Dinner",2],
|
62
|
+
["60",48.27,6.73,"Male","No","Sat","Dinner",4],
|
63
|
+
["61",20.29,3.21,"Male","Yes","Sat","Dinner",2],
|
64
|
+
["62",13.81,2,"Male","Yes","Sat","Dinner",2],
|
65
|
+
["63",11.02,1.98,"Male","Yes","Sat","Dinner",2],
|
66
|
+
["64",18.29,3.76,"Male","Yes","Sat","Dinner",4],
|
67
|
+
["65",17.59,2.64,"Male","No","Sat","Dinner",3],
|
68
|
+
["66",20.08,3.15,"Male","No","Sat","Dinner",3],
|
69
|
+
["67",16.45,2.47,"Female","No","Sat","Dinner",2],
|
70
|
+
["68",3.07,1,"Female","Yes","Sat","Dinner",1],
|
71
|
+
["69",20.23,2.01,"Male","No","Sat","Dinner",2],
|
72
|
+
["70",15.01,2.09,"Male","Yes","Sat","Dinner",2],
|
73
|
+
["71",12.02,1.97,"Male","No","Sat","Dinner",2],
|
74
|
+
["72",17.07,3,"Female","No","Sat","Dinner",3],
|
75
|
+
["73",26.86,3.14,"Female","Yes","Sat","Dinner",2],
|
76
|
+
["74",25.28,5,"Female","Yes","Sat","Dinner",2],
|
77
|
+
["75",14.73,2.2,"Female","No","Sat","Dinner",2],
|
78
|
+
["76",10.51,1.25,"Male","No","Sat","Dinner",2],
|
79
|
+
["77",17.92,3.08,"Male","Yes","Sat","Dinner",2],
|
80
|
+
["78",27.2,4,"Male","No","Thur","Lunch",4],
|
81
|
+
["79",22.76,3,"Male","No","Thur","Lunch",2],
|
82
|
+
["80",17.29,2.71,"Male","No","Thur","Lunch",2],
|
83
|
+
["81",19.44,3,"Male","Yes","Thur","Lunch",2],
|
84
|
+
["82",16.66,3.4,"Male","No","Thur","Lunch",2],
|
85
|
+
["83",10.07,1.83,"Female","No","Thur","Lunch",1],
|
86
|
+
["84",32.68,5,"Male","Yes","Thur","Lunch",2],
|
87
|
+
["85",15.98,2.03,"Male","No","Thur","Lunch",2],
|
88
|
+
["86",34.83,5.17,"Female","No","Thur","Lunch",4],
|
89
|
+
["87",13.03,2,"Male","No","Thur","Lunch",2],
|
90
|
+
["88",18.28,4,"Male","No","Thur","Lunch",2],
|
91
|
+
["89",24.71,5.85,"Male","No","Thur","Lunch",2],
|
92
|
+
["90",21.16,3,"Male","No","Thur","Lunch",2],
|
93
|
+
["91",28.97,3,"Male","Yes","Fri","Dinner",2],
|
94
|
+
["92",22.49,3.5,"Male","No","Fri","Dinner",2],
|
95
|
+
["93",5.75,1,"Female","Yes","Fri","Dinner",2],
|
96
|
+
["94",16.32,4.3,"Female","Yes","Fri","Dinner",2],
|
97
|
+
["95",22.75,3.25,"Female","No","Fri","Dinner",2],
|
98
|
+
["96",40.17,4.73,"Male","Yes","Fri","Dinner",4],
|
99
|
+
["97",27.28,4,"Male","Yes","Fri","Dinner",2],
|
100
|
+
["98",12.03,1.5,"Male","Yes","Fri","Dinner",2],
|
101
|
+
["99",21.01,3,"Male","Yes","Fri","Dinner",2],
|
102
|
+
["100",12.46,1.5,"Male","No","Fri","Dinner",2],
|
103
|
+
["101",11.35,2.5,"Female","Yes","Fri","Dinner",2],
|
104
|
+
["102",15.38,3,"Female","Yes","Fri","Dinner",2],
|
105
|
+
["103",44.3,2.5,"Female","Yes","Sat","Dinner",3],
|
106
|
+
["104",22.42,3.48,"Female","Yes","Sat","Dinner",2],
|
107
|
+
["105",20.92,4.08,"Female","No","Sat","Dinner",2],
|
108
|
+
["106",15.36,1.64,"Male","Yes","Sat","Dinner",2],
|
109
|
+
["107",20.49,4.06,"Male","Yes","Sat","Dinner",2],
|
110
|
+
["108",25.21,4.29,"Male","Yes","Sat","Dinner",2],
|
111
|
+
["109",18.24,3.76,"Male","No","Sat","Dinner",2],
|
112
|
+
["110",14.31,4,"Female","Yes","Sat","Dinner",2],
|
113
|
+
["111",14,3,"Male","No","Sat","Dinner",2],
|
114
|
+
["112",7.25,1,"Female","No","Sat","Dinner",1],
|
115
|
+
["113",38.07,4,"Male","No","Sun","Dinner",3],
|
116
|
+
["114",23.95,2.55,"Male","No","Sun","Dinner",2],
|
117
|
+
["115",25.71,4,"Female","No","Sun","Dinner",3],
|
118
|
+
["116",17.31,3.5,"Female","No","Sun","Dinner",2],
|
119
|
+
["117",29.93,5.07,"Male","No","Sun","Dinner",4],
|
120
|
+
["118",10.65,1.5,"Female","No","Thur","Lunch",2],
|
121
|
+
["119",12.43,1.8,"Female","No","Thur","Lunch",2],
|
122
|
+
["120",24.08,2.92,"Female","No","Thur","Lunch",4],
|
123
|
+
["121",11.69,2.31,"Male","No","Thur","Lunch",2],
|
124
|
+
["122",13.42,1.68,"Female","No","Thur","Lunch",2],
|
125
|
+
["123",14.26,2.5,"Male","No","Thur","Lunch",2],
|
126
|
+
["124",15.95,2,"Male","No","Thur","Lunch",2],
|
127
|
+
["125",12.48,2.52,"Female","No","Thur","Lunch",2],
|
128
|
+
["126",29.8,4.2,"Female","No","Thur","Lunch",6],
|
129
|
+
["127",8.52,1.48,"Male","No","Thur","Lunch",2],
|
130
|
+
["128",14.52,2,"Female","No","Thur","Lunch",2],
|
131
|
+
["129",11.38,2,"Female","No","Thur","Lunch",2],
|
132
|
+
["130",22.82,2.18,"Male","No","Thur","Lunch",3],
|
133
|
+
["131",19.08,1.5,"Male","No","Thur","Lunch",2],
|
134
|
+
["132",20.27,2.83,"Female","No","Thur","Lunch",2],
|
135
|
+
["133",11.17,1.5,"Female","No","Thur","Lunch",2],
|
136
|
+
["134",12.26,2,"Female","No","Thur","Lunch",2],
|
137
|
+
["135",18.26,3.25,"Female","No","Thur","Lunch",2],
|
138
|
+
["136",8.51,1.25,"Female","No","Thur","Lunch",2],
|
139
|
+
["137",10.33,2,"Female","No","Thur","Lunch",2],
|
140
|
+
["138",14.15,2,"Female","No","Thur","Lunch",2],
|
141
|
+
["139",16,2,"Male","Yes","Thur","Lunch",2],
|
142
|
+
["140",13.16,2.75,"Female","No","Thur","Lunch",2],
|
143
|
+
["141",17.47,3.5,"Female","No","Thur","Lunch",2],
|
144
|
+
["142",34.3,6.7,"Male","No","Thur","Lunch",6],
|
145
|
+
["143",41.19,5,"Male","No","Thur","Lunch",5],
|
146
|
+
["144",27.05,5,"Female","No","Thur","Lunch",6],
|
147
|
+
["145",16.43,2.3,"Female","No","Thur","Lunch",2],
|
148
|
+
["146",8.35,1.5,"Female","No","Thur","Lunch",2],
|
149
|
+
["147",18.64,1.36,"Female","No","Thur","Lunch",3],
|
150
|
+
["148",11.87,1.63,"Female","No","Thur","Lunch",2],
|
151
|
+
["149",9.78,1.73,"Male","No","Thur","Lunch",2],
|
152
|
+
["150",7.51,2,"Male","No","Thur","Lunch",2],
|
153
|
+
["151",14.07,2.5,"Male","No","Sun","Dinner",2],
|
154
|
+
["152",13.13,2,"Male","No","Sun","Dinner",2],
|
155
|
+
["153",17.26,2.74,"Male","No","Sun","Dinner",3],
|
156
|
+
["154",24.55,2,"Male","No","Sun","Dinner",4],
|
157
|
+
["155",19.77,2,"Male","No","Sun","Dinner",4],
|
158
|
+
["156",29.85,5.14,"Female","No","Sun","Dinner",5],
|
159
|
+
["157",48.17,5,"Male","No","Sun","Dinner",6],
|
160
|
+
["158",25,3.75,"Female","No","Sun","Dinner",4],
|
161
|
+
["159",13.39,2.61,"Female","No","Sun","Dinner",2],
|
162
|
+
["160",16.49,2,"Male","No","Sun","Dinner",4],
|
163
|
+
["161",21.5,3.5,"Male","No","Sun","Dinner",4],
|
164
|
+
["162",12.66,2.5,"Male","No","Sun","Dinner",2],
|
165
|
+
["163",16.21,2,"Female","No","Sun","Dinner",3],
|
166
|
+
["164",13.81,2,"Male","No","Sun","Dinner",2],
|
167
|
+
["165",17.51,3,"Female","Yes","Sun","Dinner",2],
|
168
|
+
["166",24.52,3.48,"Male","No","Sun","Dinner",3],
|
169
|
+
["167",20.76,2.24,"Male","No","Sun","Dinner",2],
|
170
|
+
["168",31.71,4.5,"Male","No","Sun","Dinner",4],
|
171
|
+
["169",10.59,1.61,"Female","Yes","Sat","Dinner",2],
|
172
|
+
["170",10.63,2,"Female","Yes","Sat","Dinner",2],
|
173
|
+
["171",50.81,10,"Male","Yes","Sat","Dinner",3],
|
174
|
+
["172",15.81,3.16,"Male","Yes","Sat","Dinner",2],
|
175
|
+
["173",7.25,5.15,"Male","Yes","Sun","Dinner",2],
|
176
|
+
["174",31.85,3.18,"Male","Yes","Sun","Dinner",2],
|
177
|
+
["175",16.82,4,"Male","Yes","Sun","Dinner",2],
|
178
|
+
["176",32.9,3.11,"Male","Yes","Sun","Dinner",2],
|
179
|
+
["177",17.89,2,"Male","Yes","Sun","Dinner",2],
|
180
|
+
["178",14.48,2,"Male","Yes","Sun","Dinner",2],
|
181
|
+
["179",9.6,4,"Female","Yes","Sun","Dinner",2],
|
182
|
+
["180",34.63,3.55,"Male","Yes","Sun","Dinner",2],
|
183
|
+
["181",34.65,3.68,"Male","Yes","Sun","Dinner",4],
|
184
|
+
["182",23.33,5.65,"Male","Yes","Sun","Dinner",2],
|
185
|
+
["183",45.35,3.5,"Male","Yes","Sun","Dinner",3],
|
186
|
+
["184",23.17,6.5,"Male","Yes","Sun","Dinner",4],
|
187
|
+
["185",40.55,3,"Male","Yes","Sun","Dinner",2],
|
188
|
+
["186",20.69,5,"Male","No","Sun","Dinner",5],
|
189
|
+
["187",20.9,3.5,"Female","Yes","Sun","Dinner",3],
|
190
|
+
["188",30.46,2,"Male","Yes","Sun","Dinner",5],
|
191
|
+
["189",18.15,3.5,"Female","Yes","Sun","Dinner",3],
|
192
|
+
["190",23.1,4,"Male","Yes","Sun","Dinner",3],
|
193
|
+
["191",15.69,1.5,"Male","Yes","Sun","Dinner",2],
|
194
|
+
["192",19.81,4.19,"Female","Yes","Thur","Lunch",2],
|
195
|
+
["193",28.44,2.56,"Male","Yes","Thur","Lunch",2],
|
196
|
+
["194",15.48,2.02,"Male","Yes","Thur","Lunch",2],
|
197
|
+
["195",16.58,4,"Male","Yes","Thur","Lunch",2],
|
198
|
+
["196",7.56,1.44,"Male","No","Thur","Lunch",2],
|
199
|
+
["197",10.34,2,"Male","Yes","Thur","Lunch",2],
|
200
|
+
["198",43.11,5,"Female","Yes","Thur","Lunch",4],
|
201
|
+
["199",13,2,"Female","Yes","Thur","Lunch",2],
|
202
|
+
["200",13.51,2,"Male","Yes","Thur","Lunch",2],
|
203
|
+
["201",18.71,4,"Male","Yes","Thur","Lunch",3],
|
204
|
+
["202",12.74,2.01,"Female","Yes","Thur","Lunch",2],
|
205
|
+
["203",13,2,"Female","Yes","Thur","Lunch",2],
|
206
|
+
["204",16.4,2.5,"Female","Yes","Thur","Lunch",2],
|
207
|
+
["205",20.53,4,"Male","Yes","Thur","Lunch",4],
|
208
|
+
["206",16.47,3.23,"Female","Yes","Thur","Lunch",3],
|
209
|
+
["207",26.59,3.41,"Male","Yes","Sat","Dinner",3],
|
210
|
+
["208",38.73,3,"Male","Yes","Sat","Dinner",4],
|
211
|
+
["209",24.27,2.03,"Male","Yes","Sat","Dinner",2],
|
212
|
+
["210",12.76,2.23,"Female","Yes","Sat","Dinner",2],
|
213
|
+
["211",30.06,2,"Male","Yes","Sat","Dinner",3],
|
214
|
+
["212",25.89,5.16,"Male","Yes","Sat","Dinner",4],
|
215
|
+
["213",48.33,9,"Male","No","Sat","Dinner",4],
|
216
|
+
["214",13.27,2.5,"Female","Yes","Sat","Dinner",2],
|
217
|
+
["215",28.17,6.5,"Female","Yes","Sat","Dinner",3],
|
218
|
+
["216",12.9,1.1,"Female","Yes","Sat","Dinner",2],
|
219
|
+
["217",28.15,3,"Male","Yes","Sat","Dinner",5],
|
220
|
+
["218",11.59,1.5,"Male","Yes","Sat","Dinner",2],
|
221
|
+
["219",7.74,1.44,"Male","Yes","Sat","Dinner",2],
|
222
|
+
["220",30.14,3.09,"Female","Yes","Sat","Dinner",4],
|
223
|
+
["221",12.16,2.2,"Male","Yes","Fri","Lunch",2],
|
224
|
+
["222",13.42,3.48,"Female","Yes","Fri","Lunch",2],
|
225
|
+
["223",8.58,1.92,"Male","Yes","Fri","Lunch",1],
|
226
|
+
["224",15.98,3,"Female","No","Fri","Lunch",3],
|
227
|
+
["225",13.42,1.58,"Male","Yes","Fri","Lunch",2],
|
228
|
+
["226",16.27,2.5,"Female","Yes","Fri","Lunch",2],
|
229
|
+
["227",10.09,2,"Female","Yes","Fri","Lunch",2],
|
230
|
+
["228",20.45,3,"Male","No","Sat","Dinner",4],
|
231
|
+
["229",13.28,2.72,"Male","No","Sat","Dinner",2],
|
232
|
+
["230",22.12,2.88,"Female","Yes","Sat","Dinner",2],
|
233
|
+
["231",24.01,2,"Male","Yes","Sat","Dinner",4],
|
234
|
+
["232",15.69,3,"Male","Yes","Sat","Dinner",3],
|
235
|
+
["233",11.61,3.39,"Male","No","Sat","Dinner",2],
|
236
|
+
["234",10.77,1.47,"Male","No","Sat","Dinner",2],
|
237
|
+
["235",15.53,3,"Male","Yes","Sat","Dinner",2],
|
238
|
+
["236",10.07,1.25,"Male","No","Sat","Dinner",2],
|
239
|
+
["237",12.6,1,"Male","Yes","Sat","Dinner",2],
|
240
|
+
["238",32.83,1.17,"Male","Yes","Sat","Dinner",2],
|
241
|
+
["239",35.83,4.67,"Female","No","Sat","Dinner",3],
|
242
|
+
["240",29.03,5.92,"Male","No","Sat","Dinner",3],
|
243
|
+
["241",27.18,2,"Female","Yes","Sat","Dinner",2],
|
244
|
+
["242",22.67,2,"Male","Yes","Sat","Dinner",2],
|
245
|
+
["243",17.82,1.75,"Male","No","Sat","Dinner",2],
|
246
|
+
["244",18.78,3,"Female","No","Thur","Dinner",2]
|
247
|
+
];
|