@datarailsshared/dr_renderer 1.2.383 → 1.2.384
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
@@ -1864,7 +1864,10 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
1864
1864
|
|
1865
1865
|
ob.name = highchartsRenderer.getFormattedColKey(ob.initialName, pivotData);
|
1866
1866
|
|
1867
|
-
|
1867
|
+
// change negative to 0 - fix for highcharts v8.2.2 used in export widget service
|
1868
|
+
// it displays negative values as empty segments in version <= 8.2.2
|
1869
|
+
ob.y = val >= 0 || chartOptions.chart.type !== 'pie' ? val : 0;
|
1870
|
+
|
1868
1871
|
if (!isNaN(key))
|
1869
1872
|
key = Number(key)
|
1870
1873
|
ob.drilldown = key;
|
@@ -2090,7 +2093,13 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
|
|
2090
2093
|
} else {
|
2091
2094
|
agg = pivotData.getAggregator([], key);
|
2092
2095
|
}
|
2093
|
-
|
2096
|
+
|
2097
|
+
const val = agg.value();
|
2098
|
+
|
2099
|
+
// change negative to 0 - fix for highcharts v8.2.2 used in export widget service
|
2100
|
+
// it displays negative values as empty segments in version <= 8.2.2
|
2101
|
+
ob.y = val >= 0 ? val : 0;
|
2102
|
+
|
2094
2103
|
ob.name = highchartsRenderer.getFormattedColKey(ob.initialName, pivotData);
|
2095
2104
|
pie_series.push(ob);
|
2096
2105
|
});
|