@datarailsshared/dr_renderer 1.4.87 → 1.4.94
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
@@ -7367,6 +7367,12 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
7367
7367
|
value_name: 'formula',
|
7368
7368
|
element_label: 'Formula',
|
7369
7369
|
default_value: 'x2-x1'
|
7370
|
+
},
|
7371
|
+
{
|
7372
|
+
element_type: 'input',
|
7373
|
+
value_name: 'color',
|
7374
|
+
element_label: 'Color',
|
7375
|
+
default_value: ''
|
7370
7376
|
}, {
|
7371
7377
|
element_type: 'radio',
|
7372
7378
|
value_name: 'chart',
|
@@ -10007,11 +10013,11 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
10007
10013
|
e.point.name = e.point.initialName;
|
10008
10014
|
e.point.series.name = lodash.get(e.point.series, 'userOptions.initialName', e.point.series.name);
|
10009
10015
|
const seriesData = lodash.get(e.point.series, 'userOptions.data');
|
10010
|
-
const
|
10016
|
+
const initialSeriesName = seriesData
|
10011
10017
|
? lodash.find(seriesData, obj => obj.name === e.point.name)
|
10012
10018
|
: null;
|
10013
|
-
if (
|
10014
|
-
e.point.series.name =
|
10019
|
+
if (initialSeriesName && initialSeriesName.type && ['SQ_Actuals', 'Forecast'].includes(initialSeriesName.type)) {
|
10020
|
+
e.point.series.name = 'Forecast';
|
10015
10021
|
}
|
10016
10022
|
lodash.set(e, 'point.category.userOptions', e.point.initialName.toString().split(highchartsRenderer.delimer));
|
10017
10023
|
}
|