@carbon/charts-vue 1.0.4 → 1.1.0

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
@@ -44188,6 +44188,10 @@ var heatmap_HeatmapModel = /** @class */ (function (_super) {
44188
44188
  if (domain[0] > 0) {
44189
44189
  domain[0] = 0;
44190
44190
  }
44191
+ else if (domain[0] === 0 && domain[1] === 0) {
44192
+ // Range cannot be between 0 and 0 (itself)
44193
+ return [0, 1];
44194
+ }
44191
44195
  // Ensure the median of the range is 0 if domain extends into both negative & positive
44192
44196
  if (domain[0] < 0 && domain[1] > 0) {
44193
44197
  if (Math.abs(domain[0]) > domain[1]) {
@@ -44335,7 +44339,7 @@ var heatmap_HeatmapModel = /** @class */ (function (_super) {
44335
44339
  */
44336
44340
  HeatmapModel.prototype.getTabularDataArray = function () {
44337
44341
  var displayData = this.getDisplayData();
44338
- var _a = this.assignRangeAndDomains(), primaryDomain = _a.primaryDomain, primaryRange = _a.primaryRange, secondaryDomain = _a.secondaryDomain, secondaryRange = _a.secondaryRange;
44342
+ var _a = this.assignRangeAndDomains(), primaryDomain = _a.primaryDomain, primaryRange = _a.primaryRange;
44339
44343
  var domainValueFormatter;
44340
44344
  var result = heatmap_spreadArrays([
44341
44345
  [primaryDomain.label, primaryRange.label, 'Value']
@@ -44387,7 +44391,7 @@ var heatmap_HeatmapModel = /** @class */ (function (_super) {
44387
44391
  }
44388
44392
  // Save scale type
44389
44393
  this._colorScale = quantize_quantize()
44390
- .domain(this.getValueDomain())
44394
+ .domain(domain)
44391
44395
  .range(colorPairing);
44392
44396
  };
44393
44397
  return HeatmapModel;