@sapui5/sap.viz 1.127.0 → 1.127.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.viz",
3
- "version": "1.127.0",
3
+ "version": "1.127.2",
4
4
  "description": "SAPUI5 Library sap.viz",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -5,7 +5,7 @@
5
5
  <vendor>SAP SE</vendor>
6
6
  <copyright>SAPUI5
7
7
  * (c) Copyright 2009-2024 SAP SE. All rights reserved.</copyright>
8
- <version>1.127.0</version>
8
+ <version>1.127.2</version>
9
9
 
10
10
  <documentation>Chart controls based on the SAP BI CVOM charting library</documentation>
11
11
 
@@ -263,7 +263,7 @@ sap.ui.define([
263
263
 
264
264
  //@@end generated-elements-list
265
265
  ],
266
- version: "1.127.0"
266
+ version: "1.127.2"
267
267
  });
268
268
 
269
269
  //@@begin generated-enums
@@ -12166,6 +12166,10 @@ return {
12166
12166
  ],
12167
12167
  "serializable": false
12168
12168
  },
12169
+ "plotArea.dataLabel.distributeByLength": {
12170
+ "access": "internal",
12171
+ "defaultValue": false
12172
+ },
12169
12173
  "plotArea.dataLabel.formatString": null,
12170
12174
  "plotArea.dataLabel.hideWhenOverlap": false,
12171
12175
  "plotArea.dataLabel.renderer": null,
@@ -12325,6 +12329,10 @@ return {
12325
12329
  },
12326
12330
  "legend.marker.shape": "squareWithRadius",
12327
12331
  "plotArea.background.gradientDirection": "horizontal",
12332
+ "plotArea.dataLabel.distributeByLength": {
12333
+ "access": "internal",
12334
+ "defaultValue": false
12335
+ },
12328
12336
  "plotArea.dataLabel.position": "outsideFirst",
12329
12337
  "plotArea.dataLabel.style.colorRange": "all",
12330
12338
  "plotArea.dataLabel.type": "value",
@@ -12558,6 +12566,10 @@ return {
12558
12566
  "defaultValue": false
12559
12567
  },
12560
12568
  "legend.marker.shape": "squareWithRadius",
12569
+ "plotArea.dataLabel.distributeByLength": {
12570
+ "access": "internal",
12571
+ "defaultValue": false
12572
+ },
12561
12573
  "plotArea.dataLabel.position": "outside",
12562
12574
  "plotArea.dataLabel.style.colorRange": "all",
12563
12575
  "plotArea.dataPoint.savingMode": true,
