@carbon/charts-vue 0.53.1 → 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,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.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
+
6
14
  ## [0.53.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.53.0...v0.53.1) (2021-12-02)
7
15
 
8
16
  **Note:** Version bump only for package @carbon/charts-vue
@@ -23789,6 +23789,7 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
23789
23789
  var options = this.getOptions();
23790
23790
  var cartesianScales = this.services.cartesianScales;
23791
23791
  var domainIdentifier = cartesianScales.getDomainIdentifier();
23792
+ var dualAxes = cartesianScales.isDualAxes();
23792
23793
  // Generate default tooltip
23793
23794
  var groupMapsTo = options.data.groupMapsTo;
23794
23795
  var domainLabel = cartesianScales.getDomainLabel();
@@ -23798,6 +23799,13 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
23798
23799
  if (data.length === 1) {
23799
23800
  var datum = data[0];
23800
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
+ }
23801
23809
  var value = datum[rangeIdentifier];
23802
23810
  items = tooltip_axis_spreadArrays([
23803
23811
  {
@@ -23857,7 +23865,6 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
23857
23865
  }),
23858
23866
  }); })
23859
23867
  .sort(function (a, b) { return b.value - a.value; }));
23860
- var dualAxes = cartesianScales.isDualAxes();
23861
23868
  if (!dualAxes &&
23862
23869
  tools_Tools.getProperty(options, 'tooltip', 'showTotal') === true) {
23863
23870
  // use the primary/only range id