@carbon/charts-vue 0.33.0 → 0.33.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/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.33.1](https://github.com/carbon-design-system/carbon-charts/compare/v0.33.0...v0.33.1) (2020-07-08)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-vue
9
+
10
+
11
+
12
+
13
+
6
14
  # [0.33.0](https://github.com/carbon-design-system/carbon-charts/compare/v0.32.12...v0.33.0) (2020-07-07)
7
15
 
8
16
  **Note:** Version bump only for package @carbon/charts-vue
@@ -16614,7 +16614,7 @@ var scales_cartesian_CartesianScales = /** @class */ (function (_super) {
16614
16614
  var axisOptions = tools_Tools.getProperty(options, "axes", this.rangeAxisPosition);
16615
16615
  return axisOptions.mapsTo;
16616
16616
  };
16617
- /** Uses the primary Y Axis to get data items associated with that value. */
16617
+ /** Uses the Y Axis to get data items associated with that value. */
16618
16618
  CartesianScales.prototype.getDataFromDomain = function (domainValue) {
16619
16619
  var displayData = this.model.getDisplayData();
16620
16620
  var domainIdentifier = this.getDomainIdentifier();
@@ -21499,9 +21499,10 @@ var tooltip_bar_TooltipBar = /** @class */ (function (_super) {
21499
21499
  else if (type === TooltipTypes.AXISLABEL) {
21500
21500
  return "<div class=\"axis-tooltip\"><p class=\"label\">" + data + "</p></div>";
21501
21501
  }
21502
+ var rangeIdentifier = this.services.cartesianScales.getRangeIdentifier();
21502
21503
  var formattedValue = tools_Tools.getProperty(this.model.getOptions(), "tooltip", "valueFormatter")
21503
21504
  ? this.model.getOptions().tooltip.valueFormatter(data.value)
21504
- : data.value.toLocaleString("en");
21505
+ : data[rangeIdentifier].toLocaleString("en");
21505
21506
  return "<div class=\"datapoint-tooltip\"><p class=\"value\">" + formattedValue + "</p></div>";
21506
21507
  };
21507
21508
  /**