@carbon/charts 1.13.15 → 1.13.18
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 +31 -0
- package/README.md +9 -4
- package/dist/{_baseEach-HUN6tK0-.mjs → _baseEach-L1oeNjGL.mjs} +2 -2
- package/dist/{_baseEach-HUN6tK0-.mjs.map → _baseEach-L1oeNjGL.mjs.map} +1 -1
- package/dist/{angle-utils-32tpV6-P.mjs → angle-utils-iPPUNSDt.mjs} +4 -12
- package/dist/{angle-utils-32tpV6-P.mjs.map → angle-utils-iPPUNSDt.mjs.map} +1 -1
- package/dist/{choropleth-cqJq7eSU.mjs → choropleth-bEh4R3-F.mjs} +3227 -2698
- package/dist/choropleth-bEh4R3-F.mjs.map +1 -0
- package/dist/{color-scale-utils-bwaA2TiF.mjs → color-scale-utils-GLd1MML3.mjs} +2 -2
- package/dist/color-scale-utils-GLd1MML3.mjs.map +1 -0
- package/dist/components/axes/axis.d.ts +1 -1
- package/dist/components/axes/chart-clip.d.ts +1 -1
- package/dist/components/axes/grid-brush.d.ts +1 -1
- package/dist/components/axes/grid.d.ts +1 -1
- package/dist/components/axes/ruler.d.ts +1 -1
- package/dist/components/axes/toolbar.d.ts +1 -1
- package/dist/components/axes/two-dimensional-axes.d.ts +2 -2
- package/dist/components/axes/zero-line.d.ts +1 -1
- package/dist/components/axes/zoom-bar.d.ts +1 -1
- package/dist/components/essentials/canvas-chart-clip.d.ts +1 -1
- package/dist/components/essentials/geo-projection.d.ts +1 -1
- package/dist/components/essentials/highlights.d.ts +1 -1
- package/dist/components/essentials/legend.d.ts +1 -1
- package/dist/components/essentials/modal.d.ts +1 -1
- package/dist/components/essentials/threshold.d.ts +1 -1
- package/dist/components/essentials/title.d.ts +1 -1
- package/dist/components/essentials/tooltip.d.ts +1 -1
- package/dist/components/graphs/alluvial.d.ts +1 -1
- package/dist/components/graphs/area-stacked.d.ts +1 -1
- package/dist/components/graphs/area.d.ts +1 -1
- package/dist/components/graphs/bar.d.ts +1 -1
- package/dist/components/graphs/boxplot.d.ts +1 -1
- package/dist/components/graphs/bullet.d.ts +1 -1
- package/dist/components/graphs/choropleth.d.ts +1 -1
- package/dist/components/graphs/circle-pack.d.ts +1 -1
- package/dist/components/graphs/gauge.d.ts +1 -1
- package/dist/components/graphs/heatmap.d.ts +1 -1
- package/dist/components/graphs/histogram.d.ts +1 -1
- package/dist/components/graphs/line.d.ts +1 -1
- package/dist/components/graphs/meter.d.ts +1 -1
- package/dist/components/graphs/pie.d.ts +1 -1
- package/dist/components/graphs/radar.d.ts +1 -1
- package/dist/components/graphs/scatter.d.ts +1 -1
- package/dist/components/graphs/skeleton.d.ts +1 -1
- package/dist/components/graphs/tree.d.ts +1 -1
- package/dist/components/graphs/treemap.d.ts +1 -1
- package/dist/components/graphs/wordcloud.d.ts +1 -1
- package/dist/components/index.mjs +4 -4
- package/dist/components/layout/layout.d.ts +1 -1
- package/dist/components/layout/spacer.d.ts +1 -1
- package/dist/demo/index.mjs +208 -204
- package/dist/demo/index.mjs.map +1 -1
- package/dist/demo/styles.css +35 -11
- package/dist/demo/styles.css.map +1 -1
- package/dist/demo/utils/stackblitz/angular.d.ts +1 -1
- package/dist/demo/utils/stackblitz/react.d.ts +1 -1
- package/dist/demo/utils/stackblitz/svelte.d.ts +1 -1
- package/dist/demo/utils/stackblitz/vanilla-js.d.ts +1 -1
- package/dist/demo/utils/stackblitz/vue.d.ts +1 -1
- package/dist/demo/utils/story-widgets.d.ts +1 -1
- package/dist/enums-tMKLWMMm.mjs.map +1 -1
- package/dist/index.mjs +16 -17
- package/dist/index.mjs.map +1 -1
- package/dist/model/index.mjs +3 -3
- package/dist/services/essentials/dom-utils.d.ts +1 -1
- package/dist/services/essentials/events.d.ts +1 -1
- package/dist/services/essentials/files.d.ts +1 -1
- package/dist/services/essentials/gradient-utils.d.ts +1 -1
- package/dist/services/essentials/transitions.d.ts +1 -1
- package/dist/services/index.mjs +3 -3
- package/dist/styles.css +35 -11
- package/dist/styles.css.map +1 -1
- package/dist/styles.min.css +1 -1
- package/dist/styles.min.css.map +1 -1
- package/dist/umd/bundle.umd.js +85 -0
- package/dist/umd/bundle.umd.js.map +1 -0
- package/dist/utils/sanitizeHtml.d.ts +3 -0
- package/dist/{wordcloud-dqk1DqiP.mjs → wordcloud-XkAQGXwu.mjs} +80 -79
- package/dist/wordcloud-XkAQGXwu.mjs.map +1 -0
- package/dist/{zoom-OcSt8txb.mjs → zoom-nkwOD6_z.mjs} +6 -4
- package/dist/zoom-nkwOD6_z.mjs.map +1 -0
- package/package.json +10 -8
- package/scss/_chart-wrapper.scss +1 -1
- package/scss/_color-palette.scss +8 -8
- package/scss/components/_title.scss +1 -1
- package/scss/components/_tooltip.scss +6 -2
- package/scss/components/toolbar/_buttons.scss +160 -159
- package/scss/components/toolbar/_modal.scss +348 -315
- package/scss/demos.scss +3 -2
- package/scss/graphs/_choropleth.scss +1 -1
- package/scss/graphs/_tree.scss +2 -1
- package/scss/index.scss +1 -1
- package/styles.css +35 -11
- package/styles.min.css +1 -1
- package/dist/choropleth-cqJq7eSU.mjs.map +0 -1
- package/dist/color-scale-utils-bwaA2TiF.mjs.map +0 -1
- package/dist/umd/bundle.umd.cjs +0 -84
- package/dist/umd/bundle.umd.cjs.map +0 -1
- package/dist/wordcloud-dqk1DqiP.mjs.map +0 -1
- package/dist/zoom-OcSt8txb.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { bin as z, stack as
|
|
2
|
-
import { o as H, p as Q, q as W, m as u, s as
|
|
1
|
+
import { bin as z, stack as G, stackOffsetDiverging as F, scaleOrdinal as L, quantile as E, ascending as j, min as P, max as k, extent as U, scaleLinear as K, scaleQuantize as Z } from "d3";
|
|
2
|
+
import { o as H, p as Q, q as W, m as u, s as b, t as A, u as X, v as M, f as N, w as V, x as _, y as $, z as Y, A as y, g as R, B as x } from "./color-scale-utils-GLd1MML3.mjs";
|
|
3
3
|
import { S as D, _ as B, d as w, e as O, s as J } from "./enums-tMKLWMMm.mjs";
|
|
4
|
-
import { b as tt } from "./_baseEach-
|
|
4
|
+
import { b as tt } from "./_baseEach-L1oeNjGL.mjs";
|
|
5
5
|
function et(h, t, e, s) {
|
|
6
6
|
for (var a = -1, o = h == null ? 0 : h.length; ++a < o; ) {
|
|
7
7
|
var i = h[a];
|
|
@@ -31,6 +31,10 @@ var it = Object.prototype, nt = it.hasOwnProperty, rt = at(function(h, t, e) {
|
|
|
31
31
|
nt.call(h, e) ? h[e].push(t) : W(h, e, [t]);
|
|
32
32
|
});
|
|
33
33
|
const lt = rt;
|
|
34
|
+
function ct(h) {
|
|
35
|
+
const t = h.trim();
|
|
36
|
+
return ["=", "+", "-", "@", " ", "\r"].includes(t.charAt(0)) ? ` ${t}` : /[,\"\n]/.test(t) ? `"${t}"` : t;
|
|
37
|
+
}
|
|
34
38
|
class m {
|
|
35
39
|
constructor(t) {
|
|
36
40
|
this.state = {
|
|
@@ -68,7 +72,7 @@ class m {
|
|
|
68
72
|
getDisplayData(t) {
|
|
69
73
|
if (!this.get("data"))
|
|
70
74
|
return null;
|
|
71
|
-
const { ACTIVE: e } =
|
|
75
|
+
const { ACTIVE: e } = b.items.status, s = this.getDataGroups(t), { groupMapsTo: a } = this.getOptions().data;
|
|
72
76
|
return this.getAllDataFromDomain(t).filter((i) => s.find(
|
|
73
77
|
(n) => n.name === i[a] && n.status === e
|
|
74
78
|
));
|
|
@@ -84,7 +88,7 @@ class m {
|
|
|
84
88
|
* @param newData The new raw data to be set
|
|
85
89
|
*/
|
|
86
90
|
setData(t) {
|
|
87
|
-
const e = this.sanitize(
|
|
91
|
+
const e = this.sanitize(A(t)), s = this.generateDataGroups(e);
|
|
88
92
|
return this.set({
|
|
89
93
|
data: e,
|
|
90
94
|
dataGroups: s
|
|
@@ -94,7 +98,7 @@ class m {
|
|
|
94
98
|
return u(this.getOptions(), "data", "loading") ? [] : t ? this.get("dataGroups").filter((s) => t.includes(s.name)) : this.get("dataGroups");
|
|
95
99
|
}
|
|
96
100
|
getActiveDataGroups(t) {
|
|
97
|
-
const { ACTIVE: e } =
|
|
101
|
+
const { ACTIVE: e } = b.items.status;
|
|
98
102
|
return this.getDataGroups(t).filter((s) => s.status === e);
|
|
99
103
|
}
|
|
100
104
|
getDataGroupNames(t) {
|
|
@@ -116,12 +120,12 @@ class m {
|
|
|
116
120
|
}
|
|
117
121
|
const c = r ? [n[0], n[n.length - 1]] : [l[0].x0, l[l.length - 1].x1], p = Array.from(new Set(t.map((d) => d[i]))), g = [];
|
|
118
122
|
return l.forEach((d) => {
|
|
119
|
-
const f = `${d.x0}-${d.x1}`,
|
|
120
|
-
p.forEach((
|
|
123
|
+
const f = `${d.x0}-${d.x1}`, S = this.aggregateBinDataByGroup(d);
|
|
124
|
+
p.forEach((C) => {
|
|
121
125
|
g.push({
|
|
122
|
-
group:
|
|
126
|
+
group: C,
|
|
123
127
|
key: f,
|
|
124
|
-
value:
|
|
128
|
+
value: S[C] || 0,
|
|
125
129
|
bin: d.x0
|
|
126
130
|
});
|
|
127
131
|
});
|
|
@@ -134,7 +138,7 @@ class m {
|
|
|
134
138
|
const t = this.getOptions(), { groupMapsTo: e } = t.data, s = this.getActiveDataGroupNames(), { bins: a } = this.getBinConfigurations(), o = this.getDataValuesGroupedByKeys({
|
|
135
139
|
bins: a
|
|
136
140
|
});
|
|
137
|
-
return
|
|
141
|
+
return G().keys(s)(o).map((i, n) => Object.keys(i).filter((r) => !isNaN(r)).map((r) => {
|
|
138
142
|
const l = i[r];
|
|
139
143
|
return l[e] = s[n], l;
|
|
140
144
|
}));
|
|
@@ -155,7 +159,7 @@ class m {
|
|
|
155
159
|
t ? o = t.map((r) => `${r.x0}:${r.x1}`) : o = M(
|
|
156
160
|
a.map((r) => {
|
|
157
161
|
const l = this.services.cartesianScales.getDomainIdentifier(r);
|
|
158
|
-
return r[l] instanceof Date ?
|
|
162
|
+
return r[l] instanceof Date ? N(r[l]) : r[l] && typeof r[l].toString == "function" ? r[l].toString() : r[l];
|
|
159
163
|
})
|
|
160
164
|
);
|
|
161
165
|
const i = this.services.cartesianScales.domainAxisPosition, n = s.axes[i].scaleType;
|
|
@@ -178,7 +182,7 @@ class m {
|
|
|
178
182
|
return i.forEach((c) => {
|
|
179
183
|
const p = o.find((d) => {
|
|
180
184
|
const f = this.services.cartesianScales.getDomainIdentifier(d);
|
|
181
|
-
return d[a] === c && Object.prototype.hasOwnProperty.call(d, f) && (d[f] instanceof Date ?
|
|
185
|
+
return d[a] === c && Object.prototype.hasOwnProperty.call(d, f) && (d[f] instanceof Date ? N(d[f]) === r : d[f].toString() === r);
|
|
182
186
|
}), g = this.services.cartesianScales.getRangeIdentifier(l);
|
|
183
187
|
l[c] = p ? p[g] : null;
|
|
184
188
|
}), l;
|
|
@@ -201,7 +205,7 @@ class m {
|
|
|
201
205
|
});
|
|
202
206
|
});
|
|
203
207
|
}
|
|
204
|
-
return (s ?
|
|
208
|
+
return (s ? G().offset(F) : G()).keys(i)(n).map((l, c) => Object.keys(l).filter((p) => !isNaN(p)).map((p) => {
|
|
205
209
|
const g = l[p];
|
|
206
210
|
return g[o] = i[c], g;
|
|
207
211
|
}));
|
|
@@ -246,7 +250,7 @@ class m {
|
|
|
246
250
|
* Data labels
|
|
247
251
|
*/
|
|
248
252
|
toggleDataLabel(t) {
|
|
249
|
-
const { ACTIVE: e, DISABLED: s } =
|
|
253
|
+
const { ACTIVE: e, DISABLED: s } = b.items.status, a = this.getDataGroups(), o = a.some((c) => c.status === s), i = a.filter((c) => c.status === e);
|
|
250
254
|
if (o)
|
|
251
255
|
if (i.length === 1 && i[0].name === t)
|
|
252
256
|
a.forEach((c, p) => {
|
|
@@ -314,7 +318,7 @@ class m {
|
|
|
314
318
|
*/
|
|
315
319
|
transformToTabularData(t) {
|
|
316
320
|
console.warn(
|
|
317
|
-
"We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://
|
|
321
|
+
"We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://charts.carbondesignsystem.com/?path=/story/docs-tutorials--tabular-data-format"
|
|
318
322
|
);
|
|
319
323
|
const e = [], { datasets: s, labels: a } = t;
|
|
320
324
|
return s.forEach((o) => {
|
|
@@ -338,18 +342,13 @@ class m {
|
|
|
338
342
|
return [];
|
|
339
343
|
}
|
|
340
344
|
exportToCSV() {
|
|
341
|
-
const
|
|
342
|
-
(
|
|
343
|
-
)
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
});
|
|
349
|
-
const a = this.getOptions();
|
|
350
|
-
let o = "myChart";
|
|
351
|
-
const i = u(a, "fileDownload", "fileName");
|
|
352
|
-
typeof i == "function" ? o = i("csv") : typeof i == "string" && (o = i), this.services.files.downloadCSV(e, `${o}.csv`);
|
|
345
|
+
const e = this.getTabularDataArray().map(
|
|
346
|
+
(i) => i.map((n) => `"${(n === "–" ? "–" : n).split(/[,;'"`]/).map((c) => ct(c)).join("")}"`)
|
|
347
|
+
).map((i) => i.join(",")).join(`
|
|
348
|
+
`), s = this.getOptions();
|
|
349
|
+
let a = "myChart";
|
|
350
|
+
const o = u(s, "fileDownload", "fileName");
|
|
351
|
+
typeof o == "function" ? a = o("csv") : typeof o == "string" && (a = o), this.services.files.downloadCSV(e, `${a}.csv`);
|
|
353
352
|
}
|
|
354
353
|
getTabularData(t) {
|
|
355
354
|
return Array.isArray(t) ? t : this.transformToTabularData(t);
|
|
@@ -366,7 +365,7 @@ class m {
|
|
|
366
365
|
}) : this.allDataGroups = this.getDataGroupNames();
|
|
367
366
|
}
|
|
368
367
|
generateDataGroups(t) {
|
|
369
|
-
const { groupMapsTo: e } = this.getOptions().data, { ACTIVE: s, DISABLED: a } =
|
|
368
|
+
const { groupMapsTo: e } = this.getOptions().data, { ACTIVE: s, DISABLED: a } = b.items.status, o = this.getOptions(), i = M(t.map((r) => r[e]));
|
|
370
369
|
o.data.selectedGroups.length && (o.data.selectedGroups.every(
|
|
371
370
|
(l) => i.includes(l)
|
|
372
371
|
) || (o.data.selectedGroups = []));
|
|
@@ -397,7 +396,7 @@ class m {
|
|
|
397
396
|
let e = u(t, "numberOfVariants");
|
|
398
397
|
(!e || e < this.allDataGroups.length) && (e = this.allDataGroups.length);
|
|
399
398
|
let s = u(t, "option");
|
|
400
|
-
const a =
|
|
399
|
+
const a = $.pairingOptions, o = e > 5 ? 14 : e, i = `${o}-color`;
|
|
401
400
|
s = s <= a[i] ? s : 1;
|
|
402
401
|
const n = this.allDataGroups.map(
|
|
403
402
|
(r, l) => `${o}-${s}-${l % 14 + 1}`
|
|
@@ -405,7 +404,7 @@ class m {
|
|
|
405
404
|
this.colorClassNames = L().range(n).domain(this.allDataGroups);
|
|
406
405
|
}
|
|
407
406
|
}
|
|
408
|
-
class
|
|
407
|
+
class T extends m {
|
|
409
408
|
// can't be protected as it's used by two-dimensional-axes.ts
|
|
410
409
|
constructor(t) {
|
|
411
410
|
super(t), this.axisFlavor = w.DEFAULT;
|
|
@@ -419,14 +418,16 @@ class C extends m {
|
|
|
419
418
|
secondaryDomain: null,
|
|
420
419
|
secondaryRange: null
|
|
421
420
|
};
|
|
422
|
-
return s && (a.secondaryDomain = t.secondaryDomainAxisPosition, a.secondaryRange = t.secondaryRangeAxisPosition), Object.keys(a).forEach(
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
421
|
+
return s && (a.secondaryDomain = t.secondaryDomainAxisPosition, a.secondaryRange = t.secondaryRangeAxisPosition), Object.keys(a).forEach(
|
|
422
|
+
(o) => {
|
|
423
|
+
const i = a[o];
|
|
424
|
+
t.scales[i] ? a[o] = {
|
|
425
|
+
position: i,
|
|
426
|
+
label: t.getScaleLabel(i),
|
|
427
|
+
identifier: u(e, "axes", i, "mapsTo")
|
|
428
|
+
} : a[o] = null;
|
|
429
|
+
}
|
|
430
|
+
), a;
|
|
430
431
|
}
|
|
431
432
|
getTabularDataArray() {
|
|
432
433
|
const t = this.getDisplayData(), e = this.getOptions(), { groupMapsTo: s } = e.data, { cartesianScales: a } = this.services, { primaryDomain: o, primaryRange: i, secondaryDomain: n, secondaryRange: r } = this.assignRangeAndDomains(), l = a.getDomainAxisScaleType();
|
|
@@ -469,7 +470,7 @@ class C extends m {
|
|
|
469
470
|
* @param zoomBarData any special zoom bar data to use instead of the model data
|
|
470
471
|
*/
|
|
471
472
|
setZoomBarData(t) {
|
|
472
|
-
const e = t ? this.sanitize(
|
|
473
|
+
const e = t ? this.sanitize(A(t)) : this.getDisplayData();
|
|
473
474
|
let s = e;
|
|
474
475
|
const { cartesianScales: a } = this.services;
|
|
475
476
|
if (e && a.domainAxisPosition && a.rangeAxisPosition) {
|
|
@@ -509,7 +510,7 @@ class C extends m {
|
|
|
509
510
|
return t = super.sanitize(t), t = this.sanitizeDateValues(t), t;
|
|
510
511
|
}
|
|
511
512
|
}
|
|
512
|
-
class
|
|
513
|
+
class dt extends T {
|
|
513
514
|
constructor(t) {
|
|
514
515
|
super(t);
|
|
515
516
|
}
|
|
@@ -521,7 +522,7 @@ class gt extends C {
|
|
|
521
522
|
];
|
|
522
523
|
}
|
|
523
524
|
}
|
|
524
|
-
class
|
|
525
|
+
class Dt extends T {
|
|
525
526
|
constructor(t) {
|
|
526
527
|
super(t);
|
|
527
528
|
}
|
|
@@ -535,20 +536,20 @@ class dt extends C {
|
|
|
535
536
|
getBoxplotData() {
|
|
536
537
|
const t = this.getOptions(), { groupMapsTo: e } = t.data, s = this.getGroupedData(), a = [];
|
|
537
538
|
for (const { name: o, data: i } of s) {
|
|
538
|
-
const n = this.services.cartesianScales.getRangeIdentifier(), r = i.map((v) => v[n]).sort(
|
|
539
|
+
const n = this.services.cartesianScales.getRangeIdentifier(), r = i.map((v) => v[n]).sort(j), l = {
|
|
539
540
|
[e]: o,
|
|
540
541
|
counts: r,
|
|
541
542
|
quartiles: this.getBoxQuartiles(r),
|
|
542
543
|
outliers: null,
|
|
543
544
|
whiskers: null
|
|
544
|
-
}, c = l.quartiles.q_25, p = l.quartiles.q_75, g = (p - c) * 1.5, d = c - g, f = p + g,
|
|
545
|
+
}, c = l.quartiles.q_25, p = l.quartiles.q_75, g = (p - c) * 1.5, d = c - g, f = p + g, S = [], C = [];
|
|
545
546
|
for (const v of r)
|
|
546
|
-
v < d || v > f ?
|
|
547
|
-
l.outliers =
|
|
548
|
-
const q =
|
|
547
|
+
v < d || v > f ? S.push(v) : C.push(v);
|
|
548
|
+
l.outliers = S;
|
|
549
|
+
const q = P(C), I = k(C);
|
|
549
550
|
l.whiskers = {
|
|
550
|
-
min: q ||
|
|
551
|
-
max: I ||
|
|
551
|
+
min: q || P([l.quartiles.q_25, l.quartiles.q_50, l.quartiles.q_75]),
|
|
552
|
+
max: I || k([l.quartiles.q_25, l.quartiles.q_50, l.quartiles.q_75])
|
|
552
553
|
}, a.push(l);
|
|
553
554
|
}
|
|
554
555
|
return a;
|
|
@@ -575,13 +576,13 @@ class dt extends C {
|
|
|
575
576
|
setColorClassNames() {
|
|
576
577
|
const e = u(this.getOptions(), "color", "pairing");
|
|
577
578
|
let s = u(e, "option");
|
|
578
|
-
const a =
|
|
579
|
+
const a = $.pairingOptions;
|
|
579
580
|
s = s <= a["1-color"] ? s : 1;
|
|
580
581
|
const o = this.allDataGroups.map(() => `1-${s}-1`);
|
|
581
582
|
this.colorClassNames = L().range(o).domain(this.allDataGroups);
|
|
582
583
|
}
|
|
583
584
|
}
|
|
584
|
-
class
|
|
585
|
+
class ft extends T {
|
|
585
586
|
constructor(t) {
|
|
586
587
|
super(t);
|
|
587
588
|
}
|
|
@@ -614,7 +615,7 @@ class Dt extends C {
|
|
|
614
615
|
];
|
|
615
616
|
}
|
|
616
617
|
}
|
|
617
|
-
class
|
|
618
|
+
class mt extends m {
|
|
618
619
|
constructor(t) {
|
|
619
620
|
super(t), this._colorScale = void 0, this._matrix = {};
|
|
620
621
|
}
|
|
@@ -661,10 +662,10 @@ class ft extends m {
|
|
|
661
662
|
}
|
|
662
663
|
setColorClassNames() {
|
|
663
664
|
const t = u(this.getOptions(), "color");
|
|
664
|
-
this._colorScale =
|
|
665
|
+
this._colorScale = R(this.getDisplayData(), t);
|
|
665
666
|
}
|
|
666
667
|
}
|
|
667
|
-
class
|
|
668
|
+
class yt extends m {
|
|
668
669
|
constructor(t) {
|
|
669
670
|
super(t), this.parentNode = !1, this.set({ depth: 2 }, { skipUpdate: !0 });
|
|
670
671
|
}
|
|
@@ -762,7 +763,7 @@ class mt extends m {
|
|
|
762
763
|
}), a;
|
|
763
764
|
}
|
|
764
765
|
}
|
|
765
|
-
class
|
|
766
|
+
class vt extends m {
|
|
766
767
|
constructor(t) {
|
|
767
768
|
super(t);
|
|
768
769
|
}
|
|
@@ -786,7 +787,7 @@ class yt extends m {
|
|
|
786
787
|
return this.getTabularData(t).sort((s, a) => a.value - s.value);
|
|
787
788
|
}
|
|
788
789
|
}
|
|
789
|
-
class
|
|
790
|
+
class xt extends m {
|
|
790
791
|
constructor(t) {
|
|
791
792
|
super(t);
|
|
792
793
|
}
|
|
@@ -804,7 +805,7 @@ class vt extends m {
|
|
|
804
805
|
];
|
|
805
806
|
}
|
|
806
807
|
}
|
|
807
|
-
class
|
|
808
|
+
class Ct extends T {
|
|
808
809
|
constructor(t) {
|
|
809
810
|
super(t), this.axisFlavor = w.HOVERABLE, this._colorScale = void 0, this._domains = [], this._ranges = [], this._matrix = {};
|
|
810
811
|
const e = u(this.getOptions(), "axes");
|
|
@@ -816,7 +817,7 @@ class xt extends C {
|
|
|
816
817
|
* @returns Array consisting of smallest and largest values in data
|
|
817
818
|
*/
|
|
818
819
|
getValueDomain() {
|
|
819
|
-
const t =
|
|
820
|
+
const t = U(this.getDisplayData(), (s) => s.value), e = K().domain(t).nice().domain();
|
|
820
821
|
if (e[0] > 0)
|
|
821
822
|
e[0] = 0;
|
|
822
823
|
else if (e[0] === 0 && e[1] === 0)
|
|
@@ -878,7 +879,7 @@ class xt extends C {
|
|
|
878
879
|
index: -1
|
|
879
880
|
};
|
|
880
881
|
}), t.forEach((i) => {
|
|
881
|
-
this._matrix[i] =
|
|
882
|
+
this._matrix[i] = A(o);
|
|
882
883
|
}), this.getDisplayData().forEach((i, n) => {
|
|
883
884
|
this._matrix[i[s]][i[a]] = {
|
|
884
885
|
value: i.value,
|
|
@@ -893,7 +894,7 @@ class xt extends C {
|
|
|
893
894
|
* @param newData The new raw data to be set
|
|
894
895
|
*/
|
|
895
896
|
setData(t) {
|
|
896
|
-
const e = this.sanitize(
|
|
897
|
+
const e = this.sanitize(A(t)), s = this.generateDataGroups(e);
|
|
897
898
|
return this.set({
|
|
898
899
|
data: e,
|
|
899
900
|
dataGroups: s
|
|
@@ -948,10 +949,10 @@ class xt extends C {
|
|
|
948
949
|
}
|
|
949
950
|
this._colorScale = Z().domain(o).range(n);
|
|
950
951
|
const r = u(this.getOptions(), "color");
|
|
951
|
-
this._colorScale =
|
|
952
|
+
this._colorScale = R(this.getDisplayData(), r);
|
|
952
953
|
}
|
|
953
954
|
}
|
|
954
|
-
class Tt extends
|
|
955
|
+
class Tt extends T {
|
|
955
956
|
getTabularDataArray() {
|
|
956
957
|
const t = this.getOptions(), { groupMapsTo: e } = t.data, s = this.getBinnedStackedData();
|
|
957
958
|
return [
|
|
@@ -966,7 +967,7 @@ class Tt extends C {
|
|
|
966
967
|
];
|
|
967
968
|
}
|
|
968
969
|
}
|
|
969
|
-
class
|
|
970
|
+
class St extends m {
|
|
970
971
|
constructor(t) {
|
|
971
972
|
super(t);
|
|
972
973
|
}
|
|
@@ -1020,7 +1021,7 @@ class Ct extends m {
|
|
|
1020
1021
|
return i;
|
|
1021
1022
|
}
|
|
1022
1023
|
}
|
|
1023
|
-
class bt extends
|
|
1024
|
+
class bt extends T {
|
|
1024
1025
|
constructor(t) {
|
|
1025
1026
|
super(t);
|
|
1026
1027
|
}
|
|
@@ -1037,7 +1038,7 @@ class bt extends C {
|
|
|
1037
1038
|
];
|
|
1038
1039
|
}
|
|
1039
1040
|
}
|
|
1040
|
-
class
|
|
1041
|
+
class Ot extends m {
|
|
1041
1042
|
constructor(t) {
|
|
1042
1043
|
super(t);
|
|
1043
1044
|
}
|
|
@@ -1058,7 +1059,7 @@ class St extends m {
|
|
|
1058
1059
|
});
|
|
1059
1060
|
}
|
|
1060
1061
|
}
|
|
1061
|
-
class
|
|
1062
|
+
class At extends m {
|
|
1062
1063
|
constructor(t) {
|
|
1063
1064
|
super(t);
|
|
1064
1065
|
}
|
|
@@ -1088,21 +1089,21 @@ class Gt extends m {
|
|
|
1088
1089
|
}
|
|
1089
1090
|
}
|
|
1090
1091
|
export {
|
|
1091
|
-
|
|
1092
|
-
|
|
1092
|
+
dt as A,
|
|
1093
|
+
Dt as B,
|
|
1093
1094
|
m as C,
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1095
|
+
xt as G,
|
|
1096
|
+
Ct as H,
|
|
1097
|
+
St as M,
|
|
1098
|
+
vt as P,
|
|
1098
1099
|
bt as R,
|
|
1099
|
-
|
|
1100
|
+
Ot as T,
|
|
1100
1101
|
Gt as W,
|
|
1101
|
-
|
|
1102
|
+
ft as a,
|
|
1102
1103
|
Tt as b,
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1104
|
+
T as c,
|
|
1105
|
+
mt as d,
|
|
1106
|
+
yt as e,
|
|
1107
|
+
At as f
|
|
1107
1108
|
};
|
|
1108
|
-
//# sourceMappingURL=wordcloud-
|
|
1109
|
+
//# sourceMappingURL=wordcloud-XkAQGXwu.mjs.map
|