@carbon/charts-vue 0.52.4 → 0.53.3
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 +32 -0
- package/charts-vue.common.js +17 -2
- package/charts-vue.common.js.map +1 -1
- package/charts-vue.umd.js +17 -2
- 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
|
@@ -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
|
-
|
|
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
|
|
@@ -38604,6 +38613,9 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
|
|
|
38604
38613
|
var isDataLoading = tools_Tools.getProperty(this.getOptions(), 'data', 'loading');
|
|
38605
38614
|
if (isDataLoading) {
|
|
38606
38615
|
container.html('');
|
|
38616
|
+
// Set overflow menu to null if data is loading
|
|
38617
|
+
// This will render in a new overflow menu when data is done loading
|
|
38618
|
+
this.overflowMenu = null;
|
|
38607
38619
|
}
|
|
38608
38620
|
else {
|
|
38609
38621
|
if (!this.overflowMenu) {
|
|
@@ -38697,6 +38709,9 @@ var toolbar_Toolbar = /** @class */ (function (_super) {
|
|
|
38697
38709
|
};
|
|
38698
38710
|
// show/hide overflow menu
|
|
38699
38711
|
Toolbar.prototype.updateOverflowMenu = function (show) {
|
|
38712
|
+
if (!this.overflowMenu) {
|
|
38713
|
+
return;
|
|
38714
|
+
}
|
|
38700
38715
|
this.overflowMenu.classed('is-open', show);
|
|
38701
38716
|
// update overflow button background
|
|
38702
38717
|
if (this.overflowButton) {
|