@carbon/charts 1.11.1 → 1.11.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.
Files changed (53) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/{_baseEach-81f85d61.mjs → _baseEach-05847c57.mjs} +2 -2
  3. package/dist/{_baseEach-81f85d61.mjs.map → _baseEach-05847c57.mjs.map} +1 -1
  4. package/dist/{_baseEach-97abc473.js → _baseEach-477c04db.js} +2 -2
  5. package/dist/{_baseEach-97abc473.js.map → _baseEach-477c04db.js.map} +1 -1
  6. package/dist/{angle-utils-95c96b71.js → angle-utils-512bc5cd.js} +2 -2
  7. package/dist/{angle-utils-95c96b71.js.map → angle-utils-512bc5cd.js.map} +1 -1
  8. package/dist/{angle-utils-a4fbf1b8.mjs → angle-utils-7255d1d9.mjs} +2 -2
  9. package/dist/{angle-utils-a4fbf1b8.mjs.map → angle-utils-7255d1d9.mjs.map} +1 -1
  10. package/dist/chart.d.ts +1 -1
  11. package/dist/{choropleth-91db5841.mjs → choropleth-449cf25e.mjs} +711 -709
  12. package/dist/choropleth-449cf25e.mjs.map +1 -0
  13. package/dist/{choropleth-f46a0864.js → choropleth-db3ae9eb.js} +9 -9
  14. package/dist/choropleth-db3ae9eb.js.map +1 -0
  15. package/dist/{color-scale-utils-38aedd61.mjs → color-scale-utils-222feda6.mjs} +16 -16
  16. package/dist/{color-scale-utils-38aedd61.mjs.map → color-scale-utils-222feda6.mjs.map} +1 -1
  17. package/dist/{color-scale-utils-eaad59b6.js → color-scale-utils-79786095.js} +2 -2
  18. package/dist/{color-scale-utils-eaad59b6.js.map → color-scale-utils-79786095.js.map} +1 -1
  19. package/dist/components/index.js +1 -1
  20. package/dist/components/index.mjs +4 -4
  21. package/dist/demo/charts/index.d.ts +9 -6
  22. package/dist/demo/index.js +197 -193
  23. package/dist/demo/index.js.map +1 -1
  24. package/dist/demo/index.mjs +2118 -1591
  25. package/dist/demo/index.mjs.map +1 -1
  26. package/dist/demo/utils/index.d.ts +1 -1
  27. package/dist/demo/utils/package-versions.d.ts +20 -0
  28. package/dist/demo/utils/stackblitz/angular.d.ts +3 -0
  29. package/dist/demo/utils/stackblitz/index.d.ts +5 -0
  30. package/dist/demo/utils/stackblitz/react.d.ts +3 -0
  31. package/dist/demo/utils/stackblitz/svelte.d.ts +3 -0
  32. package/dist/demo/utils/stackblitz/vanilla-js.d.ts +3 -0
  33. package/dist/demo/utils/stackblitz/vue.d.ts +3 -0
  34. package/dist/{index-c98febf2.js → index-4203ca23.js} +2 -2
  35. package/dist/index-4203ca23.js.map +1 -0
  36. package/dist/{index-fcba6cd5.mjs → index-e425a7b5.mjs} +3 -3
  37. package/dist/index-e425a7b5.mjs.map +1 -0
  38. package/dist/index.js +1 -1
  39. package/dist/index.js.map +1 -1
  40. package/dist/index.mjs +100 -99
  41. package/dist/index.mjs.map +1 -1
  42. package/dist/model/index.js +1 -1
  43. package/dist/model/index.js.map +1 -1
  44. package/dist/model/index.mjs +13 -13
  45. package/dist/model/index.mjs.map +1 -1
  46. package/dist/services/index.js +1 -1
  47. package/dist/services/index.mjs +3 -3
  48. package/package.json +4 -4
  49. package/dist/choropleth-91db5841.mjs.map +0 -1
  50. package/dist/choropleth-f46a0864.js.map +0 -1
  51. package/dist/demo/utils/sandbox.d.ts +0 -36
  52. package/dist/index-c98febf2.js.map +0 -1
  53. package/dist/index-fcba6cd5.mjs.map +0 -1
@@ -1,7 +1,7 @@
1
- import { U as z, W as F, ad as U, g as u, z as S, f as G, y as j, ab as M, N as k, ae as L, h as _, v as V, a2 as K, a3 as y, P as R, a0 as x } from "../color-scale-utils-38aedd61.mjs";
2
- import { bin as Z, stack as A, stackOffsetDiverging as H, scaleOrdinal as $, quantile as E, ascending as Q, min as P, max as N, extent as W, scaleLinear as X, scaleQuantize as Y } from "d3";
1
+ import { U as z, W as F, ad as U, g as u, A as S, f as A, z as j, ab as M, N as k, ae as L, h as _, w as V, a2 as K, a3 as y, P as R, a0 as x } from "../color-scale-utils-222feda6.mjs";
2
+ import { bin as Z, stack as G, stackOffsetDiverging as H, scaleOrdinal as $, quantile as E, ascending as Q, min as P, max as N, extent as W, scaleLinear as X, scaleQuantize as Y } from "d3";
3
3
  import { S as D, _ as B, d as w, e as O, s as J } from "../enums-a96ef472.mjs";
