@carbon/charts-vue 0.53.0 → 0.53.1

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/charts-vue.umd.js CHANGED
@@ -9727,7 +9727,9 @@ var model_ChartModel = /** @class */ (function () {
9727
9727
  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;
9728
9728
  var options = this.getOptions();
9729
9729
  var groupMapsTo = options.data.groupMapsTo;
9730
- var dataGroupNames = this.getDataGroupNames(groups);
9730
+ // Get only active data groups so non-active data groups are not rendered
9731
+ // on legend item click
9732
+ var dataGroupNames = this.getActiveDataGroupNames(groups);
9731
9733
  var dataValuesGroupedByKeys = this.getDataValuesGroupedByKeys({
9732
9734
  groups: groups,
9733
9735
  });