@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 +8 -0
- package/charts-vue.common.js +8 -1
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +8 -1
- package/charts-vue.umd.js.map +1 -1
- package/charts-vue.umd.min.js +1 -1
- package/charts-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
package/charts-vue.umd.js
CHANGED
|
@@ -23798,6 +23798,7 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
|
|
|
23798
23798
|
var options = this.getOptions();
|
|
23799
23799
|
var cartesianScales = this.services.cartesianScales;
|
|
23800
23800
|
var domainIdentifier = cartesianScales.getDomainIdentifier();
|
|
23801
|
+
var dualAxes = cartesianScales.isDualAxes();
|
|
23801
23802
|
// Generate default tooltip
|
|
23802
23803
|
var groupMapsTo = options.data.groupMapsTo;
|
|
23803
23804
|
var domainLabel = cartesianScales.getDomainLabel();
|
|
@@ -23807,6 +23808,13 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
|
|
|
23807
23808
|
if (data.length === 1) {
|
|
23808
23809
|
var datum = data[0];
|
|
23809
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
|
+
}
|
|
23810
23818
|
var value = datum[rangeIdentifier];
|
|
23811
23819
|
items = tooltip_axis_spreadArrays([
|
|
23812
23820
|
{
|
|
@@ -23866,7 +23874,6 @@ var tooltip_axis_AxisChartsTooltip = /** @class */ (function (_super) {
|
|
|
23866
23874
|
}),
|
|
23867
23875
|
}); })
|
|
23868
23876
|
.sort(function (a, b) { return b.value - a.value; }));
|
|
23869
|
-
var dualAxes = cartesianScales.isDualAxes();
|
|
23870
23877
|
if (!dualAxes &&
|
|
23871
23878
|
tools_Tools.getProperty(options, 'tooltip', 'showTotal') === true) {
|
|
23872
23879
|
// use the primary/only range id
|