@carbon/charts-vue 0.52.3 → 0.53.2

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
  });
@@ -23796,6 +23798,7 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
23796
23798
  var options = this.getOptions();
23797
23799
  var cartesianScales = this.services.cartesianScales;
23798
23800
  var domainIdentifier = cartesianScales.getDomainIdentifier();
23801
+ var dualAxes = cartesianScales.isDualAxes();
23799
23802
  // Generate default tooltip
23800
23803
  var groupMapsTo = options.data.groupMapsTo;
23801
23804
  var domainLabel = cartesianScales.getDomainLabel();
@@ -23805,6 +23808,13 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
23805
23808
  if (data.length === 1) {
23806
23809
  var datum = data[0];
23807
23810
  var rangeIdentifier = cartesianScales.getRangeIdentifier(datum);
23811
+ if (dualAxes) {
23812
+ var position = cartesianScales.getRangeAxisPosition({
23813
+ datum: datum,
23814
+ groups: [datum[groupMapsTo]],
23815
+ });
23816
+ rangeLabel = cartesianScales.getScaleLabel(position);
23817
+ }
23808
23818
  var value = datum[rangeIdentifier];
23809
23819
  items = tooltip_axis_spreadArrays([
23810
23820
  {
@@ -23864,7 +23874,6 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
23864
23874
  }),
23865
23875
  }); })
23866
23876
  .sort(function (a, b) { return b.value - a.value; }));
23867
- var dualAxes = cartesianScales.isDualAxes();
23868
23877
  if (!dualAxes &&
23869
23878
  tools_Tools.getProperty(options, 'tooltip', 'showTotal') === true) {
23870
23879
  // use the primary/only range id
@@ -39262,7 +39271,7 @@ var zoom_bar_ZoomBar = /** @class */ (function (_super) {
39262
39271
  }, { skipUpdate: true });
39263
39272
  }
39264
39273
  else if (newInitialZoomDomain === null &&
39265
- oldInitialZoomDomain != null) {
39274
+ oldInitialZoomDomain !== null) {
39266
39275
  // if newInitialZoomDomain is set to null (when oldInitialZoomDomain is not null)
39267
39276
  // save initialZoomDomain and reset zoom domain to default domain
39268
39277
  this.model.set({