@datarailsshared/dr_renderer 1.2.139-tigers → 1.2.141-tigers
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/dr_pivottable.js
CHANGED
|
@@ -1437,7 +1437,7 @@ let initDRPivotTable = function($, window, document) {
|
|
|
1437
1437
|
const val = totalAggregator.value();
|
|
1438
1438
|
const formattedValue = getFormattedNumber(val, totalAggregator, opts)
|
|
1439
1439
|
|
|
1440
|
-
|
|
1440
|
+
const className = "pvtVal col" + i + " colcol" + 0;
|
|
1441
1441
|
const td = createElement("td", className, formattedValue, {
|
|
1442
1442
|
"data-value": val,
|
|
1443
1443
|
"data-for": "col" + 0,
|
|
@@ -1457,7 +1457,7 @@ let initDRPivotTable = function($, window, document) {
|
|
|
1457
1457
|
const val = totalAggregator.value();
|
|
1458
1458
|
const formattedValue = getFormattedNumber(val, totalAggregator, opts)
|
|
1459
1459
|
|
|
1460
|
-
|
|
1460
|
+
const className = "pvtVal col" + i + " colcol" + 0;
|
|
1461
1461
|
const td = createElement("td", className, formattedValue, {
|
|
1462
1462
|
"data-value": val,
|
|
1463
1463
|
"data-for": "col" + 0,
|
|
@@ -7780,7 +7780,14 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
7780
7780
|
}
|
|
7781
7781
|
lodash.forEach(datesFields, function (row) {
|
|
7782
7782
|
row.values = lodash.uniq(row.values);
|
|
7783
|
-
|
|
7783
|
+
|
|
7784
|
+
const isTimestampDateField = row.type === 'Date' && typeof row.values[0] === 'number';
|
|
7785
|
+
if (isTimestampDateField) {
|
|
7786
|
+
row.values = row.values.sort((a, b) => a - b);
|
|
7787
|
+
} else {
|
|
7788
|
+
row.values = row.values.sort();
|
|
7789
|
+
}
|
|
7790
|
+
|
|
7784
7791
|
if (row.sorting && row.sorting.type == "largestToSmallest") {
|
|
7785
7792
|
row.values = lodash.reverse(row.values);
|
|
7786
7793
|
}
|