logitude-dashboard-library 3.2.13 → 3.2.14

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/dist/index.js CHANGED
@@ -2146,6 +2146,13 @@ function setDualyAxis(chartInfo, widget, seriesMeasures) {
2146
2146
  chartInfo.pYAxisNameBorderPadding = 0;
2147
2147
  chartInfo.sYAxisNameBorderPadding = 0;
2148
2148
  chartInfo.sNumberSuffix = isSecondMeasureTypePercentage(widget) ? "%" : null;
2149
+
2150
+ if (isNullOrUndefined(seriesMeasures)) {
2151
+ chartInfo.pYAxisName = "";
2152
+ chartInfo.sYAxisname = "";
2153
+ return;
2154
+ }
2155
+
2149
2156
  var textLength = Math.max(seriesMeasures[0].Name.length, seriesMeasures[1].Name.length);
2150
2157
  chartInfo.pYAxisName = getTitle((_seriesMeasures$ = seriesMeasures[0]) === null || _seriesMeasures$ === void 0 ? void 0 : _seriesMeasures$.Name, textLength);
2151
2158
  chartInfo.sYAxisname = getTitle((_seriesMeasures$2 = seriesMeasures[1]) === null || _seriesMeasures$2 === void 0 ? void 0 : _seriesMeasures$2.Name, textLength);