logitude-dashboard-library 1.4.78 → 1.4.79
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 +8 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +8 -7
- package/dist/index.modern.js.map +1 -1
- package/dist/types/widget.d.ts +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1014,7 +1014,7 @@ function getBarObject(seriesMeasures, widget) {
|
|
|
1014
1014
|
chartInfo.scrollPosition = "right";
|
|
1015
1015
|
chartInfo.scrollPadding = "8";
|
|
1016
1016
|
chartInfo.flatScrollBars = "1";
|
|
1017
|
-
chartInfo.showPercentValues = "1";
|
|
1017
|
+
chartInfo.showPercentValues = widget.ShowValueAsNumber ? "0" : "1";
|
|
1018
1018
|
chartInfo.showLegend = widget.ShowLegend ? '1' : '0';
|
|
1019
1019
|
setLineDash(chartInfo);
|
|
1020
1020
|
chartInfo.chartTopMargin = "10";
|
|
@@ -1037,7 +1037,7 @@ function getStackedBarObject(seriesMeasures, widget) {
|
|
|
1037
1037
|
chartInfo.scrollPosition = "right";
|
|
1038
1038
|
chartInfo.scrollPadding = "8";
|
|
1039
1039
|
chartInfo.flatScrollBars = "1";
|
|
1040
|
-
chartInfo.showPercentValues = "1";
|
|
1040
|
+
chartInfo.showPercentValues = widget.ShowValueAsNumber ? "0" : "1";
|
|
1041
1041
|
chartInfo.showLegend = widget.ShowLegend ? '1' : '0';
|
|
1042
1042
|
setLineDash(chartInfo);
|
|
1043
1043
|
chartInfo.chartTopMargin = "10";
|
|
@@ -1060,7 +1060,7 @@ function getClusteredColumnObject(seriesMeasures, widget) {
|
|
|
1060
1060
|
chartInfo.scrollPosition = "top";
|
|
1061
1061
|
chartInfo.scrollPadding = "8";
|
|
1062
1062
|
chartInfo.flatScrollBars = "1";
|
|
1063
|
-
chartInfo.showPercentValues = "1";
|
|
1063
|
+
chartInfo.showPercentValues = widget.ShowValueAsNumber ? "0" : "1";
|
|
1064
1064
|
chartInfo.showLegend = widget.ShowLegend ? '1' : '0';
|
|
1065
1065
|
setLineDash(chartInfo);
|
|
1066
1066
|
chartInfo.chartTopMargin = "10";
|
|
@@ -1077,7 +1077,7 @@ function getClusteredLineObject(seriesMeasures, widget) {
|
|
|
1077
1077
|
chartInfo.scrollPosition = "top";
|
|
1078
1078
|
chartInfo.scrollPadding = "8";
|
|
1079
1079
|
chartInfo.flatScrollBars = "1";
|
|
1080
|
-
chartInfo.showPercentValues = "1";
|
|
1080
|
+
chartInfo.showPercentValues = widget.ShowValueAsNumber ? "0" : "1";
|
|
1081
1081
|
chartInfo.showLegend = widget.ShowLegend ? '1' : '0';
|
|
1082
1082
|
setLineDash(chartInfo);
|
|
1083
1083
|
chartInfo.chartTopMargin = "10";
|
|
@@ -1094,7 +1094,7 @@ function getLineObject(seriesMeasures, widget) {
|
|
|
1094
1094
|
chartInfo.scrollPosition = "top";
|
|
1095
1095
|
chartInfo.scrollPadding = "8";
|
|
1096
1096
|
chartInfo.flatScrollBars = "1";
|
|
1097
|
-
chartInfo.showPercentValues = "1";
|
|
1097
|
+
chartInfo.showPercentValues = widget.ShowValueAsNumber ? "0" : "1";
|
|
1098
1098
|
chartInfo.showLegend = widget.ShowLegend ? '1' : '0';
|
|
1099
1099
|
setLineDash(chartInfo);
|
|
1100
1100
|
chartInfo.chartTopMargin = "20";
|
|
@@ -1149,7 +1149,7 @@ function getColumnObject(seriesMeasures, widget) {
|
|
|
1149
1149
|
var chartInfo = getDefaultChartInfo(widget);
|
|
1150
1150
|
chartInfo.scrollPadding = "8";
|
|
1151
1151
|
chartInfo.flatScrollBars = "1";
|
|
1152
|
-
chartInfo.showPercentValues = "1";
|
|
1152
|
+
chartInfo.showPercentValues = widget.ShowValueAsNumber ? "0" : "1";
|
|
1153
1153
|
chartInfo.showLegend = widget.ShowLegend ? '1' : '0';
|
|
1154
1154
|
chartInfo.scrollPosition = "top";
|
|
1155
1155
|
setLineDash(chartInfo);
|
|
@@ -1274,13 +1274,14 @@ function setOnChartLegend(chart, widget) {
|
|
|
1274
1274
|
chart.scrollShowButtons = "0";
|
|
1275
1275
|
chart.legendCaptionAlignment = "right";
|
|
1276
1276
|
chart.alignLegendWithCanvas = "1";
|
|
1277
|
-
chart.showPercentValues = "0";
|
|
1277
|
+
chart.showPercentValues = widget.ShowValueAsNumber ? "0" : "1";
|
|
1278
1278
|
chart.chartRightMargin = "20";
|
|
1279
1279
|
}
|
|
1280
1280
|
|
|
1281
1281
|
function setChartInLegend(chart, widget) {
|
|
1282
1282
|
if (widget.LabelsPosition == 'InLegend') return;
|
|
1283
1283
|
chart.pieRadius = "70%";
|
|
1284
|
+
chart.showPercentValues = widget.ShowValueAsNumber ? "0" : "1";
|
|
1284
1285
|
}
|
|
1285
1286
|
|
|
1286
1287
|
function setDualyAxis(chartInfo, widget, seriesMeasures) {
|