@datarailsshared/dr_renderer 1.2.119 → 1.2.122
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 +1 -1
- package/src/highcharts_renderer.js +11 -2
package/package.json
CHANGED
|
@@ -808,9 +808,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
808
808
|
if (isNewAngular) {
|
|
809
809
|
const isPieChart = chartOptions.chart && chartOptions.chart.type === 'pie';
|
|
810
810
|
const x = isPieChart ? 0 :
|
|
811
|
-
chartOptions.yAxis.title.text || chartOptions.yAxis.title.autoylabel ? -60 : -40;
|
|
811
|
+
chartOptions.yAxis && chartOptions.yAxis.title && (chartOptions.yAxis.title.text || chartOptions.yAxis.title.autoylabel) ? -60 : -40;
|
|
812
812
|
const y = isPieChart ? 27 :
|
|
813
|
-
chartOptions.xAxis.title.text || chartOptions.xAxis.title.autoxlabel ? 65 : 43;
|
|
813
|
+
chartOptions.xAxis && chartOptions.xAxis.title && (chartOptions.xAxis.title.text || chartOptions.xAxis.title.autoxlabel) ? 65 : 43;
|
|
814
814
|
chartOptions.drilldown.breadcrumbs = {
|
|
815
815
|
formatter: () => '< Back',
|
|
816
816
|
showFullPath: false,
|
|
@@ -6628,6 +6628,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
6628
6628
|
'text-widget': {
|
|
6629
6629
|
name: 'Text ',
|
|
6630
6630
|
label: 'Text',
|
|
6631
|
+
title: 'Display any type of rich text and media including tables, lists, images and more.'
|
|
6631
6632
|
},
|
|
6632
6633
|
'table_only': {
|
|
6633
6634
|
name: 'Table ',
|
|
@@ -7062,6 +7063,7 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
7062
7063
|
class: 'google-visualization-charteditor-thumbs-table',
|
|
7063
7064
|
render: highchartsRenderer.ptRenderBasicLine,
|
|
7064
7065
|
suboptions: [
|
|
7066
|
+
highchartsRenderer.suboptions["subtitle"],
|
|
7065
7067
|
highchartsRenderer.suboptions["widget_library"],
|
|
7066
7068
|
highchartsRenderer.suboptions["table_options_transpose"],
|
|
7067
7069
|
highchartsRenderer.suboptions["table_design_options"],
|
|
@@ -7690,6 +7692,13 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
7690
7692
|
};
|
|
7691
7693
|
|
|
7692
7694
|
highchartsRenderer.getWidgetDataSorters = function (res, widget, defaultDateFormat) {
|
|
7695
|
+
if ($.pivotUtilities && !$.pivotUtilities.additionalFieldsList) {
|
|
7696
|
+
$.pivotUtilities.additionalFieldsList = [
|
|
7697
|
+
{key: 'DR_Average', name: 'DR_Average'},
|
|
7698
|
+
{key: 'DR_Others', name: _.get(widget.options, "total_value_options.filter_options.filteredOutFieldName") || 'Others'}
|
|
7699
|
+
];
|
|
7700
|
+
}
|
|
7701
|
+
|
|
7693
7702
|
var datesFields = [];
|
|
7694
7703
|
datesFields = lodash.filter(widget.rows, element => element.type == 'Date');
|
|
7695
7704
|
datesFields = datesFields.concat(lodash.filter(widget.cols, element => element.type == 'Date'));
|