@datarailsshared/dr_renderer 1.2.392 → 1.2.393

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.392",
3
+ "version": "1.2.393",
4
4
  "description": "DataRails charts and tables renderer",
5
5
  "keywords": [
6
6
  "datarails",
@@ -629,8 +629,9 @@ let getHighchartsRenderer = function ($, document, Highcharts, default_colors, h
629
629
 
630
630
  if (!is_drill_down_pie && labelOptions.show_out_of_x_axis) {
631
631
  const axisTotal = pivotData.getAggregator([], cols).value();
632
- const outOfAxisPercentages = axisTotal ? Math.round(value / axisTotal * 100) + '%' : '';
633
- outOfAxisPercentages && percentageArray.push(outOfAxisPercentages);
632
+ if (value && axisTotal) {
633
+ percentageArray.push(Math.round(value / axisTotal * 100) + '%');
634
+ }
634
635
  }
635
636
 
636
637
  if (labelOptions.show_out_of_data_series) {