@@ -12663,6 +12675,10 @@ return {
12663
12675
  "legend.groupByShape": false,
12664
12676
  "legend.marker.shape": "squareWithRadius",
12665
12677
  "legend.marker.showLine": false,
12678
+ "plotArea.dataLabel.distributeByLength": {
12679
+ "access": "internal",
12680
+ "defaultValue": false
12681
+ },
12666
12682
  "plotArea.dataPointSize.max": 96,
12667
12683
  "plotArea.dataPointSize.min": 24,
12668
12684
  "plotArea.dataShape.primaryAxis": [
@@ -12776,6 +12792,10 @@ return {
12776
12792
  },
12777
12793
  "legend.marker.shape": "squareWithRadius",
12778
12794
  "plotArea.background.gradientDirection": "horizontal",
12795
+ "plotArea.dataLabel.distributeByLength": {
12796
+ "access": "internal",
12797
+ "defaultValue": false
12798
+ },
12779
12799
  "plotArea.dataLabel.position": "outsideFirst",
12780
12800
  "plotArea.dataLabel.style.colorRange": "all",
12781
12801
  "plotArea.dataLabel.type": "value",
@@ -12888,6 +12908,10 @@ return {
12888
12908
  "defaultValue": false
12889
12909
  },
12890
12910
  "legend.marker.shape": "squareWithRadius",
12911
+ "plotArea.dataLabel.distributeByLength": {
12912
+ "access": "internal",
12913
+ "defaultValue": false
12914
+ },
12891
12915
  "plotArea.dataLabel.position": "outside",
12892
12916
  "plotArea.dataLabel.style.colorRange": "all",
12893
12917
  "plotArea.dataPoint.savingMode": true,
@@ -13005,6 +13029,10 @@ return {
13005
13029
  "legend.groupByShape": false,
13006
13030
  "legend.marker.shape": "squareWithRadius",
13007
13031
  "legend.marker.showLine": false,
13032
+ "plotArea.dataLabel.distributeByLength": {
13033
+ "access": "internal",
13034
+ "defaultValue": false
13035
+ },
13008
13036
  "plotArea.dataPointSize.max": 96,
13009
13037
  "plotArea.dataPointSize.min": 24,
13010
13038
  "plotArea.dataShape.primaryAxis": [
@@ -13127,6 +13155,10 @@ return {
13127
13155
  "legend.marker.shape": "squareWithRadius",
13128
13156
  "legend.marker.showLine": false,
13129
13157
  "plotArea.background.gradientDirection": "horizontal",
13158
+ "plotArea.dataLabel.distributeByLength": {
13159
+ "access": "internal",
13160
+ "defaultValue": false
13161
+ },
13130
13162
  "plotArea.dataPointSize.max": 96,
13131
13163
  "plotArea.dataPointSize.min": 24,
13132
13164
  "plotArea.dataShape.primaryAxis": [
@@ -13387,6 +13419,10 @@ return {
13387
13419
  "plotArea.callout.left": null,
13388
13420
  "plotArea.callout.line.color": "#343434",
13389
13421
  "plotArea.callout.top": null,
13422
+ "plotArea.dataLabel.distributeByLength": {
13423
+ "access": "internal",
13424
+ "defaultValue": false
13425
+ },
13390
13426
  "plotArea.isSmoothed": false,
13391
13427
  "plotArea.lineRenderer": null,
13392
13428
  "plotArea.lineStyle": {
@@ -13793,6 +13829,10 @@ return {
13793
13829
  "interaction.zoom.direction": "categoryAxis",
13794
13830
  "legend.marker.shape": "squareWithRadius",
13795
13831
  "legend.marker.showLine": false,
13832
+ "plotArea.dataLabel.distributeByLength": {
13833
+ "access": "internal",
13834
+ "defaultValue": false
13835
+ },
13796
13836
  "plotArea.dataLabel.position": "outside",
13797
13837
  "plotArea.dataLabel.style.colorRange": "all",
13798
13838
  "plotArea.dataPoint.invalidity": "break",
@@ -14729,6 +14769,10 @@ return {
14729
14769
  ],
14730
14770
  "serializable": false
14731
14771
  },
14772
+ "plotArea.dataLabel.distributeByLength": {
14773
+ "access": "internal",
14774
+ "defaultValue": false
14775
+ },
14732
14776
  "plotArea.dataLabel.formatString": null,
14733
14777
  "plotArea.dataLabel.hideWhenOverlap": false,
14734
14778
  "plotArea.dataLabel.renderer": null,
@@ -14922,6 +14966,10 @@ return {
14922
14966
  "plotArea.callout.left": null,
14923
14967
  "plotArea.callout.line.color": "#343434",
14924
14968
  "plotArea.callout.top": null,
14969
+ "plotArea.dataLabel.distributeByLength": {
14970
+ "access": "internal",
14971
+ "defaultValue": false
14972
+ },
14925
14973
  "plotArea.isFixedDataPointSize": false,
14926
14974
  "plotArea.isSmoothed": false,
14927
14975
  "plotArea.lineRenderer": null,
@@ -15844,6 +15892,10 @@ return {
15844
15892
  "interaction.syncValueAxis": false,
15845
15893
  "interaction.zoom.direction": "categoryAxis",
15846
15894
  "legend.marker.shape": "squareWithRadius",
15895
+ "plotArea.dataLabel.distributeByLength": {
15896
+ "access": "internal",
15897
+ "defaultValue": false
15898
+ },
15847
15899
  "plotArea.dataLabel.position": "outside",
15848
15900
  "plotArea.dataLabel.style.colorRange": "all",
15849
15901
  "plotArea.dataPoint.savingMode": true,
@@ -15937,6 +15989,10 @@ return {
15937
15989
  "interaction.zoom.direction": "categoryAxis",
15938
15990
  "legend.marker.shape": "squareWithRadius",
15939
15991
  "legend.marker.showLine": false,
15992
+ "plotArea.dataLabel.distributeByLength": {
15993
+ "access": "internal",
15994
+ "defaultValue": false
15995
+ },
15940
15996
  "plotArea.dataLabel.position": "outside",
15941
15997
  "plotArea.dataLabel.style.colorRange": "all",
15942
15998
  "plotArea.dataPoint.invalidity": "break",
@@ -16041,6 +16097,10 @@ return {
16041
16097
  "plotArea.callout.left": null,
16042
16098
  "plotArea.callout.line.color": "#343434",
16043
16099
  "plotArea.callout.top": null,
16100
+ "plotArea.dataLabel.distributeByLength": {
16101
+ "access": "internal",
16102
+ "defaultValue": false
16103
+ },
16044
16104
  "plotArea.dataPoint.invalidity": "break",
16045
16105
  "plotArea.isSmoothed": false,
16046
16106
  "plotArea.lineRenderer": null,
@@ -16537,6 +16597,10 @@ return {
16537
16597
  ],
16538
16598
  "serializable": false
16539
16599
  },
16600
+ "plotArea.dataLabel.distributeByLength": {
16601
+ "access": "internal",
16602
+ "defaultValue": false
16603
+ },
16540
16604
  "plotArea.dataLabel.formatString": null,
16541
16605
  "plotArea.dataLabel.hideWhenOverlap": false,
16542
16606
  "plotArea.dataLabel.recapTitle": "",
@@ -17129,6 +17193,10 @@ return {
17129
17193
  ],
17130
17194
  "serializable": false
17131
17195
  },
17196
+ "plotArea.dataLabel.distributeByLength": {
17197
+ "access": "internal",
17198
+ "defaultValue": false
17199
+ },
17132
17200
  "plotArea.dataLabel.formatString": null,
17133
17201
  "plotArea.dataLabel.hideWhenOverlap": false,
17134
17202
  "plotArea.dataLabel.renderer": null,
@@ -42479,8 +42547,26 @@ define('sap/viz/chart/components/datalabels/DataLabels',[
42479
42547
 
42480
42548
  var dynamicScale = this._runtime.statusManager().get("dynamicScale");
42481
42549
  var units = this.runtime().statusManager().get("data.unit") || {};
42482
-
42483
- for (var i = 0, len = dataPoints.length; i < len; i++) {
42550
+ var distributeByLength = props.get('distributeByLength');
42551
+ var step = 1;
42552
+ var dPLength;
42553
+ var isDistributeByHeight;
42554
+ if (distributeByLength) {
42555
+ var distributeByWidthRenderType = ["line", "combination", "timeseries_line", "column",
42556
+ "timeseries_column", "timeseries_combination", "timeseries_waterfall", "waterfall", "area"];
42557
+ var distributeByHeightRenderType = ["bar", "horizontal_waterfall", "horizontal_combination"];
42558
+ var renderType = this._runtime._interaction._service._getRenderType();
42559
+ var seriesLength = this.getData().series[0].length;
42560
+ if (distributeByHeightRenderType.indexOf(renderType) !== -1) {
42561
+ dPLength = Math.ceil(size.height / seriesLength);
42562
+ isDistributeByHeight = true;
42563
+ } else if(distributeByWidthRenderType.indexOf(renderType) !== -1){
42564
+ dPLength = Math.ceil(size.width / seriesLength);
42565
+ isDistributeByHeight = false;
42566
+ }
42567
+ }
42568
+
42569
+ for (var i = 0, len = dataPoints.length; i < len; i=i+step) {
42484
42570
  var dp = dataPoints[i];
42485
42571
  var dataLabelStyle = this._getStyle(dp);
42486
42572
  var dataLabelInfo = this._getDataLabelInfo(dp);
@@ -42591,6 +42677,9 @@ define('sap/viz/chart/components/datalabels/DataLabels',[
42591
42677
  if(this.setExtraDataOfDataPoint){
42592
42678
  dp = this.setExtraDataOfDataPoint(DataGraphics, dp, dataLabelGroup);
42593
42679
  }
42680
+ if (distributeByLength) {
42681
+ step = Math.ceil((isDistributeByHeight ? labelBBox.height : labelBBox.width)/dPLength);
42682
+ }
42594
42683
  }
42595
42684
  }
42596
42685
 
@@ -17,7 +17,7 @@ sap.ui.define(['sap/ui/core/ElementMetadata'],
17
17
  *
18
18
  * @class
19
19
  * @author SAP SE
20
- * @version 1.127.0
20
+ * @version 1.127.2
21
21
  * @since 1.30.0
22
22
  * @alias sap.viz.ui5.core.BaseChartMetadata
23
23
  */
@@ -1,3 +1,7 @@
1
+ #This is the resource bundle for the sap.viz library
2
+ #
1
3
 
4
+ #XMSG: text which is displayed when charts can't be supported in the current browser
2
5
  NO_SVG_SUPPORT=[[[\u0143\u014F \u015C\u01B2\u0122 \u015F\u0171\u03C1\u03C1\u014F\u0157\u0163\u2219\u2219\u2219\u2219\u2219]]]
6
+ #XMSG: Default text which is displayed when no data is available for rendering
3
7
  NO_DATA=[[[\u0143\u014F \u018C\u0105\u0163\u0105\u2219\u2219\u2219\u2219\u2219\u2219\u2219]]]
@@ -1,3 +1,7 @@
1
+ #This is the resource bundle for the sap.viz library
2
+ #
1
3
 
2
- NO_SVG_SUPPORT=hfix/J2HgB0bixSi7c9Jaw_No SVG support
3
- NO_DATA=KrqkfumI4xRmqY2qZ7x9Eg_No data
4
+ #XMSG: text which is displayed when charts can't be supported in the current browser
5
+ NO_SVG_SUPPORT=KtgDMrEhuqpE/IoLLTJY0A_No SVG support
6
+ #XMSG: Default text which is displayed when no data is available for rendering
7
+ NO_DATA=XpnfSSdH+Y/WOhubtopy4Q_No data