@carbon/charts-vue 0.52.4 → 0.53.3

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 CHANGED
@@ -3,6 +3,38 @@
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.53.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.2...v0.53.3) (2021-12-07)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-vue
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.53.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.1...v0.53.2) (2021-12-06)
15
+
16
+ **Note:** Version bump only for package @carbon/charts-vue
17
+
18
+
19
+
20
+
21
+
22
+ ## [0.53.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.0...v0.53.1) (2021-12-02)
23
+
24
+ **Note:** Version bump only for package @carbon/charts-vue
25
+
26
+
27
+
28
+
29
+
30
+ # [0.53.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.52.4...v0.53.0) (2021-12-01)
31
+
32
+ **Note:** Version bump only for package @carbon/charts-vue
33
+
34
+
35
+
36
+
37
+
6
38
  ## [0.52.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.52.3...v0.52.4) (2021-12-01)
7
39
 
8
40
  **Note:** Version bump only for package @carbon/charts-vue
@@ -9718,7 +9718,9 @@ var model_ChartModel = /** @class */ (function () {
9718
9718
  var _b = _a.percentage, percentage = _b === void 0 ? false : _b, _c = _a.groups, groups = _c === void 0 ? null : _c, _d = _a.divergent, divergent = _d === void 0 ? false : _d;
9719
9719
  var options = this.getOptions();
9720
9720
  var groupMapsTo = options.data.groupMapsTo;
9721
- var dataGroupNames = this.getDataGroupNames(groups);
9721
+ // Get only active data groups so non-active data groups are not rendered
9722
+ // on legend item click
9723
+ var dataGroupNames = this.getActiveDataGroupNames(groups);
9722
9724
  var dataValuesGroupedByKeys = this.getDataValuesGroupedByKeys({
9723
9725
  groups: groups,
9724
9726
  });
@@ -23787,6 +23789,7 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
23787
23789
  var options = this.getOptions();
23788
23790
  var cartesianScales = this.services.cartesianScales;
23789
23791
  var domainIdentifier = cartesianScales.getDomainIdentifier();
23792
+ var dualAxes = cartesianScales.isDualAxes();
23790
23793
  // Generate default tooltip
23791
23794
  var groupMapsTo = options.data.groupMapsTo;
23792
23795
  var domainLabel = cartesianScales.getDomainLabel();
@@ -23796,6 +23799,13 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
23796
23799
  if (data.length === 1) {
23797
23800
  var datum = data[0];
23798
23801
  var rangeIdentifier = cartesianScales.getRangeIdentifier(datum);
23802
+ if (dualAxes) {
23803
+ var position = cartesianScales.getRangeAxisPosition({
23804
+ datum: datum,
23805
+ groups: [datum[groupMapsTo]],
23806
+ });
23807
+ rangeLabel = cartesianScales.getScaleLabel(position);
23808
+ }
23799
23809
  var value = datum[rangeIdentifier];
23800
23810
  items = tooltip_axis_spreadArrays([
23801
23811
  {
@@ -23855,7 +23865,6 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
23855
23865
  }),
23856
23866
  }); })
23857
23867
  .sort(function (a, b) { return b.value - a.value; }));
23858
- var dualAxes = cartesianScales.isDualAxes();
23859
23868
  if (!dualAxes &&
23860
23869
  tools_Tools.getProperty(options, 'tooltip', 'showTotal') === true) {
23861
23870
  // use the primary/only range id
@@ -38595,6 +38604,9 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
38595
38604
  var isDataLoading = tools_Tools.getProperty(this.getOptions(), 'data', 'loading');
38596
38605
  if (isDataLoading) {
38597
38606
  container.html('');
38607
+ // Set overflow menu to null if data is loading
38608
+ // This will render in a new overflow menu when data is done loading
38609
+ this.overflowMenu = null;
38598
38610
  }
38599
38611
  else {
38600
38612
  if (!this.overflowMenu) {
@@ -38688,6 +38700,9 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
38688
38700
  };
38689
38701
  // show/hide overflow menu
38690
38702
  Toolbar.prototype.updateOverflowMenu = function (show) {
38703
+ if (!this.overflowMenu) {
38704
+ return;
38705
+ }
38691
38706
  this.overflowMenu.classed('is-open', show);
38692
38707
  // update overflow button background
38693
38708
  if (this.overflowButton) {