@carbon/charts-vue 1.0.2 → 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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
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
+ # [1.1.0](https://github.com/carbon-design-system/carbon-charts/compare/v1.0.4...v1.1.0) (2022-06-08)
7
+
8
+ **Note:** Version bump only for package @carbon/charts-vue
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.0.4](https://github.com/carbon-design-system/carbon-charts/compare/v1.0.3...v1.0.4) (2022-05-27)
15
+
16
+ **Note:** Version bump only for package @carbon/charts-vue
17
+
18
+
19
+
20
+
21
+
22
+ ## [1.0.3](https://github.com/carbon-design-system/carbon-charts/compare/v1.0.2...v1.0.3) (2022-05-25)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **network-diagrams:** fix styling issues ([#1377](https://github.com/carbon-design-system/carbon-charts/issues/1377)) ([731b747](https://github.com/carbon-design-system/carbon-charts/commit/731b74708fbd2e239f2cf7f51a2a37b8f30ba3f6))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [1.0.2](https://github.com/carbon-design-system/carbon-charts/compare/v1.0.1...v1.0.2) (2022-05-24)
7
34
 
8
35
  **Note:** Version bump only for package @carbon/charts-vue
@@ -44179,6 +44179,10 @@ var heatmap_HeatmapModel = /** @class */ (function (_super) {
44179
44179
  if (domain[0] > 0) {
44180
44180
  domain[0] = 0;
44181
44181
  }
44182
+ else if (domain[0] === 0 && domain[1] === 0) {
44183
+ // Range cannot be between 0 and 0 (itself)
44184
+ return [0, 1];
44185
+ }
44182
44186
  // Ensure the median of the range is 0 if domain extends into both negative & positive
44183
44187
  if (domain[0] < 0 && domain[1] > 0) {
44184
44188
  if (Math.abs(domain[0]) > domain[1]) {
@@ -44326,7 +44330,7 @@ var heatmap_HeatmapModel = /** @class */ (function (_super) {
44326
44330
  */
44327
44331
  HeatmapModel.prototype.getTabularDataArray = function () {
44328
44332
  var displayData = this.getDisplayData();
44329
- var _a = this.assignRangeAndDomains(), primaryDomain = _a.primaryDomain, primaryRange = _a.primaryRange, secondaryDomain = _a.secondaryDomain, secondaryRange = _a.secondaryRange;
44333
+ var _a = this.assignRangeAndDomains(), primaryDomain = _a.primaryDomain, primaryRange = _a.primaryRange;
44330
44334
  var domainValueFormatter;
44331
44335
  var result = heatmap_spreadArrays([
44332
44336
  [primaryDomain.label, primaryRange.label, 'Value']
@@ -44378,7 +44382,7 @@ var heatmap_HeatmapModel = /** @class */ (function (_super) {
44378
44382
  }
44379
44383
  // Save scale type
44380
44384
  this._colorScale = quantize_quantize()
44381
- .domain(this.getValueDomain())
44385
+ .domain(domain)
44382
44386
  .range(colorPairing);
44383
44387
  };
44384
44388
  return HeatmapModel;