@carbon/charts 1.15.7 → 1.15.8
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 +13 -0
- package/dist/{_baseEach-BxXSF0fB.mjs → _baseEach-Ch85zB0O.mjs} +2 -2
- package/dist/{_baseEach-BxXSF0fB.mjs.map → _baseEach-Ch85zB0O.mjs.map} +1 -1
- package/dist/{angle-utils-CGNQcrjg.mjs → angle-utils-GQFx3vKM.mjs} +2 -2
- package/dist/{angle-utils-CGNQcrjg.mjs.map → angle-utils-GQFx3vKM.mjs.map} +1 -1
- package/dist/{choropleth-BjSHC_bZ.mjs → choropleth-DdBUe80H.mjs} +4 -4
- package/dist/{choropleth-BjSHC_bZ.mjs.map → choropleth-DdBUe80H.mjs.map} +1 -1
- package/dist/{color-scale-utils-CbAVUUep.mjs → color-scale-utils-CiW9fERh.mjs} +55 -45
- package/dist/{color-scale-utils-CbAVUUep.mjs.map → color-scale-utils-CiW9fERh.mjs.map} +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/demo/index.mjs +8 -8
- package/dist/demo/index.mjs.map +1 -1
- package/dist/index.mjs +259 -266
- package/dist/index.mjs.map +1 -1
- package/dist/model/index.mjs +1 -1
- package/dist/services/index.mjs +3 -3
- package/dist/umd/bundle.umd.js +16 -16
- package/dist/umd/bundle.umd.js.map +1 -1
- package/dist/{wordcloud-DNFY5X97.mjs → wordcloud-DQKXuKDM.mjs} +3 -3
- package/dist/{wordcloud-DNFY5X97.mjs.map → wordcloud-DQKXuKDM.mjs.map} +1 -1
- package/dist/{zoom-DlSAWtwE.mjs → zoom-DyHfBf_y.mjs} +224 -192
- package/dist/zoom-DyHfBf_y.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/zoom-DlSAWtwE.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,103 +1,96 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { T as yt,
|
|
1
|
+
import { B as Y, m as l, C as a, D as r, t as J, x as V } from "./color-scale-utils-CiW9fERh.mjs";
|
|
2
|
+
import { T as yt, F as Dt, G as Lt, H as Ft, I as Pt, J as Mt, K as kt, n as Bt, L as It, y as Ht, c as Gt, E as Vt, M as Ut, f as Nt, b as Zt, g as _t, a as zt, d as Wt, N as jt, u as $t, i as Kt, s as Jt, O as Xt, P as qt, Q as Qt, R as Yt, S as eo, U as so, V as to, Y as oo, W as no, X as io, Z as ro } from "./color-scale-utils-CiW9fERh.mjs";
|
|
3
3
|
import { i as ho } from "./index-zSuueE1Q.mjs";
|
|
4
|
-
import { C as Re, c as Te, A as be, B as Oe, a as
|
|
5
|
-
import { _ as j, r as i, q as
|
|
6
|
-
import { A as mo, a as lo, b as po, c as Co, d as uo, f as vo, B as go, g as wo, C as Eo, h as Ro, i as To, j as bo, k as Oo, m as
|
|
7
|
-
import { a9 as He, L as ee, l as Ge, r as _, T as z, a6 as g, a7 as L, u as se, p as W, C as Ve, a as Ue, q as Ne, o as Ze, c as _e, k as te, v as ze, b as d, G as w, R as B, P as k, w as oe, X as M, _ as C, y as We, Z as I, z as je, D as $e, m as ne, E as Ke, F as Je, a0 as ie, a2 as re, S as N, Y as ae, K as he, a1 as ce, V as Xe, I as qe, J as Qe, N as Ye, B as es, O as ss, $ as ts, Q as os, M as ns, U as is, W as rs, a3 as as, a4 as hs, a5 as cs } from "./choropleth-
|
|
8
|
-
import { A as Yo, x as en, a8 as sn, n as tn, H as on, d as nn, e as rn, f as an, g as hn, h as cn, i as mn, j as ln, s as pn, t as dn } from "./choropleth-
|
|
9
|
-
import {
|
|
10
|
-
import { D as
|
|
11
|
-
import { S as un, d as vn, a as gn, p as wn, b as En, r as Rn } from "./angle-utils-
|
|
12
|
-
function
|
|
13
|
-
var n =
|
|
14
|
-
|
|
15
|
-
for (var h = Array(t); ++n < t; )
|
|
16
|
-
h[n] = o[n + e];
|
|
17
|
-
return h;
|
|
4
|
+
import { C as Re, c as Te, A as be, B as Oe, a as Se, d as fe, e as Ae, P as xe, G as ye, H as De, b as Le, M as Fe, R as Pe, T as Me, f as ke, W as Be } from "./wordcloud-DQKXuKDM.mjs";
|
|
5
|
+
import { _ as j, r as i, q as h, L as Z, y as A, t as U, e as $, S as Ie, u as K, F as p, l as R } from "./enums-DwsxZqjR.mjs";
|
|
6
|
+
import { A as mo, a as lo, b as po, c as Co, d as uo, f as vo, B as go, g as wo, C as Eo, h as Ro, i as To, j as bo, k as Oo, m as So, n as fo, D as Ao, o as xo, G as yo, p as Do, s as Lo, v as Fo, M as Po, w as Mo, P as ko, x as Bo, R as Io, z as Ho, H as Go, T as Vo, I as Uo, J as No, K as Zo, N as _o, O as zo, Q as Wo, U as jo, V as $o, W as Ko, Z as Jo, X as Xo, Y as qo } from "./enums-DwsxZqjR.mjs";
|
|
7
|
+
import { a9 as He, L as ee, l as Ge, r as _, T as z, a6 as g, a7 as L, u as se, p as W, C as Ve, a as Ue, q as Ne, o as Ze, c as _e, k as te, v as ze, b as d, G as w, R as B, P as k, w as oe, X as M, _ as C, y as We, Z as I, z as je, D as $e, m as ne, E as Ke, F as Je, a0 as ie, a2 as re, S as N, Y as ae, K as he, a1 as ce, V as Xe, I as qe, J as Qe, N as Ye, B as es, O as ss, $ as ts, Q as os, M as ns, U as is, W as rs, a3 as as, a4 as hs, a5 as cs } from "./choropleth-DdBUe80H.mjs";
|
|
8
|
+
import { A as Yo, x as en, a8 as sn, n as tn, H as on, d as nn, e as rn, f as an, g as hn, h as cn, i as mn, j as ln, s as pn, t as dn } from "./choropleth-DdBUe80H.mjs";
|
|
9
|
+
import { c as ms, C as ls, E as ps, F as ds, T as Cs, b as us, a as vs, Z as gs, f as ws } from "./zoom-DyHfBf_y.mjs";
|
|
10
|
+
import { D as Es, G as Rs } from "./angle-utils-GQFx3vKM.mjs";
|
|
11
|
+
import { S as un, d as vn, a as gn, p as wn, b as En, r as Rn } from "./angle-utils-GQFx3vKM.mjs";
|
|
12
|
+
function Ts(t, s, e) {
|
|
13
|
+
var n = t.length;
|
|
14
|
+
return e = e === void 0 ? n : e, !s && e >= n ? t : ms(t, s, e);
|
|
18
15
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return
|
|
16
|
+
var bs = "\\ud800-\\udfff", Os = "\\u0300-\\u036f", Ss = "\\ufe20-\\ufe2f", fs = "\\u20d0-\\u20ff", As = Os + Ss + fs, xs = "\\ufe0e\\ufe0f", ys = "\\u200d", Ds = RegExp("[" + ys + bs + As + xs + "]");
|
|
17
|
+
function me(t) {
|
|
18
|
+
return Ds.test(t);
|
|
22
19
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
return Ds.test(o);
|
|
26
|
-
}
|
|
27
|
-
function Ls(o) {
|
|
28
|
-
return o.split("");
|
|
20
|
+
function Ls(t) {
|
|
21
|
+
return t.split("");
|
|
29
22
|
}
|
|
30
23
|
var le = "\\ud800-\\udfff", Fs = "\\u0300-\\u036f", Ps = "\\ufe20-\\ufe2f", Ms = "\\u20d0-\\u20ff", ks = Fs + Ps + Ms, Bs = "\\ufe0e\\ufe0f", Is = "[" + le + "]", X = "[" + ks + "]", q = "\\ud83c[\\udffb-\\udfff]", Hs = "(?:" + X + "|" + q + ")", pe = "[^" + le + "]", de = "(?:\\ud83c[\\udde6-\\uddff]){2}", Ce = "[\\ud800-\\udbff][\\udc00-\\udfff]", Gs = "\\u200d", ue = Hs + "?", ve = "[" + Bs + "]?", Vs = "(?:" + Gs + "(?:" + [pe, de, Ce].join("|") + ")" + ve + ue + ")*", Us = ve + ue + Vs, Ns = "(?:" + [pe + X + "?", X, de, Ce, Is].join("|") + ")", Zs = RegExp(q + "(?=" + q + ")|" + Ns + Us, "g");
|
|
31
|
-
function _s(
|
|
32
|
-
return
|
|
24
|
+
function _s(t) {
|
|
25
|
+
return t.match(Zs) || [];
|
|
33
26
|
}
|
|
34
|
-
function zs(
|
|
35
|
-
return me(
|
|
27
|
+
function zs(t) {
|
|
28
|
+
return me(t) ? _s(t) : Ls(t);
|
|
36
29
|
}
|
|
37
|
-
function Ws(
|
|
38
|
-
return function(
|
|
39
|
-
|
|
40
|
-
var
|
|
41
|
-
return n[
|
|
30
|
+
function Ws(t) {
|
|
31
|
+
return function(s) {
|
|
32
|
+
s = Y(s);
|
|
33
|
+
var e = me(s) ? zs(s) : void 0, n = e ? e[0] : s.charAt(0), o = e ? Ts(e, 1).join("") : s.slice(1);
|
|
34
|
+
return n[t]() + o;
|
|
42
35
|
};
|
|
43
36
|
}
|
|
44
37
|
var js = Ws("toUpperCase");
|
|
45
|
-
function $s(
|
|
46
|
-
return js(Y(
|
|
38
|
+
function $s(t) {
|
|
39
|
+
return js(Y(t).toLowerCase());
|
|
47
40
|
}
|
|
48
|
-
var Ks = He(function(
|
|
49
|
-
return
|
|
41
|
+
var Ks = He(function(t, s, e) {
|
|
42
|
+
return s = s.toLowerCase(), t + (e ? $s(s) : s);
|
|
50
43
|
});
|
|
51
44
|
class T {
|
|
52
45
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
53
46
|
// @ts-ignore
|
|
54
47
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
55
|
-
constructor(
|
|
48
|
+
constructor(s, e) {
|
|
56
49
|
this.components = [], this.services = {
|
|
57
|
-
canvasZoom:
|
|
58
|
-
domUtils:
|
|
59
|
-
events:
|
|
60
|
-
files:
|
|
61
|
-
gradientUtils:
|
|
62
|
-
transitions:
|
|
50
|
+
canvasZoom: ls,
|
|
51
|
+
domUtils: Es,
|
|
52
|
+
events: ps,
|
|
53
|
+
files: ds,
|
|
54
|
+
gradientUtils: Rs,
|
|
55
|
+
transitions: Cs
|
|
63
56
|
}, this.model = new Re(this.services);
|
|
64
57
|
}
|
|
65
58
|
// Contains the code that uses properties that are overridable by the super-class
|
|
66
|
-
init(
|
|
67
|
-
this.model.set({ holder:
|
|
68
|
-
const
|
|
69
|
-
this.services[n] = new
|
|
59
|
+
init(s, e) {
|
|
60
|
+
this.model.set({ holder: s }, { skipUpdate: !0 }), Object.keys(this.services).forEach((n) => {
|
|
61
|
+
const o = this.services[n];
|
|
62
|
+
this.services[n] = new o(this.model, this.services);
|
|
70
63
|
}), this.services.events.addEventListener(j.Model.UPDATE, (n) => {
|
|
71
|
-
const
|
|
72
|
-
this.update(
|
|
73
|
-
}), this.model.setData(
|
|
64
|
+
const o = !!l(n, "detail", "animate");
|
|
65
|
+
this.update(o);
|
|
66
|
+
}), this.model.setData(e.data), this.services.events.addEventListener(j.Chart.RESIZE, () => {
|
|
74
67
|
this.update(!1);
|
|
75
68
|
}), this.components = this.getComponents(), this.update();
|
|
76
69
|
}
|
|
77
70
|
getComponents() {
|
|
78
71
|
return console.error("getComponents() method is not implemented"), [];
|
|
79
72
|
}
|
|
80
|
-
update(
|
|
73
|
+
update(s = !0) {
|
|
81
74
|
if (!this.components)
|
|
82
75
|
return;
|
|
83
|
-
Object.keys(this.services).forEach((
|
|
84
|
-
this.services[
|
|
85
|
-
}), this.components.forEach((
|
|
86
|
-
const
|
|
76
|
+
Object.keys(this.services).forEach((o) => {
|
|
77
|
+
this.services[o].update();
|
|
78
|
+
}), this.components.forEach((o) => o.render(s));
|
|
79
|
+
const e = this.services.transitions.getPendingTransitions(), n = Object.keys(e).map((o) => e[o].end().catch((m) => m));
|
|
87
80
|
Promise.all(n).then(
|
|
88
81
|
() => this.services.events.dispatchEvent(j.Chart.RENDER_FINISHED)
|
|
89
82
|
);
|
|
90
83
|
}
|
|
91
84
|
destroy() {
|
|
92
|
-
this.components.forEach((
|
|
85
|
+
this.components.forEach((s) => s.destroy()), this.services.domUtils.getHolder().remove(), this.model.set({ destroyed: !0 }, { skipUpdate: !0 });
|
|
93
86
|
}
|
|
94
|
-
getChartComponents(
|
|
95
|
-
const n = this.model.getOptions(),
|
|
87
|
+
getChartComponents(s, e) {
|
|
88
|
+
const n = this.model.getOptions(), o = l(n, "toolbar", "enabled"), c = {
|
|
96
89
|
id: "legend",
|
|
97
90
|
components: [new ee(this.model, this.services)],
|
|
98
91
|
growth: i.PREFERRED
|
|
99
92
|
}, m = l(n, "canvasZoom", "enabled");
|
|
100
|
-
m && m === !0 &&
|
|
93
|
+
m && m === !0 && s.push(new Ge(this.model, this.services));
|
|
101
94
|
const b = !!this.model.getOptions().title, O = {
|
|
102
95
|
id: "title",
|
|
103
96
|
components: [new _(this.model, this.services)],
|
|
@@ -115,10 +108,10 @@ class T {
|
|
|
115
108
|
[
|
|
116
109
|
// always add title to keep layout correct
|
|
117
110
|
O,
|
|
118
|
-
...
|
|
111
|
+
...o ? [x] : []
|
|
119
112
|
],
|
|
120
113
|
{
|
|
121
|
-
direction:
|
|
114
|
+
direction: h.ROW,
|
|
122
115
|
alignItems: Z.CENTER
|
|
123
116
|
}
|
|
124
117
|
)
|
|
@@ -126,14 +119,14 @@ class T {
|
|
|
126
119
|
growth: i.PREFERRED
|
|
127
120
|
}, y = {
|
|
128
121
|
id: "graph-frame",
|
|
129
|
-
components:
|
|
122
|
+
components: s,
|
|
130
123
|
growth: i.STRETCH,
|
|
131
|
-
renderType: l(
|
|
132
|
-
}, D = l(
|
|
133
|
-
let
|
|
124
|
+
renderType: l(e, "graphFrameRenderType") || A.SVG
|
|
125
|
+
}, D = l(e, "excludeLegend") !== !0 && n.legend.enabled !== !1;
|
|
126
|
+
let S = h.COLUMN;
|
|
134
127
|
if (D) {
|
|
135
|
-
const
|
|
136
|
-
|
|
128
|
+
const f = l(n, "legend", "position");
|
|
129
|
+
f === "left" ? (S = h.ROW, n.legend.orientation || (n.legend.orientation = U.VERTICAL)) : f === "right" ? (S = h.ROW_REVERSE, n.legend.orientation || (n.legend.orientation = U.VERTICAL)) : f === "bottom" && (S = h.COLUMN_REVERSE);
|
|
137
130
|
}
|
|
138
131
|
const P = {
|
|
139
132
|
id: "spacer",
|
|
@@ -146,49 +139,49 @@ class T {
|
|
|
146
139
|
this.model,
|
|
147
140
|
this.services,
|
|
148
141
|
[
|
|
149
|
-
...D ? [
|
|
142
|
+
...D ? [c] : [],
|
|
150
143
|
...D ? [P] : [],
|
|
151
144
|
y
|
|
152
145
|
],
|
|
153
146
|
{
|
|
154
|
-
direction:
|
|
147
|
+
direction: S
|
|
155
148
|
}
|
|
156
149
|
)
|
|
157
150
|
],
|
|
158
151
|
growth: i.STRETCH
|
|
159
152
|
}, E = [];
|
|
160
|
-
if (b ||
|
|
153
|
+
if (b || o) {
|
|
161
154
|
E.push(F);
|
|
162
|
-
const
|
|
155
|
+
const f = {
|
|
163
156
|
id: "spacer",
|
|
164
157
|
components: [
|
|
165
|
-
new L(this.model, this.services,
|
|
158
|
+
new L(this.model, this.services, o ? { size: 15 } : void 0)
|
|
166
159
|
],
|
|
167
160
|
growth: i.PREFERRED
|
|
168
161
|
};
|
|
169
|
-
E.push(
|
|
162
|
+
E.push(f);
|
|
170
163
|
}
|
|
171
164
|
return E.push(v), [
|
|
172
165
|
new se(this.model, this.services),
|
|
173
166
|
new W(this.model, this.services),
|
|
174
167
|
new g(this.model, this.services, E, {
|
|
175
|
-
direction:
|
|
168
|
+
direction: h.COLUMN
|
|
176
169
|
})
|
|
177
170
|
];
|
|
178
171
|
}
|
|
179
172
|
}
|
|
180
173
|
class u extends T {
|
|
181
|
-
constructor(
|
|
182
|
-
super(
|
|
183
|
-
cartesianScales:
|
|
184
|
-
curves:
|
|
185
|
-
zoom:
|
|
174
|
+
constructor(s, e) {
|
|
175
|
+
super(s, e), this.services = Object.assign(this.services, {
|
|
176
|
+
cartesianScales: us,
|
|
177
|
+
curves: vs,
|
|
178
|
+
zoom: gs
|
|
186
179
|
}), this.model = new Te(this.services);
|
|
187
180
|
}
|
|
188
|
-
getAxisChartComponents(
|
|
189
|
-
const n = this.model.getOptions(),
|
|
181
|
+
getAxisChartComponents(s, e) {
|
|
182
|
+
const n = this.model.getOptions(), o = l(n, "zoomBar", $.TOP, "enabled"), c = l(n, "toolbar", "enabled");
|
|
190
183
|
this.services.cartesianScales.determineAxisDuality(), this.services.cartesianScales.findDomainAndRangeAxes(), this.services.cartesianScales.determineOrientation();
|
|
191
|
-
const m = this.services.cartesianScales.getMainXAxisPosition(), b = l(n, "axes", m, "scaleType"), O =
|
|
184
|
+
const m = this.services.cartesianScales.getMainXAxisPosition(), b = l(n, "axes", m, "scaleType"), O = o && m === $.BOTTOM && b === Ie.TIME, x = this.services.zoom.isZoomBarLocked($.TOP), F = !!this.model.getOptions().title, y = {
|
|
192
185
|
id: "title",
|
|
193
186
|
components: [new _(this.model, this.services)],
|
|
194
187
|
growth: i.STRETCH
|
|
@@ -196,7 +189,7 @@ class u extends T {
|
|
|
196
189
|
id: "toolbar",
|
|
197
190
|
components: [new z(this.model, this.services)],
|
|
198
191
|
growth: i.PREFERRED
|
|
199
|
-
},
|
|
192
|
+
}, S = {
|
|
200
193
|
id: "header",
|
|
201
194
|
components: [
|
|
202
195
|
new g(
|
|
@@ -205,10 +198,10 @@ class u extends T {
|
|
|
205
198
|
[
|
|
206
199
|
// always add title to keep layout correct
|
|
207
200
|
y,
|
|
208
|
-
...
|
|
201
|
+
...c ? [D] : []
|
|
209
202
|
],
|
|
210
203
|
{
|
|
211
|
-
direction:
|
|
204
|
+
direction: h.ROW,
|
|
212
205
|
alignItems: Z.CENTER
|
|
213
206
|
}
|
|
214
207
|
)
|
|
@@ -219,20 +212,20 @@ class u extends T {
|
|
|
219
212
|
components: [new ee(this.model, this.services)],
|
|
220
213
|
growth: i.PREFERRED
|
|
221
214
|
};
|
|
222
|
-
O && !x &&
|
|
215
|
+
O && !x && s.push(
|
|
223
216
|
new Ve(this.model, this.services),
|
|
224
217
|
new Ue(this.model, this.services)
|
|
225
|
-
),
|
|
218
|
+
), s.push(new Ne(this.model, this.services)), s.push(new Ze(this.model, this.services));
|
|
226
219
|
const v = {
|
|
227
220
|
id: "graph-frame",
|
|
228
|
-
components:
|
|
221
|
+
components: s,
|
|
229
222
|
growth: i.STRETCH,
|
|
230
223
|
renderType: A.SVG
|
|
231
|
-
}, E = l(
|
|
232
|
-
let
|
|
224
|
+
}, E = l(e, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1;
|
|
225
|
+
let f = h.COLUMN;
|
|
233
226
|
if (E) {
|
|
234
227
|
const G = l(this.model.getOptions(), "legend", "position");
|
|
235
|
-
G === K.LEFT ? (
|
|
228
|
+
G === K.LEFT ? (f = h.ROW, this.model.getOptions().legend.orientation || (this.model.getOptions().legend.orientation = U.VERTICAL)) : G === K.RIGHT ? (f = h.ROW_REVERSE, this.model.getOptions().legend.orientation || (this.model.getOptions().legend.orientation = U.VERTICAL)) : G === K.BOTTOM && (f = h.COLUMN_REVERSE);
|
|
236
229
|
}
|
|
237
230
|
const ge = {
|
|
238
231
|
id: "spacer",
|
|
@@ -250,7 +243,7 @@ class u extends T {
|
|
|
250
243
|
v
|
|
251
244
|
],
|
|
252
245
|
{
|
|
253
|
-
direction:
|
|
246
|
+
direction: f
|
|
254
247
|
}
|
|
255
248
|
)
|
|
256
249
|
],
|
|
@@ -261,12 +254,12 @@ class u extends T {
|
|
|
261
254
|
growth: i.PREFERRED,
|
|
262
255
|
renderType: A.SVG
|
|
263
256
|
}, H = [];
|
|
264
|
-
if (F ||
|
|
265
|
-
H.push(
|
|
257
|
+
if (F || c) {
|
|
258
|
+
H.push(S);
|
|
266
259
|
const G = {
|
|
267
260
|
id: "spacer",
|
|
268
261
|
components: [
|
|
269
|
-
new L(this.model, this.services,
|
|
262
|
+
new L(this.model, this.services, c ? { size: 15 } : void 0)
|
|
270
263
|
],
|
|
271
264
|
growth: i.PREFERRED
|
|
272
265
|
};
|
|
@@ -276,30 +269,30 @@ class u extends T {
|
|
|
276
269
|
new te(this.model, this.services),
|
|
277
270
|
new W(this.model, this.services),
|
|
278
271
|
new g(this.model, this.services, H, {
|
|
279
|
-
direction:
|
|
272
|
+
direction: h.COLUMN
|
|
280
273
|
})
|
|
281
274
|
];
|
|
282
275
|
}
|
|
283
276
|
}
|
|
284
277
|
class tt extends T {
|
|
285
|
-
constructor(
|
|
286
|
-
super(
|
|
278
|
+
constructor(s, e) {
|
|
279
|
+
super(s, e), this.model = new be(this.services), this.model.setOptions(a(r.alluvialChart, e.options)), this.init(s, e);
|
|
287
280
|
}
|
|
288
281
|
getComponents() {
|
|
289
|
-
const
|
|
290
|
-
return this.getChartComponents(
|
|
282
|
+
const s = [new ze(this.model, this.services)];
|
|
283
|
+
return this.getChartComponents(s, {
|
|
291
284
|
excludeLegend: !0
|
|
292
285
|
});
|
|
293
286
|
}
|
|
294
287
|
}
|
|
295
288
|
class ot extends u {
|
|
296
|
-
constructor(
|
|
297
|
-
super(
|
|
298
|
-
a(J(r.areaChart),
|
|
299
|
-
), this.init(
|
|
289
|
+
constructor(s, e) {
|
|
290
|
+
super(s, e), this.model.setOptions(
|
|
291
|
+
a(J(r.areaChart), e.options)
|
|
292
|
+
), this.init(s, e);
|
|
300
293
|
}
|
|
301
294
|
getComponents() {
|
|
302
|
-
const
|
|
295
|
+
const s = [
|
|
303
296
|
new d(this.model, this.services),
|
|
304
297
|
new w(this.model, this.services),
|
|
305
298
|
new B(this.model, this.services),
|
|
@@ -313,15 +306,15 @@ class ot extends u {
|
|
|
313
306
|
skeleton: p.GRID
|
|
314
307
|
})
|
|
315
308
|
];
|
|
316
|
-
return this.getAxisChartComponents(
|
|
309
|
+
return this.getAxisChartComponents(s);
|
|
317
310
|
}
|
|
318
311
|
}
|
|
319
312
|
class nt extends u {
|
|
320
|
-
constructor(
|
|
321
|
-
super(
|
|
313
|
+
constructor(s, e) {
|
|
314
|
+
super(s, e), this.model = new Oe(this.services), this.model.setOptions(a(r.boxplotChart, e.options)), this.init(s, e);
|
|
322
315
|
}
|
|
323
316
|
getComponents() {
|
|
324
|
-
const
|
|
317
|
+
const s = [
|
|
325
318
|
new d(this.model, this.services),
|
|
326
319
|
new w(this.model, this.services),
|
|
327
320
|
new We(this.model, this.services),
|
|
@@ -330,7 +323,7 @@ class nt extends u {
|
|
|
330
323
|
skeleton: p.VERT_OR_HORIZ
|
|
331
324
|
})
|
|
332
325
|
];
|
|
333
|
-
return this.getAxisChartComponents(
|
|
326
|
+
return this.getAxisChartComponents(s, {
|
|
334
327
|
legend: {
|
|
335
328
|
enabled: !1
|
|
336
329
|
}
|
|
@@ -338,11 +331,11 @@ class nt extends u {
|
|
|
338
331
|
}
|
|
339
332
|
}
|
|
340
333
|
class it extends u {
|
|
341
|
-
constructor(
|
|
342
|
-
super(
|
|
334
|
+
constructor(s, e) {
|
|
335
|
+
super(s, e), this.model.setOptions(a(r.bubbleChart, e.options)), this.init(s, e);
|
|
343
336
|
}
|
|
344
337
|
getComponents() {
|
|
345
|
-
const
|
|
338
|
+
const s = [
|
|
346
339
|
new d(this.model, this.services),
|
|
347
340
|
new w(this.model, this.services),
|
|
348
341
|
new B(this.model, this.services),
|
|
@@ -351,15 +344,15 @@ class it extends u {
|
|
|
351
344
|
skeleton: p.GRID
|
|
352
345
|
})
|
|
353
346
|
];
|
|
354
|
-
return this.getAxisChartComponents(
|
|
347
|
+
return this.getAxisChartComponents(s);
|
|
355
348
|
}
|
|
356
349
|
}
|
|
357
350
|
class rt extends u {
|
|
358
|
-
constructor(
|
|
359
|
-
super(
|
|
351
|
+
constructor(s, e) {
|
|
352
|
+
super(s, e), this.model = new Se(this.services), this.model.setOptions(a(r.bulletChart, e.options)), this.init(s, e);
|
|
360
353
|
}
|
|
361
354
|
getComponents() {
|
|
362
|
-
const
|
|
355
|
+
const s = [
|
|
363
356
|
new d(this.model, this.services),
|
|
364
357
|
new w(this.model, this.services),
|
|
365
358
|
new $e(this.model, this.services),
|
|
@@ -367,19 +360,19 @@ class rt extends u {
|
|
|
367
360
|
skeleton: p.GRID
|
|
368
361
|
})
|
|
369
362
|
];
|
|
370
|
-
return this.getAxisChartComponents(
|
|
363
|
+
return this.getAxisChartComponents(s);
|
|
371
364
|
}
|
|
372
365
|
}
|
|
373
366
|
class at extends T {
|
|
374
|
-
constructor(
|
|
375
|
-
super(
|
|
376
|
-
a(r.choroplethChart,
|
|
377
|
-
), this.init(
|
|
367
|
+
constructor(s, e) {
|
|
368
|
+
super(s, e), this.model = new fe(this.services), this.model.setOptions(
|
|
369
|
+
a(r.choroplethChart, e.options)
|
|
370
|
+
), this.init(s, e);
|
|
378
371
|
}
|
|
379
372
|
// Custom getChartComponents - Implements getChartComponents
|
|
380
373
|
// Removes zoombar support and additional `features` that are not supported in heatmap
|
|
381
|
-
getChartComponents(
|
|
382
|
-
const n = this.model.getOptions(),
|
|
374
|
+
getChartComponents(s, e) {
|
|
375
|
+
const n = this.model.getOptions(), o = l(n, "toolbar", "enabled"), c = !!this.model.getOptions().title, m = {
|
|
383
376
|
id: "title",
|
|
384
377
|
components: [new _(this.model, this.services)],
|
|
385
378
|
growth: i.STRETCH
|
|
@@ -396,10 +389,10 @@ class at extends T {
|
|
|
396
389
|
[
|
|
397
390
|
// always add title to keep layout correct
|
|
398
391
|
m,
|
|
399
|
-
...
|
|
392
|
+
...o ? [b] : []
|
|
400
393
|
],
|
|
401
394
|
{
|
|
402
|
-
direction:
|
|
395
|
+
direction: h.ROW,
|
|
403
396
|
alignItems: Z.CENTER
|
|
404
397
|
}
|
|
405
398
|
)
|
|
@@ -416,10 +409,10 @@ class at extends T {
|
|
|
416
409
|
renderType: A.SVG
|
|
417
410
|
}, F = {
|
|
418
411
|
id: "graph-frame",
|
|
419
|
-
components:
|
|
412
|
+
components: s,
|
|
420
413
|
growth: i.STRETCH,
|
|
421
414
|
renderType: A.SVG
|
|
422
|
-
}, y = l(
|
|
415
|
+
}, y = l(e, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1 && this.model.getData().length > 0, D = h.COLUMN_REVERSE, S = {
|
|
423
416
|
id: "spacer",
|
|
424
417
|
components: [new L(this.model, this.services, { size: 15 })],
|
|
425
418
|
growth: i.PREFERRED
|
|
@@ -431,7 +424,7 @@ class at extends T {
|
|
|
431
424
|
this.services,
|
|
432
425
|
[
|
|
433
426
|
...y ? [x] : [],
|
|
434
|
-
...y ? [
|
|
427
|
+
...y ? [S] : [],
|
|
435
428
|
F
|
|
436
429
|
],
|
|
437
430
|
{
|
|
@@ -441,12 +434,12 @@ class at extends T {
|
|
|
441
434
|
],
|
|
442
435
|
growth: i.STRETCH
|
|
443
436
|
}, v = [];
|
|
444
|
-
if (
|
|
437
|
+
if (c || o) {
|
|
445
438
|
v.push(O);
|
|
446
439
|
const E = {
|
|
447
440
|
id: "spacer",
|
|
448
441
|
components: [
|
|
449
|
-
new L(this.model, this.services,
|
|
442
|
+
new L(this.model, this.services, o ? { size: 15 } : void 0)
|
|
450
443
|
],
|
|
451
444
|
growth: i.PREFERRED
|
|
452
445
|
};
|
|
@@ -456,22 +449,22 @@ class at extends T {
|
|
|
456
449
|
new se(this.model, this.services),
|
|
457
450
|
new W(this.model, this.services),
|
|
458
451
|
new g(this.model, this.services, v, {
|
|
459
|
-
direction:
|
|
452
|
+
direction: h.COLUMN
|
|
460
453
|
})
|
|
461
454
|
];
|
|
462
455
|
}
|
|
463
456
|
getComponents() {
|
|
464
|
-
const
|
|
465
|
-
return this.getChartComponents(
|
|
457
|
+
const s = [new Ke(this.model, this.services)];
|
|
458
|
+
return this.getChartComponents(s);
|
|
466
459
|
}
|
|
467
460
|
}
|
|
468
461
|
class ht extends T {
|
|
469
|
-
constructor(
|
|
470
|
-
super(
|
|
462
|
+
constructor(s, e) {
|
|
463
|
+
super(s, e), this.model = new Ae(this.services), this.model.setOptions(a(r.circlePackChart, e.options)), this.init(s, e);
|
|
471
464
|
}
|
|
472
465
|
getComponents() {
|
|
473
|
-
const
|
|
474
|
-
return this.getChartComponents(
|
|
466
|
+
const s = [new Je(this.model, this.services)];
|
|
467
|
+
return this.getChartComponents(s);
|
|
475
468
|
}
|
|
476
469
|
}
|
|
477
470
|
const Q = {
|
|
@@ -484,51 +477,51 @@ const Q = {
|
|
|
484
477
|
[R.STACKED_BAR]: [ce, N]
|
|
485
478
|
};
|
|
486
479
|
class ct extends u {
|
|
487
|
-
constructor(
|
|
488
|
-
super(
|
|
489
|
-
const n = a(r.comboChart,
|
|
490
|
-
|
|
480
|
+
constructor(s, e) {
|
|
481
|
+
super(s, e);
|
|
482
|
+
const n = a(r.comboChart, e.options);
|
|
483
|
+
e.options.comboChartTypes || (console.error("No comboChartTypes defined for the Combo Chart!"), n.comboChartTypes = [{ type: R.LINE, correspondingDatasets: [] }]), this.model.setOptions(n), this.init(s, e);
|
|
491
484
|
}
|
|
492
485
|
getGraphComponents() {
|
|
493
|
-
const { comboChartTypes:
|
|
494
|
-
let
|
|
495
|
-
const n =
|
|
496
|
-
const
|
|
486
|
+
const { comboChartTypes: s } = this.model.getOptions();
|
|
487
|
+
let e = 0;
|
|
488
|
+
const n = s.map((o) => {
|
|
489
|
+
const c = o.type;
|
|
497
490
|
let m;
|
|
498
|
-
if (typeof
|
|
499
|
-
if (!Object.keys(Q).includes(
|
|
491
|
+
if (typeof o.type == "string") {
|
|
492
|
+
if (!Object.keys(Q).includes(o.type))
|
|
500
493
|
return console.error(
|
|
501
|
-
`Invalid chart type "${
|
|
494
|
+
`Invalid chart type "${o.type}" specified for combo chart. Please refer to the ComboChart tutorial for more guidance.`
|
|
502
495
|
), null;
|
|
503
496
|
let b = !1;
|
|
504
|
-
const O = `${Ks(
|
|
505
|
-
return m = V({}, r[O], this.model.getOptions(),
|
|
497
|
+
const O = `${Ks(o.type)}Chart`;
|
|
498
|
+
return m = V({}, r[O], this.model.getOptions(), o.options), o.type === R.STACKED_AREA && (b = !0), Q[o.type].map(
|
|
506
499
|
(x) => new x(this.model, this.services, {
|
|
507
|
-
groups:
|
|
508
|
-
id:
|
|
500
|
+
groups: o.correspondingDatasets,
|
|
501
|
+
id: e++,
|
|
509
502
|
options: m,
|
|
510
503
|
stacked: b
|
|
511
504
|
})
|
|
512
505
|
);
|
|
513
506
|
} else
|
|
514
|
-
return m = V({}, this.model.getOptions(),
|
|
515
|
-
groups:
|
|
516
|
-
id:
|
|
507
|
+
return m = V({}, this.model.getOptions(), o.options), new c(this.model, this.services, {
|
|
508
|
+
groups: o.correspondingDatasets,
|
|
509
|
+
id: e++,
|
|
517
510
|
options: m
|
|
518
511
|
});
|
|
519
|
-
}).filter((
|
|
520
|
-
return
|
|
512
|
+
}).filter((o) => o !== null);
|
|
513
|
+
return ws(n);
|
|
521
514
|
}
|
|
522
515
|
getComponents() {
|
|
523
|
-
const { comboChartTypes:
|
|
524
|
-
(
|
|
516
|
+
const { comboChartTypes: s } = this.model.getOptions(), e = s.some(
|
|
517
|
+
(c) => c.type === R.STACKED_BAR || c.type === R.STACKED_AREA
|
|
525
518
|
), n = [
|
|
526
519
|
new d(this.model, this.services),
|
|
527
520
|
new w(this.model, this.services),
|
|
528
521
|
new C(this.model, this.services, {
|
|
529
522
|
skeleton: p.GRID
|
|
530
523
|
}),
|
|
531
|
-
...
|
|
524
|
+
...e ? [] : [new B(this.model, this.services)],
|
|
532
525
|
...this.getGraphComponents()
|
|
533
526
|
];
|
|
534
527
|
return this.getAxisChartComponents(n);
|
|
@@ -536,48 +529,48 @@ class ct extends u {
|
|
|
536
529
|
}
|
|
537
530
|
class Js extends T {
|
|
538
531
|
// TODO - Optimize the use of "extending"
|
|
539
|
-
constructor(
|
|
540
|
-
super(
|
|
532
|
+
constructor(s, e, n = !1) {
|
|
533
|
+
super(s, e), this.model = new xe(this.services), !n && (this.model.setOptions(a(r.pieChart, e.options)), this.init(s, e));
|
|
541
534
|
}
|
|
542
535
|
getComponents() {
|
|
543
|
-
const
|
|
536
|
+
const s = [
|
|
544
537
|
new Xe(this.model, this.services),
|
|
545
538
|
new C(this.model, this.services, {
|
|
546
539
|
skeleton: p.PIE
|
|
547
540
|
})
|
|
548
541
|
];
|
|
549
|
-
return this.getChartComponents(
|
|
542
|
+
return this.getChartComponents(s);
|
|
550
543
|
}
|
|
551
544
|
}
|
|
552
545
|
class mt extends Js {
|
|
553
|
-
constructor(
|
|
554
|
-
super(
|
|
546
|
+
constructor(s, e) {
|
|
547
|
+
super(s, e, !0), this.model.setOptions(a(r.donutChart, e.options)), this.init(s, e);
|
|
555
548
|
}
|
|
556
549
|
getComponents() {
|
|
557
|
-
const
|
|
550
|
+
const s = [
|
|
558
551
|
new qe(this.model, this.services),
|
|
559
552
|
new C(this.model, this.services, {
|
|
560
553
|
skeleton: p.DONUT
|
|
561
554
|
})
|
|
562
555
|
];
|
|
563
|
-
return this.getChartComponents(
|
|
556
|
+
return this.getChartComponents(s);
|
|
564
557
|
}
|
|
565
558
|
}
|
|
566
559
|
class lt extends T {
|
|
567
|
-
constructor(
|
|
568
|
-
super(
|
|
560
|
+
constructor(s, e) {
|
|
561
|
+
super(s, e), this.model = new ye(this.services), this.model.setOptions(a(r.gaugeChart, e.options)), this.init(s, e);
|
|
569
562
|
}
|
|
570
563
|
getComponents() {
|
|
571
|
-
const
|
|
572
|
-
return this.getChartComponents(
|
|
564
|
+
const s = [new Qe(this.model, this.services)];
|
|
565
|
+
return this.getChartComponents(s);
|
|
573
566
|
}
|
|
574
567
|
}
|
|
575
568
|
class pt extends u {
|
|
576
|
-
constructor(
|
|
577
|
-
super(
|
|
569
|
+
constructor(s, e) {
|
|
570
|
+
super(s, e), this.model.setOptions(a(r.groupedBarChart, e.options)), this.init(s, e);
|
|
578
571
|
}
|
|
579
572
|
getComponents() {
|
|
580
|
-
const
|
|
573
|
+
const s = [
|
|
581
574
|
new d(this.model, this.services),
|
|
582
575
|
new w(this.model, this.services),
|
|
583
576
|
new he(this.model, this.services),
|
|
@@ -586,21 +579,21 @@ class pt extends u {
|
|
|
586
579
|
skeleton: p.VERT_OR_HORIZ
|
|
587
580
|
})
|
|
588
581
|
];
|
|
589
|
-
return this.getAxisChartComponents(
|
|
582
|
+
return this.getAxisChartComponents(s);
|
|
590
583
|
}
|
|
591
584
|
}
|
|
592
585
|
class dt extends u {
|
|
593
|
-
constructor(
|
|
594
|
-
super(
|
|
595
|
-
a(r.heatmapChart,
|
|
596
|
-
), this.init(
|
|
586
|
+
constructor(s, e) {
|
|
587
|
+
super(s, e), this.model = new De(this.services), this.model.setOptions(
|
|
588
|
+
a(r.heatmapChart, e.options)
|
|
589
|
+
), this.init(s, e);
|
|
597
590
|
}
|
|
598
591
|
// Custom getChartComponents - Implements getChartComponents
|
|
599
592
|
// Removes zoombar support and additional `features` that are not supported in heatmap
|
|
600
|
-
getAxisChartComponents(
|
|
601
|
-
const n = this.model.getOptions(),
|
|
593
|
+
getAxisChartComponents(s, e) {
|
|
594
|
+
const n = this.model.getOptions(), o = l(n, "toolbar", "enabled");
|
|
602
595
|
this.services.cartesianScales.determineAxisDuality(), this.services.cartesianScales.findDomainAndRangeAxes(), this.services.cartesianScales.determineOrientation();
|
|
603
|
-
const
|
|
596
|
+
const c = !!this.model.getOptions().title, m = {
|
|
604
597
|
id: "title",
|
|
605
598
|
components: [new _(this.model, this.services)],
|
|
606
599
|
growth: i.STRETCH
|
|
@@ -617,10 +610,10 @@ class dt extends u {
|
|
|
617
610
|
[
|
|
618
611
|
// always add title to keep layout correct
|
|
619
612
|
m,
|
|
620
|
-
...
|
|
613
|
+
...o ? [b] : []
|
|
621
614
|
],
|
|
622
615
|
{
|
|
623
|
-
direction:
|
|
616
|
+
direction: h.ROW,
|
|
624
617
|
alignItems: Z.CENTER
|
|
625
618
|
}
|
|
626
619
|
)
|
|
@@ -637,10 +630,10 @@ class dt extends u {
|
|
|
637
630
|
renderType: A.SVG
|
|
638
631
|
}, F = {
|
|
639
632
|
id: "graph-frame",
|
|
640
|
-
components:
|
|
633
|
+
components: s,
|
|
641
634
|
growth: i.STRETCH,
|
|
642
635
|
renderType: A.SVG
|
|
643
|
-
}, y = l(
|
|
636
|
+
}, y = l(e, "legend", "enabled") !== !1 && this.model.getOptions().legend.enabled !== !1 && this.model.getData().length > 0, D = h.COLUMN_REVERSE, S = {
|
|
644
637
|
id: "spacer",
|
|
645
638
|
components: [new L(this.model, this.services, { size: 15 })],
|
|
646
639
|
growth: i.PREFERRED
|
|
@@ -652,7 +645,7 @@ class dt extends u {
|
|
|
652
645
|
this.services,
|
|
653
646
|
[
|
|
654
647
|
...y ? [x] : [],
|
|
655
|
-
...y ? [
|
|
648
|
+
...y ? [S] : [],
|
|
656
649
|
F
|
|
657
650
|
],
|
|
658
651
|
{
|
|
@@ -662,12 +655,12 @@ class dt extends u {
|
|
|
662
655
|
],
|
|
663
656
|
growth: i.STRETCH
|
|
664
657
|
}, v = [];
|
|
665
|
-
if (
|
|
658
|
+
if (c || o) {
|
|
666
659
|
v.push(O);
|
|
667
660
|
const E = {
|
|
668
661
|
id: "spacer",
|
|
669
662
|
components: [
|
|
670
|
-
new L(this.model, this.services,
|
|
663
|
+
new L(this.model, this.services, o ? { size: 15 } : void 0)
|
|
671
664
|
],
|
|
672
665
|
growth: i.PREFERRED
|
|
673
666
|
};
|
|
@@ -677,38 +670,38 @@ class dt extends u {
|
|
|
677
670
|
new te(this.model, this.services),
|
|
678
671
|
new W(this.model, this.services),
|
|
679
672
|
new g(this.model, this.services, v, {
|
|
680
|
-
direction:
|
|
673
|
+
direction: h.COLUMN
|
|
681
674
|
})
|
|
682
675
|
];
|
|
683
676
|
}
|
|
684
677
|
getComponents() {
|
|
685
|
-
const
|
|
678
|
+
const s = [
|
|
686
679
|
new d(this.model, this.services),
|
|
687
680
|
new Ye(this.model, this.services)
|
|
688
681
|
];
|
|
689
|
-
return this.getAxisChartComponents(
|
|
682
|
+
return this.getAxisChartComponents(s);
|
|
690
683
|
}
|
|
691
684
|
}
|
|
692
685
|
class Ct extends u {
|
|
693
|
-
constructor(
|
|
694
|
-
super(
|
|
686
|
+
constructor(s, e) {
|
|
687
|
+
super(s, e), this.model = new Le(this.services), this.model.setOptions(a(r.histogramChart, e.options)), this.init(s, e), this.update();
|
|
695
688
|
}
|
|
696
689
|
getComponents() {
|
|
697
|
-
const
|
|
690
|
+
const s = [
|
|
698
691
|
new d(this.model, this.services),
|
|
699
692
|
new w(this.model, this.services),
|
|
700
693
|
new es(this.model, this.services),
|
|
701
694
|
new ss(this.model, this.services)
|
|
702
695
|
];
|
|
703
|
-
return this.getAxisChartComponents(
|
|
696
|
+
return this.getAxisChartComponents(s);
|
|
704
697
|
}
|
|
705
698
|
}
|
|
706
699
|
class ut extends u {
|
|
707
|
-
constructor(
|
|
708
|
-
super(
|
|
700
|
+
constructor(s, e) {
|
|
701
|
+
super(s, e), this.model.setOptions(a(r.lineChart, e.options)), this.init(s, e);
|
|
709
702
|
}
|
|
710
703
|
getComponents() {
|
|
711
|
-
const
|
|
704
|
+
const s = [
|
|
712
705
|
new d(this.model, this.services),
|
|
713
706
|
new w(this.model, this.services),
|
|
714
707
|
new B(this.model, this.services),
|
|
@@ -717,15 +710,15 @@ class ut extends u {
|
|
|
717
710
|
new ts(this.model, this.services),
|
|
718
711
|
new I(this.model, this.services)
|
|
719
712
|
];
|
|
720
|
-
return this.getAxisChartComponents(
|
|
713
|
+
return this.getAxisChartComponents(s);
|
|
721
714
|
}
|
|
722
715
|
}
|
|
723
716
|
class vt extends u {
|
|
724
|
-
constructor(
|
|
725
|
-
super(
|
|
717
|
+
constructor(s, e) {
|
|
718
|
+
super(s, e), this.model.setOptions(a(r.lollipopChart, e.options)), this.init(s, e);
|
|
726
719
|
}
|
|
727
720
|
getComponents() {
|
|
728
|
-
const
|
|
721
|
+
const s = [
|
|
729
722
|
new d(this.model, this.services),
|
|
730
723
|
new w(this.model, this.services),
|
|
731
724
|
new B(this.model, this.services),
|
|
@@ -735,18 +728,18 @@ class vt extends u {
|
|
|
735
728
|
skeleton: p.GRID
|
|
736
729
|
})
|
|
737
730
|
];
|
|
738
|
-
return this.getAxisChartComponents(
|
|
731
|
+
return this.getAxisChartComponents(s);
|
|
739
732
|
}
|
|
740
733
|
}
|
|
741
734
|
class gt extends T {
|
|
742
|
-
constructor(
|
|
743
|
-
var
|
|
744
|
-
super(
|
|
745
|
-
const n = (
|
|
746
|
-
this.model.setOptions(n), this.init(
|
|
735
|
+
constructor(s, e) {
|
|
736
|
+
var o;
|
|
737
|
+
super(s, e), this.model = new Fe(this.services);
|
|
738
|
+
const n = (o = e.options.meter) != null && o.proportional ? V(J(r.proportionalMeterChart), e.options) : V(J(r.meterChart), e.options);
|
|
739
|
+
this.model.setOptions(n), this.init(s, e);
|
|
747
740
|
}
|
|
748
741
|
getComponents() {
|
|
749
|
-
const
|
|
742
|
+
const e = [
|
|
750
743
|
...l(this.model.getOptions(), "meter", "showLabels") ? [
|
|
751
744
|
// Meter has a unique dataset title within the graph
|
|
752
745
|
{
|
|
@@ -774,8 +767,8 @@ class gt extends T {
|
|
|
774
767
|
renderType: A.SVG
|
|
775
768
|
}
|
|
776
769
|
], n = [
|
|
777
|
-
new g(this.model, this.services,
|
|
778
|
-
direction:
|
|
770
|
+
new g(this.model, this.services, e, {
|
|
771
|
+
direction: h.COLUMN
|
|
779
772
|
})
|
|
780
773
|
];
|
|
781
774
|
return this.getChartComponents(n, {
|
|
@@ -784,20 +777,20 @@ class gt extends T {
|
|
|
784
777
|
}
|
|
785
778
|
}
|
|
786
779
|
class wt extends T {
|
|
787
|
-
constructor(
|
|
788
|
-
super(
|
|
780
|
+
constructor(s, e) {
|
|
781
|
+
super(s, e), this.model = new Pe(this.services), this.model.setOptions(a(r.radarChart, e.options)), this.init(s, e);
|
|
789
782
|
}
|
|
790
783
|
getComponents() {
|
|
791
|
-
const
|
|
792
|
-
return this.getChartComponents(
|
|
784
|
+
const s = [new rs(this.model, this.services)];
|
|
785
|
+
return this.getChartComponents(s);
|
|
793
786
|
}
|
|
794
787
|
}
|
|
795
788
|
class Et extends u {
|
|
796
|
-
constructor(
|
|
797
|
-
super(
|
|
789
|
+
constructor(s, e) {
|
|
790
|
+
super(s, e), this.model.setOptions(a(r.scatterChart, e.options)), this.init(s, e);
|
|
798
791
|
}
|
|
799
792
|
getComponents() {
|
|
800
|
-
const
|
|
793
|
+
const s = [
|
|
801
794
|
new d(this.model, this.services),
|
|
802
795
|
new w(this.model, this.services),
|
|
803
796
|
new B(this.model, this.services),
|
|
@@ -806,35 +799,35 @@ class Et extends u {
|
|
|
806
799
|
skeleton: p.GRID
|
|
807
800
|
})
|
|
808
801
|
];
|
|
809
|
-
return this.getAxisChartComponents(
|
|
802
|
+
return this.getAxisChartComponents(s);
|
|
810
803
|
}
|
|
811
804
|
}
|
|
812
805
|
class Rt extends T {
|
|
813
|
-
constructor(
|
|
814
|
-
super(
|
|
806
|
+
constructor(s, e) {
|
|
807
|
+
super(s, e), this.model = new Me(this.services), this.model.setOptions(a(r.treeChart, e.options)), this.init(s, e);
|
|
815
808
|
}
|
|
816
809
|
getComponents() {
|
|
817
|
-
const
|
|
818
|
-
return this.getChartComponents(
|
|
810
|
+
const s = [new as(this.model, this.services)];
|
|
811
|
+
return this.getChartComponents(s, {
|
|
819
812
|
excludeLegend: !0
|
|
820
813
|
});
|
|
821
814
|
}
|
|
822
815
|
}
|
|
823
816
|
class Tt extends T {
|
|
824
|
-
constructor(
|
|
825
|
-
super(
|
|
817
|
+
constructor(s, e) {
|
|
818
|
+
super(s, e), this.model = new ke(this.services), this.model.setOptions(a(r.treemapChart, e.options)), this.init(s, e);
|
|
826
819
|
}
|
|
827
820
|
getComponents() {
|
|
828
|
-
const
|
|
829
|
-
return this.getChartComponents(
|
|
821
|
+
const s = [new hs(this.model, this.services)];
|
|
822
|
+
return this.getChartComponents(s);
|
|
830
823
|
}
|
|
831
824
|
}
|
|
832
825
|
class bt extends u {
|
|
833
|
-
constructor(
|
|
834
|
-
super(
|
|
826
|
+
constructor(s, e) {
|
|
827
|
+
super(s, e), this.model.setOptions(a(r.simpleBarChart, e.options)), this.init(s, e);
|
|
835
828
|
}
|
|
836
829
|
getComponents() {
|
|
837
|
-
const
|
|
830
|
+
const s = [
|
|
838
831
|
new d(this.model, this.services),
|
|
839
832
|
new w(this.model, this.services),
|
|
840
833
|
new ae(this.model, this.services),
|
|
@@ -843,15 +836,15 @@ class bt extends u {
|
|
|
843
836
|
skeleton: p.VERT_OR_HORIZ
|
|
844
837
|
})
|
|
845
838
|
];
|
|
846
|
-
return this.getAxisChartComponents(
|
|
839
|
+
return this.getAxisChartComponents(s);
|
|
847
840
|
}
|
|
848
841
|
}
|
|
849
842
|
class Ot extends u {
|
|
850
|
-
constructor(
|
|
851
|
-
super(
|
|
843
|
+
constructor(s, e) {
|
|
844
|
+
super(s, e), this.model.setOptions(a(r.stackedAreaChart, e.options)), this.init(s, e);
|
|
852
845
|
}
|
|
853
846
|
getComponents() {
|
|
854
|
-
const
|
|
847
|
+
const s = [
|
|
855
848
|
new d(this.model, this.services),
|
|
856
849
|
new w(this.model, this.services),
|
|
857
850
|
new N(this.model, this.services),
|
|
@@ -866,15 +859,15 @@ class Ot extends u {
|
|
|
866
859
|
skeleton: p.GRID
|
|
867
860
|
})
|
|
868
861
|
];
|
|
869
|
-
return this.getAxisChartComponents(
|
|
862
|
+
return this.getAxisChartComponents(s);
|
|
870
863
|
}
|
|
871
864
|
}
|
|
872
|
-
class
|
|
873
|
-
constructor(
|
|
874
|
-
super(
|
|
865
|
+
class St extends u {
|
|
866
|
+
constructor(s, e) {
|
|
867
|
+
super(s, e), this.model.setOptions(a(r.stackedBarChart, e.options)), this.init(s, e);
|
|
875
868
|
}
|
|
876
869
|
getComponents() {
|
|
877
|
-
const
|
|
870
|
+
const s = [
|
|
878
871
|
new d(this.model, this.services),
|
|
879
872
|
new w(this.model, this.services),
|
|
880
873
|
new N(this.model, this.services),
|
|
@@ -884,21 +877,21 @@ class ft extends u {
|
|
|
884
877
|
}),
|
|
885
878
|
new I(this.model, this.services)
|
|
886
879
|
];
|
|
887
|
-
return this.getAxisChartComponents(
|
|
880
|
+
return this.getAxisChartComponents(s);
|
|
888
881
|
}
|
|
889
882
|
}
|
|
890
|
-
class
|
|
891
|
-
constructor(
|
|
892
|
-
super(
|
|
883
|
+
class ft extends T {
|
|
884
|
+
constructor(s, e) {
|
|
885
|
+
super(s, e), this.model = new Be(this.services), this.model.setOptions(a(r.wordCloudChart, e.options)), this.init(s, e);
|
|
893
886
|
}
|
|
894
887
|
getComponents() {
|
|
895
|
-
const
|
|
888
|
+
const s = [
|
|
896
889
|
new cs(this.model, this.services),
|
|
897
890
|
new C(this.model, this.services, {
|
|
898
891
|
skeleton: p.PIE
|
|
899
892
|
})
|
|
900
893
|
];
|
|
901
|
-
return this.getChartComponents(
|
|
894
|
+
return this.getChartComponents(s);
|
|
902
895
|
}
|
|
903
896
|
}
|
|
904
897
|
export {
|
|
@@ -928,13 +921,13 @@ export {
|
|
|
928
921
|
it as BubbleChart,
|
|
929
922
|
$e as Bullet,
|
|
930
923
|
rt as BulletChart,
|
|
931
|
-
|
|
924
|
+
Se as BulletChartModel,
|
|
932
925
|
Eo as CalloutDirections,
|
|
933
926
|
Ge as CanvasChartClip,
|
|
934
|
-
|
|
927
|
+
ls as CanvasZoom,
|
|
935
928
|
Ro as CanvasZoomEvent,
|
|
936
929
|
To as CartesianOrientations,
|
|
937
|
-
|
|
930
|
+
us as CartesianScales,
|
|
938
931
|
T as Chart,
|
|
939
932
|
Ue as ChartBrush,
|
|
940
933
|
Ve as ChartClip,
|
|
@@ -945,31 +938,31 @@ export {
|
|
|
945
938
|
Oo as ChartTheme,
|
|
946
939
|
R as ChartTypes,
|
|
947
940
|
Ke as Choropleth,
|
|
948
|
-
|
|
941
|
+
fe as ChoroplethModel,
|
|
949
942
|
Je as CirclePack,
|
|
950
943
|
ht as CirclePackChart,
|
|
951
944
|
Ae as CirclePackChartModel,
|
|
952
|
-
|
|
953
|
-
|
|
945
|
+
So as ColorClassNameTypes,
|
|
946
|
+
fo as ColorLegendType,
|
|
954
947
|
ne as ColorScaleLegend,
|
|
955
948
|
ct as ComboChart,
|
|
956
949
|
sn as Component,
|
|
957
|
-
|
|
958
|
-
|
|
950
|
+
vs as Curves,
|
|
951
|
+
Es as DOMUtils,
|
|
959
952
|
Ao as DividerStatus,
|
|
960
953
|
xo as DominantBaseline,
|
|
961
954
|
qe as Donut,
|
|
962
955
|
mt as DonutChart,
|
|
963
|
-
|
|
956
|
+
ps as Events,
|
|
964
957
|
at as ExperimentalChoroplethChart,
|
|
965
|
-
|
|
958
|
+
ds as Files,
|
|
966
959
|
Qe as Gauge,
|
|
967
960
|
lt as GaugeChart,
|
|
968
961
|
ye as GaugeChartModel,
|
|
969
962
|
yo as GaugeEvent,
|
|
970
963
|
Do as GaugeTypes,
|
|
971
964
|
tn as GeoProjection,
|
|
972
|
-
|
|
965
|
+
Rs as GradientUtils,
|
|
973
966
|
w as Grid,
|
|
974
967
|
he as GroupedBar,
|
|
975
968
|
pt as GroupedBarChart,
|
|
@@ -982,7 +975,7 @@ export {
|
|
|
982
975
|
on as HoverAxis,
|
|
983
976
|
Z as LayoutAlignItems,
|
|
984
977
|
g as LayoutComponent,
|
|
985
|
-
|
|
978
|
+
h as LayoutDirection,
|
|
986
979
|
i as LayoutGrowth,
|
|
987
980
|
ee as Legend,
|
|
988
981
|
Lo as LegendItemType,
|
|
@@ -1025,7 +1018,7 @@ export {
|
|
|
1025
1018
|
ie as StackedArea,
|
|
1026
1019
|
Ot as StackedAreaChart,
|
|
1027
1020
|
ce as StackedBar,
|
|
1028
|
-
|
|
1021
|
+
St as StackedBarChart,
|
|
1029
1022
|
N as StackedRuler,
|
|
1030
1023
|
re as StackedScatter,
|
|
1031
1024
|
Go as Statuses,
|
|
@@ -1039,7 +1032,7 @@ export {
|
|
|
1039
1032
|
Zo as ToolbarControlTypes,
|
|
1040
1033
|
se as Tooltip,
|
|
1041
1034
|
_o as TooltipEvent,
|
|
1042
|
-
|
|
1035
|
+
Cs as Transitions,
|
|
1043
1036
|
as as Tree,
|
|
1044
1037
|
Rt as TreeChart,
|
|
1045
1038
|
Me as TreeChartModel,
|
|
@@ -1052,11 +1045,11 @@ export {
|
|
|
1052
1045
|
$o as TruncationTypes,
|
|
1053
1046
|
d as TwoDimensionalAxes,
|
|
1054
1047
|
cs as WordCloud,
|
|
1055
|
-
|
|
1048
|
+
ft as WordCloudChart,
|
|
1056
1049
|
Ko as WordCloudEvent,
|
|
1057
1050
|
Be as WordCloudModel,
|
|
1058
1051
|
I as ZeroLine,
|
|
1059
|
-
|
|
1052
|
+
gs as Zoom,
|
|
1060
1053
|
_e as ZoomBar,
|
|
1061
1054
|
Jo as ZoomBarTypes,
|
|
1062
1055
|
Xo as ZoomDomainEvent,
|