@arcgis/charts-components 5.1.0-next.0 → 5.1.0-next.10
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/README.md +1 -1
- package/dist/cdn/{N5LXTC5F.js → 26SLWYNT.js} +1 -1
- package/dist/cdn/{7HHTWL5X.js → 2CT3MIAY.js} +1 -1
- package/dist/cdn/{MR5ILWAE.js → 2OGUU3CF.js} +1 -1
- package/dist/cdn/{O3LWVBLQ.js → 2QDRHHCZ.js} +1 -1
- package/dist/cdn/{NZKAMZX6.js → 2VC2XQAN.js} +1 -1
- package/dist/cdn/3EX7KPVE.js +2 -0
- package/dist/cdn/{FGQCHT3Y.js → 4JOHPQNV.js} +1 -1
- package/dist/cdn/4TREKWIK.js +2 -0
- package/dist/cdn/4XC2ZKSZ.js +2 -0
- package/dist/cdn/{CGRJSESJ.js → 5OWNSM2U.js} +1 -1
- package/dist/cdn/{VCDTXXBB.js → 5SRYB3Z7.js} +1 -1
- package/dist/cdn/{UKLAAPT4.js → 5YJR5M2A.js} +1 -1
- package/dist/cdn/{CF4MUKBD.js → 63GL64M2.js} +1 -1
- package/dist/cdn/{VLDV4SLC.js → 6HU6FAC6.js} +1 -1
- package/dist/cdn/{5UWCB534.js → 6PLEWH4Q.js} +1 -1
- package/dist/cdn/{B227HROY.js → 6WQPKBUS.js} +1 -1
- package/dist/cdn/72ZNLDFS.js +56 -0
- package/dist/cdn/{MFY2WNGC.js → 756AAFX2.js} +1 -1
- package/dist/cdn/{PGRROSLP.js → 7CDRRFI2.js} +1 -1
- package/dist/cdn/{YFQBIEH6.js → 7FASRM4Q.js} +1 -1
- package/dist/cdn/{F7EELFJY.js → 7VTIDISQ.js} +1 -1
- package/dist/cdn/{CSMPPQK6.js → A6FIEHBR.js} +1 -1
- package/dist/cdn/{DSCSQG33.js → AIQKILAI.js} +1 -1
- package/dist/cdn/{RBLN6H3R.js → AVFCOOHZ.js} +1 -1
- package/dist/cdn/{H2ZHJTT5.js → AYYGDEVK.js} +1 -1
- package/dist/cdn/{GB3TK5D3.js → BJPCRXMJ.js} +1 -1
- package/dist/cdn/{E2XSIMND.js → CDL4GUV6.js} +1 -1
- package/dist/cdn/CMRNFSZC.js +4 -0
- package/dist/cdn/DBBUQUSM.js +2 -0
- package/dist/cdn/DEAMKFX3.js +2 -0
- package/dist/cdn/DGTF5KBL.js +2 -0
- package/dist/cdn/{7F454N3C.js → DN4LNEB4.js} +2 -2
- package/dist/cdn/{VPF4DANX.js → DRJ4R4EQ.js} +1 -1
- package/dist/cdn/DSJJ45NU.js +2 -0
- package/dist/cdn/{7XB4DP2Y.js → E3CLVG36.js} +1 -1
- package/dist/cdn/EGY5AQR3.js +2 -0
- package/dist/cdn/{7TA3GQ2P.js → EKWDEI6U.js} +1 -1
- package/dist/cdn/{XVD4CGMV.js → EVWSDR7F.js} +1 -1
- package/dist/cdn/{VQGWUSUK.js → EYLBOIDC.js} +1 -1
- package/dist/cdn/FS2NVQNE.js +2 -0
- package/dist/cdn/{I4JPIKWZ.js → GYNFKNOC.js} +1 -1
- package/dist/cdn/{7OIBV6LX.js → H7FCUZ5Q.js} +1 -1
- package/dist/cdn/{T6J2NNJR.js → HAJ2VWEU.js} +1 -1
- package/dist/cdn/{OBF3ZYVJ.js → HLTV3SZ3.js} +1 -1
- package/dist/cdn/{4SDMBWIH.js → HT3D2REX.js} +1 -1
- package/dist/cdn/IRNA25SY.js +2 -0
- package/dist/cdn/J5U7GGIA.js +2 -0
- package/dist/cdn/JD74DCCM.js +2 -0
- package/dist/cdn/JDVXA2CS.js +2 -0
- package/dist/cdn/{NKTG3HYP.js → JX35IVRI.js} +1 -1
- package/dist/cdn/{V3NRWE2B.js → K5QY4SRM.js} +1 -1
- package/dist/cdn/KG447AXN.js +2 -0
- package/dist/cdn/{EOT7WEOM.js → KYUASK4W.js} +1 -1
- package/dist/cdn/{AE43AFN2.js → KZ7WEJMS.js} +1 -1
- package/dist/cdn/LESACRNP.js +2 -0
- package/dist/cdn/{GV3FPWSE.js → LEUZZRL3.js} +1 -1
- package/dist/cdn/{Z3ATQCGU.js → LOVVVWQQ.js} +1 -1
- package/dist/cdn/{ILN66JCQ.js → LRHPJGAF.js} +1 -1
- package/dist/cdn/{TW7SDPY6.js → N2BJICO7.js} +1 -1
- package/dist/cdn/{YP55GB27.js → NXF4ANBF.js} +1 -1
- package/dist/cdn/PCLJVVSC.js +2 -0
- package/dist/cdn/{OLGKBPS4.js → PHKJ7FEL.js} +1 -1
- package/dist/cdn/{E4Z7JPW7.js → PMJXL2RO.js} +1 -1
- package/dist/cdn/PTVFXORI.js +2 -0
- package/dist/cdn/{ACIPSEQP.js → Q2KACZBE.js} +1 -1
- package/dist/cdn/Q3RD465X.js +2 -0
- package/dist/cdn/{Z5OGHBTB.js → QHIXRP3D.js} +1 -1
- package/dist/cdn/{L7BKIZJN.js → QN32RSSK.js} +1 -1
- package/dist/cdn/{6AMFQCS7.js → R3AFJXL2.js} +1 -1
- package/dist/cdn/{ZMTNSPCX.js → R7NXKFI4.js} +1 -1
- package/dist/cdn/RGFGKNTV.js +93 -0
- package/dist/cdn/{I45WQ4BL.js → RGSTYQHL.js} +1 -1
- package/dist/cdn/RJTSFOSP.js +2 -0
- package/dist/cdn/{3KIKTBU4.js → S5R4OEBU.js} +1 -1
- package/dist/cdn/S5XUWFFZ.js +2 -0
- package/dist/cdn/{SGOQQYBY.js → SPAXIJWK.js} +1 -1
- package/dist/cdn/{UR4SN4J4.js → ST7NVAV3.js} +1 -1
- package/dist/cdn/{TCKWKRVQ.js → SVUBBKM5.js} +1 -1
- package/dist/cdn/{YBWIUGMX.js → T4VBQWR4.js} +1 -1
- package/dist/cdn/T7XKFYU3.js +2 -0
- package/dist/cdn/{4YGTK6R4.js → TEGYSOJJ.js} +1 -1
- package/dist/cdn/{UNGIAYCA.js → THMNUUUE.js} +1 -1
- package/dist/cdn/{5SBX2OSZ.js → UE4N6ASZ.js} +1 -1
- package/dist/cdn/V4GE3B2F.js +2 -0
- package/dist/cdn/VLYQJ3YH.js +2 -0
- package/dist/cdn/{N7QH3COK.js → VMMTJWUZ.js} +1 -1
- package/dist/cdn/{ITCFNAZ2.js → VPTDXGKU.js} +1 -1
- package/dist/cdn/VTJWIN7U.js +2 -0
- package/dist/cdn/{YHXUQR6R.js → VWLR4WCT.js} +1 -1
- package/dist/cdn/WCZWAASA.js +2 -0
- package/dist/cdn/XF7VOPC6.js +2 -0
- package/dist/cdn/XHESCLJV.js +2 -0
- package/dist/cdn/{CCBSYUDL.js → XJLODBLD.js} +1 -1
- package/dist/cdn/{UVEAGNF2.js → XZE6IPW7.js} +1 -1
- package/dist/cdn/Y2CT4MJ4.js +2 -0
- package/dist/cdn/{JEOHGL3P.js → YF6EYCSY.js} +1 -1
- package/dist/cdn/{INA4MWOS.js → YUFKLXMQ.js} +1 -1
- package/dist/cdn/{UPWTKME3.js → YXUXX2XA.js} +1 -1
- package/dist/cdn/{IMMCY2GO.js → ZB4GBCOX.js} +1 -1
- package/dist/cdn/{MAYX7C4V.js → ZNLHWCJV.js} +1 -1
- package/dist/cdn/{ITMPO5LO.js → ZT6KWD4G.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +10 -9
- package/dist/chunks/bar-chart-model.js +1 -0
- package/dist/chunks/bar-chart-series.js +5 -3
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +5 -0
- package/dist/chunks/chart-ui-utils.js +53 -48
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +159 -94
- package/dist/chunks/combo-bar-line-chart-model.js +3 -0
- package/dist/chunks/data.js +20 -19
- package/dist/chunks/gauge-model.js +1 -0
- package/dist/chunks/heat-chart-model.js +84 -66
- package/dist/chunks/histogram-model.js +1 -0
- package/dist/chunks/index.js +3386 -3331
- package/dist/chunks/index2.js +33 -33
- package/dist/chunks/index6.js +18 -0
- package/dist/chunks/line-chart-model.js +2 -0
- package/dist/chunks/model-setter.js +4 -1
- package/dist/chunks/model-with-guides.js +7 -6
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +2 -1
- package/dist/chunks/radar-chart-model.js +11 -9
- package/dist/chunks/scatterplot-model.js +1 -0
- package/dist/chunks/serial-chart-data.js +380 -371
- package/dist/chunks/serial-chart-model.js +9 -4
- package/dist/chunks/web-component-utils.js +63 -63
- package/dist/components/arcgis-chart/customElement.d.ts +1 -1
- package/dist/components/arcgis-chart/customElement.js +3140 -3155
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +2 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +21 -23
- 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 +13 -16
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +16 -18
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +14 -17
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +28 -20
- package/dist/components/arcgis-charts-config-format/customElement.js +20 -20
- package/dist/components/arcgis-charts-config-guide/customElement.js +1 -0
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +115 -105
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +2 -0
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +45 -34
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +21 -23
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +23 -25
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +8 -10
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +11 -14
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +19 -21
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +11 -14
- package/dist/components/arcgis-charts-info-modal/customElement.js +52 -14
- 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 +278 -277
- package/dist/json-schema/index.d.ts +7 -9
- package/dist/loader.js +4 -4
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +3 -12
- package/dist/model/box-plot-model/box-plot-model.d.ts +1 -34
- package/dist/model/chart-model/chart-model-base.d.ts +0 -46
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +1 -14
- package/dist/model/gauge-model/gauge-model.d.ts +2 -11
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +9 -10
- package/dist/model/histogram-model/histogram-model.d.ts +2 -11
- package/dist/model/line-chart-model/line-chart-model.d.ts +1 -14
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +0 -4
- package/dist/model/mixins/model-with-multi-axes.d.ts +0 -3
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -17
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +1 -14
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +2 -11
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +0 -42
- package/dist/spec/rest-js-types.d.ts +15 -0
- package/dist/spec/web-chart.d.ts +279 -243
- package/dist/utils/chart-config/utils/index.d.ts +3 -0
- package/dist/utils/layer/query-parser/index.d.ts +4 -1
- package/dist/utils/localization/interfaces.d.ts +1 -0
- package/dist/utils/misc/index.d.ts +22 -7
- package/dist/utils/type-guards/index.d.ts +15 -8
- package/dist/utils/ui/chart-ui-utils.d.ts +9 -5
- package/package.json +4 -4
- package/dist/cdn/2BIDUUM3.js +0 -2
- package/dist/cdn/4OI742MI.js +0 -2
- package/dist/cdn/A2TYB4C2.js +0 -2
- package/dist/cdn/BJJLSSQL.js +0 -2
- package/dist/cdn/C3QBGU3R.js +0 -2
- package/dist/cdn/CSHLYYDR.js +0 -2
- package/dist/cdn/DISBHZRX.js +0 -2
- package/dist/cdn/DM36XG4Z.js +0 -2
- package/dist/cdn/FGQ6QTNI.js +0 -2
- package/dist/cdn/FIBU5QUG.js +0 -2
- package/dist/cdn/GRFJADFY.js +0 -2
- package/dist/cdn/GUN4GTO3.js +0 -2
- package/dist/cdn/HOPCZKQO.js +0 -2
- package/dist/cdn/JYAZY7C6.js +0 -2
- package/dist/cdn/MMVAIEM3.js +0 -2
- package/dist/cdn/OFZOPSWX.js +0 -2
- package/dist/cdn/OKE67HPM.js +0 -2
- package/dist/cdn/OQA4LU5O.js +0 -2
- package/dist/cdn/OX34MEOD.js +0 -2
- package/dist/cdn/RESJUXIH.js +0 -2
- package/dist/cdn/RREICBPO.js +0 -58
- package/dist/cdn/T6HUC3X4.js +0 -2
- package/dist/cdn/W2Z3VO3C.js +0 -2
- package/dist/cdn/WI7OSEXJ.js +0 -2
- package/dist/cdn/WQS6NQUO.js +0 -2
- package/dist/cdn/WZJQSJPK.js +0 -2
- package/dist/cdn/XAWIW6KZ.js +0 -32
- package/dist/cdn/XPATRR6S.js +0 -2
- package/dist/cdn/YWRPXNSI.js +0 -2
- package/dist/cdn/ZARMIUOQ.js +0 -2
|
@@ -27,7 +27,7 @@ import "./runtime.js";
|
|
|
27
27
|
import { l as h, j as d, k as f } from "./index4.js";
|
|
28
28
|
import "@arcgis/toolkit/dom";
|
|
29
29
|
import { g as I, u as E, s as _, c as R, b as k, a as X } from "./utils.js";
|
|
30
|
-
import {
|
|
30
|
+
import { R as y, S as u, U as j, V as w, W as z, X as K, Y, Z as $, _ as G, $ as Z, a0 as q, a1 as H, a2 as J, I as T, a3 as x, a4 as A, a5 as Q, a6 as ee, T as te, a7 as C, a as ie } from "./serial-chart-data.js";
|
|
31
31
|
import { s as b, d as F, b as se } from "./data.js";
|
|
32
32
|
import { S as re } from "./common.js";
|
|
33
33
|
import { M as oe, a as ne, W as ae, b as le } from "./model-with-tooltips.js";
|
|
@@ -144,10 +144,10 @@ class c extends v {
|
|
|
144
144
|
return q(this._config);
|
|
145
145
|
}
|
|
146
146
|
set nullPolicy(e) {
|
|
147
|
-
|
|
147
|
+
H(e, this._config);
|
|
148
148
|
}
|
|
149
149
|
resetTimeInterval() {
|
|
150
|
-
|
|
150
|
+
J(this._config);
|
|
151
151
|
}
|
|
152
152
|
}
|
|
153
153
|
p([
|
|
@@ -283,7 +283,7 @@ class a extends v {
|
|
|
283
283
|
* **Note:** Setting this prop removes any existing temporal binning settings if `value` is set to `false`.
|
|
284
284
|
*/
|
|
285
285
|
get binTemporalData() {
|
|
286
|
-
return
|
|
286
|
+
return Q(this._config);
|
|
287
287
|
}
|
|
288
288
|
set binTemporalData(e) {
|
|
289
289
|
ee(e, this._config);
|
|
@@ -365,6 +365,8 @@ class a extends v {
|
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
367
367
|
* Sets up the local props based on the current config.
|
|
368
|
+
*
|
|
369
|
+
* @private
|
|
368
370
|
*/
|
|
369
371
|
setupLocalProps() {
|
|
370
372
|
this._xAxisField = se(this._config), this._aggregationType = y(this._config), this._splitByField = te(this._config), this._numericFields = u(this._config);
|
|
@@ -378,6 +380,8 @@ class a extends v {
|
|
|
378
380
|
* We can call the build new series function synchronously when either is true:
|
|
379
381
|
* - there is no split-by field
|
|
380
382
|
* - there are multiple numeric fields
|
|
383
|
+
*
|
|
384
|
+
* @private
|
|
381
385
|
*/
|
|
382
386
|
canUseSynchronousSeriesRebuild() {
|
|
383
387
|
return this.splitByField === "" || this.numericFields.length > 1;
|
|
@@ -386,6 +390,7 @@ class a extends v {
|
|
|
386
390
|
* Processes the series rebuild.
|
|
387
391
|
* If multiple async setters are called in succession, this function will only rebuild the series once after all setters have been called.
|
|
388
392
|
* @async
|
|
393
|
+
* @private
|
|
389
394
|
*/
|
|
390
395
|
async processSeriesRebuild() {
|
|
391
396
|
if (this.layerInfo !== void 0) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { W as
|
|
2
|
+
import { W as P, w as Q } from "./series-types.js";
|
|
3
3
|
import { isEqual as U, capitalize as F, isNumber as C, zip as E } from "lodash-es";
|
|
4
|
-
import { o as V, bK as X, cF as Y,
|
|
4
|
+
import { o as V, bK as X, cF as Y, dg as c, aa as O, bz as h, dj as M, aw as w, bO as W, ah as B, bw as J, bx as R } from "./index.js";
|
|
5
5
|
import { b as K } from "./interfaces.js";
|
|
6
6
|
import { a as z } from "./common.js";
|
|
7
7
|
import "@arcgis/toolkit/type";
|
|
8
8
|
import { j as ee, n as N, p as G, o as I } from "./box-plot-data.js";
|
|
9
|
-
import { a as
|
|
9
|
+
import { a as Z } from "./series-length.js";
|
|
10
10
|
import { g as te } from "./histogram-data.js";
|
|
11
11
|
import { g as oe, a as ie, b as ae } from "./pie-chart-data.js";
|
|
12
|
-
import {
|
|
13
|
-
import { b as le, g as
|
|
12
|
+
import { R as se, S as ne, T as re } from "./serial-chart-data.js";
|
|
13
|
+
import { b as le, g as q } from "./data.js";
|
|
14
14
|
const Oe = [
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
P.BarSeries,
|
|
16
|
+
P.BoxPlotSeries,
|
|
17
|
+
P.LineSeries,
|
|
18
|
+
P.PieSeries,
|
|
19
|
+
P.HistogramSeries,
|
|
20
|
+
P.ScatterSeries
|
|
21
21
|
], Ve = 1, ke = { PNG: "png" };
|
|
22
22
|
function ce(n, e) {
|
|
23
23
|
return !U(n, e);
|
|
@@ -45,25 +45,25 @@ const H = (n) => {
|
|
|
45
45
|
else if (e === void 0)
|
|
46
46
|
a = "";
|
|
47
47
|
else if (typeof e == "number" && Number.isFinite(e) && r !== void 0) {
|
|
48
|
-
const i = de(r),
|
|
48
|
+
const i = de(r), m = a.split(i)[1]?.length ?? 3;
|
|
49
49
|
a = new Intl.NumberFormat(r, {
|
|
50
|
-
maximumFractionDigits:
|
|
50
|
+
maximumFractionDigits: m
|
|
51
51
|
}).format(e).replace(/\u202F/gu, " ");
|
|
52
52
|
}
|
|
53
53
|
return (t || /[",\r\n]/u.test(a)) && (a = `"${a.replace(/"/gu, '""')}"`), a;
|
|
54
54
|
};
|
|
55
55
|
function Ke(n, e = {}) {
|
|
56
|
-
const { columns: t, delimiter: r, includeHeader: a = !0, quoteAll: o = !1, locale: i } = e,
|
|
56
|
+
const { columns: t, delimiter: r, includeHeader: a = !0, quoteAll: o = !1, locale: i } = e, m = n.length === 0;
|
|
57
57
|
let l = "";
|
|
58
|
-
if (!
|
|
59
|
-
const
|
|
58
|
+
if (!m) {
|
|
59
|
+
const f = t ?? Object.keys(n[0]), x = [], g = r ?? ue(i ?? "en");
|
|
60
60
|
if (i !== void 0 && g !== "," && (l += `sep=${g}\r
|
|
61
61
|
`), a) {
|
|
62
|
-
const y =
|
|
62
|
+
const y = f.map((s) => H({ value: s, quoteAll: o, locale: i }));
|
|
63
63
|
x.push(y.join(g));
|
|
64
64
|
}
|
|
65
65
|
n.forEach((y) => {
|
|
66
|
-
const s =
|
|
66
|
+
const s = f.map((d) => H({ value: y[d], quoteAll: o, locale: i }));
|
|
67
67
|
x.push(s.join(g));
|
|
68
68
|
}), l += x.join(`\r
|
|
69
69
|
`);
|
|
@@ -74,18 +74,18 @@ function Re(n) {
|
|
|
74
74
|
const { rawData: e, config: t, layer: r, fieldList: a } = n;
|
|
75
75
|
let o = e;
|
|
76
76
|
if (t !== void 0 && Array.isArray(e) && e.length > 0) {
|
|
77
|
-
const i =
|
|
78
|
-
i ===
|
|
77
|
+
const i = Q(t?.series);
|
|
78
|
+
i === P.HistogramSeries ? o = me(t, e) : i === P.BarSeries || i === P.LineSeries || i === P.ComboLineAndBarSeries ? o = ye({
|
|
79
79
|
config: t,
|
|
80
80
|
rows: e,
|
|
81
81
|
layer: r,
|
|
82
82
|
fieldList: a
|
|
83
|
-
}) : i ===
|
|
83
|
+
}) : i === P.PieSeries ? o = pe({
|
|
84
84
|
config: t,
|
|
85
85
|
rows: e,
|
|
86
86
|
layer: r,
|
|
87
87
|
fieldList: a
|
|
88
|
-
}) : i ===
|
|
88
|
+
}) : i === P.BoxPlotSeries && (o = xe({
|
|
89
89
|
config: t,
|
|
90
90
|
rows: e,
|
|
91
91
|
fieldList: a
|
|
@@ -93,22 +93,22 @@ function Re(n) {
|
|
|
93
93
|
}
|
|
94
94
|
return o;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function me(n, e) {
|
|
97
97
|
const t = te(n), r = `${F(K.Min)} of ${t}`, a = `${F(K.Max)} of ${t}`, o = `${F(K.Count)} of ${t}`;
|
|
98
98
|
return e.map((i) => {
|
|
99
|
-
const { minValue:
|
|
100
|
-
return x && (s[r] =
|
|
99
|
+
const { minValue: m, maxValue: l, count: f } = i, x = C(m), g = C(l), y = C(f), s = {};
|
|
100
|
+
return x && (s[r] = m.toFixed(2)), g && (s[a] = l.toFixed(2)), x && g && (s.Label = `${m.toFixed(2)} - ${l.toFixed(2)}`), y && (s[o] = f), s;
|
|
101
101
|
});
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function fe(n, e, t) {
|
|
104
104
|
const r = Object.keys(n);
|
|
105
105
|
let a = [];
|
|
106
106
|
return t ? a = t.map((o) => r.find((i) => i.toLowerCase().includes(o.toLowerCase())) || "") : a = r.filter((i) => i.toLowerCase().includes(e.toLowerCase())), a.filter((o) => o.trim() !== "");
|
|
107
107
|
}
|
|
108
108
|
function ye(n) {
|
|
109
|
-
const { config: e, rows: t, layer: r, fieldList: a } = n, o = le(e), i = se(e),
|
|
109
|
+
const { config: e, rows: t, layer: r, fieldList: a } = n, o = le(e), i = se(e), m = F(i), l = ne(e), f = V(e.series), x = Z(e), g = re(e), { idField: y, isTraditionalTypeOID: s } = X(Y(r)), d = s && l.length === 1 && l[0] === y;
|
|
110
110
|
let u;
|
|
111
|
-
switch (
|
|
111
|
+
switch (f) {
|
|
112
112
|
case c.BarAndLineNoAggregation:
|
|
113
113
|
u = t.map((p) => {
|
|
114
114
|
const b = A({
|
|
@@ -134,7 +134,7 @@ function ye(n) {
|
|
|
134
134
|
fieldList: a
|
|
135
135
|
}), S = { [o]: b };
|
|
136
136
|
return l.forEach(($, v) => {
|
|
137
|
-
const k =
|
|
137
|
+
const k = q({
|
|
138
138
|
config: e,
|
|
139
139
|
xAxisField: o,
|
|
140
140
|
numericFields: l,
|
|
@@ -159,7 +159,7 @@ function ye(n) {
|
|
|
159
159
|
($, v) => ({
|
|
160
160
|
[o]: S,
|
|
161
161
|
[g]: $,
|
|
162
|
-
[d ?
|
|
162
|
+
[d ? m : `${m} of ${l[0]}`]: p[b[v]]
|
|
163
163
|
})
|
|
164
164
|
);
|
|
165
165
|
});
|
|
@@ -170,7 +170,7 @@ function ye(n) {
|
|
|
170
170
|
field: o,
|
|
171
171
|
value: p[o],
|
|
172
172
|
fieldList: a
|
|
173
|
-
}), S =
|
|
173
|
+
}), S = fe(p, l[0], x);
|
|
174
174
|
return {
|
|
175
175
|
[o]: b,
|
|
176
176
|
[g]: p[g],
|
|
@@ -195,25 +195,25 @@ function ge(n, e = 2) {
|
|
|
195
195
|
const a = { ...r };
|
|
196
196
|
for (const [o, i] of Object.entries(r))
|
|
197
197
|
if (typeof i == "number" && t[o] > 0) {
|
|
198
|
-
const
|
|
199
|
-
a[`${o}${h}`] = `${
|
|
198
|
+
const m = i / t[o] * 100;
|
|
199
|
+
a[`${o}${h}`] = `${m.toFixed(e)}%`;
|
|
200
200
|
}
|
|
201
201
|
return a;
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
function pe(n) {
|
|
205
205
|
const { config: e, rows: t, layer: r, fieldList: a } = n, o = oe(e), i = V(e.series);
|
|
206
|
-
let
|
|
207
|
-
const l = ie(e),
|
|
206
|
+
let m = ge(t, 2);
|
|
207
|
+
const l = ie(e), f = i !== c.PieFromFields ? z.Category : z.Fields, x = ae(e, f), g = q({
|
|
208
208
|
config: e,
|
|
209
209
|
xAxisField: o,
|
|
210
210
|
numericFields: l,
|
|
211
211
|
aggregationType: x,
|
|
212
|
-
mode:
|
|
212
|
+
mode: f,
|
|
213
213
|
layer: r,
|
|
214
214
|
fieldList: a
|
|
215
215
|
}), y = O(e.series)[0];
|
|
216
|
-
return i === c.PieFromCategory || i === c.PieNoAggregation ?
|
|
216
|
+
return i === c.PieFromCategory || i === c.PieNoAggregation ? m = m.map((s) => {
|
|
217
217
|
const d = A({
|
|
218
218
|
field: o,
|
|
219
219
|
value: s[o],
|
|
@@ -221,25 +221,25 @@ function pe(n) {
|
|
|
221
221
|
}), u = { [o]: d };
|
|
222
222
|
let p = y, b = y;
|
|
223
223
|
return i === c.PieFromCategory && y.toLowerCase() === g.name.toLowerCase() && (p = g.description, b = g.name), u[p] = s[b], u[F(h.trim())] = s[`${b}${h}`], u;
|
|
224
|
-
}) : i === c.PieFromFields && (
|
|
224
|
+
}) : i === c.PieFromFields && (m = E(l, m).map(([s, d]) => {
|
|
225
225
|
const u = {};
|
|
226
226
|
return d !== void 0 && s !== void 0 && (u.Field = d[o], u.Value = d[y], u[F(h.trim())] = d[`${y}${h}`]), u;
|
|
227
|
-
})),
|
|
227
|
+
})), m;
|
|
228
228
|
}
|
|
229
229
|
function L(n) {
|
|
230
230
|
const { rawData: e, keyBase: t = "", outRow: r } = n;
|
|
231
|
-
for (const [a, o] of Object.entries(
|
|
231
|
+
for (const [a, o] of Object.entries(B)) {
|
|
232
232
|
const i = e[t + o];
|
|
233
233
|
i !== void 0 && (r[a] = C(i) ? i.toFixed(2) : i);
|
|
234
|
-
const
|
|
235
|
-
|
|
234
|
+
const m = e[t + o + J];
|
|
235
|
+
m !== void 0 && (r[`${a} Outlier`] = C(m) ? m.toFixed(2) : m);
|
|
236
236
|
const l = e[t + o + R];
|
|
237
237
|
l !== void 0 && (r[`${a} Z-Score`] = C(l) ? l.toFixed(2) : l);
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
240
|
function D(n) {
|
|
241
|
-
const { rawData: e, outRow: t, config: r, boxPlotSubType: a, fieldList: o } = n, i = N(r),
|
|
242
|
-
let
|
|
241
|
+
const { rawData: e, outRow: t, config: r, boxPlotSubType: a, fieldList: o } = n, i = N(r), m = G(r), l = I(r);
|
|
242
|
+
let f = B.Outlier;
|
|
243
243
|
const x = w;
|
|
244
244
|
switch (a) {
|
|
245
245
|
case c.BoxPlotMonoFieldAndCategory: {
|
|
@@ -248,63 +248,63 @@ function D(n) {
|
|
|
248
248
|
value: e[i],
|
|
249
249
|
fieldList: o
|
|
250
250
|
});
|
|
251
|
-
t[i] = s, t[F(
|
|
251
|
+
t[i] = s, t[F(B.Outlier)] = e[f];
|
|
252
252
|
break;
|
|
253
253
|
}
|
|
254
254
|
case c.BoxPlotMultiFieldsAndCategory: {
|
|
255
|
-
t[F(i)] = e[i],
|
|
255
|
+
t[F(i)] = e[i], f = `${m.find(
|
|
256
256
|
(d) => Object.keys(e).some((u) => u.toLowerCase().includes(d.toLowerCase()))
|
|
257
|
-
) ?? ""}_${
|
|
257
|
+
) ?? ""}_${f}`, t[F(B.Outlier)] = e[f];
|
|
258
258
|
break;
|
|
259
259
|
}
|
|
260
260
|
case c.BoxPlotMonoFieldAndSplitBy:
|
|
261
261
|
case c.BoxPlotMultiFieldsAndSplitBy: {
|
|
262
262
|
const s = e[l];
|
|
263
|
-
|
|
263
|
+
f = `${s}_${f}`, t.Field = e[x], t[F(l)] = s, t[F(B.Outlier)] = e[f];
|
|
264
264
|
break;
|
|
265
265
|
}
|
|
266
266
|
case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
267
267
|
const s = e[l];
|
|
268
|
-
|
|
268
|
+
f = `${s}_${f}`, t[F(i)] = e[i], t[F(l)] = s, t[F(B.Outlier)] = e[f];
|
|
269
269
|
break;
|
|
270
270
|
}
|
|
271
271
|
case c.BoxPlotMonoField:
|
|
272
272
|
case c.BoxPlotMultiFields:
|
|
273
273
|
default: {
|
|
274
|
-
t.Field = e[x], t[F(
|
|
274
|
+
t.Field = e[x], t[F(B.Outlier)] = e[f];
|
|
275
275
|
break;
|
|
276
276
|
}
|
|
277
277
|
}
|
|
278
|
-
const g = `${
|
|
279
|
-
y !== void 0 && (t[`${F(
|
|
278
|
+
const g = `${f}${R}`, y = e[g];
|
|
279
|
+
y !== void 0 && (t[`${F(B.Outlier)} Z-Score`] = C(y) ? y.toFixed(2) : y);
|
|
280
280
|
}
|
|
281
281
|
function Fe(n) {
|
|
282
|
-
const { rawData: e, outRow: t, config: r, splitByValue: a } = n, o = V(r.series), i = e[`${a}_${
|
|
283
|
-
let
|
|
282
|
+
const { rawData: e, outRow: t, config: r, splitByValue: a } = n, o = V(r.series), i = e[`${a}_${B.Average}`], m = I(r), l = N(r);
|
|
283
|
+
let f = "";
|
|
284
284
|
switch (o) {
|
|
285
285
|
case c.BoxPlotMonoFieldAndSplitBy: {
|
|
286
|
-
|
|
286
|
+
f = `${a}_${m}`, t.Field = e[w], t[F(m)] = e[f];
|
|
287
287
|
break;
|
|
288
288
|
}
|
|
289
289
|
case c.BoxPlotMultiFieldsAndSplitBy: {
|
|
290
|
-
|
|
290
|
+
f = `${a}_${B.Average}`, t.Field = e[w], t[F(m)] = e[f];
|
|
291
291
|
break;
|
|
292
292
|
}
|
|
293
293
|
case c.BoxPlotMonoFieldAndCategoryAndSplitBy: {
|
|
294
|
-
|
|
294
|
+
f = `${a}_${B.Average}`, t[l] = e[l], t[F(m)] = a;
|
|
295
295
|
break;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
t[F(
|
|
298
|
+
t[F(B.Average)] = C(i) ? i.toFixed(2) : i;
|
|
299
299
|
const x = `${i}${R}`, g = e[x];
|
|
300
|
-
g !== void 0 && (t[`${F(
|
|
300
|
+
g !== void 0 && (t[`${F(B.Average)} Z-Score`] = C(g) ? g.toFixed(2) : g);
|
|
301
301
|
}
|
|
302
302
|
function xe(n) {
|
|
303
303
|
const { config: e, rows: t, fieldList: r } = n, a = V(e.series);
|
|
304
304
|
let o = a;
|
|
305
|
-
const i = ee(e),
|
|
306
|
-
i && !
|
|
307
|
-
const l = N(e),
|
|
305
|
+
const i = ee(e), m = Array.isArray(t) && t.length > 0 && t.every((s) => s[M.boxPlot.boxPlotMeanLineMarkerId] !== void 0);
|
|
306
|
+
i && !m && (a === c.BoxPlotMonoFieldAndSplitBy ? o = c.BoxPlotMonoField : a === c.BoxPlotMultiFieldsAndSplitBy ? o = c.BoxPlotMultiFields : a === c.BoxPlotMonoFieldAndCategoryAndSplitBy && (o = c.BoxPlotMonoFieldAndCategory));
|
|
307
|
+
const l = N(e), f = G(e), x = Z(e), g = I(e);
|
|
308
308
|
let y;
|
|
309
309
|
switch (o) {
|
|
310
310
|
case c.BoxPlotMonoField:
|
|
@@ -342,7 +342,7 @@ function xe(n) {
|
|
|
342
342
|
}
|
|
343
343
|
case c.BoxPlotMultiFieldsAndCategory: {
|
|
344
344
|
y = t.flatMap(
|
|
345
|
-
(s) =>
|
|
345
|
+
(s) => f.map((d) => {
|
|
346
346
|
const u = {};
|
|
347
347
|
let p = "";
|
|
348
348
|
if (u.Field = d, s[M.boxPlot.boxPlotOutlierId])
|
|
@@ -67,7 +67,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
67
67
|
/**
|
|
68
68
|
* Auto disposes the chart when a new one is created in the same container.
|
|
69
69
|
*
|
|
70
|
-
* @deprecated since 5.0. Use [autoDestroyDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/arcgis-chart/#autoDestroyDisabled) instead.
|
|
70
|
+
* @deprecated since 5.0. Use [autoDestroyDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#autoDestroyDisabled) instead.
|
|
71
71
|
* @default false
|
|
72
72
|
*/
|
|
73
73
|
accessor autoDisposeChart: boolean | undefined;
|