@arcgis/charts-components 5.2.0-next.148 → 5.2.0-next.149
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/dist/cdn/{D5O7HIVJ.js → 257PEDYJ.js} +1 -1
- package/dist/cdn/{JGJ5XQ6Y.js → 25NUJ5YH.js} +1 -1
- package/dist/cdn/{CKFW4CY5.js → 3E7JBKUK.js} +1 -1
- package/dist/cdn/{V6RF4BJF.js → 4I2I5IVQ.js} +1 -1
- package/dist/cdn/{T22GTUEX.js → 4P7L6R6R.js} +1 -1
- package/dist/cdn/{UHU7OS4M.js → 4QXXXWA6.js} +1 -1
- package/dist/cdn/{CGEPLEGC.js → 5FHRHVMR.js} +1 -1
- package/dist/cdn/{ZOIQ5767.js → 5KS2PX57.js} +1 -1
- package/dist/cdn/{H6F77GU7.js → 5TXHUDP4.js} +1 -1
- package/dist/cdn/{JLWJLLY7.js → 5U44JITQ.js} +1 -1
- package/dist/cdn/{WFPA2JR5.js → 6IOXNE24.js} +1 -1
- package/dist/cdn/{JGOIM3OP.js → 6IYV7IV4.js} +1 -1
- package/dist/cdn/{4TYM6UJJ.js → 6OLJQWVE.js} +1 -1
- package/dist/cdn/{NVEJVRCO.js → 72UQY733.js} +1 -1
- package/dist/cdn/{OJQPF4K5.js → 73GS7B7G.js} +1 -1
- package/dist/cdn/7Q7ES4BZ.js +2 -0
- package/dist/cdn/{X6X7AGPV.js → 7TMJU2RX.js} +1 -1
- package/dist/cdn/{KJBDJD4J.js → ACXDPMZD.js} +1 -1
- package/dist/cdn/{IQ43MGK7.js → AGKYRKW5.js} +1 -1
- package/dist/cdn/{YJZZYJED.js → AKOQC2SC.js} +1 -1
- package/dist/cdn/{PF2AFMBH.js → B2LCOSXO.js} +1 -1
- package/dist/cdn/{LLMWLM4W.js → BH2DGNXG.js} +1 -1
- package/dist/cdn/{YFQA2Y6D.js → BTDPI3AR.js} +1 -1
- package/dist/cdn/{BZUAVD2H.js → E2IXXH5R.js} +1 -1
- package/dist/cdn/{35WMHYT2.js → F7VQ6K7S.js} +1 -1
- package/dist/cdn/{NYD3P7GP.js → FAFM7HRN.js} +1 -1
- package/dist/cdn/{KFKVTC4L.js → G63T5MU4.js} +1 -1
- package/dist/cdn/{3NJBY7D5.js → GHAC6H6F.js} +1 -1
- package/dist/cdn/{DMHX7CSV.js → GJUNAKKB.js} +1 -1
- package/dist/cdn/{ABJACEKY.js → GQ5T4JIV.js} +1 -1
- package/dist/cdn/H4HQBS46.js +4 -0
- package/dist/cdn/{SNSOLJLT.js → HL3H6U7M.js} +1 -1
- package/dist/cdn/IIYJJRMN.js +2 -0
- package/dist/cdn/{LVQL474B.js → IRYTXVTM.js} +1 -1
- package/dist/cdn/{MHIEGJCV.js → ITTVEYZH.js} +1 -1
- package/dist/cdn/{A5JDSY3V.js → IVUICF2P.js} +1 -1
- package/dist/cdn/{PLF3BIUU.js → JASVY2S5.js} +1 -1
- package/dist/cdn/{NJE5NWZ4.js → JIANMLCP.js} +1 -1
- package/dist/cdn/{Q2T7GR6G.js → JX7NTVFL.js} +1 -1
- package/dist/cdn/{NFHBIEJB.js → KJFL57RE.js} +1 -1
- package/dist/cdn/{FK2MTZ63.js → LBMIXS7P.js} +1 -1
- package/dist/cdn/{Z4TLRJ5S.js → LJ3IPYWK.js} +1 -1
- package/dist/cdn/{MJFCB72A.js → M3EQKFST.js} +1 -1
- package/dist/cdn/{FUT5S2CP.js → MCY2C5IV.js} +1 -1
- package/dist/cdn/{TC2XSGBD.js → MMPVO6UX.js} +9 -9
- package/dist/cdn/{GF6F65KI.js → MOSYGTYS.js} +1 -1
- package/dist/cdn/{A4DM7LOB.js → MSFQI34M.js} +1 -1
- package/dist/cdn/{KVDHFW4K.js → NDBNHEEZ.js} +1 -1
- package/dist/cdn/{LQBPMG3M.js → NVPRRSLO.js} +1 -1
- package/dist/cdn/{OALE2XRP.js → OKB4GB4J.js} +1 -1
- package/dist/cdn/{VR6WXH3R.js → OPLY5TWI.js} +1 -1
- package/dist/cdn/{HYJTLRAJ.js → PFAQRCVD.js} +1 -1
- package/dist/cdn/{LVPWHLNP.js → PFIVTH6Z.js} +1 -1
- package/dist/cdn/{7LSI4QET.js → QAN2SQN2.js} +1 -1
- package/dist/cdn/{EORA4L3F.js → QBP5QHM5.js} +1 -1
- package/dist/cdn/{QVSANSKQ.js → QGHGUVWE.js} +1 -1
- package/dist/cdn/{ZWPNPYLR.js → QJJRZHVE.js} +1 -1
- package/dist/cdn/{5Y4JJWPN.js → QYMY2RNU.js} +1 -1
- package/dist/cdn/{3TS66XWA.js → R2R6S5K6.js} +1 -1
- package/dist/cdn/{TV7WXMZ6.js → SDMBKMSY.js} +1 -1
- package/dist/cdn/{6CAD6LP6.js → SHG5B5EO.js} +1 -1
- package/dist/cdn/{ZBVTU5KN.js → SKN5OMXV.js} +1 -1
- package/dist/cdn/{HBDGQ2GB.js → SLH66QHH.js} +1 -1
- package/dist/cdn/{TKKTDSAY.js → TLCAHGNK.js} +1 -1
- package/dist/cdn/{XGN2V6RQ.js → TQW7WM4O.js} +1 -1
- package/dist/cdn/{EATST6SH.js → TRI6WAGM.js} +1 -1
- package/dist/cdn/{MCJHBGZ6.js → UK2ILVTG.js} +1 -1
- package/dist/cdn/{MDF5XBMX.js → VCKFHB4U.js} +1 -1
- package/dist/cdn/{LUPSJ7TV.js → VRVLAPPS.js} +1 -1
- package/dist/cdn/{LMCUWQTD.js → VSRAB3LY.js} +1 -1
- package/dist/cdn/{DLYWE3OX.js → VVHVHDWG.js} +1 -1
- package/dist/cdn/W2XIAHGG.js +2 -0
- package/dist/cdn/{H4U4Q4JS.js → WQQUCFW5.js} +1 -1
- package/dist/cdn/{LKXOL2CB.js → WZIPMTG5.js} +1 -1
- package/dist/cdn/{HJDQEV6B.js → XKKO432P.js} +1 -1
- package/dist/cdn/{AM4O5CBY.js → XOZZXRKR.js} +1 -1
- package/dist/cdn/{DVQCKJK3.js → XWYYPCI6.js} +1 -1
- package/dist/cdn/YOAS5HJU.js +2 -0
- package/dist/cdn/{SUV74KD4.js → YR2QJZ5S.js} +1 -1
- package/dist/cdn/{6XWQN42N.js → YRHDWCLS.js} +1 -1
- package/dist/cdn/{BQZ7X2RU.js → ZP2Y7KD7.js} +1 -1
- package/dist/cdn/{JL4AMZV6.js → ZUMDTFHS.js} +1 -1
- package/dist/cdn/{XACO7HBN.js → ZY2X4X6T.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +68 -67
- package/dist/chunks/box-plot-model.js +4 -1
- package/dist/chunks/index.js +941 -934
- package/dist/chunks/pie-chart-model.js +9 -6
- package/dist/chunks/serial-chart-data.js +283 -282
- package/dist/chunks/serial-chart-model.js +4 -1
- package/dist/components/arcgis-chart/customElement.js +104 -104
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +54 -52
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +105 -103
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/model/box-plot-model/box-plot-model.d.ts +6 -2
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +6 -2
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +6 -2
- package/dist/utils/data/categorical-data/index.d.ts +1 -0
- package/package.json +4 -4
- package/dist/cdn/MJHHTTJ4.js +0 -2
- package/dist/cdn/NOJAWNLN.js +0 -2
- package/dist/cdn/PRN7A6WN.js +0 -2
- package/dist/cdn/VOIQ4WGO.js +0 -4
- package/dist/cdn/YZC55QBU.js +0 -2
|
@@ -62,16 +62,16 @@ const J = (s) => {
|
|
|
62
62
|
o.splice(e, 0, i), ve(o, t);
|
|
63
63
|
}, rs = (s) => V(s) ? s.series.findIndex((e) => e.type === p.BoxPlotSeries) : -1;
|
|
64
64
|
function Oe(s, e, t) {
|
|
65
|
-
const o = ee(s, e, t), i = Se(s),
|
|
66
|
-
return o === i ||
|
|
65
|
+
const o = ee(s, e, t), i = Se(s), r = P(s);
|
|
66
|
+
return o === i || r;
|
|
67
67
|
}
|
|
68
68
|
function R(s, e, t) {
|
|
69
|
-
const o = T(s, e, t), i = k(1, s),
|
|
70
|
-
return o === i ||
|
|
69
|
+
const o = T(s, e, t), i = k(1, s), r = P(s);
|
|
70
|
+
return o === i || r;
|
|
71
71
|
}
|
|
72
72
|
function Ie(s) {
|
|
73
|
-
const { config: e, layerInfo: t, newCategory: o } = s, { layerFieldsInfo: i } = t,
|
|
74
|
-
return
|
|
73
|
+
const { config: e, layerInfo: t, newCategory: o } = s, { layerFieldsInfo: i } = t, r = C(e), n = o !== h ? A(i, r) : "", l = k(0, e), a = P(e);
|
|
74
|
+
return n === l || a || l.trim() === "";
|
|
75
75
|
}
|
|
76
76
|
const C = (s) => D(s)?.x ?? h, Me = Y(
|
|
77
77
|
(s) => {
|
|
@@ -86,38 +86,38 @@ const C = (s) => D(s)?.x ?? h, Me = Y(
|
|
|
86
86
|
// using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
|
|
87
87
|
(s) => s?.series
|
|
88
88
|
), O = (s) => {
|
|
89
|
-
const { category: e, seriesIndex: t, y: o, commonStrings: i } = s,
|
|
89
|
+
const { category: e, seriesIndex: t, y: o, commonStrings: i } = s, n = {
|
|
90
90
|
...j(i, t),
|
|
91
91
|
x: e === void 0 || e === "" ? h : e,
|
|
92
92
|
y: o,
|
|
93
93
|
query: {}
|
|
94
94
|
};
|
|
95
|
-
return K(
|
|
95
|
+
return K(n);
|
|
96
96
|
}, Pe = (s) => {
|
|
97
|
-
const { category: e, seriesIndex: t, y: o, commonStrings: i } = s,
|
|
97
|
+
const { category: e, seriesIndex: t, y: o, commonStrings: i } = s, n = {
|
|
98
98
|
...be({ commonStrings: i, seriesIndex: t }),
|
|
99
99
|
x: e === void 0 || e === "" ? h : e,
|
|
100
100
|
y: o,
|
|
101
101
|
query: {}
|
|
102
102
|
};
|
|
103
|
-
return K(
|
|
103
|
+
return K(n);
|
|
104
104
|
};
|
|
105
105
|
function G(s) {
|
|
106
|
-
const { x: e, y: t, seriesTemplate: o, commonStrings: i } = s, { id:
|
|
107
|
-
return l.id = a, l.name = a, l.x = e, l.y = t,
|
|
106
|
+
const { x: e, y: t, seriesTemplate: o, commonStrings: i } = s, { id: r, fillSymbol: n } = o ?? {}, l = j(i), a = r ?? `series_${Date.now()}`;
|
|
107
|
+
return l.id = a, l.name = a, l.x = e, l.y = t, n ? l.fillSymbol = n : l.fillSymbol && (l.fillSymbol.color = z, l.fillSymbol?.outline && (l.fillSymbol.outline.color = z)), l;
|
|
108
108
|
}
|
|
109
109
|
function Q(s) {
|
|
110
|
-
const { numericFields: e, config: t, layerInfo: o, category: i, commonStrings:
|
|
110
|
+
const { numericFields: e, config: t, layerInfo: o, category: i, commonStrings: r } = s, { layerFieldsInfo: n } = o, l = [], a = i ?? C(t), y = N({
|
|
111
111
|
fieldName: a,
|
|
112
112
|
numericFields: e,
|
|
113
|
-
fieldList:
|
|
113
|
+
fieldList: n
|
|
114
114
|
});
|
|
115
115
|
if (e.length === 0) {
|
|
116
116
|
const c = O({
|
|
117
117
|
y: "",
|
|
118
118
|
seriesIndex: 0,
|
|
119
119
|
category: a,
|
|
120
|
-
commonStrings:
|
|
120
|
+
commonStrings: r
|
|
121
121
|
});
|
|
122
122
|
l.push(c);
|
|
123
123
|
} else if (y) {
|
|
@@ -125,8 +125,8 @@ function Q(s) {
|
|
|
125
125
|
y: c,
|
|
126
126
|
seriesIndex: 0,
|
|
127
127
|
category: a,
|
|
128
|
-
commonStrings:
|
|
129
|
-
}), F = t.series.find((L) => le(c, L.y) && L.query?.where === void 0), d = M(F) ? F : void 0, m = d?.id ?? e[0], g = e.length > 1 ?
|
|
128
|
+
commonStrings: r
|
|
129
|
+
}), F = t.series.find((L) => le(c, L.y) && L.query?.where === void 0), d = M(F) ? F : void 0, m = d?.id ?? e[0], g = e.length > 1 ? r.axisLabels.values : A(o.layerFieldsInfo, e[0]), b = d?.name ?? g, B = {
|
|
130
130
|
...d ?? u,
|
|
131
131
|
id: m,
|
|
132
132
|
name: b,
|
|
@@ -139,8 +139,8 @@ function Q(s) {
|
|
|
139
139
|
y: u,
|
|
140
140
|
seriesIndex: c,
|
|
141
141
|
category: a,
|
|
142
|
-
commonStrings:
|
|
143
|
-
}), d = t.series.find((L) => u === L.y), m = M(d) ? d : void 0, g = m?.id ?? u, b = m?.name ?? A(
|
|
142
|
+
commonStrings: r
|
|
143
|
+
}), d = t.series.find((L) => u === L.y), m = M(d) ? d : void 0, g = m?.id ?? u, b = m?.name ?? A(n, u), B = {
|
|
144
144
|
...m ?? F,
|
|
145
145
|
id: g,
|
|
146
146
|
name: b,
|
|
@@ -155,17 +155,17 @@ function Ve(s, e, t) {
|
|
|
155
155
|
const o = [];
|
|
156
156
|
return s.forEach((i) => {
|
|
157
157
|
if (i.type === p.BoxPlotSeries) {
|
|
158
|
-
const { type:
|
|
158
|
+
const { type: r, fillSymbol: n, ...l } = i;
|
|
159
159
|
o.push({
|
|
160
160
|
...l,
|
|
161
161
|
type: p.LineSeries,
|
|
162
162
|
lineSymbol: {
|
|
163
163
|
...xe({ width: he }),
|
|
164
|
-
...
|
|
164
|
+
...n !== void 0 ? { color: n.color } : {}
|
|
165
165
|
},
|
|
166
166
|
markerSymbol: {
|
|
167
167
|
...ge(),
|
|
168
|
-
...
|
|
168
|
+
...n !== void 0 ? { color: n.color } : {}
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
}
|
|
@@ -182,13 +182,13 @@ function ke(s) {
|
|
|
182
182
|
const e = s.slice(1), t = [];
|
|
183
183
|
return e.forEach((o) => {
|
|
184
184
|
if (o.type === p.LineSeries) {
|
|
185
|
-
const { type: i, lineSymbol:
|
|
185
|
+
const { type: i, lineSymbol: r, markerSymbol: n, ...l } = o, a = $();
|
|
186
186
|
t.push({
|
|
187
187
|
...l,
|
|
188
188
|
type: p.BoxPlotSeries,
|
|
189
189
|
fillSymbol: {
|
|
190
190
|
...a,
|
|
191
|
-
color:
|
|
191
|
+
color: r?.color
|
|
192
192
|
}
|
|
193
193
|
});
|
|
194
194
|
}
|
|
@@ -197,9 +197,9 @@ function ke(s) {
|
|
|
197
197
|
function Z(s) {
|
|
198
198
|
const { formerSeries: e, newSeries: t, showMean: o } = s;
|
|
199
199
|
let i = t;
|
|
200
|
-
const
|
|
201
|
-
return
|
|
202
|
-
(a, y) =>
|
|
200
|
+
const r = (a) => a.type === (o ? p.LineSeries : p.BoxPlotSeries), n = e.filter(r).map((a) => a.id), l = t.filter(r).map((a) => a.id);
|
|
201
|
+
return n.length === l.length && JSON.stringify(n) !== JSON.stringify(l) && (i = i.sort(
|
|
202
|
+
(a, y) => n.findIndex((c) => c === a.id) - n.findIndex((c) => c === y.id)
|
|
203
203
|
)), i;
|
|
204
204
|
}
|
|
205
205
|
function Ne(s) {
|
|
@@ -208,15 +208,15 @@ function Ne(s) {
|
|
|
208
208
|
layerInfo: t,
|
|
209
209
|
commonStrings: o,
|
|
210
210
|
splitByField: i,
|
|
211
|
-
numericFields:
|
|
212
|
-
category:
|
|
211
|
+
numericFields: r,
|
|
212
|
+
category: n,
|
|
213
213
|
splitByFieldInfos: l
|
|
214
|
-
} = s, a =
|
|
214
|
+
} = s, a = n ?? C(e), { categoriesArray: y, splitByFieldType: c } = l;
|
|
215
215
|
let u = [];
|
|
216
216
|
const F = De(e);
|
|
217
217
|
if (y.length === 0) {
|
|
218
218
|
u = Q({
|
|
219
|
-
numericFields:
|
|
219
|
+
numericFields: r,
|
|
220
220
|
category: a,
|
|
221
221
|
config: e,
|
|
222
222
|
layerInfo: t,
|
|
@@ -227,7 +227,7 @@ function Ne(s) {
|
|
|
227
227
|
} else
|
|
228
228
|
for (let d = 0; d < y.length; d += 1) {
|
|
229
229
|
const m = y[d], g = {
|
|
230
|
-
y:
|
|
230
|
+
y: r,
|
|
231
231
|
seriesIndex: d,
|
|
232
232
|
category: a,
|
|
233
233
|
commonStrings: o
|
|
@@ -256,7 +256,7 @@ function Ne(s) {
|
|
|
256
256
|
}), V(e)) {
|
|
257
257
|
const d = e.series.find((g) => g.type === p.BoxPlotSeries), m = G({
|
|
258
258
|
x: a,
|
|
259
|
-
y:
|
|
259
|
+
y: r,
|
|
260
260
|
seriesTemplate: d,
|
|
261
261
|
commonStrings: o
|
|
262
262
|
});
|
|
@@ -265,22 +265,22 @@ function Ne(s) {
|
|
|
265
265
|
return u;
|
|
266
266
|
}
|
|
267
267
|
const ns = (s) => {
|
|
268
|
-
const { splitByField: e, numericFields: t, category: o, config: i, layerInfo:
|
|
268
|
+
const { splitByField: e, numericFields: t, category: o, config: i, layerInfo: r, commonStrings: n, splitByFieldInfos: l } = s, { layerFieldsInfo: a } = r, y = ze(o, t, e), c = me(a), u = C(i), F = Oe(i, r, n), d = R(i, r, n), m = Ie({ config: i, layerInfo: r, newCategory: o });
|
|
269
269
|
let g = U(i);
|
|
270
|
-
if (!c.includes(u) && c.includes(o) ? g = Fe() : c.includes(u) && !c.includes(o) && (g = Ae()), g !== void 0 && ae(i,
|
|
270
|
+
if (!c.includes(u) && c.includes(o) ? g = Fe() : c.includes(u) && !c.includes(o) && (g = Ae()), g !== void 0 && ae(i, n, g), W(y ? { newShowMeanLines: i.showMean, config: i, commonStrings: n } : { newShowMeanLines: !1, config: i, commonStrings: n }), i.series = y && l ? Ne({
|
|
271
271
|
config: i,
|
|
272
|
-
layerInfo:
|
|
272
|
+
layerInfo: r,
|
|
273
273
|
splitByField: e,
|
|
274
274
|
numericFields: t,
|
|
275
275
|
category: o,
|
|
276
|
-
commonStrings:
|
|
276
|
+
commonStrings: n,
|
|
277
277
|
splitByFieldInfos: l
|
|
278
278
|
}) : Q({
|
|
279
279
|
numericFields: t,
|
|
280
280
|
config: i,
|
|
281
|
-
layerInfo:
|
|
281
|
+
layerInfo: r,
|
|
282
282
|
category: o,
|
|
283
|
-
commonStrings:
|
|
283
|
+
commonStrings: n
|
|
284
284
|
}), m) {
|
|
285
285
|
const w = N({
|
|
286
286
|
fieldName: o,
|
|
@@ -290,50 +290,50 @@ const ns = (s) => {
|
|
|
290
290
|
I(i, 0, w);
|
|
291
291
|
}
|
|
292
292
|
if (d) {
|
|
293
|
-
const b = T(i,
|
|
293
|
+
const b = T(i, r, n);
|
|
294
294
|
I(i, 1, b);
|
|
295
295
|
}
|
|
296
|
-
i?.title !== void 0 && F && (i.title.content.text = ee(i,
|
|
296
|
+
i?.title !== void 0 && F && (i.title.content.text = ee(i, r, n)), E({ config: i, value: null, axisIndex: 1, isMax: !1 }), E({ config: i, value: null, axisIndex: 1, isMax: !0 });
|
|
297
297
|
}, qe = (s) => s?.standardizeValues ?? !1;
|
|
298
298
|
function T(s, e, t) {
|
|
299
299
|
const { layerFieldsInfo: o } = e;
|
|
300
|
-
let
|
|
301
|
-
return
|
|
300
|
+
let r = qe(s) ? t.axisLabels.standardizedValues : t.axisLabels.values, n = s?.series?.map((l) => l.y).flat();
|
|
301
|
+
return n = [...new Set(n)], n.length === 1 && (r = A(o, n[0])), r;
|
|
302
302
|
}
|
|
303
303
|
function ee(s, e, t) {
|
|
304
|
-
const { layerFieldsInfo: o } = e, i = C(s),
|
|
304
|
+
const { layerFieldsInfo: o } = e, i = C(s), r = _(s), n = Me(s), l = r.map((c) => A(o ?? [], c)).join(", "), a = A(o ?? [], i);
|
|
305
305
|
let y = "";
|
|
306
|
-
return
|
|
306
|
+
return r.length > 0 && (i !== h && n !== "" ? y = v(t.titleLabels.distributionOfFieldsByCategoryAndSplitBy, {
|
|
307
307
|
valueFields: l,
|
|
308
308
|
category: a,
|
|
309
|
-
splitByField:
|
|
309
|
+
splitByField: n
|
|
310
310
|
}) : i !== h ? y = v(t.titleLabels.distributionOfFieldsByCategory, {
|
|
311
311
|
valueFields: l,
|
|
312
312
|
category: a
|
|
313
|
-
}) :
|
|
313
|
+
}) : n !== "" ? y = v(t.titleLabels.distributionOfFieldsByCategory, {
|
|
314
314
|
valueFields: l,
|
|
315
|
-
category:
|
|
315
|
+
category: n
|
|
316
316
|
}) : y = v(t.titleLabels.distributionOfField, {
|
|
317
317
|
valueField: l
|
|
318
318
|
})), y;
|
|
319
319
|
}
|
|
320
320
|
const ls = (s) => {
|
|
321
321
|
const { series: e, splitByField: t, layerInfo: o, commonStrings: i } = s;
|
|
322
|
-
let
|
|
323
|
-
return ne(t) || (
|
|
322
|
+
let r = typeof e.y == "string" ? A(o.layerFieldsInfo, e.y) : i.axisLabels.values;
|
|
323
|
+
return ne(t) || (r = H(e)), r = X({
|
|
324
324
|
queryObject: o.layer,
|
|
325
325
|
fieldName: t,
|
|
326
|
-
fieldValue:
|
|
327
|
-
}) ??
|
|
326
|
+
fieldValue: r ?? ""
|
|
327
|
+
}) ?? r, r ?? e.id;
|
|
328
328
|
}, as = (s) => s?.showOutliers ?? !1, cs = (s) => {
|
|
329
329
|
const { newShowOutliers: e, config: t, layerInfo: o, commonStrings: i } = s;
|
|
330
330
|
if (t.showOutliers = e, R(t, o, i)) {
|
|
331
|
-
const
|
|
332
|
-
I(t, 1,
|
|
331
|
+
const n = T(t, o, i);
|
|
332
|
+
I(t, 1, n);
|
|
333
333
|
}
|
|
334
334
|
}, ds = (s) => {
|
|
335
|
-
const { newStandardizeValues: e, config: t, layerInfo: o, commonStrings: i } = s,
|
|
336
|
-
if (t.standardizeValues = e,
|
|
335
|
+
const { newStandardizeValues: e, config: t, layerInfo: o, commonStrings: i } = s, r = k(1, t), n = T(t, o, i), l = P(t);
|
|
336
|
+
if (t.standardizeValues = e, r === n || l) {
|
|
337
337
|
const a = T(t, o, i);
|
|
338
338
|
I(t, 1, a);
|
|
339
339
|
}
|
|
@@ -392,8 +392,8 @@ const ls = (s) => {
|
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
394
|
}, V = (s) => s.showMean ?? !1, W = (s) => {
|
|
395
|
-
const { newShowMeanLines: e = !1, config: t, commonStrings: o, previousMeanLinesBoxColor: i } = s,
|
|
396
|
-
if (t.showMean = e,
|
|
395
|
+
const { newShowMeanLines: e = !1, config: t, commonStrings: o, previousMeanLinesBoxColor: i } = s, r = e ? i : Ce(t), n = (e ?? !1) !== (t.showMean ?? !1);
|
|
396
|
+
if (t.showMean = e, n) {
|
|
397
397
|
let l;
|
|
398
398
|
e ? l = fe(t.series) ? Ve(t.series, o) : t.series : l = ke(t.series), l && (l = Z({
|
|
399
399
|
formerSeries: t.series,
|
|
@@ -401,7 +401,7 @@ const ls = (s) => {
|
|
|
401
401
|
showMean: e
|
|
402
402
|
}), t.series = l);
|
|
403
403
|
}
|
|
404
|
-
return e && i !== void 0 && we(i, t), { previousMeanLinesBoxColor:
|
|
404
|
+
return e && i !== void 0 && we(i, t), { previousMeanLinesBoxColor: r };
|
|
405
405
|
}, us = (s) => {
|
|
406
406
|
let e = [];
|
|
407
407
|
const t = s.orderOptions?.data?.orderType;
|
|
@@ -414,18 +414,19 @@ const ls = (s) => {
|
|
|
414
414
|
orderBy: s
|
|
415
415
|
});
|
|
416
416
|
}, ms = async (s) => {
|
|
417
|
-
const { config: e, layerInfo: t,
|
|
418
|
-
let
|
|
417
|
+
const { config: e, layerInfo: t, num: o, errorStrings: i } = s, r = C(e), n = U(e)?.type, l = _(e);
|
|
418
|
+
let a = [];
|
|
419
419
|
return n === p.CategoryAxisFormat && (N({
|
|
420
|
-
fieldName:
|
|
421
|
-
numericFields:
|
|
420
|
+
fieldName: r,
|
|
421
|
+
numericFields: l,
|
|
422
422
|
fieldList: t.layerFieldsInfo
|
|
423
|
-
}) ?
|
|
423
|
+
}) ? a = l : te(r) || (a = await ue({
|
|
424
424
|
layerInfo: t,
|
|
425
425
|
config: e,
|
|
426
|
-
category:
|
|
427
|
-
|
|
428
|
-
|
|
426
|
+
category: r,
|
|
427
|
+
num: o,
|
|
428
|
+
errorStrings: i
|
|
429
|
+
}))), a;
|
|
429
430
|
}, te = (s) => s.trim() === "" || s === h, Ee = (s, e) => e.length > 1 && !te(s), ze = (s, e, t) => !Ee(s, e) && t !== "";
|
|
430
431
|
export {
|
|
431
432
|
Te as A,
|
|
@@ -177,11 +177,14 @@ class i extends Oe {
|
|
|
177
177
|
}
|
|
178
178
|
/**
|
|
179
179
|
* Gets the list of the category values for the chart.
|
|
180
|
+
*
|
|
181
|
+
* @param num The maximum number of category values to fetch.
|
|
180
182
|
*/
|
|
181
|
-
async getCustomSortValues() {
|
|
183
|
+
async getCustomSortValues(e) {
|
|
182
184
|
return await _({
|
|
183
185
|
config: this._config,
|
|
184
186
|
layerInfo: this.layerInfo,
|
|
187
|
+
num: e,
|
|
185
188
|
errorStrings: this.commonStrings.errorStrings
|
|
186
189
|
});
|
|
187
190
|
}
|