@sapui5/sap.viz 1.124.2 → 1.124.4

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.124.2",
3
+ "version": "1.124.4",
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.124.2</version>
8
+ <version>1.124.4</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.124.2"
266
+ version: "1.124.4"
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,
@@ -12776,6 +12788,10 @@ return {
12776
12788
  },
12777
12789
  "legend.marker.shape": "squareWithRadius",
12778
12790
  "plotArea.background.gradientDirection": "horizontal",
12791
+ "plotArea.dataLabel.distributeByLength": {
12792
+ "access": "internal",
12793
+ "defaultValue": false
12794
+ },
12779
12795
  "plotArea.dataLabel.position": "outsideFirst",
12780
12796
  "plotArea.dataLabel.style.colorRange": "all",
12781
12797
  "plotArea.dataLabel.type": "value",
@@ -12888,6 +12904,10 @@ return {
12888
12904
  "defaultValue": false
12889
12905
  },
12890
12906
  "legend.marker.shape": "squareWithRadius",
12907
+ "plotArea.dataLabel.distributeByLength": {
12908
+ "access": "internal",
12909
+ "defaultValue": false
12910
+ },
12891
12911
  "plotArea.dataLabel.position": "outside",
12892
12912
  "plotArea.dataLabel.style.colorRange": "all",
12893
12913
  "plotArea.dataPoint.savingMode": true,
