@carbon/charts-vue 0.41.76 → 0.41.80

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/charts-vue.umd.js CHANGED
@@ -25637,12 +25637,14 @@ var scatter_Scatter = /** @class */ (function (_super) {
25637
25637
  if (!self.configs.filled) {
25638
25638
  var filled_1 = self.getOptions().points.filled;
25639
25639
  var domainIdentifier_1 = self.services.cartesianScales.getDomainIdentifier(datum);
25640
+ var isFilled_1 = self.model.getIsFilled(datum[groupMapsTo], datum[domainIdentifier_1], datum, filled_1);
25640
25641
  hoveredElement
25641
- .classed('unfilled', !self.model.getIsFilled(datum[groupMapsTo], datum[domainIdentifier_1], datum, filled_1))
25642
+ .classed('unfilled', !isFilled_1)
25642
25643
  .style('fill', function (d) {
25643
- return filled_1
25644
- ? self.model.getFillColor(d[groupMapsTo], d[domainIdentifier_1], d)
25645
- : null;
25644
+ if (isFilled_1 || filled_1) {
25645
+ return self.model.getFillColor(d[groupMapsTo], d[domainIdentifier_1], d);
25646
+ }
25647
+ return null;
25646
25648
  });
25647
25649
  }
25648
25650
  // Dispatch mouse event
@@ -29441,9 +29443,10 @@ var radar_Radar = /** @class */ (function (_super) {
29441
29443
  var xScale = band()
29442
29444
  .domain(this.fullDataNormalized.map(function (d) { return d[angle]; }))
29443
29445
  .range([0, 2 * Math.PI].map(function (a) { return a - Math.PI / 2; }));
29446
+ var centerPointMinValue = src_min(this.fullDataNormalized.map(function (d) { return d[value]; }));
29444
29447
  var yScale = linear_linear()
29445
29448
  .domain([
29446
- 0,
29449
+ centerPointMinValue >= 0 ? 0 : centerPointMinValue,
29447
29450
  src_max(this.fullDataNormalized.map(function (d) { return d[value]; })),
29448
29451
  ])
29449
29452
  .range([minRange, radius])
@@ -30447,24 +30450,21 @@ var circle_pack_CirclePack = /** @class */ (function (_super) {
30447
30450
  }
30448
30451
  childrenData = datum.children.map(function (child) {
30449
30452
  if (child !== null) {
30450
- // sum up the children values if there are any 3rd level
30451
- var value = void 0;
30453
+ // retrieve the children values if there are any 3rd level
30452
30454
  if (typeof child.data.value === 'number') {
30453
- value = child.data.value;
30454
30455
  return {
30455
30456
  label: child.data.name,
30456
- value: value,
30457
+ value: child.data.value,
30457
30458
  };
30458
30459
  }
30459
30460
  else {
30460
- value = child.data.children.reduce(function (a, b) { return a + b.value; }, 0);
30461
30461
  return {
30462
30462
  label: child.data.name,
30463
30463
  labelIcon: canvasZoomEnabled &&
30464
30464
  hierarchyLevel <= 2
30465
30465
  ? self.getZoomIcon()
30466
30466
  : null,
30467
- value: value,
30467
+ value: child.value,
30468
30468
  };
30469
30469
  }
30470
30470
  }