@datarailsshared/dr_renderer 1.2.175-dragons → 1.2.177-dragons

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/dr_renderer",
3
- "version": "1.2.175-dragons",
3
+ "version": "1.2.177-dragons",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -1013,6 +1013,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1013
1013
  if (row_n_keys.length == 0)
1014
1014
  row_n_keys.push([]);
1015
1015
 
1016
+ if (!col_n_keys.length && lodash.get(chartOptions, "chart.type") === 'kpi' && isUniqueVals) {
1017
+ col_n_keys.push([]);
1018
+ }
1019
+
1016
1020
  var i = 0;
1017
1021
  var variat_serias = null;
1018
1022
  const n = col_n_keys.length;
@@ -1407,7 +1411,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
1407
1411
 
1408
1412
  resultObject.data.push({
1409
1413
  y: pivotData.colTotals[col_n_value].sum,
1410
- name: lodash.unescape(col_n_value),
1414
+ name: lodash.unescape(col_n_value).replace('DR_Others', highchartsRenderer.getOthersName(opts)),
1411
1415
  isSum: !!col_index,
1412
1416
  isTotal: true,
1413
1417
  color: colorOptions.total,
@@ -2097,7 +2101,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
2097
2101
  var kpioptions = opts.chartOptions ? opts.chartOptions : highchartsRenderer.getDefaultValueForChart('kpi');
2098
2102
 
2099
2103
  chartOptions.chart = {
2100
- type: ''
2104
+ type: 'kpi'
2101
2105
  };
2102
2106
  if (disableAnimation) {
2103
2107
  chartOptions.chart.animation = false;