pivot.de.coffee
2.92 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
callWithJQuery = (pivotModule) ->
if typeof exports is "object" and typeof module is "object" # CommonJS
pivotModule require("jquery")
else if typeof define is "function" and define.amd # AMD
define ["jquery"], pivotModule
# Plain browser env
else
pivotModule jQuery
callWithJQuery ($) ->
nf = $.pivotUtilities.numberFormat
tpl = $.pivotUtilities.aggregatorTemplates
frFmt = nf(thousandsSep: " ", decimalSep: ",")
frFmtInt = nf(digitsAfterDecimal: 0, thousandsSep: " ", decimalSep: ",")
frFmtPct = nf(digitsAfterDecimal: 1, scaler: 100, suffix: "%", thousandsSep: " ", decimalSep: ",")
$.pivotUtilities.locales.de =
localeStrings:
renderError: "Bei der Darstellung der Pivot-Tabelle ist ein Fehler aufgetreten."
computeError: "Bei der Berechnung der Pivot-Tabelle ist ein Fehler aufgetreten."
uiRenderError: "Bei der Darstellung Oberfläche der Pivot-Tabelle ist ein Fehler aufgetreten."
selectAll: "Alles auswählen"
selectNone: "Nichts auswählen"
tooMany: "(zu viele für Liste)"
filterResults: "Ergebnisse filtern"
totals: "Gesamt"
vs: "gegen"
by: "pro"
aggregators:
"Anzahl": tpl.count(frFmtInt)
"Anzahl eindeutiger Werte": tpl.countUnique(frFmtInt)
"Liste eindeutiger Werte": tpl.listUnique(", ")
"Summe": tpl.sum(frFmt)
"Ganzzahlige Summe": tpl.sum(frFmtInt)
"Durchschnitt": tpl.average(frFmt)
"Minimum": tpl.min(frFmt)
"Maximum": tpl.max(frFmt)
"Summe über Summe": tpl.sumOverSum(frFmt)
"80% Obergrenze": tpl.sumOverSumBound80(true, frFmt)
"80% Untergrenze": tpl.sumOverSumBound80(false, frFmt)
"Summe als Anteil von Gesamt": tpl.fractionOf(tpl.sum(), "total", frFmtPct)
"Summe als Anteil von Zeile": tpl.fractionOf(tpl.sum(), "row", frFmtPct)
"Summe als Anteil von Spalte": tpl.fractionOf(tpl.sum(), "col", frFmtPct)
"Anzahl als Anteil von Gesamt": tpl.fractionOf(tpl.count(), "total", frFmtPct)
"Anzahl als Anteil von Zeile": tpl.fractionOf(tpl.count(), "row", frFmtPct)
"Anzahl als Anteil von Spalte": tpl.fractionOf(tpl.count(), "col", frFmtPct)
renderers:
"Tabelle": $.pivotUtilities.renderers["Table"]
"Tabelle mit Balkendiagramm": $.pivotUtilities.renderers["Table Barchart"]
"Heatmap": $.pivotUtilities.renderers["Heatmap"]
"Heatmap pro Zeile": $.pivotUtilities.renderers["Row Heatmap"]
"Heatmap pro Spalte": $.pivotUtilities.renderers["Col Heatmap"]