@arcgis/charts-components 6.0.0-next.20 → 6.0.0-next.22
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/{7CHIKM2Y.js → 23PFUSK3.js} +1 -1
- package/dist/cdn/{ZY5S677G.js → 2GQTW4NH.js} +1 -1
- package/dist/cdn/{5VCVKGKW.js → 3Q47Q67R.js} +1 -1
- package/dist/cdn/{NSHVMSOK.js → 3RQW57SE.js} +1 -1
- package/dist/cdn/{MIBOTYKP.js → 4GEBMO7W.js} +1 -1
- package/dist/cdn/{ZJKDLNZQ.js → 4V743NL4.js} +1 -1
- package/dist/cdn/{IVX5JR6I.js → 5EAIW2ZK.js} +1 -1
- package/dist/cdn/{ZYH6RLUY.js → 5N5ZQZJO.js} +1 -1
- package/dist/cdn/{SZWXYTUV.js → 6HUXP73R.js} +1 -1
- package/dist/cdn/{QB5X2DNO.js → 6OPPM5V2.js} +1 -1
- package/dist/cdn/{KDVRUUVP.js → 6R62GKMO.js} +1 -1
- package/dist/cdn/{KBUFMYZQ.js → 6ZD3Z5YL.js} +1 -1
- package/dist/cdn/{L5HPMS5V.js → 7GGX5UIB.js} +1 -1
- package/dist/cdn/{73E367AZ.js → 7QBDOZRN.js} +1 -1
- package/dist/cdn/{JWZEPPGG.js → 7UVDQBL4.js} +1 -1
- package/dist/cdn/{N3JX6GNR.js → BIKC4DDN.js} +23 -23
- package/dist/cdn/{MU55JIYV.js → BR46WAT3.js} +1 -1
- package/dist/cdn/{Z6PP7BPU.js → BYG7ZIX2.js} +1 -1
- package/dist/cdn/{L6BGXMMO.js → C2WLLAJA.js} +1 -1
- package/dist/cdn/{W5I5BEM4.js → CLFK7CD2.js} +1 -1
- package/dist/cdn/{2L3CFU7R.js → CLPZTMER.js} +1 -1
- package/dist/cdn/{GFVKVWUY.js → COM3OWDH.js} +1 -1
- package/dist/cdn/{3D6A3FSY.js → D6XAU7NT.js} +1 -1
- package/dist/cdn/{UIZELEJD.js → DET6MJ7X.js} +1 -1
- package/dist/cdn/{23OBJJMY.js → DH2G4KHH.js} +1 -1
- package/dist/cdn/{L5U7LDC3.js → DUYJILM6.js} +1 -1
- package/dist/cdn/{R6MIM2PY.js → DVS6MZT5.js} +1 -1
- package/dist/cdn/{D26USL3R.js → E6ZQGTYB.js} +1 -1
- package/dist/cdn/{QKRQPIDL.js → EEZVAVKC.js} +1 -1
- package/dist/cdn/{QUOBWCF5.js → FKJRQZAC.js} +1 -1
- package/dist/cdn/{57ZRFAP5.js → FNP7YROZ.js} +1 -1
- package/dist/cdn/{F76PZBOK.js → FP2GSJQA.js} +1 -1
- package/dist/cdn/{KKAUA5I4.js → GD5JTE7A.js} +1 -1
- package/dist/cdn/GTLHXKAJ.js +2 -0
- package/dist/cdn/{ANXI7X33.js → GU6VG5TK.js} +1 -1
- package/dist/cdn/{7EH2KTOE.js → H4SA3N6O.js} +1 -1
- package/dist/cdn/{ZCXMHYL5.js → HB4SJQ4W.js} +1 -1
- package/dist/cdn/{KEX2VV73.js → HBCVYIHS.js} +1 -1
- package/dist/cdn/{IYVGK242.js → HECZ3OT6.js} +2 -2
- package/dist/cdn/{MVHLKL7W.js → HEI543JI.js} +1 -1
- package/dist/cdn/{TRTYIA2G.js → HJCXMK5U.js} +1 -1
- package/dist/cdn/{HZSR2TZW.js → HU4OMSST.js} +1 -1
- package/dist/cdn/{DHXZKTF6.js → IOK2V3P4.js} +3 -3
- package/dist/cdn/{CXZF73UW.js → IQRQDZJC.js} +1 -1
- package/dist/cdn/{JTQIRNPA.js → IUUDE4X5.js} +1 -1
- package/dist/cdn/{CCCVN47Z.js → J4V3WB5U.js} +1 -1
- package/dist/cdn/{5VG5RZKN.js → JANDMZGE.js} +1 -1
- package/dist/cdn/{EBVBQSUD.js → JGXLPTT7.js} +1 -1
- package/dist/cdn/{WO73Q3XE.js → JIT5WKEB.js} +1 -1
- package/dist/cdn/{NXKWU3DD.js → JWZGF724.js} +1 -1
- package/dist/cdn/{ZOZCGOID.js → JXF3DDAB.js} +1 -1
- package/dist/cdn/{B3YDN37X.js → KZ6LW4NP.js} +1 -1
- package/dist/cdn/LRTY76E6.js +2 -0
- package/dist/cdn/{LRZAD7VO.js → LXGEIC5F.js} +1 -1
- package/dist/cdn/{HW5YPNRC.js → LZPKYDMH.js} +1 -1
- package/dist/cdn/M5AZLAGG.js +2 -0
- package/dist/cdn/{F2AEPQP5.js → MSKHAI5B.js} +1 -1
- package/dist/cdn/{OMMWNI5R.js → NF3BLC5K.js} +1 -1
- package/dist/cdn/{3RMCJLPQ.js → NK2I335H.js} +1 -1
- package/dist/cdn/O7O57T65.js +2 -0
- package/dist/cdn/{X7WYDIZE.js → OM6QKWFE.js} +1 -1
- package/dist/cdn/{EBNM4Q47.js → OMJYE2MJ.js} +1 -1
- package/dist/cdn/{RWTBVIDB.js → OU7UWTYV.js} +1 -1
- package/dist/cdn/{EXFLYGOA.js → PSKIJ3SM.js} +1 -1
- package/dist/cdn/{YOVZ4RVH.js → Q3P2IG23.js} +1 -1
- package/dist/cdn/{6FLJN3FM.js → Q43ORQKU.js} +1 -1
- package/dist/cdn/{YR2TWUVL.js → QBHNXPDC.js} +1 -1
- package/dist/cdn/{DQJZEIEB.js → QITW2GVD.js} +1 -1
- package/dist/cdn/{CQU7SD5I.js → QNEORRGV.js} +1 -1
- package/dist/cdn/{CNQNN4CB.js → QUVP5IS5.js} +1 -1
- package/dist/cdn/{DYWTYNT4.js → QXY7MRR7.js} +1 -1
- package/dist/cdn/{WMLMPR4P.js → QYD2FVPD.js} +1 -1
- package/dist/cdn/{Q2SHE4BB.js → R2THCQP5.js} +1 -1
- package/dist/cdn/{B2MNXOZC.js → RE3I2Z2X.js} +1 -1
- package/dist/cdn/{2CNZDYOY.js → ROVVD6IW.js} +1 -1
- package/dist/cdn/{4DBZXMWZ.js → SBCL24E4.js} +1 -1
- package/dist/cdn/{YJW7KSEK.js → SDPOEKHS.js} +1 -1
- package/dist/cdn/{IQE6TEF7.js → SNIJO2GO.js} +1 -1
- package/dist/cdn/{JNFER2G5.js → SX66PI5D.js} +1 -1
- package/dist/cdn/{74J2YHAH.js → TDD6C2FX.js} +1 -1
- package/dist/cdn/{OZNRLDTD.js → TRJRLHIN.js} +1 -1
- package/dist/cdn/{EKWGPT5Y.js → TTW6WNUD.js} +1 -1
- package/dist/cdn/{T35SJEP4.js → TUIIWKKJ.js} +1 -1
- package/dist/cdn/{5FLPMVDG.js → U6Y4QVXC.js} +1 -1
- package/dist/cdn/{VTCPVV2K.js → UYGZNX3E.js} +1 -1
- package/dist/cdn/{U2MXHNZR.js → V3U7CLL3.js} +1 -1
- package/dist/cdn/{BXUTY44W.js → VGOKYLOA.js} +1 -1
- package/dist/cdn/{RDAE2OL3.js → VSYGSI4Q.js} +1 -1
- package/dist/cdn/{Y2FV4AZ4.js → W6ND5MS4.js} +1 -1
- package/dist/cdn/{NWPO6T3D.js → WCQX5APN.js} +1 -1
- package/dist/cdn/{KXU3XKM2.js → WPAN7ZED.js} +1 -1
- package/dist/cdn/{4OC5GZ3M.js → XGBIB7YB.js} +1 -1
- package/dist/cdn/{DO4L5IAM.js → XOXPFTIJ.js} +1 -1
- package/dist/cdn/{N35DJP7H.js → XSZAO4QH.js} +1 -1
- package/dist/cdn/{D7HVHYVY.js → Y6URECIF.js} +1 -1
- package/dist/cdn/{MG4XERCZ.js → YZJKK62F.js} +1 -1
- package/dist/cdn/{XCFAVK6F.js → ZCH46ONB.js} +1 -1
- package/dist/cdn/{N5QBW4DK.js → ZDG7DMVN.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +7 -0
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +38 -38
- package/dist/chunks/box-plot-model.js +16 -16
- package/dist/chunks/chart-model.js +32 -32
- package/dist/chunks/chart-ui-utils.js +3 -3
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +15 -15
- package/dist/chunks/combo-bar-line-chart-model.js +9 -9
- package/dist/chunks/data.js +7 -7
- package/dist/chunks/index.js +237 -233
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +5 -5
- package/dist/chunks/pie-chart-model.js +1 -1
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +66 -65
- package/dist/chunks/serial-chart-data.js +24 -24
- package/dist/chunks/serial-chart-model.js +10 -10
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/chunks/x-bounds.js +1 -1
- package/dist/components/arcgis-chart/customElement.d.ts +9 -1
- package/dist/components/arcgis-chart/customElement.js +3232 -3220
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-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-data/customElement.js +33 -33
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- 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-heat-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +20 -20
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +0 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +17 -17
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +56 -56
- package/dist/loader.js +1 -1
- package/dist/spec/rest-js-types.d.ts +1 -5
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/chart-config/converter/index.js +46 -46
- package/dist/utils/components/interfaces.d.ts +7 -0
- package/package.json +5 -5
- package/dist/cdn/A5Y7SINJ.js +0 -2
- package/dist/cdn/DBCZ7X7L.js +0 -2
- package/dist/cdn/GQFD2BXB.js +0 -2
- package/dist/cdn/X2YVJPZF.js +0 -2
- /package/dist/cdn/{L5YQURIU.js → 2PUVZIJ6.js} +0 -0
- /package/dist/cdn/{ABHDMXQ7.js → 33NEGHM6.js} +0 -0
- /package/dist/cdn/{CPBCKPO3.js → 55OFHBXV.js} +0 -0
- /package/dist/cdn/{3RXZGLTX.js → 5OSVKP4N.js} +0 -0
- /package/dist/cdn/{3XO5QWW2.js → 5QLZ66AU.js} +0 -0
- /package/dist/cdn/{2TVBBBFB.js → 5SOADBYD.js} +0 -0
- /package/dist/cdn/{4AA4A62W.js → 5ZZZKI7V.js} +0 -0
- /package/dist/cdn/{4HXGM3VX.js → 6IIBIZJH.js} +0 -0
- /package/dist/cdn/{Q3KUGWEO.js → 6QY2OFUO.js} +0 -0
- /package/dist/cdn/{MMZZZC7O.js → 7AWJIBMG.js} +0 -0
- /package/dist/cdn/{KJ2WKS3E.js → 7N2LSD5J.js} +0 -0
- /package/dist/cdn/{JP7ADCJN.js → A6DV5ILW.js} +0 -0
- /package/dist/cdn/{KZMHSQD6.js → BGHJMVNV.js} +0 -0
- /package/dist/cdn/{PISJX2S5.js → BGVIOGAX.js} +0 -0
- /package/dist/cdn/{LLQZNNEC.js → CYZPIC2B.js} +0 -0
- /package/dist/cdn/{YQPVQLX7.js → CZKZMSFJ.js} +0 -0
- /package/dist/cdn/{VJWRWNXG.js → D66GTKJ7.js} +0 -0
- /package/dist/cdn/{EN4TKBF7.js → DJGQM3EK.js} +0 -0
- /package/dist/cdn/{ZIHB4MW5.js → FOHR4IFG.js} +0 -0
- /package/dist/cdn/{IVMUU655.js → GOVIUHKT.js} +0 -0
- /package/dist/cdn/{UXCVVLXG.js → H44RQIWN.js} +0 -0
- /package/dist/cdn/{6COGNLWU.js → HJUHYEJT.js} +0 -0
- /package/dist/cdn/{IJ4NLEMH.js → HL6ANDJH.js} +0 -0
- /package/dist/cdn/{ZASO3PKX.js → IDVYAUPY.js} +0 -0
- /package/dist/cdn/{PBFYIRZY.js → IQSNWDU6.js} +0 -0
- /package/dist/cdn/{H32ZCMZI.js → JE32QM44.js} +0 -0
- /package/dist/cdn/{VARG4EGS.js → JETTF7E2.js} +0 -0
- /package/dist/cdn/{QGCRMKE5.js → JSOFN65T.js} +0 -0
- /package/dist/cdn/{QJZFHN2U.js → KMZIRJIR.js} +0 -0
- /package/dist/cdn/{3FAXIZDY.js → KQ36C2RK.js} +0 -0
- /package/dist/cdn/{3RJA6GU5.js → M4AD4UJU.js} +0 -0
- /package/dist/cdn/{6YTUMBO6.js → NUH2GAPZ.js} +0 -0
- /package/dist/cdn/{7EO4DMRO.js → OWEVDN6C.js} +0 -0
- /package/dist/cdn/{ST6XSWHI.js → QCFAV626.js} +0 -0
- /package/dist/cdn/{SNAWWD5A.js → QMBHZ5JE.js} +0 -0
- /package/dist/cdn/{WCOMQDTO.js → SWHSL245.js} +0 -0
- /package/dist/cdn/{CFC3MJF7.js → T7LKXFIZ.js} +0 -0
- /package/dist/cdn/{NHKIOS73.js → XQTLPFTW.js} +0 -0
- /package/dist/cdn/{JSIJJIJ2.js → Z5DYKSTK.js} +0 -0
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { B as y,
|
|
3
|
-
import { substitute as
|
|
4
|
-
import { isEmpty as
|
|
5
|
-
import { g as
|
|
6
|
-
import { g as
|
|
7
|
-
import { aC as
|
|
2
|
+
import { B as y, c9 as P, l as X, eM as Y } from "./index.js";
|
|
3
|
+
import { substitute as D } from "@arcgis/core/intl.js";
|
|
4
|
+
import { isEmpty as m, isEqual as w } from "es-toolkit/compat";
|
|
5
|
+
import { g as L, d as f, u as v, e as z } from "./utils.js";
|
|
6
|
+
import { g as k } from "./series-length.js";
|
|
7
|
+
import { aC as p, x as E, aA as V } from "./index2.js";
|
|
8
8
|
import { i as T } from "./index3.js";
|
|
9
|
-
import { C as
|
|
10
|
-
import { M as
|
|
11
|
-
import { W as
|
|
12
|
-
import { W as
|
|
9
|
+
import { C as B } from "./chart-model.js";
|
|
10
|
+
import { M as G, a as U, W as j, b as N } from "./data-labels-visibility.js";
|
|
11
|
+
import { W as q } from "./data-labels-symbol.js";
|
|
12
|
+
import { W as R, c as H, d as J } from "./axis-lines-symbol.js";
|
|
13
13
|
import { W as K, a as Q } from "./x-bounds.js";
|
|
14
|
-
import { W as
|
|
14
|
+
import { W as Z, c as $, d as ee } from "./generate-x-axis-title.js";
|
|
15
15
|
import { m as d } from "./model-setter.js";
|
|
16
|
-
import { a as
|
|
17
|
-
import { M as
|
|
18
|
-
import { M as
|
|
19
|
-
const
|
|
16
|
+
import { a as te } from "./chart-object-literals.js";
|
|
17
|
+
import { M as ie, a as se } from "./model-with-y-guides.js";
|
|
18
|
+
import { M as re } from "./model-with-x-guides.js";
|
|
19
|
+
const b = (t) => {
|
|
20
20
|
f({ config: t, value: null, axisIndex: 0, isMax: !1 }), f({ config: t, value: null, axisIndex: 0, isMax: !0 }), f({ config: t, value: null, axisIndex: 1, isMax: !1 }), f({ config: t, value: null, axisIndex: 1, isMax: !0 });
|
|
21
21
|
}, F = (t) => {
|
|
22
22
|
const { name: e, axisIndex: i, config: s, layerInfo: r } = t, { layerFieldsInfo: o } = r, n = o.find((h) => h.name === e), l = n !== void 0 && P(n);
|
|
23
|
-
|
|
23
|
+
z(s, i, l);
|
|
24
24
|
};
|
|
25
25
|
function I(t, e, i) {
|
|
26
|
-
const s = g(t, e, i), r =
|
|
26
|
+
const s = g(t, e, i), r = k(t), o = T(t);
|
|
27
27
|
return s === r || o;
|
|
28
28
|
}
|
|
29
29
|
function M(t, e) {
|
|
30
|
-
const { layerFieldsInfo: i } = e, s = y(i, u(t)), r =
|
|
30
|
+
const { layerFieldsInfo: i } = e, s = y(i, u(t)), r = L(1, t), o = T(t);
|
|
31
31
|
return s === r || o;
|
|
32
32
|
}
|
|
33
33
|
function _(t, e) {
|
|
34
|
-
const { layerFieldsInfo: i } = e, s = x(t), r = y(i, s), o =
|
|
34
|
+
const { layerFieldsInfo: i } = e, s = x(t), r = y(i, s), o = L(0, t), n = T(t);
|
|
35
35
|
return r === o || n;
|
|
36
36
|
}
|
|
37
37
|
function g(t, e, i) {
|
|
38
38
|
const s = x(t), r = u(t), { layerFieldsInfo: o } = e, n = y(o, s), l = y(o, r);
|
|
39
|
-
return
|
|
39
|
+
return D(i.titleLabels.xAndY, { x: n, y: l });
|
|
40
40
|
}
|
|
41
41
|
const C = (t) => {
|
|
42
42
|
const { x: e, y: i, config: s, layerInfo: r, updateChartTitle: o, updateXAxisTitle: n, updateYAxisTitle: l, commonStrings: h } = t, { layerFieldsInfo: A } = r, W = y(A, e), O = y(A, i);
|
|
43
|
-
!
|
|
44
|
-
}, x = (t) => t.series[0]?.x ?? "", u = (t) => t.series[0]?.y ?? "",
|
|
43
|
+
!m(e) && n && v(s, 0, W), !m(i) && l && v(s, 1, O), !m(e) && !m(i) && s.title && o && (s.title.content.text = g(s, r, h));
|
|
44
|
+
}, x = (t) => t.series[0]?.x ?? "", u = (t) => t.series[0]?.y ?? "", oe = (t) => {
|
|
45
45
|
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n = _(i, s), l = M(i, s);
|
|
46
|
-
|
|
46
|
+
b(i), i.series[0] && (i.series[0].x = e), C({
|
|
47
47
|
x: e,
|
|
48
48
|
y: u(i),
|
|
49
49
|
config: i,
|
|
@@ -58,9 +58,9 @@ const C = (t) => {
|
|
|
58
58
|
config: i,
|
|
59
59
|
layerInfo: s
|
|
60
60
|
});
|
|
61
|
-
},
|
|
61
|
+
}, ne = (t) => {
|
|
62
62
|
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n = _(i, s), l = M(i, s);
|
|
63
|
-
|
|
63
|
+
b(i), i.series[0] && (i.series[0].y = e), C({
|
|
64
64
|
x: x(i),
|
|
65
65
|
y: e,
|
|
66
66
|
config: i,
|
|
@@ -75,39 +75,39 @@ const C = (t) => {
|
|
|
75
75
|
config: i,
|
|
76
76
|
layerInfo: s
|
|
77
77
|
});
|
|
78
|
-
},
|
|
78
|
+
}, ae = (t) => {
|
|
79
79
|
const e = {};
|
|
80
80
|
return t.series[0]?.markerSymbol ?? e;
|
|
81
|
-
},
|
|
81
|
+
}, le = (t, e) => {
|
|
82
82
|
e.series[0] && (e.series[0].markerSymbol = t);
|
|
83
|
-
},
|
|
83
|
+
}, de = (t) => t.series[0]?.locationsOfInterest, ce = (t, e) => {
|
|
84
84
|
e.series[0] && (e.series[0].locationsOfInterest = t);
|
|
85
|
-
},
|
|
85
|
+
}, ye = (t) => (t.series[0]?.overlays?.trendLine?.visible ?? !0) && (t.series[0]?.overlays?.trendLine?.created ?? !1), pe = (t) => {
|
|
86
86
|
const e = {};
|
|
87
87
|
return t.series[0]?.overlays?.trendLine?.symbol ?? e;
|
|
88
88
|
}, me = (t, e) => {
|
|
89
|
-
e.series[0].overlays ??=
|
|
90
|
-
}, pe = (t, e) => {
|
|
91
|
-
e.series[0].overlays ??= m(), e.series[0].overlays.trendLine ??= m().trendLine, e.series[0].overlays.trendLine.visible = t;
|
|
89
|
+
e.series[0].overlays ??= p(), e.series[0].overlays.trendLine ??= p().trendLine, e.series[0].overlays.trendLine.symbol = t;
|
|
92
90
|
}, fe = (t, e) => {
|
|
93
|
-
|
|
94
|
-
},
|
|
91
|
+
e.series[0].overlays ??= p(), e.series[0].overlays.trendLine ??= p().trendLine, e.series[0].overlays.trendLine.visible = t;
|
|
92
|
+
}, xe = (t, e) => {
|
|
93
|
+
!(e.series[0]?.overlays?.trendLine?.created ?? !1) && t && (e.series[0].overlays ??= p(), e.series[0].overlays.trendLine ??= p().trendLine, e.series[0].overlays.trendLine.created = t), fe(t, e);
|
|
94
|
+
}, S = (t) => t.series[0]?.sizePolicy ?? E(), ue = (t, e) => {
|
|
95
95
|
e.series[0] && (t !== void 0 && t.field?.trim() !== "" ? e.series[0].sizePolicy = { ...e.series[0].sizePolicy, ...t } : e.series[0].sizePolicy = void 0);
|
|
96
|
-
},
|
|
96
|
+
}, he = (t) => t?.series?.[0]?.overlays, Te = (t, e) => {
|
|
97
97
|
e?.series[0] !== void 0 && (e.series[0].overlays = t);
|
|
98
|
-
},
|
|
98
|
+
}, ge = (t) => t.series.find((e) => e.additionalTooltipFields !== void 0)?.additionalTooltipFields ?? [], Ae = (t, e) => {
|
|
99
99
|
e.series.forEach((i) => {
|
|
100
100
|
Array.isArray(t) ? i.additionalTooltipFields = t : typeof t == "string" ? i.additionalTooltipFields = t.trim() === "" ? [] : [t] : i.additionalTooltipFields = [];
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
|
-
var
|
|
104
|
-
for (var r =
|
|
103
|
+
var ve = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, c = (t, e, i, s) => {
|
|
104
|
+
for (var r = Se(e, i), o = t.length - 1, n; o >= 0; o--)
|
|
105
105
|
(n = t[o]) && (r = n(e, i, r) || r);
|
|
106
|
-
return r &&
|
|
106
|
+
return r && ve(e, i, r), r;
|
|
107
107
|
};
|
|
108
|
-
class a extends
|
|
108
|
+
class a extends B {
|
|
109
109
|
constructor() {
|
|
110
|
-
super(...arguments), this._chartType =
|
|
110
|
+
super(...arguments), this._chartType = te.ScatterSeries;
|
|
111
111
|
}
|
|
112
112
|
async setup(e) {
|
|
113
113
|
await this.loadConfigFromLayer(e), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
@@ -122,7 +122,7 @@ class a extends V {
|
|
|
122
122
|
return x(this._config);
|
|
123
123
|
}
|
|
124
124
|
set xAxisField(e) {
|
|
125
|
-
|
|
125
|
+
oe({ fieldName: e, config: this._config, layerInfo: this.layerInfo, commonStrings: this.commonStrings }), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
128
|
* Y-axis field.
|
|
@@ -131,22 +131,22 @@ class a extends V {
|
|
|
131
131
|
return u(this._config);
|
|
132
132
|
}
|
|
133
133
|
set yAxisField(e) {
|
|
134
|
-
|
|
134
|
+
ne({ fieldName: e, config: this._config, layerInfo: this.layerInfo, commonStrings: this.commonStrings }), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
135
135
|
}
|
|
136
136
|
/**
|
|
137
137
|
* Whether the linear trend line is shown.
|
|
138
138
|
*/
|
|
139
139
|
get showLinearTrend() {
|
|
140
|
-
return
|
|
140
|
+
return ye(this._config);
|
|
141
141
|
}
|
|
142
142
|
set showLinearTrend(e) {
|
|
143
|
-
|
|
143
|
+
xe(e, this._config);
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
146
146
|
* Line symbol for the linear trend line.
|
|
147
147
|
*/
|
|
148
148
|
get linearTrendSymbol() {
|
|
149
|
-
return
|
|
149
|
+
return pe(this._config);
|
|
150
150
|
}
|
|
151
151
|
set linearTrendSymbol(e) {
|
|
152
152
|
me(e, this._config);
|
|
@@ -155,19 +155,19 @@ class a extends V {
|
|
|
155
155
|
* Marker symbol used for the scatterplot points when using a fixed symbol (i.e. no size policy is set).
|
|
156
156
|
*/
|
|
157
157
|
get fixedMarkerSymbol() {
|
|
158
|
-
return
|
|
158
|
+
return ae(this._config);
|
|
159
159
|
}
|
|
160
160
|
set fixedMarkerSymbol(e) {
|
|
161
|
-
|
|
161
|
+
le(e, this._config);
|
|
162
162
|
}
|
|
163
163
|
/**
|
|
164
164
|
* Locations of interest used for imagery scatterplot.
|
|
165
165
|
*/
|
|
166
166
|
get locationsOfInterest() {
|
|
167
|
-
return
|
|
167
|
+
return de(this._config);
|
|
168
168
|
}
|
|
169
169
|
set locationsOfInterest(e) {
|
|
170
|
-
|
|
170
|
+
ce(e, this._config);
|
|
171
171
|
}
|
|
172
172
|
/**
|
|
173
173
|
* Size policy for the scatterplot points. This is used to scale the size of the marker symbol based on a given field.
|
|
@@ -177,16 +177,16 @@ class a extends V {
|
|
|
177
177
|
}
|
|
178
178
|
set sizePolicy(e) {
|
|
179
179
|
const i = S(this._config);
|
|
180
|
-
|
|
180
|
+
w(i, e) || ue(e, this._config);
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Trendline overlay for the scatterplot.
|
|
184
184
|
*/
|
|
185
185
|
get seriesOverlays() {
|
|
186
|
-
return
|
|
186
|
+
return he(this._config);
|
|
187
187
|
}
|
|
188
188
|
set seriesOverlays(e) {
|
|
189
|
-
e !== void 0 &&
|
|
189
|
+
e !== void 0 && Te(e, this._config);
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
192
|
* Add an additional field to display for scatterplot tooltips.
|
|
@@ -194,10 +194,10 @@ class a extends V {
|
|
|
194
194
|
* **Note**: Only numeric fields are supported.
|
|
195
195
|
*/
|
|
196
196
|
get additionalTooltipField() {
|
|
197
|
-
return
|
|
197
|
+
return ge(this._config);
|
|
198
198
|
}
|
|
199
199
|
set additionalTooltipField(e) {
|
|
200
|
-
|
|
200
|
+
Ae(e, this._config);
|
|
201
201
|
}
|
|
202
202
|
// ---------------------------------------------------------------------------------------------
|
|
203
203
|
// #region General Methods
|
|
@@ -220,7 +220,8 @@ class a extends V {
|
|
|
220
220
|
// ---------------------------------------------------------------------------------------------
|
|
221
221
|
/** @private */
|
|
222
222
|
generateDefaultConfig() {
|
|
223
|
-
|
|
223
|
+
const e = V(this.commonStrings);
|
|
224
|
+
return X(this.layerInfo?.layer) && (e.colorMatch = !1), e;
|
|
224
225
|
}
|
|
225
226
|
}
|
|
226
227
|
c([
|
|
@@ -250,25 +251,25 @@ c([
|
|
|
250
251
|
c([
|
|
251
252
|
d
|
|
252
253
|
], a.prototype, "additionalTooltipField");
|
|
253
|
-
const
|
|
254
|
-
|
|
255
|
-
B,
|
|
254
|
+
const Le = [
|
|
255
|
+
ie,
|
|
256
256
|
G,
|
|
257
257
|
U,
|
|
258
258
|
j,
|
|
259
259
|
N,
|
|
260
|
+
q,
|
|
261
|
+
re,
|
|
260
262
|
se,
|
|
261
|
-
ie,
|
|
262
|
-
R,
|
|
263
|
-
K,
|
|
264
263
|
Z,
|
|
264
|
+
K,
|
|
265
|
+
$,
|
|
265
266
|
Q,
|
|
266
|
-
|
|
267
|
+
R,
|
|
267
268
|
H,
|
|
268
269
|
J,
|
|
269
|
-
|
|
270
|
+
ee
|
|
270
271
|
];
|
|
271
|
-
|
|
272
|
+
Y(a, Le);
|
|
272
273
|
export {
|
|
273
274
|
a as ScatterplotModel
|
|
274
275
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { substitute as M } from "@arcgis/core/intl.js";
|
|
3
3
|
import { cloneDeep as te, memoize as We, isEmpty as Ue, isEqual as je } from "es-toolkit/compat";
|
|
4
4
|
import { S as ce } from "./common.js";
|
|
5
|
-
import { aa as L,
|
|
5
|
+
import { aa as L, b7 as X, bJ as Ke, cm as Ze, l as ue, c4 as _e, cn as Qe, ca as Ne, g as ze, r as ie, a7 as Ge, a6 as Je, co as et, x as w, Z as ge, bk as tt, cp as it, Y as st, v as at, cq as rt, b4 as nt, $ as ot, cr as lt, ad as ct, b_ as ut, cs as dt, ct as Se, cu as yt, cv as mt, cw as gt, C as Fe, _ as pt, cx as he, cy as _, B as k, cz as ft, b5 as q, bj as Q, X as St, u as j, ah as Oe, cA as Y, c6 as U, cB as Ft, cC as ht, cD as Tt, cE as O, cF as V, cG as Te, cH as xt, c9 as xe } from "./index.js";
|
|
6
6
|
import { g as se, u as $, s as Ve, a as pe, b as qe, c as Bt, d as z, e as Be } from "./utils.js";
|
|
7
7
|
import { a as P, s as fe, g as ae, b as Ce, c as Ct } from "./data.js";
|
|
8
8
|
import { a as x, d as I, f as At, l as R, t as N, h as H, g as bt, b as vt, e as de } from "./chart-object-literals.js";
|
|
@@ -56,18 +56,18 @@ const qi = (i) => {
|
|
|
56
56
|
}, Wt = (i) => {
|
|
57
57
|
Xt(0, i);
|
|
58
58
|
};
|
|
59
|
-
var Ut = Object.defineProperty, jt = Object.getOwnPropertyDescriptor,
|
|
59
|
+
var Ut = Object.defineProperty, jt = Object.getOwnPropertyDescriptor, Kt = (i, e, t, r) => {
|
|
60
60
|
for (var s = jt(e, t), a = i.length - 1, n; a >= 0; a--)
|
|
61
61
|
(n = i[a]) && (s = n(e, t, s) || s);
|
|
62
62
|
return s && Ut(e, t, s), s;
|
|
63
63
|
};
|
|
64
|
-
const
|
|
64
|
+
const Zt = (i) => {
|
|
65
65
|
let e;
|
|
66
66
|
return X(i) ? e = i.outTimeZone : i?.series.forEach((t) => {
|
|
67
67
|
(t.type === x.BarSeries || t.type === x.RadarSeries || t.type === x.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
|
|
68
68
|
}), e || (e = i?.axes?.[0]?.valueFormat.type === x.DateAxisFormat ? i.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
|
|
69
69
|
}, we = (i, e) => {
|
|
70
|
-
const t =
|
|
70
|
+
const t = Ke(i);
|
|
71
71
|
X(e) ? i ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
|
|
72
72
|
(r.type === x.BarSeries || r.type === x.RadarSeries || r.type === x.LineSeries) && (i ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = t) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
|
|
73
73
|
}), e?.axes?.[0]?.valueFormat.type === x.DateAxisFormat && (i ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
|
|
@@ -77,13 +77,13 @@ class _t extends wt {
|
|
|
77
77
|
* Gets the time zone for the chart.
|
|
78
78
|
*/
|
|
79
79
|
get timeZone() {
|
|
80
|
-
return
|
|
80
|
+
return Zt(this._config);
|
|
81
81
|
}
|
|
82
82
|
set timeZone(e) {
|
|
83
83
|
we(e, this._config), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
Kt([
|
|
87
87
|
Pt
|
|
88
88
|
], _t.prototype, "timeZone");
|
|
89
89
|
function Yi(i, e) {
|
|
@@ -332,7 +332,7 @@ async function Ui(i) {
|
|
|
332
332
|
returnFeaturesExtent: f,
|
|
333
333
|
returnStatisticsAggregatedIds: p,
|
|
334
334
|
chartLimits: u
|
|
335
|
-
})), g =
|
|
335
|
+
})), g = Ze(g, a), we(d, g)), { alteredConfig: g, preFetchedQueryResponse: F };
|
|
336
336
|
}
|
|
337
337
|
function si(i, e) {
|
|
338
338
|
let t = !1;
|
|
@@ -391,7 +391,7 @@ function ji(i) {
|
|
|
391
391
|
}
|
|
392
392
|
return { seriesFilteredOut: n, filteredConfig: a };
|
|
393
393
|
}
|
|
394
|
-
const
|
|
394
|
+
const Ki = (i) => i.hideEmptyRowsAndColumns, Zi = (i, e) => {
|
|
395
395
|
i.hideEmptyRowsAndColumns = e;
|
|
396
396
|
}, _i = (i, e) => {
|
|
397
397
|
const t = i.series[0];
|
|
@@ -448,10 +448,10 @@ const Zi = (i) => i.hideEmptyRowsAndColumns, Ki = (i, e) => {
|
|
|
448
448
|
statisticType: I.Count
|
|
449
449
|
}
|
|
450
450
|
]
|
|
451
|
-
}, n && t.title && (t.title.content.text =
|
|
451
|
+
}, n && t.title && (t.title.content.text = K(t, r, s));
|
|
452
452
|
}, us = (i) => i.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, ds = (i) => {
|
|
453
453
|
const { aggregationType: e, config: t, layerInfo: r, commonStrings: s } = i, a = t.series[0]?.query?.outStatistics?.[0], n = le(t, r, s);
|
|
454
|
-
a && e !== I.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === I.Count || e === I.Sum) && li(H.Zero, t), n && t.title && (t.title.content.text =
|
|
454
|
+
a && e !== I.NoAggregation && (a.statisticType = e, a.outStatisticFieldName = `${e}_${a.onStatisticField}`), (e === I.Count || e === I.Sum) && li(H.Zero, t), n && t.title && (t.title.content.text = K(t, r, s));
|
|
455
455
|
}, ys = (i) => i.nullPolicy, li = (i, e) => {
|
|
456
456
|
e.nullPolicy = i;
|
|
457
457
|
}, ms = (i) => i.series[0].emptyCells, gs = (i, e) => {
|
|
@@ -663,8 +663,8 @@ function ne(i) {
|
|
|
663
663
|
}
|
|
664
664
|
return te(B);
|
|
665
665
|
}
|
|
666
|
-
function
|
|
667
|
-
const { layerFieldsInfo: r } = e, { idField: s, isTraditionalTypeOID: a } = j(e.layer), n = P(i), o = W(i), c = oe(i), l =
|
|
666
|
+
function K(i, e, t) {
|
|
667
|
+
const { layerFieldsInfo: r } = e, { idField: s, isTraditionalTypeOID: a } = j(e.layer), n = P(i), o = W(i), c = oe(i), l = Z(i), m = a && (o.length === 0 || o.includes(s)), f = Dt(c, t), p = m ? "" : o.map((h) => k(r ?? [], h)).join(", "), u = k(r ?? [], n), d = k(r ?? [], l), y = i.series.some((h) => Y(h)), g = y ? "category" : "xAxisField", F = u;
|
|
668
668
|
let S = "";
|
|
669
669
|
if (fe({
|
|
670
670
|
fieldName: n,
|
|
@@ -728,7 +728,7 @@ const Ee = (i) => ge({
|
|
|
728
728
|
where: i.query?.where,
|
|
729
729
|
normalize: !1,
|
|
730
730
|
escape: !1
|
|
731
|
-
}) ?? "", oe = (i) => i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation,
|
|
731
|
+
}) ?? "", oe = (i) => i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, Z = We(
|
|
732
732
|
(i) => {
|
|
733
733
|
const e = i?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
734
734
|
return St(i?.series?.[0]?.query?.where) ? "" : e;
|
|
@@ -736,7 +736,7 @@ const Ee = (i) => ge({
|
|
|
736
736
|
(i) => i?.series?.[0]?.query?.where
|
|
737
737
|
), W = (i) => {
|
|
738
738
|
let e = [];
|
|
739
|
-
if (
|
|
739
|
+
if (Z(i) === "")
|
|
740
740
|
e = i?.series.map((t) => {
|
|
741
741
|
const r = t.query?.outStatistics?.map((s) => s.onStatisticField) ?? [];
|
|
742
742
|
return r?.length > 0 ? r : t.y;
|
|
@@ -856,7 +856,7 @@ function $e(i) {
|
|
|
856
856
|
return p.length === 1 && m.length === 1 && Y(p[0]) && Y(m[0]) && (m[0].fillSymbol = p[0].fillSymbol), u.length === 1 && f.length === 1 && ((O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && Xe(f[0], u[0]), (O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && (f[0].lineSymbol = u[0].lineSymbol, f[0].markerSymbol = u[0].markerSymbol)), l;
|
|
857
857
|
}
|
|
858
858
|
function qs(i) {
|
|
859
|
-
const { aggregationType: e, config: t, layerInfo: r, commonStrings: s } = i, { layerFieldsInfo: a, layer: n } = r, o = P(t), c = W(t), l =
|
|
859
|
+
const { aggregationType: e, config: t, layerInfo: r, commonStrings: s } = i, { layerFieldsInfo: a, layer: n } = r, o = P(t), c = W(t), l = Z(t), m = oe(t), f = le(t, r, s), p = He(t, r, s);
|
|
860
860
|
if (t.series.forEach((u, d) => {
|
|
861
861
|
const y = ae({
|
|
862
862
|
config: t,
|
|
@@ -887,7 +887,7 @@ function qs(i) {
|
|
|
887
887
|
}
|
|
888
888
|
]
|
|
889
889
|
}, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === I.NoAggregation ? H.Interpolate : H.Null), e === I.NoAggregation && Wt(t);
|
|
890
|
-
}), f && t.title && (t.title.content.text =
|
|
890
|
+
}), f && t.title && (t.title.content.text = K(t, r, s)), p && t.series[0].type !== x.HeatSeries) {
|
|
891
891
|
const u = pe({
|
|
892
892
|
config: t,
|
|
893
893
|
layerInfo: r,
|
|
@@ -985,7 +985,7 @@ const Rs = (i) => {
|
|
|
985
985
|
layerInfo: n,
|
|
986
986
|
commonStrings: o,
|
|
987
987
|
splitByFieldInfos: c
|
|
988
|
-
} = i, { layerFieldsInfo: l } = n ?? {}, m = te(a), f = Mt(a), p = P(m), u =
|
|
988
|
+
} = i, { layerFieldsInfo: l } = n ?? {}, m = te(a), f = Mt(a), p = P(m), u = Z(m), d = oe(m), y = l.find((C) => C.name === p), g = a.series[0]?.query === void 0, F = W(m), S = l.find((C) => C.name === e), h = le(m, n, o), A = He(m, n, o), B = fi({ config: m, layerInfo: n, commonStrings: o });
|
|
989
989
|
let T = qe(a);
|
|
990
990
|
const b = m.series.some((C) => Y(C)), v = ht(m.series), E = Tt(m.series), D = q(y) || q(S);
|
|
991
991
|
if (_(S) ? T = ye() : !Q(y) && Q(S) ? T = J() : !q(y) && q(S) ? T = J() : q(y) && !q(S) && (b ? T = ye() : T = Rt()), T !== void 0 && Bt(a, o, T), f === 0 && (a.series = [
|
|
@@ -1033,7 +1033,7 @@ const Rs = (i) => {
|
|
|
1033
1033
|
});
|
|
1034
1034
|
$(a, 1, C);
|
|
1035
1035
|
}
|
|
1036
|
-
if (h && a.title && (a.title.content.text =
|
|
1036
|
+
if (h && a.title && (a.title.content.text = K(a, n, o)), p === e && u === t && d === s && je(F, r) || Ye(a), mi({ numericFields: r, aggregationType: s, config: a, layerInfo: n }), (v || E) && (z({ config: a, value: null, axisIndex: 0, isMax: !1 }), z({ config: a, value: null, axisIndex: 0, isMax: !0 }), D && s !== I.NoAggregation && !X(m))) {
|
|
1037
1037
|
const C = q(S) ? H.Null : H.Interpolate;
|
|
1038
1038
|
Ht(C, a);
|
|
1039
1039
|
}
|
|
@@ -1046,7 +1046,7 @@ const Rs = (i) => {
|
|
|
1046
1046
|
color: i.markerSymbol?.color
|
|
1047
1047
|
});
|
|
1048
1048
|
}, ks = (i) => {
|
|
1049
|
-
const { config: e, seriesIndex: t, layerInfo: r, commonStrings: s } = i, a = e.series?.[t], n =
|
|
1049
|
+
const { config: e, seriesIndex: t, layerInfo: r, commonStrings: s } = i, a = e.series?.[t], n = Z(e);
|
|
1050
1050
|
let o;
|
|
1051
1051
|
if (ie(e.series) === w.BarAndLineFromFields)
|
|
1052
1052
|
o = s.axisLabels.values;
|
|
@@ -1085,7 +1085,7 @@ const Rs = (i) => {
|
|
|
1085
1085
|
}))), l;
|
|
1086
1086
|
};
|
|
1087
1087
|
function le(i, e, t) {
|
|
1088
|
-
const r =
|
|
1088
|
+
const r = K(i, e, t), s = Yt(i), a = re(i);
|
|
1089
1089
|
return r === s || a;
|
|
1090
1090
|
}
|
|
1091
1091
|
function He(i, e, t) {
|
|
@@ -1123,7 +1123,7 @@ export {
|
|
|
1123
1123
|
Rs as C,
|
|
1124
1124
|
Es as D,
|
|
1125
1125
|
Ms as E,
|
|
1126
|
-
|
|
1126
|
+
K as F,
|
|
1127
1127
|
Pe as G,
|
|
1128
1128
|
ai as H,
|
|
1129
1129
|
Ji as I,
|
|
@@ -1142,8 +1142,8 @@ export {
|
|
|
1142
1142
|
Os as V,
|
|
1143
1143
|
_t as W,
|
|
1144
1144
|
Vs as X,
|
|
1145
|
-
|
|
1146
|
-
|
|
1145
|
+
Ki as Y,
|
|
1146
|
+
Zi as Z,
|
|
1147
1147
|
ss as _,
|
|
1148
1148
|
Hi as a,
|
|
1149
1149
|
rs as a0,
|
|
@@ -1173,7 +1173,7 @@ export {
|
|
|
1173
1173
|
Yi as b,
|
|
1174
1174
|
$i as c,
|
|
1175
1175
|
W as d,
|
|
1176
|
-
|
|
1176
|
+
Z as e,
|
|
1177
1177
|
ji as f,
|
|
1178
1178
|
oe as g,
|
|
1179
1179
|
ks as h,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/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 { cA as v, cE as L, eN as M, eO as P, c6 as p, u as N, eP as V, eM as k } from "./index.js";
|
|
5
5
|
import { i as R } from "./index3.js";
|
|
6
6
|
import { m as o } from "./model-setter.js";
|
|
7
7
|
import { S as E } from "./common.js";
|
|
@@ -15,10 +15,10 @@ import { W as pe, c as me, d as de } from "./generate-x-axis-title.js";
|
|
|
15
15
|
import { W as ye, a as Se } from "./x-bounds.js";
|
|
16
16
|
import { W as ue } from "./data-labels-symbol.js";
|
|
17
17
|
import { W as _e } from "./rotated-state.js";
|
|
18
|
-
import { a as
|
|
18
|
+
import { a as W, u as xe, d as C } from "./utils.js";
|
|
19
19
|
import { d as y, e as F, a as Te } from "./data.js";
|
|
20
20
|
import { u as Be, m as Ce, ag as Fe, j as Ae, k as Ie } from "./index2.js";
|
|
21
|
-
import { s as
|
|
21
|
+
import { s as D } from "./series-types.js";
|
|
22
22
|
const A = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, I = (s) => {
|
|
23
23
|
const { assign: e, seriesIndex: i, config: t, commonStrings: r } = s;
|
|
24
24
|
e && t.axes !== void 0 && !t.axes?.[2] && (t.axes[2] = Fe(r, _.BarSeries)[1]), t.series && t.series.forEach((l, g) => {
|
|
@@ -41,14 +41,14 @@ const A = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, I = (s) => {
|
|
|
41
41
|
...t.lineSymbol,
|
|
42
42
|
color: s
|
|
43
43
|
}));
|
|
44
|
-
},
|
|
44
|
+
}, We = (s) => s.series.map((e) => e.id), De = (s, e) => {
|
|
45
45
|
e.series?.sort(
|
|
46
46
|
(i, t) => s.findIndex((r) => i.id === r) - s.findIndex((r) => t.id === r)
|
|
47
47
|
);
|
|
48
48
|
}, Me = (s) => s.stackedType ?? b.Side, Pe = (s) => {
|
|
49
49
|
const { newStackedType: e, config: i, layerInfo: t, commonStrings: r } = s;
|
|
50
50
|
if (i.stackedType = e, t !== void 0) {
|
|
51
|
-
const l =
|
|
51
|
+
const l = W({
|
|
52
52
|
config: i,
|
|
53
53
|
layerInfo: t,
|
|
54
54
|
commonStrings: r,
|
|
@@ -61,11 +61,11 @@ const A = (s, e) => e.series?.[s].assignToSecondValueAxis ?? !1, I = (s) => {
|
|
|
61
61
|
}, Ne = (s) => {
|
|
62
62
|
const e = {};
|
|
63
63
|
return s.series.forEach((i) => {
|
|
64
|
-
|
|
64
|
+
D(i) && "nullCategory" in i && i.nullCategory !== void 0 && (e.text ??= i.nullCategory.text, i.type === _.BarSeries ? e.fillSymbol ??= i.nullCategory.fillSymbol : e.markerSymbol ??= i.nullCategory.markerSymbol);
|
|
65
65
|
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
66
66
|
}, Ve = (s, e) => {
|
|
67
67
|
s.series.forEach((i) => {
|
|
68
|
-
|
|
68
|
+
D(i) && (e ? i.type === _.BarSeries ? i.nullCategory = { text: e?.text, fillSymbol: e?.fillSymbol } : i.nullCategory = { text: e?.text, markerSymbol: e?.markerSymbol } : i.nullCategory = void 0);
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
71
|
var ke = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, h = (s, e, i, t) => {
|
|
@@ -417,10 +417,10 @@ class n extends O {
|
|
|
417
417
|
* orders categories or numeric values within the chart data.
|
|
418
418
|
*/
|
|
419
419
|
getOrderOfSeries() {
|
|
420
|
-
return
|
|
420
|
+
return We(this._config);
|
|
421
421
|
}
|
|
422
422
|
setOrderOfSeries(e) {
|
|
423
|
-
|
|
423
|
+
De(e, this._config);
|
|
424
424
|
}
|
|
425
425
|
/**
|
|
426
426
|
* How the bars (lines) should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or
|
|
@@ -538,7 +538,7 @@ class n extends O {
|
|
|
538
538
|
* Generate the proper y-axis title given the current config.
|
|
539
539
|
*/
|
|
540
540
|
generateYAxisTitle() {
|
|
541
|
-
return this.layerInfo !== void 0 ?
|
|
541
|
+
return this.layerInfo !== void 0 ? W({
|
|
542
542
|
config: this._config,
|
|
543
543
|
layerInfo: this.layerInfo,
|
|
544
544
|
commonStrings: this.commonStrings,
|
|
@@ -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 { O as K, r as U, u as be, t as xe, x as g, a5 as E, C as A, P as Fe, _ as P, ah as Ce,
|
|
10
|
+
import { O as K, r as U, u as be, t as xe, x as g, a5 as E, C as A, P as Fe, _ as P, ah as Ce, b5 as De, cg as Se } from "./index.js";
|
|
11
11
|
import { i as Y, M as $, l as R, N as ve, O as Be, P as Q } from "./index2.js";
|
|
12
12
|
import { g as he } from "./series-types.js";
|
|
13
13
|
import { V as Pe } from "./index4.js";
|
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, a5 as L, a6 as b, t as M } from "./index2.js";
|
|
9
|
-
import {
|
|
9
|
+
import { ci as X, b as B, i as A, eM as O } from "./index.js";
|
|
10
10
|
import { m as a, C as f } from "./model-setter.js";
|
|
11
11
|
import { o as P, n as R, p as v, d as y } from "./utils.js";
|
|
12
12
|
const D = (t) => {
|
|
@@ -791,6 +791,13 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
791
791
|
* **Note**: Applicable to gauges and pie charts only.
|
|
792
792
|
*/
|
|
793
793
|
accessor chartWillRender: PreRenderCallback | undefined;
|
|
794
|
+
/**
|
|
795
|
+
* When `true`, leaves a small gap between columns in side-by-side multi-series and split-by bar charts.
|
|
796
|
+
* Stacked charts are not affected.
|
|
797
|
+
*
|
|
798
|
+
* @default false
|
|
799
|
+
*/
|
|
800
|
+
accessor columnGapsEnabled: boolean;
|
|
794
801
|
/**
|
|
795
802
|
* Whether to use features uniquely designed for a chart currently being configured by a user via the UI.
|
|
796
803
|
* When `true` and if the [arcgis-charts-action-bar](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/) is slotted in the chart component,
|
|
@@ -1926,7 +1933,8 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1926
1933
|
/**
|
|
1927
1934
|
* Whether to automatically add the missing series to cover the split-by values not referenced in the configuration.
|
|
1928
1935
|
* - This property only applies to plain chart configuration object that's constructed following the [WebChart](https://developers.arcgis.com/javascript/latest/references/charts-components/spec/web-chart/#WebChart) specification.
|
|
1929
|
-
* -
|
|
1936
|
+
* - In 5.2, [`addMissingSeries`](/references/charts-components/utils/components/interfaces/#MissingSplitBySeriesProps-addMissingSeries) is `false` by default. If it is set to `true`, the missing series will be added.
|
|
1937
|
+
* - In 6.0, [`addMissingSeries`](/references/charts-components/utils/components/interfaces/#MissingSplitBySeriesProps-addMissingSeries) is `true` by default.
|
|
1930
1938
|
* - When [`seriesTemplate`](/references/charts-components/utils/components/interfaces/#MissingSplitBySeriesProps-seriesTemplate) is omitted, the first existing series from the configuration will be copied to be used as a model for the missing ones. The chart won't render if the series template is not set and there's no series in the configuration.
|
|
1931
1939
|
* - If a chart is configured using a chart model, this property is not necessary as the split-by series will be updated automatically when the model's properties are changed.
|
|
1932
1940
|
*
|