@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/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.2](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.1...v0.53.2) (2021-12-06)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-vue
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.53.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.0...v0.53.1) (2021-12-02)
15
+
16
+ **Note:** Version bump only for package @carbon/charts-vue
17
+
18
+
19
+
20
+
21
+
22
+ # [0.53.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.52.4...v0.53.0) (2021-12-01)
23
+
24
+ **Note:** Version bump only for package @carbon/charts-vue
25
+
26
+
27
+
28
+
29
+
30
+ ## [0.52.4](https://github.com/carbon-design-system/carbon-charts/compare/v0.52.3...v0.52.4) (2021-12-01)
31
+
32
+ **Note:** Version bump only for package @carbon/charts-vue
33
+
34
+
35
+
36
+
37
+
6
38
  ## [0.52.3](https://github.com/carbon-design-system/carbon-charts/compare/v0.52.2...v0.52.3) (2021-11-22)
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
@@ -39253,7 +39262,7 @@ var zoom_bar_ZoomBar = /** @class */ (function (_super) {
39253
39262
  }, { skipUpdate: true });
39254
39263
  }
39255
39264
  else if (newInitialZoomDomain === null &&
39256
- oldInitialZoomDomain != null) {
39265
+ oldInitialZoomDomain !== null) {
39257
39266
  // if newInitialZoomDomain is set to null (when oldInitialZoomDomain is not null)
39258
39267
  // save initialZoomDomain and reset zoom domain to default domain
39259
39268
  this.model.set({