logitude-dashboard-library 3.1.42 → 3.1.43

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
@@ -2152,6 +2152,13 @@ function setDualyAxis(chartInfo, widget, seriesMeasures) {
2152
2152
  chartInfo.pYAxisNameBorderPadding = 0;
2153
2153
  chartInfo.sYAxisNameBorderPadding = 0;
2154
2154
  chartInfo.sNumberSuffix = isSecondMeasureTypePercentage(widget) ? "%" : null;
2155
+
2156
+ if (isNullOrUndefined(seriesMeasures)) {
2157
+ chartInfo.pYAxisName = "";
2158
+ chartInfo.sYAxisname = "";
2159
+ return;
2160
+ }
2161
+
2155
2162
  var textLength = Math.max(seriesMeasures[0].Name.length, seriesMeasures[1].Name.length);
2156
2163
  chartInfo.pYAxisName = getTitle((_seriesMeasures$ = seriesMeasures[0]) === null || _seriesMeasures$ === void 0 ? void 0 : _seriesMeasures$.Name, textLength);
2157
2164
  chartInfo.sYAxisname = getTitle((_seriesMeasures$2 = seriesMeasures[1]) === null || _seriesMeasures$2 === void 0 ? void 0 : _seriesMeasures$2.Name, textLength);