@@ -13387,6 +13407,10 @@ return {
13387
13407
  "plotArea.callout.left": null,
13388
13408
  "plotArea.callout.line.color": "#343434",
13389
13409
  "plotArea.callout.top": null,
13410
+ "plotArea.dataLabel.distributeByLength": {
13411
+ "access": "internal",
13412
+ "defaultValue": false
13413
+ },
13390
13414
  "plotArea.isSmoothed": false,
13391
13415
  "plotArea.lineRenderer": null,
13392
13416
  "plotArea.lineStyle": {
@@ -13793,6 +13817,10 @@ return {
13793
13817
  "interaction.zoom.direction": "categoryAxis",
13794
13818
  "legend.marker.shape": "squareWithRadius",
13795
13819
  "legend.marker.showLine": false,
13820
+ "plotArea.dataLabel.distributeByLength": {
13821
+ "access": "internal",
13822
+ "defaultValue": false
13823
+ },
13796
13824
  "plotArea.dataLabel.position": "outside",
13797
13825
  "plotArea.dataLabel.style.colorRange": "all",
13798
13826
  "plotArea.dataPoint.invalidity": "break",
@@ -14729,6 +14757,10 @@ return {
14729
14757
  ],
14730
14758
  "serializable": false
14731
14759
  },
14760
+ "plotArea.dataLabel.distributeByLength": {
14761
+ "access": "internal",
14762
+ "defaultValue": false
14763
+ },
14732
14764
  "plotArea.dataLabel.formatString": null,
14733
14765
  "plotArea.dataLabel.hideWhenOverlap": false,
14734
14766
  "plotArea.dataLabel.renderer": null,
@@ -14922,6 +14954,10 @@ return {
14922
14954
  "plotArea.callout.left": null,
14923
14955
  "plotArea.callout.line.color": "#343434",
14924
14956
  "plotArea.callout.top": null,
14957
+ "plotArea.dataLabel.distributeByLength": {
14958
+ "access": "internal",
14959
+ "defaultValue": false
14960
+ },
14925
14961
  "plotArea.isFixedDataPointSize": false,
14926
14962
  "plotArea.isSmoothed": false,
14927
14963
  "plotArea.lineRenderer": null,
@@ -15844,6 +15880,10 @@ return {
15844
15880
  "interaction.syncValueAxis": false,
15845
15881
  "interaction.zoom.direction": "categoryAxis",
15846
15882
  "legend.marker.shape": "squareWithRadius",
15883
+ "plotArea.dataLabel.distributeByLength": {
15884
+ "access": "internal",
15885
+ "defaultValue": false
15886
+ },
15847
15887
  "plotArea.dataLabel.position": "outside",
15848
15888
  "plotArea.dataLabel.style.colorRange": "all",
15849
15889
  "plotArea.dataPoint.savingMode": true,
@@ -15937,6 +15977,10 @@ return {
15937
15977
  "interaction.zoom.direction": "categoryAxis",
15938
15978
  "legend.marker.shape": "squareWithRadius",
15939
15979
  "legend.marker.showLine": false,
15980
+ "plotArea.dataLabel.distributeByLength": {
15981
+ "access": "internal",
15982
+ "defaultValue": false
15983
+ },
15940
15984
  "plotArea.dataLabel.position": "outside",
15941
15985
  "plotArea.dataLabel.style.colorRange": "all",
15942
15986
  "plotArea.dataPoint.invalidity": "break",
@@ -16041,6 +16085,10 @@ return {
16041
16085
  "plotArea.callout.left": null,
16042
16086
  "plotArea.callout.line.color": "#343434",
16043
16087
  "plotArea.callout.top": null,
16088
+ "plotArea.dataLabel.distributeByLength": {
16089
+ "access": "internal",
16090
+ "defaultValue": false
16091
+ },
16044
16092
  "plotArea.dataPoint.invalidity": "break",
16045
16093
  "plotArea.isSmoothed": false,
16046
16094
  "plotArea.lineRenderer": null,
@@ -16537,6 +16585,10 @@ return {
16537
16585
  ],
16538
16586
  "serializable": false
16539
16587
  },
16588
+ "plotArea.dataLabel.distributeByLength": {
16589
+ "access": "internal",
16590
+ "defaultValue": false
16591
+ },
16540
16592
  "plotArea.dataLabel.formatString": null,
16541
16593
  "plotArea.dataLabel.hideWhenOverlap": false,
16542
16594
  "plotArea.dataLabel.recapTitle": "",
@@ -17129,6 +17181,10 @@ return {
17129
17181
  ],
17130
17182
  "serializable": false
17131
17183
  },
17184
+ "plotArea.dataLabel.distributeByLength": {
17185
+ "access": "internal",
17186
+ "defaultValue": false
17187
+ },
17132
17188
  "plotArea.dataLabel.formatString": null,
17133
17189
  "plotArea.dataLabel.hideWhenOverlap": false,
17134
17190
  "plotArea.dataLabel.renderer": null,
@@ -42479,8 +42535,26 @@ define('sap/viz/chart/components/datalabels/DataLabels',[
42479
42535
 
42480
42536
  var dynamicScale = this._runtime.statusManager().get("dynamicScale");
42481
42537
  var units = this.runtime().statusManager().get("data.unit") || {};
42482
-
42483
- for (var i = 0, len = dataPoints.length; i < len; i++) {
42538
+ var distributeByLength = props.get('distributeByLength');
42539
+ var step = 1;
42540
+ var dPLength;
42541
+ var isDistributeByHeight;
42542
+ if (distributeByLength) {
42543
+ var distributeByWidthRenderType = ["line", "combination", "timeseries_line", "column",
42544
+ "timeseries_column", "timeseries_combination", "timeseries_waterfall", "waterfall", "area"];
42545
+ var distributeByHeightRenderType = ["bar", "horizontal_waterfall"];
42546
+ var renderType = this._runtime._interaction._service._getRenderType();
42547
+ var seriesLength = this.getData().series[0].length;
42548
+ if (distributeByHeightRenderType.indexOf(renderType) !== -1) {
42549
+ dPLength = Math.ceil(size.height / seriesLength);
42550
+ isDistributeByHeight = true;
42551
+ } else if(distributeByWidthRenderType.indexOf(renderType) !== -1){
42552
+ dPLength = Math.ceil(size.width / seriesLength);
42553
+ isDistributeByHeight = false;
42554
+ }
42555
+ }
42556
+
42557
+ for (var i = 0, len = dataPoints.length; i < len; i=i+step) {
42484
42558
  var dp = dataPoints[i];
42485
42559
  var dataLabelStyle = this._getStyle(dp);
42486
42560
  var dataLabelInfo = this._getDataLabelInfo(dp);
@@ -42591,6 +42665,9 @@ define('sap/viz/chart/components/datalabels/DataLabels',[
42591
42665
  if(this.setExtraDataOfDataPoint){
42592
42666
  dp = this.setExtraDataOfDataPoint(DataGraphics, dp, dataLabelGroup);
42593
42667
  }
42668
+ if (distributeByLength) {
42669
+ step = Math.ceil((isDistributeByHeight ? labelBBox.height : labelBBox.width)/dPLength);
42670
+ }
42594
42671
  }
42595
42672
  }
42596
42673
 
@@ -17,7 +17,7 @@ sap.ui.define(['sap/ui/core/ElementMetadata'],
17
17
  *
18
18
  * @class
19
19
  * @author SAP SE
20
- * @version 1.124.2
20
+ * @version 1.124.4
21
21
  * @since 1.30.0
22
22
  * @alias sap.viz.ui5.core.BaseChartMetadata
23
23
  */