logitude-dashboard-library 1.4.66 → 1.4.67

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.
@@ -1,5 +1,6 @@
1
1
  export interface ChartInfo {
2
2
  theme: string;
3
+ scrollPosition: string;
3
4
  scrollHeight: string;
4
5
  scrollWidth: string;
5
6
  scrollPadding: string;
package/dist/index.js CHANGED
@@ -706,6 +706,7 @@ function getBarObject(seriesMeasures, widget) {
706
706
  var chart = getDefaultChartobject();
707
707
  chart.type = "scrollbar2d";
708
708
  var chartInfo = getDefaultChartInfo(widget);
709
+ chartInfo.scrollPosition = "right";
709
710
  chartInfo.scrollPadding = "8";
710
711
  chartInfo.flatScrollBars = "1";
711
712
  chartInfo.showPercentValues = "1";
@@ -721,6 +722,7 @@ function getStackedBarObject(seriesMeasures, widget) {
721
722
  var chart = getDefaultChartobject();
722
723
  chart.type = widget.IsStacked ? "scrollstackedbar2d" : "scrollbar2d";
723
724
  var chartInfo = getDefaultChartInfo(widget);
725
+ chartInfo.scrollPosition = "right";
724
726
  chartInfo.scrollPadding = "8";
725
727
  chartInfo.flatScrollBars = "1";
726
728
  chartInfo.showPercentValues = "1";
@@ -736,6 +738,7 @@ function getClusteredColumnObject(seriesMeasures, widget) {
736
738
  var chart = getDefaultChartobject();
737
739
  chart.type = widget.IsStacked ? "scrollstackedcolumn2d" : "scrollcolumn2d";
738
740
  var chartInfo = getDefaultChartInfo(widget);
741
+ chartInfo.scrollPosition = "top";
739
742
  chartInfo.scrollPadding = "8";
740
743
  chartInfo.flatScrollBars = "1";
741
744
  chartInfo.showPercentValues = "1";
@@ -749,8 +752,9 @@ function getClusteredColumnObject(seriesMeasures, widget) {
749
752
  }
750
753
  function getClusteredLineObject(seriesMeasures, widget) {
751
754
  var chart = getDefaultChartobject();
752
- chart.type = "msline";
755
+ chart.type = "scrollline2d";
753
756
  var chartInfo = getDefaultChartInfo(widget);
757
+ chartInfo.scrollPosition = "top";
754
758
  chartInfo.scrollPadding = "8";
755
759
  chartInfo.flatScrollBars = "1";
756
760
  chartInfo.showPercentValues = "1";
@@ -766,6 +770,7 @@ function getLineObject(seriesMeasures, widget) {
766
770
  var chart = getDefaultChartobject();
767
771
  chart.type = "scrollline2d";
768
772
  var chartInfo = getDefaultChartInfo(widget);
773
+ chartInfo.scrollPosition = "top";
769
774
  chartInfo.scrollPadding = "8";
770
775
  chartInfo.flatScrollBars = "1";
771
776
  chartInfo.showPercentValues = "1";
@@ -818,6 +823,7 @@ function getColumnObject(seriesMeasures, widget) {
818
823
  chartInfo.flatScrollBars = "1";
819
824
  chartInfo.showPercentValues = "1";
820
825
  chartInfo.showLegend = widget.ShowLegend ? '1' : '0';
826
+ chartInfo.scrollPosition = "top";
821
827
  setLineDash(chartInfo);
822
828
  chartInfo.chartTopMargin = "20";
823
829
  chartInfo.chartBottomMargin = "10";