logitude-dashboard-library 1.4.45 → 1.4.46
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 +4 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +4 -2
- package/dist/index.modern.js.map +1 -1
- package/dist/types/widget.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -593,7 +593,7 @@ function getBarObject(seriesMeasures, widget) {
|
|
|
593
593
|
}
|
|
594
594
|
function getStackedBarObject(seriesMeasures, widget) {
|
|
595
595
|
var chart = getDefaultChartobject();
|
|
596
|
-
chart.type = "scrollstackedbar2d";
|
|
596
|
+
chart.type = widget.IsStacked ? "scrollstackedbar2d" : "scrollbar2d";
|
|
597
597
|
var chartInfo = getDefaultChartInfo();
|
|
598
598
|
chartInfo.scrollPadding = "8";
|
|
599
599
|
chartInfo.flatScrollBars = "1";
|
|
@@ -603,12 +603,13 @@ function getStackedBarObject(seriesMeasures, widget) {
|
|
|
603
603
|
chartInfo.chartTopMargin = "10";
|
|
604
604
|
chartInfo.chartBottomMargin = "10";
|
|
605
605
|
chartInfo.showLegend = "1";
|
|
606
|
+
chartInfo.legendPosition = widget.LegendPosition ? widget.LegendPosition : "bottom";
|
|
606
607
|
chart.dataSource = getStackedDataSource(chartInfo, seriesMeasures, widget);
|
|
607
608
|
return chart;
|
|
608
609
|
}
|
|
609
610
|
function getClusteredColumnObject(seriesMeasures, widget) {
|
|
610
611
|
var chart = getDefaultChartobject();
|
|
611
|
-
chart.type = "
|
|
612
|
+
chart.type = widget.IsStacked ? "scrollstackedcolumn2d" : "scrollcolumn2d";
|
|
612
613
|
var chartInfo = getDefaultChartInfo();
|
|
613
614
|
chartInfo.scrollPadding = "8";
|
|
614
615
|
chartInfo.flatScrollBars = "1";
|
|
@@ -618,6 +619,7 @@ function getClusteredColumnObject(seriesMeasures, widget) {
|
|
|
618
619
|
chartInfo.chartTopMargin = "10";
|
|
619
620
|
chartInfo.chartBottomMargin = "10";
|
|
620
621
|
chartInfo.showLegend = "1";
|
|
622
|
+
chartInfo.legendPosition = widget.LegendPosition ? widget.LegendPosition : "bottom";
|
|
621
623
|
chart.dataSource = getStackedDataSource(chartInfo, seriesMeasures, widget);
|
|
622
624
|
return chart;
|
|
623
625
|
}
|