4
- import { b as tt } from "../_baseEach-81f85d61.mjs";
4
+ import { b as tt } from "../_baseEach-05847c57.mjs";
5
5
  import "../index-becfb567.mjs";
6
6
  function et(h, t, e, s) {
7
7
  for (var a = -1, o = h == null ? 0 : h.length; ++a < o; ) {
@@ -85,7 +85,7 @@ class m {
85
85
  * @param newData The new raw data to be set
86
86
  */
87
87
  setData(t) {
88
- const e = this.sanitize(G(t)), s = this.generateDataGroups(e);
88
+ const e = this.sanitize(A(t)), s = this.generateDataGroups(e);
89
89
  return this.set({
90
90
  data: e,
91
91
  dataGroups: s
@@ -135,7 +135,7 @@ class m {
135
135
  const t = this.getOptions(), { groupMapsTo: e } = t.data, s = this.getActiveDataGroupNames(), { bins: a } = this.getBinConfigurations(), o = this.getDataValuesGroupedByKeys({
136
136
  bins: a
137
137
  });
138
- return A().keys(s)(o).map((i, r) => Object.keys(i).filter((n) => !isNaN(n)).map((n) => {
138
+ return G().keys(s)(o).map((i, r) => Object.keys(i).filter((n) => !isNaN(n)).map((n) => {
139
139
  const l = i[n];
140
140
  return l[e] = s[r], l;
141
141
  }));
@@ -202,7 +202,7 @@ class m {
202
202
  });
203
203
  });
204
204
  }
205
- return (s ? A().offset(H) : A()).keys(i)(r).map((l, c) => Object.keys(l).filter((p) => !isNaN(p)).map((p) => {
205
+ return (s ? G().offset(H) : G()).keys(i)(r).map((l, c) => Object.keys(l).filter((p) => !isNaN(p)).map((p) => {
206
206
  const g = l[p];
207
207
  return g[o] = i[c], g;
208
208
  }));
@@ -468,7 +468,7 @@ class T extends m {
468
468
  * @param zoomBarData any special zoom bar data to use instead of the model data
469
469
  */
470
470
  setZoomBarData(t) {
471
- const e = t ? this.sanitize(G(t)) : this.getDisplayData();
471
+ const e = t ? this.sanitize(A(t)) : this.getDisplayData();
472
472
  let s = e;
473
473
  const { cartesianScales: a } = this.services;
474
474
  if (e && a.domainAxisPosition && a.rangeAxisPosition) {
@@ -877,7 +877,7 @@ class Ct extends T {
877
877
  index: -1
878
878
  };
879
879
  }), t.forEach((i) => {
880
- this._matrix[i] = G(o);
880
+ this._matrix[i] = A(o);
881
881
  }), this.getDisplayData().forEach((i, r) => {
882
882
  this._matrix[i[s]][i[a]] = {
883
883
  value: i.value,
@@ -892,7 +892,7 @@ class Ct extends T {
892
892
  * @param newData The new raw data to be set
893
893
  */
894
894
  setData(t) {
895
- const e = this.sanitize(G(t)), s = this.generateDataGroups(e);
895
+ const e = this.sanitize(A(t)), s = this.generateDataGroups(e);
896
896
  return this.set({
897
897
  data: e,
898
898
  dataGroups: s
@@ -1057,7 +1057,7 @@ class Ot extends m {
1057
1057
  });
1058
1058
  }
1059
1059
  }
1060
- class Gt extends m {
1060
+ class At extends m {
1061
1061
  constructor(t) {
1062
1062
  super(t);
1063
1063
  }
@@ -1070,7 +1070,7 @@ class Gt extends m {
1070
1070
  }), e;
1071
1071
  }
1072
1072
  }
1073
- class At extends m {
1073
+ class Gt extends m {
1074
1074
  constructor(t) {
1075
1075
  super(t);
1076
1076
  }
@@ -1101,7 +1101,7 @@ export {
1101
1101
  vt as PieChartModel,
1102
1102
  St as RadarChartModel,
1103
1103
  Ot as TreeChartModel,
1104
- Gt as TreemapChartModel,
1105
- At as WordCloudModel
1104
+ At as TreemapChartModel,
1105
+ Gt as WordCloudModel
1106
1106
  };
1107
1107
  //# sourceMappingURL=index.mjs.map