@carbon/charts-vue 0.54.9 → 0.54.10
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 +12 -7
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +12 -7
- 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.10](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.9...v0.54.10) (2022-01-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @carbon/charts-vue
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [0.54.9](https://github.com/carbon-design-system/carbon-charts/compare/v0.54.8...v0.54.9) (2022-01-27)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @carbon/charts-vue
|
package/charts-vue.common.js
CHANGED
|
@@ -8535,6 +8535,7 @@ var axisChart = tools_Tools.merge({}, chart, {
|
|
|
8535
8535
|
var baseBarChart = tools_Tools.merge({}, axisChart, {
|
|
8536
8536
|
bars: {
|
|
8537
8537
|
maxWidth: 16,
|
|
8538
|
+
spacingFactor: 0.25
|
|
8538
8539
|
},
|
|
8539
8540
|
timeScale: tools_Tools.merge(timeScale, {
|
|
8540
8541
|
addSpaceOnEdges: 1,
|
|
@@ -25437,6 +25438,7 @@ var bar_extends = (undefined && undefined.__extends) || (function () {
|
|
|
25437
25438
|
// Internal Imports
|
|
25438
25439
|
|
|
25439
25440
|
|
|
25441
|
+
|
|
25440
25442
|
var bar_Bar = /** @class */ (function (_super) {
|
|
25441
25443
|
bar_extends(Bar, _super);
|
|
25442
25444
|
function Bar() {
|
|
@@ -25454,7 +25456,8 @@ var bar_Bar = /** @class */ (function (_super) {
|
|
|
25454
25456
|
useAttrs: true,
|
|
25455
25457
|
}).width;
|
|
25456
25458
|
if (!mainXScale.step) {
|
|
25457
|
-
|
|
25459
|
+
var spacingFactor = tools_Tools.getProperty(options, 'bars', 'spacingFactor');
|
|
25460
|
+
return Math.min(options.bars.maxWidth, (chartWidth * spacingFactor) / numberOfDatapoints);
|
|
25458
25461
|
}
|
|
25459
25462
|
return Math.min(options.bars.maxWidth, mainXScale.step() / 2);
|
|
25460
25463
|
};
|
|
@@ -26249,8 +26252,9 @@ var bar_stacked_StackedBar = /** @class */ (function (_super) {
|
|
|
26249
26252
|
useAttrs: true,
|
|
26250
26253
|
}).width;
|
|
26251
26254
|
var numberOfDomainValues = this.model.getStackKeys().length;
|
|
26255
|
+
var spacingFactor = tools_Tools.getProperty(options, 'bars', 'spacingFactor');
|
|
26252
26256
|
if (!mainXScale.step) {
|
|
26253
|
-
return Math.min(options.bars.maxWidth, (chartWidth *
|
|
26257
|
+
return Math.min(options.bars.maxWidth, (chartWidth * spacingFactor) / numberOfDomainValues);
|
|
26254
26258
|
}
|
|
26255
26259
|
return Math.min(options.bars.maxWidth, mainXScale.step() / 2);
|
|
26256
26260
|
};
|
|
@@ -32877,18 +32881,19 @@ var radar_Radar = /** @class */ (function (_super) {
|
|
|
32877
32881
|
});
|
|
32878
32882
|
var axisLine = self.parent.select(".x-axes .x-axis-" + tools_Tools.kebabCase(datum));
|
|
32879
32883
|
var dots = self.parent.selectAll(".dots circle." + tools_Tools.kebabCase(datum));
|
|
32884
|
+
var activeDataGroupNames = self.model.getActiveDataGroupNames();
|
|
32885
|
+
var options = self.getOptions();
|
|
32886
|
+
var groupMapsTo = options.data.groupMapsTo;
|
|
32887
|
+
var valueMapsTo = tools_Tools.getProperty(options, 'radar', 'axes', 'value');
|
|
32880
32888
|
// Change style
|
|
32881
32889
|
axisLine
|
|
32882
32890
|
.classed('hovered', true)
|
|
32883
32891
|
.attr('stroke-dasharray', '4 4');
|
|
32884
32892
|
dots.classed('hovered', true)
|
|
32885
|
-
.attr('opacity', 1)
|
|
32893
|
+
.attr('opacity', function (d) { return activeDataGroupNames.indexOf(d[groupMapsTo]) !== -1 ? 1 : 0; })
|
|
32886
32894
|
.attr('r', radar.dotsRadius);
|
|
32887
32895
|
// get the items that should be highlighted
|
|
32888
|
-
var itemsToHighlight = self.fullDataNormalized.filter(function (d) { return d[angle] === datum; });
|
|
32889
|
-
var options = self.getOptions();
|
|
32890
|
-
var groupMapsTo = options.data.groupMapsTo;
|
|
32891
|
-
var valueMapsTo = tools_Tools.getProperty(options, 'radar', 'axes', 'value');
|
|
32896
|
+
var itemsToHighlight = self.fullDataNormalized.filter(function (d) { return d[angle] === datum && activeDataGroupNames.indexOf(d[groupMapsTo]) !== -1; });
|
|
32892
32897
|
// Show tooltip
|
|
32893
32898
|
self.services.events.dispatchEvent(Events.Tooltip.SHOW, {
|
|
32894
32899
|
event: event,
|