logitude-dashboard-library 1.4.59 → 1.4.60

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
@@ -552,7 +552,8 @@ function buildDataSet(seriesMeasures, widget) {
552
552
  anchorBorderColor: "#FFFFFF",
553
553
  anchorBorderThickness: "2",
554
554
  anchorHoverColor: color,
555
- renderAs: seriesMeasure.RenderAs == "default" ? null : seriesMeasure.RenderAs
555
+ parentyaxis: seriesMeasure.PlotasLineChart && seriesMeasure.PlotonSecondAxis ? 'S' : "P",
556
+ renderAs: seriesMeasure.PlotasLineChart ? 'line' : "column"
556
557
  });
557
558
  seriesPosition++;
558
559
  });
@@ -900,7 +901,7 @@ function setDualyAxis(chartInfo, widget, seriesMeasures) {
900
901
  if (!widget) return;
901
902
  if (!widget.WidgetMeasures) return;
902
903
  if (widget.WidgetMeasures.length < 2) return;
903
- if (widget.WidgetMeasures[1].YAxisType != 'dual') return;
904
+ if (!widget.WidgetMeasures[1].PlotonSecondAxis) return;
904
905
  chartInfo.showSecondaryLimits = "1";
905
906
  chartInfo.showDivLineSecondaryValue = "1";
906
907
  chartInfo.pYAxisNameBorderPadding = 0;