@carbon/charts-vue 0.54.6 → 0.54.7
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/CHANGELOG.md +8 -0
- package/charts-vue.common.js +7 -3
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +7 -3
- package/charts-vue.umd.js.map +1 -1
- package/charts-vue.umd.min.js +1 -1
- package/charts-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.54.7](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.6...v0.54.7) (2022-01-13)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts-vue
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.54.6](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.5...v0.54.6) (2022-01-13)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @carbon/charts-vue
|
package/charts-vue.common.js
CHANGED
|
@@ -16440,7 +16440,9 @@ var scales_cartesian_CartesianScales = /** @class */ (function (_super) {
|
|
|
16440
16440
|
var axesOptions = tools_Tools.getProperty(this.model.getOptions(), 'axes');
|
|
16441
16441
|
var domainAxisPosition = this.getDomainAxisPosition();
|
|
16442
16442
|
var thresholds = axesOptions[domainAxisPosition].thresholds;
|
|
16443
|
-
if
|
|
16443
|
+
// Check if thresholds exist & is not empty
|
|
16444
|
+
if (!Array.isArray(thresholds) ||
|
|
16445
|
+
(Array.isArray(thresholds) && !thresholds.length)) {
|
|
16444
16446
|
return null;
|
|
16445
16447
|
}
|
|
16446
16448
|
var domainScale = this.getDomainScale();
|
|
@@ -16461,7 +16463,9 @@ var scales_cartesian_CartesianScales = /** @class */ (function (_super) {
|
|
|
16461
16463
|
var axesOptions = tools_Tools.getProperty(this.model.getOptions(), 'axes');
|
|
16462
16464
|
var rangeAxisPosition = this.getRangeAxisPosition();
|
|
16463
16465
|
var thresholds = axesOptions[rangeAxisPosition].thresholds;
|
|
16464
|
-
if
|
|
16466
|
+
// Check if thresholds exist & is not empty
|
|
16467
|
+
if (!Array.isArray(thresholds) ||
|
|
16468
|
+
(Array.isArray(thresholds) && !thresholds.length)) {
|
|
16465
16469
|
return null;
|
|
16466
16470
|
}
|
|
16467
16471
|
var rangeScale = this.getRangeScale();
|
|
@@ -26236,7 +26240,7 @@ var bar_stacked_StackedBar = /** @class */ (function (_super) {
|
|
|
26236
26240
|
};
|
|
26237
26241
|
StackedBar.prototype.getBarWidth = function () {
|
|
26238
26242
|
var options = this.getOptions();
|
|
26239
|
-
if (tools_Tools.getProperty(options,
|
|
26243
|
+
if (tools_Tools.getProperty(options, 'bars', 'width')) {
|
|
26240
26244
|
return options.bars.width;
|
|
26241
26245
|
}
|
|
26242
26246
|
var mainXScale = this.services.cartesianScales.getMainXScale();
|