@arcgis/charts-components 5.0.0-next.160 → 5.0.0-next.162
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/{RZ6R7MN4.js → 277KZ5EH.js} +1 -1
- package/dist/cdn/{ZNEO3KDO.js → 35FGLAKV.js} +1 -1
- package/dist/cdn/{F4YTYW5V.js → 37TWMIC2.js} +1 -1
- package/dist/cdn/{ZRXBS332.js → 3TCYZ5OB.js} +19 -19
- package/dist/cdn/3UBEHDWK.js +2 -0
- package/dist/cdn/{OPLYTZOK.js → 4L3ESTCL.js} +1 -1
- package/dist/cdn/{FTVGPPNT.js → 53QDB3IL.js} +1 -1
- package/dist/cdn/{PN64D75Z.js → 62OZB7FK.js} +1 -1
- package/dist/cdn/{SWT4YIO7.js → 64DXX3FX.js} +1 -1
- package/dist/cdn/{VDGG6FNJ.js → 6AP262U4.js} +1 -1
- package/dist/cdn/{67GFPMNP.js → 7HCS3J2W.js} +1 -1
- package/dist/cdn/{6CXURON6.js → 7HDTPUIY.js} +1 -1
- package/dist/cdn/{HHE4YHFC.js → 7KAPOFBN.js} +1 -1
- package/dist/cdn/{RDBJ4EAL.js → 7LRO7RMI.js} +1 -1
- package/dist/cdn/{LTTLQY6M.js → 7WZV7AE3.js} +1 -1
- package/dist/cdn/{GOTYA4RS.js → 7XUX4ZTI.js} +1 -1
- package/dist/cdn/{BQRMDGR3.js → B5LXWQRU.js} +1 -1
- package/dist/cdn/{PBRZV4IF.js → BYAYB5LF.js} +1 -1
- package/dist/cdn/{665XYLCG.js → C72B5RSG.js} +1 -1
- package/dist/cdn/{MJRULOQL.js → CAXYDF5R.js} +1 -1
- package/dist/cdn/{IYF5UHWL.js → CBTHS6I5.js} +1 -1
- package/dist/cdn/{FO26BDGS.js → CIW6WMFK.js} +3 -3
- package/dist/cdn/{XGWFSBK7.js → CTDG3FOZ.js} +1 -1
- package/dist/cdn/{IWZKNPYZ.js → D2HQHUZF.js} +1 -1
- package/dist/cdn/{UR26ITDF.js → DACWGPLL.js} +1 -1
- package/dist/cdn/{LG32FAGS.js → DB3UL5LX.js} +1 -1
- package/dist/cdn/{VAXL6P2J.js → DHBBU7AG.js} +1 -1
- package/dist/cdn/{L7PMTZK6.js → DKC6E3QZ.js} +1 -1
- package/dist/cdn/{BNTX3CFT.js → DLT5ZL25.js} +1 -1
- package/dist/cdn/{QTV7HK2M.js → EYXP4YQW.js} +1 -1
- package/dist/cdn/{6YNI4VGB.js → FGMU7G6T.js} +1 -1
- package/dist/cdn/{PDPZOXDT.js → G7UITT5F.js} +1 -1
- package/dist/cdn/{XQG5VGS4.js → GB223HFN.js} +1 -1
- package/dist/cdn/{RGUQ44HW.js → GKUTVRCP.js} +1 -1
- package/dist/cdn/{SLX36JI6.js → GRUDYKUK.js} +1 -1
- package/dist/cdn/{MEXLQN6D.js → HAAT4GZV.js} +1 -1
- package/dist/cdn/{RKQXTPOC.js → IBDFXE7F.js} +1 -1
- package/dist/cdn/{UVFZBFUX.js → IBMHE4HG.js} +1 -1
- package/dist/cdn/{UR4FYTBG.js → IDMPL6T7.js} +1 -1
- package/dist/cdn/{HAS5TLQ3.js → IL22JCIC.js} +1 -1
- package/dist/cdn/{XJUEF5CF.js → ISB65KPT.js} +1 -1
- package/dist/cdn/{JGXIWN67.js → IYGUWGB6.js} +1 -1
- package/dist/cdn/{KGZ4OZTE.js → JASXULGK.js} +1 -1
- package/dist/cdn/{D26O56MQ.js → JBHDZEVD.js} +1 -1
- package/dist/cdn/{PWNEQTL7.js → KDGGKNBV.js} +1 -1
- package/dist/cdn/{M6Z5DNZU.js → KF4ILYWV.js} +1 -1
- package/dist/cdn/KHPBPGZW.js +2 -0
- package/dist/cdn/{X4EAJDXE.js → KLOSKKEF.js} +1 -1
- package/dist/cdn/{R7BXDBMM.js → KOC7VWEQ.js} +1 -1
- package/dist/cdn/{3WRKA6FV.js → KPBKHH3V.js} +1 -1
- package/dist/cdn/LRATJMH3.js +2 -0
- package/dist/cdn/{MG7QVBU6.js → MMVZJQGM.js} +1 -1
- package/dist/cdn/{JCKTUCRW.js → MSNUKDFY.js} +1 -1
- package/dist/cdn/{YV3ZTJIM.js → NLNJYC2E.js} +1 -1
- package/dist/cdn/{44H6FBHJ.js → NNTJCO7Q.js} +1 -1
- package/dist/cdn/{PKZLBYM2.js → OMR6RCJW.js} +1 -1
- package/dist/cdn/{KY27HRBB.js → OR2MF4BU.js} +1 -1
- package/dist/cdn/{CH42B5JL.js → OWTDESPZ.js} +1 -1
- package/dist/cdn/{PAYHZG5C.js → P3XTRZL3.js} +1 -1
- package/dist/cdn/{4PBJ7FUT.js → PQRPDV2N.js} +1 -1
- package/dist/cdn/{PPNZMZXU.js → PUO6TAT3.js} +1 -1
- package/dist/cdn/{4UKLAJSH.js → PZ5VL76M.js} +1 -1
- package/dist/cdn/{GBKRQ677.js → R7TVVBB7.js} +1 -1
- package/dist/cdn/{O73BKEVY.js → RKJFJ3VI.js} +1 -1
- package/dist/cdn/{2KLSYRIH.js → S3MAP4NY.js} +1 -1
- package/dist/cdn/{NCTDUS4J.js → SAKNSC4M.js} +1 -1
- package/dist/cdn/{7743VKV6.js → SW62HLGO.js} +1 -1
- package/dist/cdn/{VVKJ7NJ6.js → SW6ENGEK.js} +1 -1
- package/dist/cdn/{2BMO22B2.js → SZ2BB7ZG.js} +1 -1
- package/dist/cdn/{GJAATA35.js → TBYLHPGX.js} +1 -1
- package/dist/cdn/{A6KHSTDR.js → TCKDCNZ6.js} +1 -1
- package/dist/cdn/{L4YLTTHZ.js → TQRAYSWN.js} +1 -1
- package/dist/cdn/{XSF4MZ74.js → TUTT6I7D.js} +1 -1
- package/dist/cdn/{WQIYKKB6.js → UHB77RAE.js} +1 -1
- package/dist/cdn/{FQHGUWNW.js → UUZWRA5G.js} +1 -1
- package/dist/cdn/{IFGO4IOP.js → V65HT7NA.js} +1 -1
- package/dist/cdn/{PXVGQP6X.js → VMSL4CWI.js} +1 -1
- package/dist/cdn/{TO45SJXS.js → WCBXBXTZ.js} +1 -1
- package/dist/cdn/WNZXN6Y2.js +2 -0
- package/dist/cdn/{C7TDDQQD.js → WORQWDJQ.js} +1 -1
- package/dist/cdn/{B2VQPKK2.js → WTZ23CRY.js} +1 -1
- package/dist/cdn/{2KSPR6GE.js → XIFLK5EG.js} +1 -1
- package/dist/cdn/XNTLXVQF.js +2 -0
- package/dist/cdn/{UGPLQMQT.js → XQAUA2KI.js} +1 -1
- package/dist/cdn/{GGMJJ64F.js → Y7OQUVXC.js} +1 -1
- package/dist/cdn/{LX4URLJD.js → YHIJMVJQ.js} +1 -1
- package/dist/cdn/{WF4C6C2Y.js → YHVWLHT7.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +5 -5
- package/dist/chunks/axis-lines-symbol.js +14 -14
- package/dist/chunks/bar-chart-model.js +3 -3
- package/dist/chunks/box-plot-data.js +20 -20
- package/dist/chunks/box-plot-model.js +19 -19
- package/dist/chunks/chart-model.js +43 -43
- package/dist/chunks/chart-ui-utils2.js +3 -3
- package/dist/chunks/combo-bar-line-chart-model.js +7 -7
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data.js +19 -19
- package/dist/chunks/gauge-model.js +16 -16
- package/dist/chunks/generate-x-axis-title.js +1 -1
- package/dist/chunks/heat-chart-model.js +12 -12
- package/dist/chunks/histogram-data.js +7 -7
- package/dist/chunks/histogram-model.js +4 -4
- package/dist/chunks/index.js +320 -318
- package/dist/chunks/index2.js +51 -51
- package/dist/chunks/index3.js +12 -12
- package/dist/chunks/line-chart-model.js +6 -6
- package/dist/chunks/model-setter.js +3 -3
- package/dist/chunks/model-with-guides.js +12 -12
- package/dist/chunks/model-with-tooltips.js +16 -16
- package/dist/chunks/model-with-y-guides.js +11 -11
- package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
- package/dist/chunks/pie-chart-data.js +25 -25
- package/dist/chunks/pie-chart-model.js +33 -33
- package/dist/chunks/radar-chart-model.js +4 -4
- package/dist/chunks/rotated-state.js +3 -3
- package/dist/chunks/scatterplot-model.js +18 -18
- package/dist/chunks/serial-chart-data.js +306 -300
- package/dist/chunks/serial-chart-model.js +13 -13
- package/dist/chunks/series-length.js +1 -1
- package/dist/chunks/series.js +7 -7
- package/dist/chunks/utils.js +36 -36
- package/dist/chunks/utils2.js +9 -9
- package/dist/chunks/web-component-utils.js +51 -51
- package/dist/components/arcgis-chart/customElement.js +1529 -1517
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- 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-popover/customElement.js +8 -8
- 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 +5 -5
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +8 -8
- 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 +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/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 +5 -5
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- 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 +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/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/web-types.json +1 -1
- package/dist/index.js +224 -223
- package/dist/utils/chart-config/utils/index.d.ts +8 -0
- package/package.json +3 -3
- package/dist/cdn/FIR7XZ4I.js +0 -2
- package/dist/cdn/GMI2B2TP.js +0 -2
- package/dist/cdn/IIQTQZRE.js +0 -2
- package/dist/cdn/V4BNMRTI.js +0 -2
- package/dist/cdn/YNDD5HWR.js +0 -2
|
@@ -7,7 +7,7 @@ import "luxon";
|
|
|
7
7
|
import "d3-array";
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
9
|
import { o as y } from "./series-types.js";
|
|
10
|
-
import {
|
|
10
|
+
import { aF as g } from "./index.js";
|
|
11
11
|
import "@arcgis/core/Graphic.js";
|
|
12
12
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
13
13
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -30,16 +30,16 @@ import { m as r } from "./model-setter.js";
|
|
|
30
30
|
import { g as S, b as B, e as M, f as O, c as D, d as G, a as I, s as z } from "./utils2.js";
|
|
31
31
|
import { M as _, a as H, d as Y } from "./model-with-guides.js";
|
|
32
32
|
import { G as p } from "./common.js";
|
|
33
|
-
const
|
|
33
|
+
const F = (t) => {
|
|
34
34
|
for (const i of t.axes ?? [])
|
|
35
35
|
if (i?.grid !== void 0)
|
|
36
36
|
return i.grid;
|
|
37
|
-
},
|
|
37
|
+
}, P = (t, i, s) => {
|
|
38
38
|
const o = i.axes;
|
|
39
39
|
s.forEach((c) => {
|
|
40
40
|
o?.[c] !== void 0 && (o[c].grid = T(t));
|
|
41
41
|
});
|
|
42
|
-
},
|
|
42
|
+
}, k = (t, i) => i.axes?.[t]?.visible ?? !0, W = (t, i, s) => {
|
|
43
43
|
const o = s.axes?.[i];
|
|
44
44
|
o !== void 0 && (o.visible = t);
|
|
45
45
|
}, Z = (t, i) => t.axes?.[i]?.displayZeroLine ?? !1, w = (t, i, s) => {
|
|
@@ -47,10 +47,10 @@ const P = (t) => {
|
|
|
47
47
|
}, N = (t, i) => t.axes?.[i]?.displayCursorTooltip ?? !1, j = (t) => {
|
|
48
48
|
const { config: i, displayCursorTooltip: s, axisIndex: o } = t;
|
|
49
49
|
i.axes?.[o] !== void 0 && (i.axes[o].displayCursorTooltip = s);
|
|
50
|
-
}, $ = (t, i) => t.axes?.[i]?.buffer ?? !1,
|
|
50
|
+
}, $ = (t, i) => t.axes?.[i]?.buffer ?? !1, U = (t) => {
|
|
51
51
|
const { config: i, buffer: s, axisIndex: o } = t, c = i.axes?.[o];
|
|
52
52
|
c !== void 0 && (c.buffer = s);
|
|
53
|
-
},
|
|
53
|
+
}, E = (t, i) => t.axes?.[i]?.tickSpacing, R = (t) => {
|
|
54
54
|
const { config: i, tickSpacing: s, axisIndex: o } = t;
|
|
55
55
|
i.axes?.[o] !== void 0 && (i.axes[o].tickSpacing = s);
|
|
56
56
|
}, X = (t, i) => t.axes?.[i]?.integerOnlyValues ?? !1, q = (t) => {
|
|
@@ -105,7 +105,7 @@ class a extends b {
|
|
|
105
105
|
return e({
|
|
106
106
|
config: this._config,
|
|
107
107
|
axisIndex: i,
|
|
108
|
-
func: (s) =>
|
|
108
|
+
func: (s) => k(s, this._config)
|
|
109
109
|
}) ?? !0;
|
|
110
110
|
}
|
|
111
111
|
/**
|
|
@@ -338,10 +338,10 @@ class a extends b {
|
|
|
338
338
|
* Gets the grid lines symbol. Contains styling information such as line width, line style, and line color.
|
|
339
339
|
*/
|
|
340
340
|
getGridLinesSymbol() {
|
|
341
|
-
return
|
|
341
|
+
return F(this._config);
|
|
342
342
|
}
|
|
343
343
|
setGridLinesSymbol(i, s) {
|
|
344
|
-
Array.isArray(s) &&
|
|
344
|
+
Array.isArray(s) && P(i, this._config, s);
|
|
345
345
|
}
|
|
346
346
|
/**
|
|
347
347
|
* Get the default x-axis title text.
|
|
@@ -420,7 +420,7 @@ class a extends b {
|
|
|
420
420
|
config: this._config,
|
|
421
421
|
axisIndex: s,
|
|
422
422
|
func: (o) => {
|
|
423
|
-
|
|
423
|
+
U({
|
|
424
424
|
config: this._config,
|
|
425
425
|
buffer: i,
|
|
426
426
|
axisIndex: o
|
|
@@ -435,7 +435,7 @@ class a extends b {
|
|
|
435
435
|
* @param axisIndex - The index of the axis
|
|
436
436
|
*/
|
|
437
437
|
getTickSpacing(i) {
|
|
438
|
-
return
|
|
438
|
+
return E(this._config, i);
|
|
439
439
|
}
|
|
440
440
|
setTickSpacing(i, s) {
|
|
441
441
|
e({
|
|
@@ -5,7 +5,7 @@ import "luxon";
|
|
|
5
5
|
import "d3-array";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
7
|
import "./series-types.js";
|
|
8
|
-
import {
|
|
8
|
+
import { aW as m } from "./index.js";
|
|
9
9
|
import "@arcgis/core/Graphic.js";
|
|
10
10
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
11
11
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
2
|
import "@arcgis/toolkit/intl";
|
|
3
|
-
import { memoize as E, isEmpty as
|
|
3
|
+
import { memoize as E, isEmpty as R, isNull as $, cloneDeep as U } from "lodash-es";
|
|
4
4
|
import "luxon";
|
|
5
5
|
import "d3-array";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
|
-
import { a as m, g as
|
|
8
|
-
import { f as
|
|
9
|
-
import { d as O,
|
|
7
|
+
import { a as m, g as C, t as F, W as _ } from "./series-types.js";
|
|
8
|
+
import { f as z } from "./rest-js-object-literals.js";
|
|
9
|
+
import { d as O, bL as A, aR as G, bs as M, cZ as P, _ as V, bb as Z, a as w } from "./index.js";
|
|
10
10
|
import "@arcgis/core/Graphic.js";
|
|
11
11
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
12
12
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -26,11 +26,11 @@ import "./runtime.js";
|
|
|
26
26
|
import "@arcgis/toolkit/dom";
|
|
27
27
|
import { g as L, u as q } from "./utils.js";
|
|
28
28
|
import { a as y, P as g } from "./common.js";
|
|
29
|
-
import { g as
|
|
30
|
-
import { g as
|
|
31
|
-
import { g as
|
|
29
|
+
import { g as k } from "./data.js";
|
|
30
|
+
import { g as H } from "./series-length.js";
|
|
31
|
+
import { g as J } from "./utils2.js";
|
|
32
32
|
function v(s) {
|
|
33
|
-
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, a = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: r, mode: i }) : "", l =
|
|
33
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, a = e !== void 0 ? D({ config: t, layerInfo: e, commonStrings: r, mode: i }) : "", l = H(t), d = V(t);
|
|
34
34
|
return a === l || d;
|
|
35
35
|
}
|
|
36
36
|
function B(s) {
|
|
@@ -40,18 +40,18 @@ function B(s) {
|
|
|
40
40
|
commonStrings: r,
|
|
41
41
|
numericFields: f(t),
|
|
42
42
|
aggregationType: T(t, i)
|
|
43
|
-
}) : "", l =
|
|
43
|
+
}) : "", l = J(1, t), d = V(t);
|
|
44
44
|
return a === l || d;
|
|
45
45
|
}
|
|
46
46
|
const I = (s) => s.series?.[0]?.x ?? "";
|
|
47
|
-
function
|
|
47
|
+
function Q(s, t) {
|
|
48
48
|
const e = s.series?.[0];
|
|
49
|
-
return [`${t === y.Category ? e.y : w} ${
|
|
49
|
+
return [`${t === y.Category ? e.y : w} ${C.Descending}`];
|
|
50
50
|
}
|
|
51
51
|
const K = (s, t) => {
|
|
52
52
|
let e = g.valueDesc;
|
|
53
|
-
const i = s.orderOptions?.data?.orderType ??
|
|
54
|
-
return i === F.Category && Array.isArray(r) ? e = g.customSort : i === F.Category ? r ===
|
|
53
|
+
const i = s.orderOptions?.data?.orderType ?? Q(s, t), r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : C.Descending;
|
|
54
|
+
return i === F.Category && Array.isArray(r) ? e = g.customSort : i === F.Category ? r === C.Ascending ? e = g.labelAsc : e = g.labelDesc : r === C.Ascending ? e = g.valueAsc : e = g.valueDesc, e;
|
|
55
55
|
}, f = E(
|
|
56
56
|
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
57
57
|
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
@@ -69,14 +69,14 @@ const K = (s, t) => {
|
|
|
69
69
|
return t === y.Fields && e.length === 0 ? i = m.Sum : i = s.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? m.NoAggregation, i;
|
|
70
70
|
};
|
|
71
71
|
function Y(s) {
|
|
72
|
-
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, a = A(e?.layer).idField, l =
|
|
72
|
+
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, a = A(e?.layer).idField, l = Z(r, a), d = I(t), c = t.series[0]?.dataLabels, o = {
|
|
73
73
|
...l,
|
|
74
74
|
x: i === y.Category ? d : O,
|
|
75
75
|
slices: t.series?.[0]?.slices,
|
|
76
76
|
dataLabels: {
|
|
77
77
|
...l.dataLabels,
|
|
78
|
-
type: l.dataLabels?.type ??
|
|
79
|
-
content: { ...l.dataLabels?.content, ...c?.content, type:
|
|
78
|
+
type: l.dataLabels?.type ?? _.Text,
|
|
79
|
+
content: { ...l.dataLabels?.content, ...c?.content, type: z.TS },
|
|
80
80
|
visible: c?.visible ?? !1
|
|
81
81
|
},
|
|
82
82
|
innerRadiusSize: t.series?.[0]?.innerRadius,
|
|
@@ -104,21 +104,21 @@ function Y(s) {
|
|
|
104
104
|
}
|
|
105
105
|
function D(s) {
|
|
106
106
|
const { config: t, layerInfo: e, mode: i, commonStrings: r } = s, { layerFieldsInfo: a } = e, { idField: l, isTraditionalTypeOID: d } = A(e.layer), c = I(t), o = f(t), n = T(t, i), u = d && (o.length === 0 || o.includes(l)), p = M(n, r), x = u ? "" : o.map((W) => P(a ?? [], W)).join(", "), S = P(a ?? [], c);
|
|
107
|
-
let
|
|
108
|
-
return i === y.Fields ? N = o.length === 0 : N = c === "", N ?
|
|
107
|
+
let b = "", N;
|
|
108
|
+
return i === y.Fields ? N = o.length === 0 : N = c === "", N ? b = r.utilsStrings.chartType.pieChart : n === m.NoAggregation ? b = h(r.titleLabels.aggrFieldsByCategory, {
|
|
109
109
|
aggregationFields: u ? l : x,
|
|
110
110
|
category: S
|
|
111
|
-
}) : n === m.Count ?
|
|
111
|
+
}) : n === m.Count ? b = h(r.titleLabels.aggrTypeCategory, {
|
|
112
112
|
aggregationType: p,
|
|
113
113
|
category: S
|
|
114
|
-
}) : o.length > 0 && (S === O ||
|
|
114
|
+
}) : o.length > 0 && (S === O || R(S) || $(S) ? b = h(r.titleLabels.aggrTypeOfAggrFields, {
|
|
115
115
|
aggregationType: p,
|
|
116
116
|
aggregationFields: x
|
|
117
|
-
}) :
|
|
117
|
+
}) : b = h(r.titleLabels.aggrTypeOfAggrFieldsByCategory, {
|
|
118
118
|
aggregationType: p,
|
|
119
119
|
aggregationFields: x,
|
|
120
120
|
category: S
|
|
121
|
-
})),
|
|
121
|
+
})), b;
|
|
122
122
|
}
|
|
123
123
|
const ve = (s) => {
|
|
124
124
|
const { newSortOrderKind: t, config: e, orderByList: i } = s;
|
|
@@ -127,7 +127,7 @@ const ve = (s) => {
|
|
|
127
127
|
orderBy: [...i]
|
|
128
128
|
} : e.orderOptions.data = {
|
|
129
129
|
orderType: t === g.labelAsc || t === g.labelDesc ? F.Category : F.YValue,
|
|
130
|
-
orderBy: t === g.labelAsc || t === g.valueAsc ?
|
|
130
|
+
orderBy: t === g.labelAsc || t === g.valueAsc ? C.Ascending : C.Descending
|
|
131
131
|
};
|
|
132
132
|
}, Be = (s) => {
|
|
133
133
|
const { newCategory: t, config: e, layerInfo: i, mode: r, commonStrings: a } = s, l = e.series?.length ?? 0, d = v({ config: e, layerInfo: i, commonStrings: a, mode: r }), c = B({ config: e, layerInfo: i, commonStrings: a, mode: r });
|
|
@@ -166,7 +166,7 @@ function j(s) {
|
|
|
166
166
|
}
|
|
167
167
|
};
|
|
168
168
|
t.length <= 1 ? n.query.where = o.query?.where : delete n.query.where;
|
|
169
|
-
const u =
|
|
169
|
+
const u = k({
|
|
170
170
|
config: i,
|
|
171
171
|
xAxisField: I(i),
|
|
172
172
|
numericFields: t,
|
|
@@ -221,7 +221,7 @@ const Ie = (s) => {
|
|
|
221
221
|
e.title && d && (e.title.content.text = D({ config: e, layerInfo: i, commonStrings: a, mode: r }));
|
|
222
222
|
const o = e.series?.[0]?.displayCategoryOnDataLabel, n = e.series?.[0]?.displayNumericValueOnDataLabel, u = e.series?.[0]?.displayPercentageOnDataLabel;
|
|
223
223
|
e.legend = {
|
|
224
|
-
...e.legend ??
|
|
224
|
+
...e.legend ?? G(),
|
|
225
225
|
displayNumericValue: n,
|
|
226
226
|
displayPercentage: u,
|
|
227
227
|
displayCategory: o
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import { log as
|
|
3
|
-
import { C as
|
|
2
|
+
import { log as F } from "@arcgis/toolkit/log";
|
|
3
|
+
import { C as M } from "./chart-model.js";
|
|
4
4
|
import { m as s } from "./model-setter.js";
|
|
5
5
|
import { b as c, a as f } from "./common.js";
|
|
6
6
|
import { M as v, a as W, W as A, b as w } from "./model-with-tooltips.js";
|
|
@@ -12,7 +12,7 @@ import "@arcgis/toolkit/intl";
|
|
|
12
12
|
import { cloneDeep as B } from "lodash-es";
|
|
13
13
|
import "luxon";
|
|
14
14
|
import "d3-array";
|
|
15
|
-
import {
|
|
15
|
+
import { aR as d, b9 as T, aN as b, aw as V, o as S, dh as h, _ as R, bi as E, bb as j, bL as U } from "./index.js";
|
|
16
16
|
import "@arcgis/core/Graphic.js";
|
|
17
17
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
18
18
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -31,9 +31,9 @@ import "@arcgis/core/time/TimeExtent.js";
|
|
|
31
31
|
import "@arcgis/core/core/promiseUtils.js";
|
|
32
32
|
import "./runtime.js";
|
|
33
33
|
import "@arcgis/toolkit/dom";
|
|
34
|
-
import { g as _, s as K, a as $, c as
|
|
34
|
+
import { g as _, s as K, a as $, c as q, b as H, d as J, e as Q, f as X, h as L, i as O, j as Y } from "./pie-chart-data.js";
|
|
35
35
|
import { f as y } from "./rest-js-object-literals.js";
|
|
36
|
-
const
|
|
36
|
+
const Z = (t) => t.legend?.displayNumericValue ?? !1, ee = (t, e) => {
|
|
37
37
|
e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.displayNumericValue = t);
|
|
38
38
|
}, te = (t) => t.legend?.displayCategory ?? !1, ie = (t, e) => {
|
|
39
39
|
e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.displayCategory = t);
|
|
@@ -56,7 +56,7 @@ class u extends v {
|
|
|
56
56
|
* **Note**: This setting is only applicable to pie charts.
|
|
57
57
|
*/
|
|
58
58
|
getDisplayNumericValue() {
|
|
59
|
-
return
|
|
59
|
+
return Z(this._config);
|
|
60
60
|
}
|
|
61
61
|
setDisplayNumericValue(e) {
|
|
62
62
|
ee(e, this._config);
|
|
@@ -130,9 +130,9 @@ const de = (t) => t.series?.[0]?.innerRadius, ue = (t, e) => {
|
|
|
130
130
|
e.series?.[0] && (e.series[0].valueSuffix = t);
|
|
131
131
|
}, xe = (t) => t.series?.[0]?.percentagePrefix, Ie = (t, e) => {
|
|
132
132
|
e.series?.[0] && (e.series[0].percentagePrefix = t);
|
|
133
|
-
}, Ne = (t) => t.series?.[0]?.percentageSuffix,
|
|
133
|
+
}, Ne = (t) => t.series?.[0]?.percentageSuffix, Fe = (t, e) => {
|
|
134
134
|
e.series?.[0] && (e.series[0].percentageSuffix = t);
|
|
135
|
-
},
|
|
135
|
+
}, Me = (t) => {
|
|
136
136
|
let e;
|
|
137
137
|
const i = t.series?.[0];
|
|
138
138
|
return i?.displayNumericValueOnDataLabel === !0 && i?.displayPercentageOnDataLabel === !0 ? e = c.Both : i?.displayNumericValueOnDataLabel === !0 ? e = c.Value : e = c.Percentage, e;
|
|
@@ -149,17 +149,17 @@ const de = (t) => t.series?.[0]?.innerRadius, ue = (t, e) => {
|
|
|
149
149
|
e.series[0] && (e.series[0].dataLabelsInside = t);
|
|
150
150
|
}, ze = (t) => t.series?.[0]?.dataLabelsOffset ?? 10, Be = (t, e) => {
|
|
151
151
|
e.series[0] && (e.series[0].dataLabelsOffset = t);
|
|
152
|
-
},
|
|
152
|
+
}, Re = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, Ee = (t, e) => {
|
|
153
153
|
e.series?.[0] && (e.series[0].numericValueFormat ??= b(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= b(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
|
|
154
154
|
}, je = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, Ue = (t, e) => {
|
|
155
155
|
e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
|
|
156
156
|
}, Ke = (t) => t.series[0]?.ticks?.visible ?? !1, $e = (t, e) => {
|
|
157
157
|
e.series?.[0] && (e.series[0].ticks ??= T(), e.series[0].ticks.visible = t);
|
|
158
|
-
},
|
|
158
|
+
}, qe = (t) => t.series[0]?.ticks?.lineSymbol, He = (t, e) => {
|
|
159
159
|
t && e.series?.[0] && (e.series[0].ticks ??= T(), e.series[0].ticks.lineSymbol = B(t));
|
|
160
|
-
},
|
|
160
|
+
}, Je = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel, Qe = (t, e) => e.series?.[0]?.slices?.[t]?.label, Xe = (t, e, i) => {
|
|
161
161
|
i.series?.[0]?.slices?.[e] && (i.series[0].slices[e].label = t);
|
|
162
|
-
},
|
|
162
|
+
}, Ye = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color, Ze = (t, e, i) => {
|
|
163
163
|
const o = i.series?.[0]?.slices?.[e]?.fillSymbol;
|
|
164
164
|
o !== void 0 ? (o.color = t, o.outline !== void 0 ? o.outline.color = t : o.outline = { type: y.SLS, color: t }) : i.series?.[0]?.slices?.[e] !== void 0 && (i.series[0].slices[e].fillSymbol = {
|
|
165
165
|
type: y.SFS,
|
|
@@ -193,7 +193,7 @@ var nt = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, a = (t, e,
|
|
|
193
193
|
(g = t[n]) && (l = g(e, i, l) || l);
|
|
194
194
|
return l && nt(e, i, l), l;
|
|
195
195
|
};
|
|
196
|
-
class r extends
|
|
196
|
+
class r extends M {
|
|
197
197
|
constructor() {
|
|
198
198
|
super(...arguments), this._chartType = p.PieSeries, this._mode = f.Category, this._groupedSliceIds = [];
|
|
199
199
|
}
|
|
@@ -216,7 +216,7 @@ class r extends F {
|
|
|
216
216
|
return _(this._config);
|
|
217
217
|
}
|
|
218
218
|
set category(e) {
|
|
219
|
-
(!
|
|
219
|
+
(!R(this._config) || e.trim() !== "") && (K({
|
|
220
220
|
newCategory: e,
|
|
221
221
|
config: this._config,
|
|
222
222
|
layerInfo: this.layerInfo,
|
|
@@ -231,22 +231,22 @@ class r extends F {
|
|
|
231
231
|
return $(this._config);
|
|
232
232
|
}
|
|
233
233
|
set numericFields(e) {
|
|
234
|
-
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? k(this.layerInfo.layerFieldsInfo, e) : !0) ? (
|
|
234
|
+
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? k(this.layerInfo.layerFieldsInfo, e) : !0) ? (q({
|
|
235
235
|
newNumericFields: e,
|
|
236
236
|
config: this._config,
|
|
237
237
|
layerInfo: this.layerInfo,
|
|
238
238
|
commonStrings: this.commonStrings,
|
|
239
239
|
mode: this._mode
|
|
240
|
-
}), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) :
|
|
240
|
+
}), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) : F("error", "pie-chart-model", "Invalid `numericFields`");
|
|
241
241
|
}
|
|
242
242
|
/**
|
|
243
243
|
* Aggregation type for the pie chart.
|
|
244
244
|
*/
|
|
245
245
|
get aggregationType() {
|
|
246
|
-
return
|
|
246
|
+
return H(this._config, this._mode);
|
|
247
247
|
}
|
|
248
248
|
set aggregationType(e) {
|
|
249
|
-
|
|
249
|
+
J({
|
|
250
250
|
newAggregationType: e,
|
|
251
251
|
config: this._config,
|
|
252
252
|
layerInfo: this.layerInfo,
|
|
@@ -258,10 +258,10 @@ class r extends F {
|
|
|
258
258
|
* Gets the sort order for the pie chart.
|
|
259
259
|
*/
|
|
260
260
|
getSortOrder() {
|
|
261
|
-
return
|
|
261
|
+
return Q(this._config, this._mode);
|
|
262
262
|
}
|
|
263
263
|
setSortOrder(e, i) {
|
|
264
|
-
|
|
264
|
+
X({
|
|
265
265
|
newSortOrderKind: e,
|
|
266
266
|
config: this._config,
|
|
267
267
|
orderByList: i
|
|
@@ -318,10 +318,10 @@ class r extends F {
|
|
|
318
318
|
* Ticks symbol connecting slices to labels.
|
|
319
319
|
*/
|
|
320
320
|
get ticksSymbol() {
|
|
321
|
-
return
|
|
321
|
+
return qe(this._config);
|
|
322
322
|
}
|
|
323
323
|
set ticksSymbol(e) {
|
|
324
|
-
|
|
324
|
+
He(e, this._config);
|
|
325
325
|
}
|
|
326
326
|
// ---------------------------------------------------------------------------------------------
|
|
327
327
|
// #region Slices Props
|
|
@@ -384,16 +384,16 @@ class r extends F {
|
|
|
384
384
|
* Number of decimal places to display in the slice values.
|
|
385
385
|
*/
|
|
386
386
|
get decimalPlaces() {
|
|
387
|
-
return
|
|
387
|
+
return Re(this._config) ?? 1;
|
|
388
388
|
}
|
|
389
389
|
set decimalPlaces(e) {
|
|
390
|
-
|
|
390
|
+
Ee(e, this._config);
|
|
391
391
|
}
|
|
392
392
|
/**
|
|
393
393
|
* Display type for the pie chart slices. Specifies whether to display the slices as a percentage, value, or both.
|
|
394
394
|
*/
|
|
395
395
|
get displayType() {
|
|
396
|
-
return
|
|
396
|
+
return Me(this._config);
|
|
397
397
|
}
|
|
398
398
|
set displayType(e) {
|
|
399
399
|
We(e, this._config);
|
|
@@ -403,7 +403,7 @@ class r extends F {
|
|
|
403
403
|
// ---------------------------------------------------------------------------------------------
|
|
404
404
|
/** @private */
|
|
405
405
|
generateDefaultConfig() {
|
|
406
|
-
const e =
|
|
406
|
+
const e = E(this.commonStrings);
|
|
407
407
|
return e.series = [j(this.commonStrings, U(this.layerInfo.layer).idField)], e;
|
|
408
408
|
}
|
|
409
409
|
// ---------------------------------------------------------------------------------------------
|
|
@@ -415,7 +415,7 @@ class r extends F {
|
|
|
415
415
|
* @param sliceIndex - The index of the slice.
|
|
416
416
|
*/
|
|
417
417
|
getOriginalSliceName(e) {
|
|
418
|
-
return
|
|
418
|
+
return Je(e, this._config);
|
|
419
419
|
}
|
|
420
420
|
/**
|
|
421
421
|
* Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -423,10 +423,10 @@ class r extends F {
|
|
|
423
423
|
* @param sliceIndex - The index of the slice.
|
|
424
424
|
*/
|
|
425
425
|
getSliceName(e) {
|
|
426
|
-
return
|
|
426
|
+
return Qe(e, this._config);
|
|
427
427
|
}
|
|
428
428
|
setSliceName(e, i) {
|
|
429
|
-
|
|
429
|
+
Xe(e, i, this._config);
|
|
430
430
|
}
|
|
431
431
|
/**
|
|
432
432
|
* Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -434,10 +434,10 @@ class r extends F {
|
|
|
434
434
|
* @param sliceIndex - The index of the slice.
|
|
435
435
|
*/
|
|
436
436
|
getSliceColor(e) {
|
|
437
|
-
return
|
|
437
|
+
return Ye(e, this._config);
|
|
438
438
|
}
|
|
439
439
|
setSliceColor(e, i) {
|
|
440
|
-
|
|
440
|
+
Ze(e, i, this._config);
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
443
443
|
* Order of the slice array by returning an array of slice ids
|
|
@@ -626,7 +626,7 @@ class r extends F {
|
|
|
626
626
|
return Ne(this._config);
|
|
627
627
|
}
|
|
628
628
|
set percentageSuffix(e) {
|
|
629
|
-
|
|
629
|
+
Fe(e, this._config);
|
|
630
630
|
}
|
|
631
631
|
/**
|
|
632
632
|
* Offset for the data labels.
|
|
@@ -671,7 +671,7 @@ class r extends F {
|
|
|
671
671
|
* Generate the proper chart title given the current config.
|
|
672
672
|
*/
|
|
673
673
|
generateChartTitle() {
|
|
674
|
-
return
|
|
674
|
+
return Y({
|
|
675
675
|
config: this._config,
|
|
676
676
|
layerInfo: this.layerInfo,
|
|
677
677
|
commonStrings: this.commonStrings,
|
|
@@ -5,7 +5,7 @@ import "luxon";
|
|
|
5
5
|
import "d3-array";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
7
|
import { W as h } from "./series-types.js";
|
|
8
|
-
import {
|
|
8
|
+
import { bh as d, b5 as n, bL as o, aD as S, aq as c } from "./index.js";
|
|
9
9
|
import "@arcgis/core/Graphic.js";
|
|
10
10
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
11
11
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -30,10 +30,10 @@ import { s as b, a as v, b as I, c as _, d as C, W as M } from "./negative-value
|
|
|
30
30
|
import { g as m } from "./serial-chart-data.js";
|
|
31
31
|
import { m as k } from "./model-setter.js";
|
|
32
32
|
import { M as D } from "./model-with-line-marker-styling.js";
|
|
33
|
-
var
|
|
34
|
-
for (var i =
|
|
33
|
+
var L = Object.defineProperty, F = Object.getOwnPropertyDescriptor, x = (a, e, r, t) => {
|
|
34
|
+
for (var i = F(e, r), s = a.length - 1, l; s >= 0; s--)
|
|
35
35
|
(l = a[s]) && (i = l(e, r, i) || i);
|
|
36
|
-
return i &&
|
|
36
|
+
return i && L(e, r, i), i;
|
|
37
37
|
};
|
|
38
38
|
class f extends y {
|
|
39
39
|
constructor() {
|
|
@@ -5,7 +5,7 @@ import "luxon";
|
|
|
5
5
|
import "d3-array";
|
|
6
6
|
import "@arcgis/toolkit/type";
|
|
7
7
|
import "./series-types.js";
|
|
8
|
-
import {
|
|
8
|
+
import { cT as a } from "./index.js";
|
|
9
9
|
import "@arcgis/core/Graphic.js";
|
|
10
10
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
11
11
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -29,7 +29,7 @@ var n = Object.defineProperty, d = Object.getOwnPropertyDescriptor, c = (t, r, e
|
|
|
29
29
|
(p = t[i]) && (o = p(r, e, o) || o);
|
|
30
30
|
return o && n(r, e, o), o;
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function H(t) {
|
|
33
33
|
return t !== void 0 && "rotatedState" in t;
|
|
34
34
|
}
|
|
35
35
|
const f = (t) => a(t), S = (t, r) => {
|
|
@@ -51,5 +51,5 @@ c([
|
|
|
51
51
|
], _.prototype, "rotatedState");
|
|
52
52
|
export {
|
|
53
53
|
_ as W,
|
|
54
|
-
|
|
54
|
+
H as i
|
|
55
55
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
|
|
2
|
-
import { s as y, u as v, j as X, a as
|
|
3
|
-
import { substitute as
|
|
2
|
+
import { s as y, u as v, j as X, a as O } from "./utils.js";
|
|
3
|
+
import { substitute as Y } from "@arcgis/core/intl.js";
|
|
4
4
|
import { isEmpty as x, isEqual as D } from "lodash-es";
|
|
5
5
|
import "@arcgis/toolkit/intl";
|
|
6
6
|
import "luxon";
|
|
7
7
|
import "d3-array";
|
|
8
8
|
import "@arcgis/toolkit/type";
|
|
9
|
-
import { W as
|
|
10
|
-
import {
|
|
9
|
+
import { W as k } from "./series-types.js";
|
|
10
|
+
import { aZ as w, a_ as p, cZ as c, _ as T, bO as z, bk as E } from "./index.js";
|
|
11
11
|
import "@arcgis/core/Graphic.js";
|
|
12
12
|
import "@arcgis/core/renderers/support/jsonUtils.js";
|
|
13
13
|
import "@arcgis/core/symbols/support/symbolUtils.js";
|
|
@@ -27,7 +27,7 @@ import "@arcgis/toolkit/dom";
|
|
|
27
27
|
import { g as V } from "./series-length.js";
|
|
28
28
|
import { g as b } from "./utils2.js";
|
|
29
29
|
import { C as j } from "./chart-model.js";
|
|
30
|
-
import { M as B, a as G, W as
|
|
30
|
+
import { M as B, a as G, W as U, b as N } from "./model-with-tooltips.js";
|
|
31
31
|
import { W as Z } from "./data-labels-symbol.js";
|
|
32
32
|
import { W as q, a as H, b as J } from "./axis-lines-symbol.js";
|
|
33
33
|
import { W as K, b as Q } from "./model-with-guides.js";
|
|
@@ -38,31 +38,31 @@ import { M as se } from "./model-with-x-guides.js";
|
|
|
38
38
|
const F = (t) => {
|
|
39
39
|
y({ config: t, value: null, axisIndex: 0, isMax: !1 }), y({ config: t, value: null, axisIndex: 0, isMax: !0 }), y({ config: t, value: null, axisIndex: 1, isMax: !1 }), y({ config: t, value: null, axisIndex: 1, isMax: !0 });
|
|
40
40
|
}, L = (t) => {
|
|
41
|
-
const { name: e, axisIndex: i, config: s, layerInfo: r } = t, { layerFieldsInfo: o } = r, n = o.find((h) => h.name === e), a = n !== void 0 &&
|
|
41
|
+
const { name: e, axisIndex: i, config: s, layerInfo: r } = t, { layerFieldsInfo: o } = r, n = o.find((h) => h.name === e), a = n !== void 0 && z(n);
|
|
42
42
|
X(s, i, a);
|
|
43
43
|
};
|
|
44
44
|
function I(t, e, i) {
|
|
45
45
|
const s = g(t, e, i), r = V(t), o = T(t);
|
|
46
46
|
return s === r || o;
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function _(t, e) {
|
|
49
49
|
const { layerFieldsInfo: i } = e, s = c(i, u(t)), r = b(1, t), o = T(t);
|
|
50
50
|
return s === r || o;
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function M(t, e) {
|
|
53
53
|
const { layerFieldsInfo: i } = e, s = f(t), r = c(i, s), o = b(0, t), n = T(t);
|
|
54
54
|
return r === o || n;
|
|
55
55
|
}
|
|
56
56
|
function g(t, e, i) {
|
|
57
57
|
const s = f(t), r = u(t), { layerFieldsInfo: o } = e, n = c(o, s), a = c(o, r);
|
|
58
|
-
return
|
|
58
|
+
return Y(i.titleLabels.xAndY, { x: n, y: a });
|
|
59
59
|
}
|
|
60
|
-
const
|
|
60
|
+
const C = (t) => {
|
|
61
61
|
const { x: e, y: i, config: s, layerInfo: r, updateChartTitle: o, updateXAxisTitle: n, updateYAxisTitle: a, commonStrings: h } = t, { layerFieldsInfo: A } = r, W = c(A, e), P = c(A, i);
|
|
62
62
|
!x(e) && n && v(s, 0, W), !x(i) && a && v(s, 1, P), !x(e) && !x(i) && s.title && o && (s.title.content.text = g(s, r, h));
|
|
63
63
|
}, f = (t) => t.series[0]?.x ?? "", u = (t) => t.series[0]?.y ?? "", re = (t) => {
|
|
64
|
-
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n =
|
|
65
|
-
F(i), i.series[0] && (i.series[0].x = e),
|
|
64
|
+
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n = M(i, s), a = _(i, s);
|
|
65
|
+
F(i), i.series[0] && (i.series[0].x = e), C({
|
|
66
66
|
x: e,
|
|
67
67
|
y: u(i),
|
|
68
68
|
config: i,
|
|
@@ -78,8 +78,8 @@ const _ = (t) => {
|
|
|
78
78
|
layerInfo: s
|
|
79
79
|
});
|
|
80
80
|
}, oe = (t) => {
|
|
81
|
-
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n =
|
|
82
|
-
F(i), i.series[0] && (i.series[0].y = e),
|
|
81
|
+
const { fieldName: e, config: i, layerInfo: s, commonStrings: r } = t, o = I(i, s, r), n = M(i, s), a = _(i, s);
|
|
82
|
+
F(i), i.series[0] && (i.series[0].y = e), C({
|
|
83
83
|
x: f(i),
|
|
84
84
|
y: e,
|
|
85
85
|
config: i,
|
|
@@ -108,7 +108,7 @@ const _ = (t) => {
|
|
|
108
108
|
e.series[0].overlays ??= p(), e.series[0].overlays.trendLine ??= p().trendLine, e.series[0].overlays.trendLine.visible = t;
|
|
109
109
|
}, pe = (t, e) => {
|
|
110
110
|
!(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), ce(t, e);
|
|
111
|
-
}, S = (t) => t.series[0]?.sizePolicy ??
|
|
111
|
+
}, S = (t) => t.series[0]?.sizePolicy ?? w(), ye = (t, e) => {
|
|
112
112
|
e.series[0] && (t !== void 0 && t.field?.trim() !== "" ? e.series[0].sizePolicy = { ...e.series[0].sizePolicy, ...t } : e.series[0].sizePolicy = void 0);
|
|
113
113
|
}, xe = (t) => t?.series?.[0]?.overlays, fe = (t, e) => {
|
|
114
114
|
e?.series[0] !== void 0 && (e.series[0].overlays = t);
|
|
@@ -124,7 +124,7 @@ var Te = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, m = (t, e,
|
|
|
124
124
|
};
|
|
125
125
|
class l extends j {
|
|
126
126
|
constructor() {
|
|
127
|
-
super(...arguments), this._chartType =
|
|
127
|
+
super(...arguments), this._chartType = k.ScatterSeries;
|
|
128
128
|
}
|
|
129
129
|
async setup(e) {
|
|
130
130
|
await this.loadConfigFromLayer(e), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
@@ -259,8 +259,8 @@ const Ae = [
|
|
|
259
259
|
te,
|
|
260
260
|
B,
|
|
261
261
|
G,
|
|
262
|
-
N,
|
|
263
262
|
U,
|
|
263
|
+
N,
|
|
264
264
|
Z,
|
|
265
265
|
se,
|
|
266
266
|
ie,
|
|
@@ -273,7 +273,7 @@ const Ae = [
|
|
|
273
273
|
J,
|
|
274
274
|
ee
|
|
275
275
|
];
|
|
276
|
-
|
|
276
|
+
O(l, Ae);
|
|
277
277
|
export {
|
|
278
278
|
l as ScatterplotModel
|
|
279
279
|
};
|