@arcgis/charts-components 6.0.0-next.0 → 6.0.0-next.1
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/{54DSGXZ4.js → 2JIOGP7R.js} +1 -1
- package/dist/cdn/{ZMWTAWSP.js → 32URMI5E.js} +1 -1
- package/dist/cdn/3C5377V2.js +2 -0
- package/dist/cdn/{JU7EYMOJ.js → 3EOTHJWP.js} +1 -1
- package/dist/cdn/{Q5RYOZ3L.js → 3U6UEUC3.js} +1 -1
- package/dist/cdn/{K63HGT6O.js → 3V7MD72Y.js} +1 -1
- package/dist/cdn/{BWOIRNCD.js → 4IZR4ZL4.js} +1 -1
- package/dist/cdn/{SXRIEUIN.js → 4R6YXEBJ.js} +1 -1
- package/dist/cdn/{FRFHLGO7.js → 53QW4BYR.js} +1 -1
- package/dist/cdn/{XAUKPCFO.js → 5CXU3NKH.js} +1 -1
- package/dist/cdn/{KK3WP5IA.js → 5DHZV7X2.js} +1 -1
- package/dist/cdn/{JCLUY2EI.js → 64VXZM5A.js} +1 -1
- package/dist/cdn/{O4NXWUXR.js → 6RB4RYGN.js} +1 -1
- package/dist/cdn/{PF5QGO7P.js → 7TK4GSLV.js} +1 -1
- package/dist/cdn/{THXGBWDW.js → A5EZTVKV.js} +1 -1
- package/dist/cdn/{AHFXCORG.js → AKW3NHSY.js} +1 -1
- package/dist/cdn/{AQQSX6MB.js → AL6ZEHZK.js} +1 -1
- package/dist/cdn/{Y5JSJPHW.js → AX6KSFYK.js} +1 -1
- package/dist/cdn/{WQAPQIKI.js → B5SRZGC2.js} +1 -1
- package/dist/cdn/{XOCPNNLY.js → BF2W5NTN.js} +1 -1
- package/dist/cdn/{ANVRAFUS.js → BRBAHSCB.js} +1 -1
- package/dist/cdn/{EE7HRPYS.js → BRW7VZ2C.js} +1 -1
- package/dist/cdn/{7YFEZ5NG.js → C7WUBEMI.js} +1 -1
- package/dist/cdn/{BZLDCR76.js → CB6RALFJ.js} +1 -1
- package/dist/cdn/{METVD2N2.js → CE2OEL6G.js} +1 -1
- package/dist/cdn/DA5DYK4X.js +2 -0
- package/dist/cdn/DP3ALDSI.js +2 -0
- package/dist/cdn/{4LJXFMPL.js → DPXBPL2Y.js} +1 -1
- package/dist/cdn/{SNUNNPBG.js → DUIC7PGW.js} +1 -1
- package/dist/cdn/{6UH6D4P7.js → EETR5IRC.js} +1 -1
- package/dist/cdn/{FAPVUQXJ.js → EHD6HNUK.js} +1 -1
- package/dist/cdn/{NG66OGBO.js → EJAZWHRG.js} +1 -1
- package/dist/cdn/{MNR7SALB.js → EWFT2JV5.js} +1 -1
- package/dist/cdn/{PLGLTSHE.js → EWS4XDX5.js} +1 -1
- package/dist/cdn/{P2WGODPL.js → FI67QJAR.js} +1 -1
- package/dist/cdn/{K6EMFLBK.js → FTR2IWDM.js} +1 -1
- package/dist/cdn/{WONOW5WD.js → G2T43FGA.js} +1 -1
- package/dist/cdn/{KMB4KGP7.js → GPFDXMZV.js} +1 -1
- package/dist/cdn/{CRYNT7GM.js → GUU5K7KZ.js} +1 -1
- package/dist/cdn/{GBC7DUU3.js → HGCITTOQ.js} +1 -1
- package/dist/cdn/{HXUOAXW6.js → HPZNKDNN.js} +1 -1
- package/dist/cdn/{VMMRXTAY.js → HRYM365L.js} +1 -1
- package/dist/cdn/{RL2LPFWQ.js → IJGJ7LW4.js} +1 -1
- package/dist/cdn/{PIXQELBO.js → J24X7IAD.js} +1 -1
- package/dist/cdn/{XHCJKB27.js → J7CDASEM.js} +1 -1
- package/dist/cdn/{65FYSCF2.js → JBGGX4GF.js} +1 -1
- package/dist/cdn/{N2EY7RDB.js → JC3KQC4M.js} +1 -1
- package/dist/cdn/{4KVE3AGY.js → JCSGUVJN.js} +1 -1
- package/dist/cdn/{RBXMEHR5.js → JZCSDGTO.js} +1 -1
- package/dist/cdn/{LALIPDHB.js → K7KTLLN3.js} +1 -1
- package/dist/cdn/{NKYFX3GN.js → KCJ3UIVJ.js} +1 -1
- package/dist/cdn/{KCBT3VDQ.js → KFS2IDLJ.js} +1 -1
- package/dist/cdn/{F2W66ULA.js → KOPGJ6GL.js} +1 -1
- package/dist/cdn/{TBOCYB3D.js → KWJG3BJA.js} +1 -1
- package/dist/cdn/{VZUSTDAS.js → L6ACX7PK.js} +2 -2
- package/dist/cdn/{ILJVVN6I.js → L6AHDF5D.js} +1 -1
- package/dist/cdn/{KTYMZ5LM.js → L7USVDCR.js} +1 -1
- package/dist/cdn/{PPBZHYSA.js → M4G56EOH.js} +1 -1
- package/dist/cdn/{DGD5IYSW.js → NNIAFAEK.js} +1 -1
- package/dist/cdn/{ARNTHMJA.js → O3VCA2HA.js} +1 -1
- package/dist/cdn/{E2KUCER2.js → O7QPA3NH.js} +1 -1
- package/dist/cdn/{LYKIQ7DH.js → ORTPYOO7.js} +1 -1
- package/dist/cdn/{BMH7K2GR.js → OWAETVFH.js} +1 -1
- package/dist/cdn/{WZBDHR5B.js → PXKD656W.js} +1 -1
- package/dist/cdn/{6TELFJWN.js → QKPEMJRH.js} +1 -1
- package/dist/cdn/{2VXXSM6V.js → QXIFJISA.js} +1 -1
- package/dist/cdn/{N7UJDGTB.js → R44U46BF.js} +1 -1
- package/dist/cdn/{HYOZOWIV.js → RB2DJJAF.js} +1 -1
- package/dist/cdn/{FJR2CXBV.js → RV2J4OPJ.js} +1 -1
- package/dist/cdn/{B7EFM4EC.js → TLPP547P.js} +1 -1
- package/dist/cdn/{2V5NOKVR.js → TOFHR6G7.js} +1 -1
- package/dist/cdn/{Y4D3RT7S.js → TPFFIATK.js} +1 -1
- package/dist/cdn/{QOCXO3SH.js → U64ICCSZ.js} +1 -1
- package/dist/cdn/{QHYCUUOS.js → UW35QKDS.js} +2 -2
- package/dist/cdn/{UTDG54SS.js → VB6XKC4W.js} +1 -1
- package/dist/cdn/{YPOUCQL3.js → VCER6DFQ.js} +1 -1
- package/dist/cdn/{LXJ5MUWA.js → W5Z2EI2D.js} +1 -1
- package/dist/cdn/{3THTYYIE.js → WAUIROBC.js} +1 -1
- package/dist/cdn/{53BLOO76.js → WYDO2IF4.js} +1 -1
- package/dist/cdn/{45W7WOG7.js → XE6MQ6IR.js} +1 -1
- package/dist/cdn/{IRONVMYK.js → XEUHT7JB.js} +14 -14
- package/dist/cdn/{GONLVB3N.js → ZLI33FIZ.js} +1 -1
- package/dist/cdn/{ET6ADBCU.js → ZQPCVZ2Z.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +58 -56
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +1 -1
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +23 -23
- package/dist/chunks/index.js +164 -157
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/model-setter.js +5 -5
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/radar-chart-model.js +35 -22
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +5 -5
- package/dist/chunks/serial-chart-data.js +29 -29
- package/dist/chunks/serial-chart-model.js +5 -5
- package/dist/chunks/type-guards.js +7 -7
- package/dist/chunks/utils.js +7 -7
- package/dist/chunks/web-component-utils.js +41 -41
- package/dist/chunks/x-bounds.js +5 -5
- package/dist/components/arcgis-chart/customElement.js +460 -460
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +39 -27
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/index.js +253 -252
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +6 -0
- package/dist/utils/chart-config/converter/index.js +20 -20
- package/dist/utils/chart-config/utils/index.d.ts +10 -1
- package/package.json +4 -4
- package/dist/cdn/AEJUKKCS.js +0 -2
- package/dist/cdn/IKQYLTZL.js +0 -2
- package/dist/cdn/VB2SRFYU.js +0 -2
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
import { substitute as M } from "@arcgis/core/intl.js";
|
|
3
3
|
import { cloneDeep as te, memoize as He, isEmpty as Ue, isEqual as je } from "es-toolkit/compat";
|
|
4
4
|
import { S as ce } from "./common.js";
|
|
5
|
-
import { Z as L, aP as X, bo as Ze,
|
|
5
|
+
import { Z as L, aP as X, bo as Ze, bX as Ke, bY as _e, bM as Ne, g as Qe, q as ie, X as ze, W as Ge, bZ as Je, P as ge, a$ as et, b_ as tt, O as it, u as st, b$ as at, aQ as rt, R as nt, c0 as ot, $ as lt, bE as ct, c1 as ut, c2 as Se, c3 as dt, c4 as yt, c5 as mt, Q as gt, c6 as Fe, c7 as _, bO as pt, aR as q, a_ as Q, N as ft, t as j, a2 as Oe, c8 as Y, bK as U, c9 as St, ca as Ft, cb as O, cc as V, cd as he, bL as Te } from "./index.js";
|
|
6
6
|
import { u as $, s as Ve, g as pe, a as qe, b as ht, c as Tt, d as z, e as xe } from "./utils.js";
|
|
7
7
|
import { a as w, s as fe, g as se, b as Be, c as xt } from "./data.js";
|
|
8
|
-
import { a as x, d as I, f as Bt, l as R, t as
|
|
8
|
+
import { a as x, d as I, f as Bt, l as R, t as N, h as W, g as Ct, b as bt, e as ue } from "./chart-object-literals.js";
|
|
9
9
|
import { d as Re, b as At } from "./rest-js-object-literals.js";
|
|
10
10
|
import { i as ae } from "./index4.js";
|
|
11
|
-
import { q as vt, I as G, X as J, Y as de, J as It, Z as Lt, _ as
|
|
11
|
+
import { q as vt, I as G, X as J, Y as de, J as It, Z as Lt, _ as Dt, $ as Nt, a0 as Ot, k as Vt } from "./index3.js";
|
|
12
12
|
import { a as P, C as Ce, b as k } from "./index2.js";
|
|
13
13
|
import { g as ke, s as qt } from "./series-types.js";
|
|
14
14
|
import { C as Rt, m as kt } from "./model-setter.js";
|
|
15
15
|
import { convertChartSpec as Pt } from "../utils/chart-config/converter/index.js";
|
|
16
|
-
import { i as ye,
|
|
16
|
+
import { i as ye, b as wt } from "./type-guards.js";
|
|
17
17
|
import { g as re } from "./utils2.js";
|
|
18
18
|
import { b as Et, g as Mt } from "./series-length.js";
|
|
19
19
|
const ki = (i) => {
|
|
@@ -106,7 +106,7 @@ function _t(i) {
|
|
|
106
106
|
return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
107
107
|
}
|
|
108
108
|
function Ui(i, e) {
|
|
109
|
-
return e != null ||
|
|
109
|
+
return e != null || Ne(i);
|
|
110
110
|
}
|
|
111
111
|
async function ji(i) {
|
|
112
112
|
const { config: e, layer: t, abortSignal: a } = i;
|
|
@@ -285,12 +285,12 @@ async function ei(i) {
|
|
|
285
285
|
initialConfigWasEmpty: d
|
|
286
286
|
});
|
|
287
287
|
Array.from(A.keys()).forEach((v) => {
|
|
288
|
-
(A.get(v) ?? []).forEach((
|
|
288
|
+
(A.get(v) ?? []).forEach((D) => {
|
|
289
289
|
t.series.push(
|
|
290
290
|
Jt({
|
|
291
291
|
chartConfig: t,
|
|
292
292
|
seriesTemplate: p,
|
|
293
|
-
missingValue:
|
|
293
|
+
missingValue: D,
|
|
294
294
|
splitByField: m
|
|
295
295
|
})
|
|
296
296
|
);
|
|
@@ -302,7 +302,7 @@ async function ei(i) {
|
|
|
302
302
|
return u;
|
|
303
303
|
}
|
|
304
304
|
function ti(i, e) {
|
|
305
|
-
e && !
|
|
305
|
+
e && !Ne(e) && (e = tt({ chartConfig: e, queryObject: i }));
|
|
306
306
|
}
|
|
307
307
|
async function Zi(i) {
|
|
308
308
|
const {
|
|
@@ -427,11 +427,11 @@ const _i = (i) => i.hideEmptyRowsAndColumns, Qi = (i, e) => {
|
|
|
427
427
|
ee({ axisIndex: 1, commonStrings: a, config: t });
|
|
428
428
|
}, ri = (i) => i.series[0].yTemporalBinning, ni = (i, e) => {
|
|
429
429
|
e.orderOptions ??= {};
|
|
430
|
-
const t = e.axes?.[0]?.valueFormat?.type === "category" ?
|
|
430
|
+
const t = e.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, a = me(e)[0], s = e.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = me(e)[1], n = {
|
|
431
431
|
...e.orderOptions.data ?? {},
|
|
432
|
-
orderType:
|
|
432
|
+
orderType: N.MultiAxes
|
|
433
433
|
};
|
|
434
|
-
a === ce.customSort && t ===
|
|
434
|
+
a === ce.customSort && t === N.Category && (n.orderByX = [...i]), r === ce.customSort && s === N.Category && (n.orderByY = [...i]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
|
|
435
435
|
}, as = (i, e) => {
|
|
436
436
|
const t = e.series[0];
|
|
437
437
|
t.gridLine && (t.gridLine.width = i);
|
|
@@ -488,10 +488,10 @@ function Ls(i, e) {
|
|
|
488
488
|
classificationMethod: i
|
|
489
489
|
}, e.series[0].classBreaksRules.breaksCount = e.series[0].classBreaksRules.breaksCount ?? G;
|
|
490
490
|
}
|
|
491
|
-
function
|
|
491
|
+
function Ds(i, e) {
|
|
492
492
|
e.firstDayOfWeek = i;
|
|
493
493
|
}
|
|
494
|
-
function
|
|
494
|
+
function Ns(i) {
|
|
495
495
|
return i.firstDayOfWeek;
|
|
496
496
|
}
|
|
497
497
|
function Os(i) {
|
|
@@ -562,7 +562,7 @@ const li = [
|
|
|
562
562
|
type: x.DateAxisFormat,
|
|
563
563
|
intlOptions: e
|
|
564
564
|
};
|
|
565
|
-
},
|
|
565
|
+
}, De = (i) => {
|
|
566
566
|
const { axisIndex: e, binning: t, commonStrings: a, config: s, fieldName: r, layerInfo: n } = i, o = s.series[0], l = re(e, s), c = k(n.layerFieldsInfo, r);
|
|
567
567
|
e === 0 ? o.xTemporalBinning = t : e === 1 && (o.yTemporalBinning = t), t !== void 0 && (l === "" || l === c || l === Ie(a, t.unit) || l === a.xAxis) && $(s, e, Ie(a, t.unit));
|
|
568
568
|
}, ee = (i) => {
|
|
@@ -572,7 +572,7 @@ const li = [
|
|
|
572
572
|
const { commonStrings: e, config: t, layerInfo: a } = i, s = t.series[0]?.x ?? "", r = t.series[0]?.y ?? "", n = Fe(a.layerFieldsInfo, s), o = Fe(a.layerFieldsInfo, r), l = be(n), c = be(o), g = Ae(n) && Ae(o), f = _(n) && _(o);
|
|
573
573
|
if (ve({ axisIndex: 0, commonStrings: e, config: t, valueFormat: l }), ve({ axisIndex: 1, commonStrings: e, config: t, valueFormat: c }), g) {
|
|
574
574
|
const p = ai(t) === void 0, u = ri(t) === void 0;
|
|
575
|
-
p && (
|
|
575
|
+
p && (De({
|
|
576
576
|
axisIndex: 0,
|
|
577
577
|
binning: Le(0, t.series[0].yTemporalBinning),
|
|
578
578
|
commonStrings: e,
|
|
@@ -583,7 +583,7 @@ const li = [
|
|
|
583
583
|
axisIndex: 0,
|
|
584
584
|
commonStrings: e,
|
|
585
585
|
config: t
|
|
586
|
-
})), u && (
|
|
586
|
+
})), u && (De({
|
|
587
587
|
axisIndex: 1,
|
|
588
588
|
binning: Le(1, t.series[0].xTemporalBinning),
|
|
589
589
|
commonStrings: e,
|
|
@@ -618,11 +618,11 @@ function ne(i) {
|
|
|
618
618
|
commonStrings: n,
|
|
619
619
|
seriesIndex: e,
|
|
620
620
|
objectIDField: o
|
|
621
|
-
}) : f ? l =
|
|
621
|
+
}) : f ? l = Dt({
|
|
622
622
|
commonStrings: n,
|
|
623
623
|
seriesIndex: e,
|
|
624
624
|
objectIDField: o
|
|
625
|
-
}) : p ? l =
|
|
625
|
+
}) : p ? l = Nt(n, o) : l = Ot({
|
|
626
626
|
seriesIndex: e,
|
|
627
627
|
objectIDField: o,
|
|
628
628
|
commonStrings: n
|
|
@@ -774,10 +774,10 @@ function Ye(i) {
|
|
|
774
774
|
const me = (i) => {
|
|
775
775
|
let e;
|
|
776
776
|
if (X(i)) {
|
|
777
|
-
const t = i.orderOptions?.data?.orderByX ?? [""], a = i.orderOptions?.data?.orderByY ?? [""], s = i.axes?.[0]?.valueFormat?.type === "category" ?
|
|
777
|
+
const t = i.orderOptions?.data?.orderByX ?? [""], a = i.orderOptions?.data?.orderByY ?? [""], s = i.axes?.[0]?.valueFormat?.type === "category" ? N.Category : N.YValue, r = i.axes?.[1]?.valueFormat?.type === "category" ? N.Category : N.YValue;
|
|
778
778
|
e = [Be(t, s), Be(a, r)];
|
|
779
779
|
} else {
|
|
780
|
-
const t = i.orderOptions?.data?.orderType ??
|
|
780
|
+
const t = i.orderOptions?.data?.orderType ?? N.Category, a = i.orderOptions?.data && "orderBy" in i.orderOptions.data ? i.orderOptions.data.orderBy : Ct.Ascending;
|
|
781
781
|
e = [xt(a, t)];
|
|
782
782
|
}
|
|
783
783
|
return e;
|
|
@@ -826,7 +826,7 @@ function $e(i) {
|
|
|
826
826
|
layerInfo: r,
|
|
827
827
|
seriesIndex: d,
|
|
828
828
|
commonStrings: n
|
|
829
|
-
}), m = s.series[d]?.y, F = typeof m == "string" && m.trim() !== "" && !o.find((
|
|
829
|
+
}), m = s.series[d]?.y, F = typeof m == "string" && m.trim() !== "" && !o.find((D) => D.name === m) ? m : se({
|
|
830
830
|
config: s,
|
|
831
831
|
xAxisField: e,
|
|
832
832
|
numericFields: t,
|
|
@@ -835,7 +835,7 @@ function $e(i) {
|
|
|
835
835
|
numericFieldIndex: d,
|
|
836
836
|
fieldList: o
|
|
837
837
|
}).name, S = t[d], h = s.series.find(
|
|
838
|
-
(
|
|
838
|
+
(D) => D.query?.where === void 0 && (D.query?.outStatistics?.length === 1 && D.query?.outStatistics?.[0]?.onStatisticField === S || D.query?.outStatistics === void 0 && (D.y === S || D.x === S))
|
|
839
839
|
), b = S !== l ? S : y.id, C = h?.id ?? b, T = h?.name ?? k(o, S) ?? C, A = h ?? y, v = {
|
|
840
840
|
...A,
|
|
841
841
|
id: C,
|
|
@@ -953,7 +953,7 @@ function gi(i) {
|
|
|
953
953
|
fieldName: e,
|
|
954
954
|
fieldValue: m ?? ""
|
|
955
955
|
}), b = `${m}`, C = r.series.find(
|
|
956
|
-
(
|
|
956
|
+
(D) => String(Ee(D)).trim().replace(/'/gu, "") === b
|
|
957
957
|
), T = C?.id ?? b, A = C?.name ?? h ?? T, v = C ?? S, E = {
|
|
958
958
|
...v,
|
|
959
959
|
id: T,
|
|
@@ -988,7 +988,7 @@ const Ps = (i) => {
|
|
|
988
988
|
splitByFieldInfos: l
|
|
989
989
|
} = i, { layerFieldsInfo: c } = n ?? {}, g = te(r), f = Et(r), p = w(g), u = K(g), d = oe(g), y = c.find((B) => B.name === p), m = r.series[0]?.query === void 0, F = H(g), S = c.find((B) => B.name === e), h = le(g, n, o), b = We(g, n, o), C = pi({ config: g, layerInfo: n, commonStrings: o });
|
|
990
990
|
let T = qe(r);
|
|
991
|
-
const A = g.series.some((B) => Y(B)), v = St(g.series), E = Ft(g.series),
|
|
991
|
+
const A = g.series.some((B) => Y(B)), v = St(g.series), E = Ft(g.series), D = q(y) || q(S);
|
|
992
992
|
if (_(S) ? T = de() : !Q(y) && Q(S) ? T = J() : !q(y) && q(S) ? T = J() : q(y) && !q(S) && (A ? T = de() : T = Vt()), T !== void 0 && Tt(r, o, T), f === 0 && (r.series = [
|
|
993
993
|
ne({ config: r, xAxisField: e, aggregationType: s, layerInfo: n, commonStrings: o })
|
|
994
994
|
]), r.series.forEach((B) => {
|
|
@@ -1034,7 +1034,7 @@ const Ps = (i) => {
|
|
|
1034
1034
|
});
|
|
1035
1035
|
$(r, 1, B);
|
|
1036
1036
|
}
|
|
1037
|
-
if (h && r.title && (r.title.content.text = Z(r, n, o)), p === e && u === t && d === s && je(F, a) || Ye(r), yi({ numericFields: a, aggregationType: s, config: r, layerInfo: n }), (v || E) && (z({ config: r, value: null, axisIndex: 0, isMax: !1 }), z({ config: r, value: null, axisIndex: 0, isMax: !0 }),
|
|
1037
|
+
if (h && r.title && (r.title.content.text = Z(r, n, o)), p === e && u === t && d === s && je(F, a) || Ye(r), yi({ numericFields: a, aggregationType: s, config: r, layerInfo: n }), (v || E) && (z({ config: r, value: null, axisIndex: 0, isMax: !1 }), z({ config: r, value: null, axisIndex: 0, isMax: !0 }), D && s !== I.NoAggregation && !X(g))) {
|
|
1038
1038
|
const B = q(S) ? W.Null : W.Interpolate;
|
|
1039
1039
|
Xt(B, r);
|
|
1040
1040
|
}
|
|
@@ -1069,8 +1069,8 @@ const Ps = (i) => {
|
|
|
1069
1069
|
else {
|
|
1070
1070
|
e.orderOptions ??= {};
|
|
1071
1071
|
const t = e.orderOptions?.data?.orderType;
|
|
1072
|
-
me(e)[0] === ce.customSort && t ===
|
|
1073
|
-
orderType:
|
|
1072
|
+
me(e)[0] === ce.customSort && t === N.Category && (e.orderOptions.data = {
|
|
1073
|
+
orderType: N.Category,
|
|
1074
1074
|
orderBy: [...i]
|
|
1075
1075
|
});
|
|
1076
1076
|
}
|
|
@@ -1166,8 +1166,8 @@ export {
|
|
|
1166
1166
|
Fs as ah,
|
|
1167
1167
|
hs as ai,
|
|
1168
1168
|
Ts as aj,
|
|
1169
|
-
|
|
1170
|
-
|
|
1169
|
+
Ns as ak,
|
|
1170
|
+
Ds as al,
|
|
1171
1171
|
xs as am,
|
|
1172
1172
|
Bs as an,
|
|
1173
1173
|
Xi as b,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { isEqual as x } from "es-toolkit/compat";
|
|
3
3
|
import { a as _, c as b, d as f } from "./chart-object-literals.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c8 as v, cb as L, bK as p, t as M } from "./index.js";
|
|
5
5
|
import { i as P } from "./index4.js";
|
|
6
6
|
import { m as o } from "./model-setter.js";
|
|
7
7
|
import { S as V } from "./common.js";
|
|
8
8
|
import { M as N, a as k, W as R, b as E } from "./data-labels-visibility.js";
|
|
9
9
|
import { M as U, a as j } from "./model-with-y-guides.js";
|
|
10
10
|
import { C as O } from "./chart-model.js";
|
|
11
|
-
import { g as S, d as u, j as X, k as Y, l as w, m as z, n as K, o as q, q as G, t as $, v as
|
|
11
|
+
import { g as S, d as u, j as X, k as Y, l as w, m as z, n as K, o as q, q as G, t as $, v as Z, w as H, x as J, y as Q, z as m, A as T, B, C as d, D as ee, E as ie, e as te, F as se, W as re } from "./serial-chart-data.js";
|
|
12
12
|
import { M as oe } from "./model-with-x-guides.js";
|
|
13
13
|
import { W as ne, c as ae, d as le } from "./axis-lines-symbol.js";
|
|
14
14
|
import { W as ge, c as ce, d as he } from "./generate-x-axis-title.js";
|
|
@@ -120,13 +120,13 @@ class c extends O {
|
|
|
120
120
|
* - Line series: connects the lines across null values.
|
|
121
121
|
*/
|
|
122
122
|
get nullPolicy() {
|
|
123
|
-
return
|
|
123
|
+
return Z(this._config);
|
|
124
124
|
}
|
|
125
125
|
set nullPolicy(e) {
|
|
126
|
-
|
|
126
|
+
H(e, this._config);
|
|
127
127
|
}
|
|
128
128
|
resetTimeInterval() {
|
|
129
|
-
|
|
129
|
+
J(this._config);
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
h([
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as $, a as n, d as A, g as U } from "./chart-object-literals.js";
|
|
3
|
-
import { t as B, ak as T,
|
|
3
|
+
import { t as B, ak as T, cl as H, cm as D, cn as j, co as k, P as K, a2 as N } from "./index.js";
|
|
4
4
|
import { J as X, a1 as Y, a2 as G, Y as J, a8 as Q, a3 as z, H as Z } from "./index3.js";
|
|
5
5
|
import { i as q } from "./type-guards.js";
|
|
6
6
|
import { f as _, b as I, i as ee, q as te } from "./index2.js";
|
|
@@ -115,7 +115,7 @@ async function Le(s) {
|
|
|
115
115
|
chartLimits: f,
|
|
116
116
|
errorStrings: x
|
|
117
117
|
} = s, m = r.filter((S) => S.name === a)[0]?.type, c = d !== !0 ? `${a} IS NOT NULL` : "", p = t && d !== !0 ? `${t} IS NOT NULL` : "", h = w(e?.series), { where: P } = e?.dataFilters ?? {}, R = {
|
|
118
|
-
where:
|
|
118
|
+
where: D([P, c, p]),
|
|
119
119
|
// excluding the null values from the list
|
|
120
120
|
orderByFields: ee(a) ? [] : [`${a} ${U.Ascending}`],
|
|
121
121
|
// default sorting ascending for split-by field
|
|
@@ -123,11 +123,11 @@ async function Le(s) {
|
|
|
123
123
|
};
|
|
124
124
|
let F = "";
|
|
125
125
|
o?.length === 0 ? F = B(i).idField : o && ([F] = o);
|
|
126
|
-
let g = i ? q(i) ? await
|
|
126
|
+
let g = i ? q(i) ? await j({
|
|
127
127
|
layer: i,
|
|
128
128
|
category: e?.series[0].x ?? "",
|
|
129
129
|
splitByField: a
|
|
130
|
-
}) : await
|
|
130
|
+
}) : await k({
|
|
131
131
|
queryObject: i,
|
|
132
132
|
category: e?.series[0].x ?? "",
|
|
133
133
|
splitByField: a,
|
|
@@ -186,13 +186,13 @@ function Ce(s, e) {
|
|
|
186
186
|
}
|
|
187
187
|
async function Oe(s) {
|
|
188
188
|
const { layerInfo: e, config: i, category: t, errorStrings: a } = s, { layer: r } = e, { where: o } = i?.dataFilters ?? {}, { fetchNullValues: d } = i?.series?.[0]?.query ?? {}, f = d !== !0 ? `${t} IS NOT NULL` : "", x = {
|
|
189
|
-
where:
|
|
189
|
+
where: D([o, f]),
|
|
190
190
|
// excluding the null values from the list
|
|
191
191
|
orderByFields: [],
|
|
192
192
|
geometry: i?.dataFilters?.geometry
|
|
193
193
|
};
|
|
194
194
|
let l;
|
|
195
|
-
return q(r) ? l = (await
|
|
195
|
+
return q(r) ? l = (await j({
|
|
196
196
|
layer: r,
|
|
197
197
|
category: t,
|
|
198
198
|
fetchNullValues: d
|
|
@@ -204,7 +204,7 @@ async function Oe(s) {
|
|
|
204
204
|
fieldValue: c
|
|
205
205
|
}) ?? c;
|
|
206
206
|
}) : l = // fetch unique category values asynchronously
|
|
207
|
-
(await
|
|
207
|
+
(await k({ queryObject: r, category: t, queryConfig: x, errorStrings: a })).map(
|
|
208
208
|
(m) => {
|
|
209
209
|
const c = String(m);
|
|
210
210
|
return N({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { capitalize as
|
|
2
|
+
import { capitalize as D, isNumber as H, zip as ae, isEqual as ue } from "es-toolkit/compat";
|
|
3
3
|
import { H as W } from "./interfaces.js";
|
|
4
4
|
import { g as ce, a as q, b as oe, c as _ } from "./box-plot-data.js";
|
|
5
5
|
import { g as fe } from "./histogram-data.js";
|
|
@@ -7,7 +7,7 @@ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
|
|
|
7
7
|
import { a as ie } from "./series-length.js";
|
|
8
8
|
import { g as re, d as le, e as ge } from "./serial-chart-data.js";
|
|
9
9
|
import { g as z, a as pe } from "./data.js";
|
|
10
|
-
import { q as U, t as be, r as xe, V as E, I as Fe, Q as P, a2 as Ce, aR as
|
|
10
|
+
import { q as U, t as be, r as xe, V as E, I as Fe, Q as P, a2 as Ce, aR as Se, bS as De } from "./index.js";
|
|
11
11
|
import { i as Y, M as $, l as R, N as ve, O as Be, P as Q } from "./index3.js";
|
|
12
12
|
import { i as K, a as g, C as A } from "./index2.js";
|
|
13
13
|
import { g as he } from "./series-types.js";
|
|
@@ -269,7 +269,7 @@ function $e(l, e) {
|
|
|
269
269
|
}
|
|
270
270
|
function Ne(l) {
|
|
271
271
|
const { fieldName: e, dataContext: t } = l, a = A.rendererSymbolField;
|
|
272
|
-
return e === a && t !== void 0 ?
|
|
272
|
+
return e === a && t !== void 0 ? De(t) : void 0;
|
|
273
273
|
}
|
|
274
274
|
function ee(l) {
|
|
275
275
|
const { config: e, splitByField: t, splitByValue: a, splitByValueIndex: o, layer: i, fieldList: r, timeZone: n } = l;
|
|
@@ -296,24 +296,24 @@ function Te(l) {
|
|
|
296
296
|
const v = p[Y.xField], b = p[Y.yField], x = p[Y.valueField], C = typeof x == "number" && Number.isFinite(x) ? x.toFixed(2) : x;
|
|
297
297
|
let m = { label: n.x, value: v }, d = { label: n.y, value: b };
|
|
298
298
|
if (n.xTemporalBinning !== void 0) {
|
|
299
|
-
const { label: F, value:
|
|
299
|
+
const { label: F, value: S } = G({
|
|
300
300
|
value: Number(v),
|
|
301
301
|
config: e,
|
|
302
302
|
formatLocale: i,
|
|
303
303
|
unit: n.xTemporalBinning.unit,
|
|
304
304
|
utilsStrings: r
|
|
305
305
|
});
|
|
306
|
-
!K(F) && !K(
|
|
306
|
+
!K(F) && !K(S) && (m = { label: F, value: S });
|
|
307
307
|
}
|
|
308
308
|
if (n.yTemporalBinning !== void 0) {
|
|
309
|
-
const { label: F, value:
|
|
309
|
+
const { label: F, value: S } = G({
|
|
310
310
|
value: Number(b),
|
|
311
311
|
config: e,
|
|
312
312
|
formatLocale: i,
|
|
313
313
|
unit: n.yTemporalBinning.unit,
|
|
314
314
|
utilsStrings: r
|
|
315
315
|
});
|
|
316
|
-
!K(F) && !K(
|
|
316
|
+
!K(F) && !K(S) && (d = { label: F, value: S });
|
|
317
317
|
}
|
|
318
318
|
return {
|
|
319
319
|
[m.label]: m.value,
|
|
@@ -323,7 +323,7 @@ function Te(l) {
|
|
|
323
323
|
});
|
|
324
324
|
}
|
|
325
325
|
function Re(l, e, t) {
|
|
326
|
-
const a = fe(l), o = `${
|
|
326
|
+
const a = fe(l), o = `${D(W.Min)} of ${a}`, i = `${D(W.Max)} of ${a}`, r = `${D(W.Count)} of ${a}`;
|
|
327
327
|
return e.map((n) => {
|
|
328
328
|
const { minValue: s, maxValue: c, count: f } = n, u = H(s), p = H(c), v = H(f), b = {};
|
|
329
329
|
if (u && (b[o] = B({
|
|
@@ -355,7 +355,7 @@ function Ie(l, e, t) {
|
|
|
355
355
|
return t ? o = t.map((i) => a.find((r) => r.toLowerCase().includes(i.toLowerCase())) || "") : o = a.filter((r) => r.toLowerCase().includes(e.toLowerCase())), o.filter((i) => i.trim() !== "");
|
|
356
356
|
}
|
|
357
357
|
function Ke(l) {
|
|
358
|
-
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = pe(e), c = re(e), f =
|
|
358
|
+
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = pe(e), c = re(e), f = D(c), u = le(e), p = U(e.series), v = ie(e), b = ge(e), { idField: x, isTraditionalTypeOID: C } = be(xe(a)), m = C && u.length === 1 && u[0] === x;
|
|
359
359
|
let d;
|
|
360
360
|
switch (p) {
|
|
361
361
|
case g.BarAndLineNoAggregation:
|
|
@@ -368,28 +368,28 @@ function Ke(l) {
|
|
|
368
368
|
formatter: i?.xAxisLabelFormatter,
|
|
369
369
|
useRendererLabel: r,
|
|
370
370
|
timeZone: n
|
|
371
|
-
}),
|
|
371
|
+
}), S = { [s]: F };
|
|
372
372
|
return Object.assign(
|
|
373
|
-
|
|
373
|
+
S,
|
|
374
374
|
...u.map((h) => ({
|
|
375
375
|
[h]: B({
|
|
376
376
|
value: y[h],
|
|
377
377
|
originalValue: y[h]
|
|
378
378
|
})
|
|
379
379
|
}))
|
|
380
|
-
),
|
|
380
|
+
), S;
|
|
381
381
|
});
|
|
382
382
|
break;
|
|
383
383
|
case g.BarAndLineFromFields:
|
|
384
384
|
d = ae(u, t).map(([y, F]) => {
|
|
385
|
-
const
|
|
385
|
+
const S = E(e.series)[0], h = {};
|
|
386
386
|
return F !== void 0 && y !== void 0 && (h.Field = B({
|
|
387
387
|
value: F[s],
|
|
388
388
|
originalValue: F[s],
|
|
389
389
|
formatter: i?.xAxisLabelFormatter
|
|
390
390
|
}), h.Value = B({
|
|
391
|
-
value: F[
|
|
392
|
-
originalValue: F[
|
|
391
|
+
value: F[S],
|
|
392
|
+
originalValue: F[S]
|
|
393
393
|
})), h;
|
|
394
394
|
});
|
|
395
395
|
break;
|
|
@@ -404,7 +404,7 @@ function Ke(l) {
|
|
|
404
404
|
formatter: i?.xAxisLabelFormatter,
|
|
405
405
|
useRendererLabel: r,
|
|
406
406
|
timeZone: n
|
|
407
|
-
}),
|
|
407
|
+
}), S = { [s]: F };
|
|
408
408
|
return u.forEach((h, V) => {
|
|
409
409
|
const w = z({
|
|
410
410
|
config: e,
|
|
@@ -416,16 +416,16 @@ function Ke(l) {
|
|
|
416
416
|
fieldList: o
|
|
417
417
|
}), N = E(e.series)[V];
|
|
418
418
|
let I = N, Z = N;
|
|
419
|
-
N.toLowerCase() === w.name.toLowerCase() && (I = w.description, Z = w.name),
|
|
419
|
+
N.toLowerCase() === w.name.toLowerCase() && (I = w.description, Z = w.name), S[I] = B({
|
|
420
420
|
value: y[Z],
|
|
421
421
|
originalValue: y[Z]
|
|
422
422
|
});
|
|
423
|
-
}),
|
|
423
|
+
}), S;
|
|
424
424
|
});
|
|
425
425
|
break;
|
|
426
426
|
case g.BarAndLineSplitBy:
|
|
427
427
|
d = t.flatMap((y) => {
|
|
428
|
-
const F = E(e.series),
|
|
428
|
+
const F = E(e.series), S = O({
|
|
429
429
|
field: s,
|
|
430
430
|
row: y,
|
|
431
431
|
layer: a,
|
|
@@ -445,7 +445,7 @@ function Ke(l) {
|
|
|
445
445
|
timeZone: n
|
|
446
446
|
});
|
|
447
447
|
return {
|
|
448
|
-
[s]:
|
|
448
|
+
[s]: S,
|
|
449
449
|
[b]: w,
|
|
450
450
|
[m ? f : `${f} of ${u[0]}`]: y[F[V]]
|
|
451
451
|
};
|
|
@@ -462,7 +462,7 @@ function Ke(l) {
|
|
|
462
462
|
formatter: i?.xAxisLabelFormatter,
|
|
463
463
|
useRendererLabel: r,
|
|
464
464
|
timeZone: n
|
|
465
|
-
}),
|
|
465
|
+
}), S = Ie(y, u[0], v), h = y[b], V = v.findIndex((I) => $e(I, h)), w = ee({
|
|
466
466
|
config: e,
|
|
467
467
|
splitByField: b,
|
|
468
468
|
splitByValue: h,
|
|
@@ -474,7 +474,7 @@ function Ke(l) {
|
|
|
474
474
|
return {
|
|
475
475
|
[s]: F,
|
|
476
476
|
[b]: w,
|
|
477
|
-
[u[0]]: y[
|
|
477
|
+
[u[0]]: y[S[0]]
|
|
478
478
|
};
|
|
479
479
|
});
|
|
480
480
|
break;
|
|
@@ -527,7 +527,7 @@ function Ee(l) {
|
|
|
527
527
|
return c === g.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (y = b.description, F = b.name), d[y] = B({
|
|
528
528
|
value: C[F],
|
|
529
529
|
originalValue: C[F]
|
|
530
|
-
}), d[
|
|
530
|
+
}), d[D($.trim())] = B({
|
|
531
531
|
value: C[`${F}${$}`],
|
|
532
532
|
originalValue: C[`${F}${$}`]
|
|
533
533
|
}), d;
|
|
@@ -540,7 +540,7 @@ function Ee(l) {
|
|
|
540
540
|
}), d.Value = B({
|
|
541
541
|
value: m[x],
|
|
542
542
|
originalValue: m[x]
|
|
543
|
-
}), d[
|
|
543
|
+
}), d[D($.trim())] = B({
|
|
544
544
|
value: m[`${x}${$}`],
|
|
545
545
|
originalValue: m[`${x}${$}`]
|
|
546
546
|
})), d;
|
|
@@ -569,13 +569,13 @@ function T(l) {
|
|
|
569
569
|
fieldList: r,
|
|
570
570
|
timeZone: n
|
|
571
571
|
});
|
|
572
|
-
t[s] = x, t[
|
|
572
|
+
t[s] = x, t[D(P.Outlier)] = e[u];
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
575
|
case g.BoxPlotC4MultiFieldsAndCategory: {
|
|
576
|
-
t[
|
|
576
|
+
t[D(s)] = e[s], u = `${c.find(
|
|
577
577
|
(C) => Object.keys(e).some((m) => m.toLowerCase().includes(C.toLowerCase()))
|
|
578
|
-
) ?? ""}_${u}`, t[
|
|
578
|
+
) ?? ""}_${u}`, t[D(P.Outlier)] = e[u];
|
|
579
579
|
break;
|
|
580
580
|
}
|
|
581
581
|
case g.BoxPlotC5MonoFieldAndSplitBy:
|
|
@@ -587,7 +587,7 @@ function T(l) {
|
|
|
587
587
|
fieldList: r,
|
|
588
588
|
timeZone: n
|
|
589
589
|
});
|
|
590
|
-
u = `${x}_${u}`, t.Field = e[p], t[
|
|
590
|
+
u = `${x}_${u}`, t.Field = e[p], t[D(f)] = C, t[D(P.Outlier)] = e[u];
|
|
591
591
|
break;
|
|
592
592
|
}
|
|
593
593
|
case g.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
|
|
@@ -598,25 +598,25 @@ function T(l) {
|
|
|
598
598
|
fieldList: r,
|
|
599
599
|
timeZone: n
|
|
600
600
|
});
|
|
601
|
-
u = `${x}_${u}`, t[
|
|
601
|
+
u = `${x}_${u}`, t[D(s)] = e[s], t[D(f)] = C, t[D(P.Outlier)] = e[u];
|
|
602
602
|
break;
|
|
603
603
|
}
|
|
604
604
|
case g.BoxPlotC1MonoField:
|
|
605
605
|
case g.BoxPlotC2MultiFields:
|
|
606
606
|
default: {
|
|
607
|
-
t.Field = e[p], t[
|
|
607
|
+
t.Field = e[p], t[D(P.Outlier)] = e[u];
|
|
608
608
|
break;
|
|
609
609
|
}
|
|
610
610
|
}
|
|
611
611
|
const v = `${u}${Q}`, b = e[v];
|
|
612
|
-
b !== void 0 && (t[`${
|
|
612
|
+
b !== void 0 && (t[`${D(P.Outlier)} Z-Score`] = b);
|
|
613
613
|
}
|
|
614
614
|
function Ue(l) {
|
|
615
615
|
const { rawData: e, outRow: t, config: a, splitByValue: o, layer: i, fieldList: r, timeZone: n } = l, s = U(a.series), c = e[`${o}_${P.Average}`], f = _(a), u = q(a);
|
|
616
616
|
let p = "";
|
|
617
617
|
switch (s) {
|
|
618
618
|
case g.BoxPlotC5MonoFieldAndSplitBy: {
|
|
619
|
-
p = `${o}_${f}`, t.Field = e[R], t[
|
|
619
|
+
p = `${o}_${f}`, t.Field = e[R], t[D(f)] = M({
|
|
620
620
|
field: f,
|
|
621
621
|
value: e[p],
|
|
622
622
|
layer: i,
|
|
@@ -626,7 +626,7 @@ function Ue(l) {
|
|
|
626
626
|
break;
|
|
627
627
|
}
|
|
628
628
|
case g.BoxPlotC6MultiFieldsAndSplitBy: {
|
|
629
|
-
p = `${o}_${P.Average}`, t.Field = e[R], t[
|
|
629
|
+
p = `${o}_${P.Average}`, t.Field = e[R], t[D(f)] = M({
|
|
630
630
|
field: f,
|
|
631
631
|
value: e[p],
|
|
632
632
|
layer: i,
|
|
@@ -636,7 +636,7 @@ function Ue(l) {
|
|
|
636
636
|
break;
|
|
637
637
|
}
|
|
638
638
|
case g.BoxPlotC7MonoFieldAndCategoryAndSplitBy: {
|
|
639
|
-
p = `${o}_${P.Average}`, t[u] = e[u], t[
|
|
639
|
+
p = `${o}_${P.Average}`, t[u] = e[u], t[D(f)] = M({
|
|
640
640
|
field: f,
|
|
641
641
|
value: o,
|
|
642
642
|
layer: i,
|
|
@@ -646,9 +646,9 @@ function Ue(l) {
|
|
|
646
646
|
break;
|
|
647
647
|
}
|
|
648
648
|
}
|
|
649
|
-
t[
|
|
649
|
+
t[D(P.Average)] = c;
|
|
650
650
|
const v = `${String(c)}${Q}`, b = e[v];
|
|
651
|
-
b !== void 0 && (t[`${
|
|
651
|
+
b !== void 0 && (t[`${D(P.Average)} Z-Score`] = b);
|
|
652
652
|
}
|
|
653
653
|
function Ze(l) {
|
|
654
654
|
const { config: e, rows: t, layer: a, fieldList: o, formatters: i, useRendererLabel: r = !1, timeZone: n } = l, s = U(e.series);
|
|
@@ -723,7 +723,7 @@ function Ze(l) {
|
|
|
723
723
|
});
|
|
724
724
|
else {
|
|
725
725
|
if (c === g.BoxPlotC4MultiFieldsAndCategory) {
|
|
726
|
-
const
|
|
726
|
+
const S = O({
|
|
727
727
|
field: p,
|
|
728
728
|
row: m,
|
|
729
729
|
layer: a,
|
|
@@ -732,7 +732,7 @@ function Ze(l) {
|
|
|
732
732
|
useRendererLabel: r,
|
|
733
733
|
timeZone: n
|
|
734
734
|
});
|
|
735
|
-
y[p] =
|
|
735
|
+
y[p] = S, F = `${d}_`;
|
|
736
736
|
}
|
|
737
737
|
j({ rawData: m, outRow: y, keyBase: F });
|
|
738
738
|
}
|
|
@@ -775,7 +775,7 @@ function Ze(l) {
|
|
|
775
775
|
fieldList: o
|
|
776
776
|
});
|
|
777
777
|
if (c === g.BoxPlotC7MonoFieldAndCategoryAndSplitBy) {
|
|
778
|
-
const
|
|
778
|
+
const S = O({
|
|
779
779
|
field: p,
|
|
780
780
|
row: m,
|
|
781
781
|
layer: a,
|
|
@@ -784,7 +784,7 @@ function Ze(l) {
|
|
|
784
784
|
useRendererLabel: r,
|
|
785
785
|
timeZone: n
|
|
786
786
|
});
|
|
787
|
-
y[p] =
|
|
787
|
+
y[p] = S;
|
|
788
788
|
}
|
|
789
789
|
return m[A.boxPlot.boxPlotOutlierId] ? T({
|
|
790
790
|
rawData: m,
|
|
@@ -813,7 +813,7 @@ const te = (l) => {
|
|
|
813
813
|
const r = a?.find((n) => n.name === e);
|
|
814
814
|
if (r) {
|
|
815
815
|
const n = r.type === Ve.DateOnly;
|
|
816
|
-
|
|
816
|
+
Se(r) && !n ? i = te(t) ? We(new Date(t), o) : t : n && typeof t != "string" && (i = te(t) ? He(new Date(t), o) : t);
|
|
817
817
|
}
|
|
818
818
|
return i;
|
|
819
819
|
};
|
package/dist/chunks/x-bounds.js
CHANGED
|
@@ -6,7 +6,7 @@ import { g as T } from "./model-types.js";
|
|
|
6
6
|
import { b as g } from "./rest-js-object-literals.js";
|
|
7
7
|
import { a as x } from "./chart-object-literals.js";
|
|
8
8
|
import { Q as C, a2 as L, a3 as b, t as M } from "./index3.js";
|
|
9
|
-
import {
|
|
9
|
+
import { bU as X, b as B, i as A } from "./index.js";
|
|
10
10
|
import { m as a, C as f } from "./model-setter.js";
|
|
11
11
|
import { f as O, e as P } from "./utils2.js";
|
|
12
12
|
import { n as v, d as y, h as R } from "./utils.js";
|
|
@@ -60,10 +60,10 @@ const E = (t) => {
|
|
|
60
60
|
}, N = (t) => {
|
|
61
61
|
const { name: e, axis: i, index: s } = d(t);
|
|
62
62
|
i?.guides?.[s] !== void 0 && (i.guides[s].name = e);
|
|
63
|
-
},
|
|
63
|
+
}, U = (t) => {
|
|
64
64
|
const { axis: e, index: i } = d(t);
|
|
65
65
|
return e?.guides?.[i]?.label?.text;
|
|
66
|
-
},
|
|
66
|
+
}, Q = (t) => {
|
|
67
67
|
const { labelText: e, axis: i, index: s } = d(t), o = i?.guides?.[s]?.label ?? C(e, L(b.GuideLabel), b.GuideLabel);
|
|
68
68
|
i?.guides?.[s] !== void 0 && (i.guides[s].label = { ...o, text: e });
|
|
69
69
|
}, Y = (t) => {
|
|
@@ -172,10 +172,10 @@ class u extends h {
|
|
|
172
172
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
173
173
|
*/
|
|
174
174
|
getGuideLabelText(e, i) {
|
|
175
|
-
return
|
|
175
|
+
return U({ config: this._config, index: e, orientation: i });
|
|
176
176
|
}
|
|
177
177
|
setGuideLabelText(e, i, s) {
|
|
178
|
-
|
|
178
|
+
Q({ labelText: e, config: this._config, index: i, orientation: s });
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
181
|
* Gets whether the guide should be rendered above the other chart elements.
|