@sapui5/sap.chart 1.103.1 → 1.106.0
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/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
3
|
# @sapui5/sap.chart
|
|
4
|
-
Runtime resources of the [SAPUI5](https://
|
|
4
|
+
Runtime resources of the [SAPUI5](https://ui5.sap.com) Library **sap.chart**.
|
|
5
5
|
|
|
6
6
|
## Usage
|
|
7
7
|
Refrain from installing this package using npm, Yarn or similar package managers.
|
package/package.json
CHANGED
package/src/sap/chart/.library
CHANGED
package/src/sap/chart/Chart.js
CHANGED
|
@@ -141,7 +141,7 @@ sap.ui.define([
|
|
|
141
141
|
*/
|
|
142
142
|
visibleMeasures : {type: "string[]", defaultValue: []},
|
|
143
143
|
/** Chart properties, refer to chart property <a href="docs/vizdocs/index.html" target="_blank">documentation</a> for more details. */
|
|
144
|
-
vizProperties : {type: "object", group: "Misc"}
|
|
144
|
+
vizProperties : {type: "object", group: "Misc"},
|
|
145
145
|
/** Chart scales, refer to chart property <a href="docs/vizdocs/index.html" target="_blank">documentation</a> for more details. */
|
|
146
146
|
vizScales : {type : "object[]", group : "Misc"},
|
|
147
147
|
/** Whether or not an aggregated entity set is bound to the chart. */
|
|
@@ -63,6 +63,12 @@ sap.ui.define([
|
|
|
63
63
|
TimeDimension.prototype.setTimeUnit = ChartUtils.makeNotifyParentProperty("timeUnit");
|
|
64
64
|
TimeDimension.prototype.setFiscalYearPeriodCount = ChartUtils.makeNotifyParentProperty("fiscalYearPeriodCount");
|
|
65
65
|
TimeDimension.prototype.setProjectedValueStartTime = ChartUtils.makeNotifyParentProperty("projectedValueStartTime");
|
|
66
|
+
TimeDimension.prototype._setIsUTC = function(bUTC) {
|
|
67
|
+
this._bUTC = bUTC;
|
|
68
|
+
};
|
|
69
|
+
TimeDimension.prototype._getIsUTC = function() {
|
|
70
|
+
return this._bUTC;
|
|
71
|
+
};
|
|
66
72
|
|
|
67
73
|
return TimeDimension;
|
|
68
74
|
});
|
package/src/sap/chart/library.js
CHANGED
|
@@ -240,8 +240,9 @@ sap.ui.define([
|
|
|
240
240
|
var oDateInstance = DateFormatUtil.getInstance(oDimension.getTimeUnit());
|
|
241
241
|
if (oDateInstance) {
|
|
242
242
|
var fnParser = oDateInstance.parse.bind(oDateInstance);
|
|
243
|
+
var bUTC = oDimension._getIsUTC();
|
|
243
244
|
oDimensionDefinition.getBindingInfo("value").formatter = function (oValue) {
|
|
244
|
-
return fnParser(oValue);
|
|
245
|
+
return fnParser(oValue, bUTC);
|
|
245
246
|
};
|
|
246
247
|
}
|
|
247
248
|
|