@datarailsshared/dr_renderer 1.2.233-dragons → 1.2.235-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
|
@@ -26,7 +26,6 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
26
26
|
const textColor = "#151a41";
|
|
27
27
|
const chartLabelColor = "#cfd7dd";
|
|
28
28
|
const HIGHCHARTS_FONT_FAMILY = 'Poppins';
|
|
29
|
-
let firstBarColor = null;
|
|
30
29
|
|
|
31
30
|
if(!Highcharts){
|
|
32
31
|
Highcharts = {
|
|
@@ -1468,15 +1467,12 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
|
1468
1467
|
|
|
1469
1468
|
const name = value.trend === 'total' ? value.formattedKey || value.key[0] : keys.join(highchartsRenderer.delimer);
|
|
1470
1469
|
let color = '';
|
|
1471
|
-
if (value.
|
|
1472
|
-
|
|
1473
|
-
color = waterfallOptions.colors.total;
|
|
1474
|
-
firstBarColor = waterfallOptions.colors.total;
|
|
1475
|
-
} else {
|
|
1476
|
-
color = value.color
|
|
1477
|
-
}
|
|
1470
|
+
if (value.color) {
|
|
1471
|
+
color = value.color;
|
|
1478
1472
|
} else {
|
|
1479
|
-
color = waterfallOptions.colors.total;
|
|
1473
|
+
if (value.trend === 'total') color = waterfallOptions.colors.total;
|
|
1474
|
+
if (value.trend === 'decrease') color = waterfallOptions.colors.decrease;
|
|
1475
|
+
if (value.trend === 'increase') color = waterfallOptions.colors.increase;
|
|
1480
1476
|
}
|
|
1481
1477
|
|
|
1482
1478
|
resultObject.data.push({
|