logitude-dashboard-library 1.4.53 → 1.4.54

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
@@ -795,18 +795,6 @@ function getDefaultChartobject() {
795
795
  chart.dataFormat = "json";
796
796
  return chart;
797
797
  }
798
- var getXaxisTitle = function getXaxisTitle(widget) {
799
- if (widget.TypeCode == 'bar') {
800
- return widget.ShowYAxisTitle ? widget.YAxisTitle || "" : "";
801
- }
802
- return widget.XAxisTitle || "";
803
- };
804
- var getYaxisTitle = function getYaxisTitle(widget) {
805
- if (widget.TypeCode == 'bar') {
806
- return widget.ShowXAxisTitle ? widget.XAxisTitle || "" : "";
807
- }
808
- return widget.YAxisTitle || "";
809
- };
810
798
  function getDefaultChartInfo(widget) {
811
799
  var chart = {};
812
800
  chart.theme = "fusion";
@@ -832,8 +820,8 @@ function getDefaultChartInfo(widget) {
832
820
  chart.yAxisNameFont = defautFont;
833
821
  chart.yAxisNameFontSize = defautFontSize;
834
822
  chart.yAxisNameFontColor = defautColor;
835
- chart.xAxisName = widget.ShowXAxisTitle && widget.XAxisTitle ? getXaxisTitle(widget) : "";
836
- chart.yAxisName = widget.ShowYAxisTitle && widget.YAxisTitle ? getYaxisTitle(widget) : "";
823
+ chart.xAxisName = widget.ShowXAxisTitle && widget.XAxisTitle ? widget.XAxisTitle : "";
824
+ chart.yAxisName = widget.ShowYAxisTitle && widget.YAxisTitle ? widget.YAxisTitle : "";
837
825
  chart.labelDisplay = widget.XAxisLabelsDisplay ? widget.XAxisLabelsDisplay : "Auto";
838
826
  chart.slantLabel = "1";
839
827
  chart.labelFontSize = widget.XAxisLabelsFontSize ? widget.XAxisLabelsFontSize + "" : "10";