@arcgis/charts-components 6.0.0-next.25 → 6.0.0-next.27
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/{IOK2V3P4.js → 2KXO7BVA.js} +1 -1
- package/dist/cdn/{BR46WAT3.js → 3743KVSR.js} +1 -1
- package/dist/cdn/{2GQTW4NH.js → 3AKXBLFC.js} +1 -1
- package/dist/cdn/{OM6QKWFE.js → 3FIQJ5AJ.js} +1 -1
- package/dist/cdn/{UYGZNX3E.js → 3OSMCMAY.js} +1 -1
- package/dist/cdn/{6ZD3Z5YL.js → 3RBTYR2Q.js} +1 -1
- package/dist/cdn/{TDD6C2FX.js → 46KP2NAT.js} +1 -1
- package/dist/cdn/{IUUDE4X5.js → 4PI4S77J.js} +1 -1
- package/dist/cdn/{OU7UWTYV.js → 4SVGCZGT.js} +1 -1
- package/dist/cdn/{BYG7ZIX2.js → 4XO4WT4X.js} +1 -1
- package/dist/cdn/{JXF3DDAB.js → 5DX4ZJZH.js} +1 -1
- package/dist/cdn/{GTLHXKAJ.js → 5GPRNPT5.js} +1 -1
- package/dist/cdn/{HU4OMSST.js → 5R46GNW4.js} +1 -1
- package/dist/cdn/{SNIJO2GO.js → 63Z4SXIB.js} +1 -1
- package/dist/cdn/{23PFUSK3.js → 6GBCPR5J.js} +1 -1
- package/dist/cdn/{ZDG7DMVN.js → 6KNVSKJI.js} +1 -1
- package/dist/cdn/{LRTY76E6.js → 6N2ITD57.js} +1 -1
- package/dist/cdn/{IQRQDZJC.js → 6PR6HVS4.js} +1 -1
- package/dist/cdn/{JWZGF724.js → 6SLVQTPT.js} +1 -1
- package/dist/cdn/{U6Y4QVXC.js → 6SVLCTQS.js} +1 -1
- package/dist/cdn/{EEZVAVKC.js → 73MVUX4G.js} +1 -1
- package/dist/cdn/{CLFK7CD2.js → 7K2QJPID.js} +1 -1
- package/dist/cdn/{FP2GSJQA.js → 7YCQRD34.js} +1 -1
- package/dist/cdn/{XGBIB7YB.js → BJT6BND6.js} +1 -1
- package/dist/cdn/{HEI543JI.js → BUV56OZA.js} +1 -1
- package/dist/cdn/{4V743NL4.js → BVZHUYBA.js} +1 -1
- package/dist/cdn/{ZCH46ONB.js → C7XGSAHJ.js} +1 -1
- package/dist/cdn/{SBCL24E4.js → CJC5VBVK.js} +1 -1
- package/dist/cdn/{H4SA3N6O.js → COMLINH3.js} +1 -1
- package/dist/cdn/{QYD2FVPD.js → DW6UJMMR.js} +1 -1
- package/dist/cdn/{7UVDQBL4.js → DX6YJH7X.js} +1 -1
- package/dist/cdn/{7QBDOZRN.js → E3PHUIRR.js} +1 -1
- package/dist/cdn/{5N5ZQZJO.js → EV3CQVBK.js} +1 -1
- package/dist/cdn/{3RQW57SE.js → FFU63U6V.js} +1 -1
- package/dist/cdn/{OMJYE2MJ.js → FJZM4Z5A.js} +1 -1
- package/dist/cdn/{TUIIWKKJ.js → GCGR7MCD.js} +1 -1
- package/dist/cdn/{JANDMZGE.js → GUSZROQX.js} +1 -1
- package/dist/cdn/{7GGX5UIB.js → H4L55FYO.js} +1 -1
- package/dist/cdn/{GD5JTE7A.js → HBNQH2S5.js} +1 -1
- package/dist/cdn/{LZPKYDMH.js → HLRLMWH2.js} +1 -1
- package/dist/cdn/{VSYGSI4Q.js → HOC57UTH.js} +1 -1
- package/dist/cdn/{COM3OWDH.js → I7PQFCMM.js} +1 -1
- package/dist/cdn/{Q43ORQKU.js → J54UY7G2.js} +1 -1
- package/dist/cdn/{RE3I2Z2X.js → J7XSWIFQ.js} +1 -1
- package/dist/cdn/JMQQBJED.js +2 -0
- package/dist/cdn/{SDPOEKHS.js → JONMEE36.js} +1 -1
- package/dist/cdn/{C2WLLAJA.js → JTR5G6A2.js} +1 -1
- package/dist/cdn/{E6ZQGTYB.js → K22ZRVEO.js} +1 -1
- package/dist/cdn/{M5AZLAGG.js → K4S5SYYR.js} +1 -1
- package/dist/cdn/{6OPPM5V2.js → KPWDKZSM.js} +1 -1
- package/dist/cdn/{LXGEIC5F.js → KW3N46DO.js} +1 -1
- package/dist/cdn/{DET6MJ7X.js → KXLQAS77.js} +1 -1
- package/dist/cdn/{QUVP5IS5.js → L6QW6IG6.js} +1 -1
- package/dist/cdn/{SX66PI5D.js → LBMQ3QJL.js} +1 -1
- package/dist/cdn/LVKJLRNO.js +2 -0
- package/dist/cdn/{NF3BLC5K.js → LX34U5I3.js} +1 -1
- package/dist/cdn/{O7O57T65.js → MHXTSVI4.js} +1 -1
- package/dist/cdn/{ROVVD6IW.js → MOBIKG3E.js} +1 -1
- package/dist/cdn/{YZJKK62F.js → NRMNO4T3.js} +1 -1
- package/dist/cdn/{D6XAU7NT.js → NUNLOL2L.js} +1 -1
- package/dist/cdn/{HBCVYIHS.js → OLXXAT2G.js} +1 -1
- package/dist/cdn/{XOXPFTIJ.js → ONC6OG57.js} +1 -1
- package/dist/cdn/{FNP7YROZ.js → PFFBO5QH.js} +1 -1
- package/dist/cdn/{QBHNXPDC.js → PHJ7GZH3.js} +1 -1
- package/dist/cdn/{JGXLPTT7.js → PJTTQKN3.js} +1 -1
- package/dist/cdn/{W6ND5MS4.js → PPLWWHA5.js} +1 -1
- package/dist/cdn/{J4V3WB5U.js → PQSQFDAH.js} +1 -1
- package/dist/cdn/{JIT5WKEB.js → PRAARRF4.js} +1 -1
- package/dist/cdn/{6R62GKMO.js → QDYZSNRJ.js} +1 -1
- package/dist/cdn/{4GEBMO7W.js → QFTCHFGK.js} +1 -1
- package/dist/cdn/{MSKHAI5B.js → QI4CG6OT.js} +1 -1
- package/dist/cdn/{VGOKYLOA.js → RWNXS76V.js} +1 -1
- package/dist/cdn/{HB4SJQ4W.js → RZV4XMXX.js} +1 -1
- package/dist/cdn/{QITW2GVD.js → SLJ5AKS3.js} +1 -1
- package/dist/cdn/{CLPZTMER.js → T4CM3KAQ.js} +1 -1
- package/dist/cdn/{TTW6WNUD.js → TFPUAMUR.js} +1 -1
- package/dist/cdn/TZETTYBC.js +2 -0
- package/dist/cdn/{R2THCQP5.js → U2EEQAJL.js} +1 -1
- package/dist/cdn/{QNEORRGV.js → UEASPEPR.js} +1 -1
- package/dist/cdn/{FKJRQZAC.js → UGTDUBXW.js} +1 -1
- package/dist/cdn/{KZ6LW4NP.js → VIDDAXQL.js} +1 -1
- package/dist/cdn/{3Q47Q67R.js → VP7LDWG5.js} +1 -1
- package/dist/cdn/{2ALROQCB.js → VR4L45AN.js} +24 -24
- package/dist/cdn/{HJCXMK5U.js → WXL6Q3TB.js} +1 -1
- package/dist/cdn/{XSZAO4QH.js → XPZRQZTJ.js} +1 -1
- package/dist/cdn/{TRJRLHIN.js → XU7FEXG2.js} +1 -1
- package/dist/cdn/{DUYJILM6.js → YAYID5AJ.js} +1 -1
- package/dist/cdn/{UNFDJW5A.js → YKSQH65V.js} +1 -1
- package/dist/cdn/{QXY7MRR7.js → ZANJLH52.js} +1 -1
- package/dist/cdn/{6HUXP73R.js → ZHMYNWSY.js} +1 -1
- package/dist/cdn/{WCQX5APN.js → ZOJZNQML.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/data.js +13 -13
- package/dist/chunks/generate-x-axis-title.js +9 -9
- package/dist/chunks/histogram-data.js +10 -10
- package/dist/chunks/index.js +5 -5
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/pie-chart-data.js +1 -1
- package/dist/chunks/pie-chart-model.js +162 -162
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/components/arcgis-chart/customElement.js +2446 -2424
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-invalid-input-message/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 +5 -5
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +38 -34
- 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-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/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 +1 -1
- package/dist/utils/chart-config/converter/index.js +18 -18
- package/package.json +5 -5
- package/dist/cdn/DVS6MZT5.js +0 -2
- package/dist/cdn/NK2I335H.js +0 -2
- package/dist/cdn/V3U7CLL3.js +0 -2
- /package/dist/cdn/{NX3KK4IQ.js → L2G4TISY.js} +0 -0
|
@@ -1,119 +1,119 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import { log as
|
|
2
|
+
import { log as R } from "@arcgis/toolkit/log";
|
|
3
3
|
import { a as g } from "./chart-object-literals.js";
|
|
4
|
-
import { r as
|
|
5
|
-
import { i as
|
|
6
|
-
import { a7 as p, ay as
|
|
7
|
-
import { C as
|
|
4
|
+
import { r as S, eO as B, y as h, cB as E, u as j, eM as K } from "./index.js";
|
|
5
|
+
import { i as q } from "./index3.js";
|
|
6
|
+
import { a7 as p, ay as k, k as b, p as A, ax as H, af as J } from "./index2.js";
|
|
7
|
+
import { C as Q } from "./chart-model.js";
|
|
8
8
|
import { m as s } from "./model-setter.js";
|
|
9
|
-
import { b as l, P as
|
|
10
|
-
import { M as
|
|
11
|
-
import { W as
|
|
12
|
-
import { i as y, a as m, g as
|
|
13
|
-
import { cloneDeep as
|
|
9
|
+
import { b as l, P as f } from "./common.js";
|
|
10
|
+
import { M as U, a as X, W as Y, b as Z } from "./data-labels-visibility.js";
|
|
11
|
+
import { W as $ } from "./data-labels-symbol.js";
|
|
12
|
+
import { i as y, a as m, g as u, s as ee, c as te, b as ie, d as se, e as L, f as O, h as D, j as C, k as re } from "./pie-chart-data.js";
|
|
13
|
+
import { cloneDeep as ae } from "es-toolkit/compat";
|
|
14
14
|
import { b as _ } from "./rest-js-object-literals.js";
|
|
15
|
-
const
|
|
15
|
+
const v = (t) => t.legend?.displayNumericValue ?? !1, P = (t, e) => {
|
|
16
16
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayNumericValue = t);
|
|
17
|
-
},
|
|
17
|
+
}, I = (t) => t.legend?.displayCategory ?? !1, T = (t, e) => {
|
|
18
18
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayCategory = t);
|
|
19
|
-
},
|
|
19
|
+
}, V = (t) => t.legend?.displayPercentage ?? !1, x = (t, e) => {
|
|
20
20
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayPercentage = t);
|
|
21
|
-
},
|
|
21
|
+
}, N = (t) => t.legend?.labelMaxWidth ?? 200, M = (t, e) => {
|
|
22
22
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.labelMaxWidth = t);
|
|
23
|
-
},
|
|
23
|
+
}, oe = (t) => t.legend?.valueLabelMaxWidth ?? 200, ne = (t, e) => {
|
|
24
24
|
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.valueLabelMaxWidth = t);
|
|
25
|
-
},
|
|
25
|
+
}, le = (t) => t.series?.[0]?.innerRadius, ce = (t, e) => {
|
|
26
26
|
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
27
|
-
},
|
|
27
|
+
}, ge = (t) => t.series?.[0]?.innerRadius, pe = (t, e) => {
|
|
28
28
|
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
29
|
-
},
|
|
29
|
+
}, de = (t) => t.series?.[0]?.dataLabelsCharacterLimit, ue = (t, e) => {
|
|
30
30
|
e.series?.[0] && (e.series[0].dataLabelsCharacterLimit = t);
|
|
31
|
-
},
|
|
31
|
+
}, F = (t) => t.series[0]?.startAngle, he = (t, e) => {
|
|
32
32
|
e.series?.[0] && (e.series[0].startAngle = t);
|
|
33
|
-
},
|
|
33
|
+
}, fe = (t, e) => {
|
|
34
34
|
e.series?.[0] && (e.series[0].endAngle = t);
|
|
35
|
-
},
|
|
35
|
+
}, ye = (t) => t.series?.[0]?.displayCategoryOnTooltip ?? !0, me = (t) => t.series?.[0]?.displayCategoryOnDataLabel ?? !0, _e = (t) => t.series?.[0]?.displayNumericValueOnDataLabel ?? !0, Se = (t) => t.series?.[0]?.displayPercentageOnDataLabel ?? !1, be = (t) => t.series?.[0]?.displayNumericValueOnTooltip ?? !0, Le = (t) => t.series?.[0]?.displayPercentageOnTooltip ?? !0, Oe = (t, e) => {
|
|
36
36
|
e.series[0] && (e.series[0].displayPercentageOnTooltip = t);
|
|
37
|
-
},
|
|
37
|
+
}, De = (t) => t.series?.[0]?.valuePrefix, Ce = (t, e) => {
|
|
38
38
|
e.series?.[0] && (e.series[0].valuePrefix = t);
|
|
39
|
-
},
|
|
39
|
+
}, ve = (t) => t.series?.[0]?.valueSuffix, Pe = (t, e) => {
|
|
40
40
|
e.series?.[0] && (e.series[0].valueSuffix = t);
|
|
41
|
-
},
|
|
41
|
+
}, Ie = (t) => t.series?.[0]?.percentagePrefix, Te = (t, e) => {
|
|
42
42
|
e.series?.[0] && (e.series[0].percentagePrefix = t);
|
|
43
|
-
},
|
|
43
|
+
}, Ve = (t) => t.series?.[0]?.percentageSuffix, xe = (t, e) => {
|
|
44
44
|
e.series?.[0] && (e.series[0].percentageSuffix = t);
|
|
45
|
-
},
|
|
45
|
+
}, Ne = (t) => {
|
|
46
46
|
let e;
|
|
47
47
|
const a = t.series?.[0];
|
|
48
48
|
return a?.displayNumericValueOnDataLabel === !0 && a?.displayPercentageOnDataLabel === !0 ? e = l.Both : a?.displayNumericValueOnDataLabel === !0 ? e = l.Value : e = l.Percentage, e;
|
|
49
|
-
},
|
|
49
|
+
}, Me = (t, e) => {
|
|
50
50
|
const a = t === l.Value || t === l.Both, o = t === l.Percentage || t === l.Both;
|
|
51
51
|
e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel = a, e.series[0].displayPercentageOnDataLabel = o), e.legend && (e.legend = {
|
|
52
52
|
...e.legend,
|
|
53
53
|
displayNumericValue: a,
|
|
54
54
|
displayPercentage: o
|
|
55
55
|
});
|
|
56
|
-
},
|
|
56
|
+
}, Fe = (t) => t.series?.[0]?.alignDataLabels ?? !1, We = (t, e) => {
|
|
57
57
|
e.series[0] && (e.series[0].alignDataLabels = t);
|
|
58
|
-
},
|
|
58
|
+
}, ke = (t) => t.series?.[0]?.dataLabelsInside ?? !1, Ae = (t, e) => {
|
|
59
59
|
e.series[0] && (e.series[0].dataLabelsInside = t);
|
|
60
|
-
},
|
|
60
|
+
}, Ge = (t) => t.series?.[0]?.dataLabelsOffset ?? 10, ze = (t, e) => {
|
|
61
61
|
e.series[0] && (e.series[0].dataLabelsOffset = t);
|
|
62
|
-
},
|
|
63
|
-
e.series?.[0] && (e.series[0].numericValueFormat ??=
|
|
64
|
-
},
|
|
62
|
+
}, we = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, Re = (t, e) => {
|
|
63
|
+
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);
|
|
64
|
+
}, Be = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, Ee = (t, e) => {
|
|
65
65
|
e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
|
|
66
|
-
},
|
|
67
|
-
e.series?.[0] && (e.series[0].ticks ??=
|
|
68
|
-
},
|
|
69
|
-
t && e.series?.[0] && (e.series[0].ticks ??=
|
|
70
|
-
},
|
|
66
|
+
}, je = (t) => t.series[0]?.ticks?.visible ?? !1, Ke = (t, e) => {
|
|
67
|
+
e.series?.[0] && (e.series[0].ticks ??= k(), e.series[0].ticks.visible = t);
|
|
68
|
+
}, qe = (t) => t.series[0]?.ticks?.lineSymbol, He = (t, e) => {
|
|
69
|
+
t && e.series?.[0] && (e.series[0].ticks ??= k(), e.series[0].ticks.lineSymbol = ae(t));
|
|
70
|
+
}, Je = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel, Qe = (t, e) => e.series?.[0]?.slices?.[t]?.label, Ue = (t, e, a) => {
|
|
71
71
|
a.series?.[0]?.slices?.[e] && (a.series[0].slices[e].label = t);
|
|
72
|
-
},
|
|
72
|
+
}, Xe = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color, Ye = (t, e, a) => {
|
|
73
73
|
const o = a.series?.[0]?.slices?.[e]?.fillSymbol;
|
|
74
74
|
o !== void 0 ? (o.color = t, o.outline !== void 0 ? o.outline.color = t : o.outline = { type: _.SLS, color: t }) : a.series?.[0]?.slices?.[e] !== void 0 && (a.series[0].slices[e].fillSymbol = {
|
|
75
75
|
type: _.SFS,
|
|
76
76
|
color: t,
|
|
77
77
|
outline: { type: _.SLS, color: t }
|
|
78
78
|
});
|
|
79
|
-
},
|
|
79
|
+
}, Ze = (t) => t.series?.[0]?.slices?.map((e) => e.sliceId), W = (t, e) => {
|
|
80
80
|
e.series?.[0]?.slices?.sort(
|
|
81
81
|
(a, o) => t.findIndex((n) => a.sliceId === n) - t.findIndex((n) => o.sliceId === n)
|
|
82
82
|
);
|
|
83
|
-
},
|
|
83
|
+
}, $e = (t) => t.series?.[0]?.sliceGrouping, G = (t, e) => {
|
|
84
84
|
e.series?.[0] && (e.series[0].sliceGrouping = t);
|
|
85
|
-
},
|
|
85
|
+
}, z = (t) => t.series?.[0]?.sliceGrouping?.percentageThreshold, et = (t, e) => {
|
|
86
86
|
e.series?.[0]?.sliceGrouping !== void 0 ? e.series[0].sliceGrouping.percentageThreshold = t : e.series[0].sliceGrouping = {
|
|
87
|
-
sliceId:
|
|
87
|
+
sliceId: A.defaultGroupOfSlicesId,
|
|
88
88
|
percentageThreshold: t
|
|
89
89
|
};
|
|
90
|
-
},
|
|
90
|
+
}, tt = (t) => t.series?.[0]?.slices, w = (t, e) => {
|
|
91
91
|
e.series?.[0] && (e.series[0].slices = t);
|
|
92
|
-
},
|
|
93
|
-
|
|
92
|
+
}, it = (t) => {
|
|
93
|
+
w(void 0, t), G(
|
|
94
94
|
{
|
|
95
|
-
sliceId:
|
|
96
|
-
percentageThreshold:
|
|
95
|
+
sliceId: A.defaultGroupOfSlicesId,
|
|
96
|
+
percentageThreshold: z(t) ?? 0
|
|
97
97
|
},
|
|
98
98
|
t
|
|
99
99
|
);
|
|
100
|
-
},
|
|
101
|
-
var
|
|
102
|
-
for (var n =
|
|
100
|
+
}, st = (t, e) => e.series[0]?.slices?.[t]?.sliceId, rt = (t, e) => e.series[0]?.slices?.findIndex((a) => a.sliceId === t), at = (t) => t.series[0]?.slices?.length ?? 0;
|
|
101
|
+
var ot = Object.defineProperty, nt = Object.getOwnPropertyDescriptor, r = (t, e, a, o) => {
|
|
102
|
+
for (var n = nt(e, a), c = t.length - 1, d; c >= 0; c--)
|
|
103
103
|
(d = t[c]) && (n = d(e, a, n) || n);
|
|
104
|
-
return n &&
|
|
104
|
+
return n && ot(e, a, n), n;
|
|
105
105
|
};
|
|
106
|
-
class i extends
|
|
106
|
+
class i extends Q {
|
|
107
107
|
constructor() {
|
|
108
|
-
super(...arguments), this._chartType = g.PieSeries, this._mode =
|
|
108
|
+
super(...arguments), this._chartType = g.PieSeries, this._mode = f.Category, this._groupedSliceIds = [], this._customizedSliceIds = [];
|
|
109
109
|
}
|
|
110
110
|
async setup(e) {
|
|
111
111
|
await this.loadConfigFromLayer(e);
|
|
112
112
|
const { config: a } = e;
|
|
113
113
|
if (a !== void 0) {
|
|
114
|
-
const n =
|
|
114
|
+
const n = S(a.series) !== h.PieFromFields ? f.Category : f.Fields;
|
|
115
115
|
this._mode = y({
|
|
116
|
-
category:
|
|
116
|
+
category: u(this._config),
|
|
117
117
|
numericFields: m(this._config),
|
|
118
118
|
fallbackMode: n
|
|
119
119
|
});
|
|
@@ -127,14 +127,14 @@ class i extends X {
|
|
|
127
127
|
* Category field for the pie chart.
|
|
128
128
|
*/
|
|
129
129
|
get category() {
|
|
130
|
-
return
|
|
130
|
+
return u(this._config);
|
|
131
131
|
}
|
|
132
132
|
set category(e) {
|
|
133
|
-
(!
|
|
133
|
+
(!q(this._config) || e.trim() !== "") && (this._mode = y({
|
|
134
134
|
category: e,
|
|
135
135
|
numericFields: m(this._config),
|
|
136
136
|
fallbackMode: this._mode
|
|
137
|
-
}),
|
|
137
|
+
}), ee({
|
|
138
138
|
newCategory: e,
|
|
139
139
|
config: this._config,
|
|
140
140
|
layerInfo: this.layerInfo,
|
|
@@ -149,11 +149,11 @@ class i extends X {
|
|
|
149
149
|
return m(this._config);
|
|
150
150
|
}
|
|
151
151
|
set numericFields(e) {
|
|
152
|
-
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ?
|
|
153
|
-
category:
|
|
152
|
+
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? B(this.layerInfo.layerFieldsInfo, e) : !0) ? (this._mode = y({
|
|
153
|
+
category: u(this._config),
|
|
154
154
|
numericFields: e,
|
|
155
155
|
fallbackMode: this._mode
|
|
156
|
-
}),
|
|
156
|
+
}), te({
|
|
157
157
|
newNumericFields: e,
|
|
158
158
|
config: this._config,
|
|
159
159
|
layerInfo: this.layerInfo,
|
|
@@ -161,16 +161,16 @@ class i extends X {
|
|
|
161
161
|
mode: this._mode
|
|
162
162
|
}), this._config.series[0].slices = this._config.series[0].slices?.filter(
|
|
163
163
|
(o) => o.fillSymbol?.color !== void 0 && this._customizedSliceIds.includes(o.sliceId ?? "")
|
|
164
|
-
), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) :
|
|
164
|
+
), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) : R("error", "pie-chart-model", "Invalid `numericFields`");
|
|
165
165
|
}
|
|
166
166
|
/**
|
|
167
167
|
* Aggregation type for the pie chart.
|
|
168
168
|
*/
|
|
169
169
|
get aggregationType() {
|
|
170
|
-
return
|
|
170
|
+
return ie(this._config, this._mode);
|
|
171
171
|
}
|
|
172
172
|
set aggregationType(e) {
|
|
173
|
-
|
|
173
|
+
se({
|
|
174
174
|
newAggregationType: e,
|
|
175
175
|
config: this._config,
|
|
176
176
|
layerInfo: this.layerInfo,
|
|
@@ -193,10 +193,10 @@ class i extends X {
|
|
|
193
193
|
* @since 5.2
|
|
194
194
|
*/
|
|
195
195
|
getDataSortOrder() {
|
|
196
|
-
return
|
|
196
|
+
return L(this._config, this._mode);
|
|
197
197
|
}
|
|
198
198
|
setDataSortOrder(e, a) {
|
|
199
|
-
|
|
199
|
+
O({
|
|
200
200
|
newSortOrderKind: e,
|
|
201
201
|
config: this._config,
|
|
202
202
|
orderByList: a
|
|
@@ -208,10 +208,10 @@ class i extends X {
|
|
|
208
208
|
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#getDataSortOrder getDataSortOrder} instead. This method will be removed from `PieChartModel` in 6.0.
|
|
209
209
|
*/
|
|
210
210
|
getSortOrder() {
|
|
211
|
-
return
|
|
211
|
+
return L(this._config, this._mode);
|
|
212
212
|
}
|
|
213
213
|
setSortOrder(e, a) {
|
|
214
|
-
|
|
214
|
+
O({
|
|
215
215
|
newSortOrderKind: e,
|
|
216
216
|
config: this._config,
|
|
217
217
|
orderByList: a
|
|
@@ -226,10 +226,10 @@ class i extends X {
|
|
|
226
226
|
* ```
|
|
227
227
|
*/
|
|
228
228
|
get orderByList() {
|
|
229
|
-
return
|
|
229
|
+
return D(this._config, this._mode);
|
|
230
230
|
}
|
|
231
231
|
set orderByList(e) {
|
|
232
|
-
|
|
232
|
+
C({
|
|
233
233
|
values: e,
|
|
234
234
|
config: this._config,
|
|
235
235
|
mode: this._mode
|
|
@@ -254,9 +254,9 @@ class i extends X {
|
|
|
254
254
|
* @param num The maximum number of category values to fetch.
|
|
255
255
|
*/
|
|
256
256
|
async getCustomSortValues(e) {
|
|
257
|
-
const a =
|
|
257
|
+
const a = u(this._config), o = S(this._config.series);
|
|
258
258
|
let n = [];
|
|
259
|
-
return o ===
|
|
259
|
+
return o === h.PieFromFields ? n = this.numericFields : a.trim() !== "" && o === h.PieFromCategory && (n = await E({
|
|
260
260
|
category: a,
|
|
261
261
|
config: this._config,
|
|
262
262
|
layerInfo: this.layerInfo,
|
|
@@ -265,8 +265,8 @@ class i extends X {
|
|
|
265
265
|
})), n;
|
|
266
266
|
}
|
|
267
267
|
moveCustomSortValuesInOrderByList(e, a) {
|
|
268
|
-
const o =
|
|
269
|
-
o.splice(a, 0, n),
|
|
268
|
+
const o = D(this._config, this._mode), [n] = o.splice(e, 1);
|
|
269
|
+
o.splice(a, 0, n), C({
|
|
270
270
|
values: o,
|
|
271
271
|
config: this._config,
|
|
272
272
|
mode: this._mode
|
|
@@ -279,10 +279,10 @@ class i extends X {
|
|
|
279
279
|
* Ticks symbol connecting slices to labels.
|
|
280
280
|
*/
|
|
281
281
|
get ticksSymbol() {
|
|
282
|
-
return
|
|
282
|
+
return qe(this._config);
|
|
283
283
|
}
|
|
284
284
|
set ticksSymbol(e) {
|
|
285
|
-
|
|
285
|
+
He(e, this._config);
|
|
286
286
|
}
|
|
287
287
|
// ---------------------------------------------------------------------------------------------
|
|
288
288
|
// #region Slices Props
|
|
@@ -291,10 +291,10 @@ class i extends X {
|
|
|
291
291
|
* Array of slices for the pie chart.
|
|
292
292
|
*/
|
|
293
293
|
get slices() {
|
|
294
|
-
return
|
|
294
|
+
return tt(this._config);
|
|
295
295
|
}
|
|
296
296
|
set slices(e) {
|
|
297
|
-
|
|
297
|
+
w(e, this._config);
|
|
298
298
|
}
|
|
299
299
|
/**
|
|
300
300
|
* Array of grouped slice ids for the pie chart.
|
|
@@ -309,10 +309,10 @@ class i extends X {
|
|
|
309
309
|
* Slice grouping configuration for the pie chart.
|
|
310
310
|
*/
|
|
311
311
|
get sliceGrouping() {
|
|
312
|
-
return
|
|
312
|
+
return $e(this._config);
|
|
313
313
|
}
|
|
314
314
|
set sliceGrouping(e) {
|
|
315
|
-
|
|
315
|
+
G(e, this._config);
|
|
316
316
|
}
|
|
317
317
|
/**
|
|
318
318
|
* Inner radius size for the pie chart.
|
|
@@ -321,64 +321,64 @@ class i extends X {
|
|
|
321
321
|
* This property will be removed from `PieChartModel` in 6.0.
|
|
322
322
|
*/
|
|
323
323
|
get innerRadiusSize() {
|
|
324
|
-
return
|
|
324
|
+
return le(this._config) ?? 0;
|
|
325
325
|
}
|
|
326
326
|
set innerRadiusSize(e) {
|
|
327
|
-
|
|
327
|
+
ce(e, this._config);
|
|
328
328
|
}
|
|
329
329
|
/**
|
|
330
330
|
* Inner radius of the pie chart.
|
|
331
331
|
* @since 5.2
|
|
332
332
|
*/
|
|
333
333
|
get innerRadius() {
|
|
334
|
-
return
|
|
334
|
+
return ge(this._config) ?? 0;
|
|
335
335
|
}
|
|
336
336
|
set innerRadius(e) {
|
|
337
|
-
|
|
337
|
+
pe(e, this._config);
|
|
338
338
|
}
|
|
339
339
|
/**
|
|
340
340
|
* Threshold below which slices will be grouped.
|
|
341
341
|
*/
|
|
342
342
|
get groupingThreshold() {
|
|
343
|
-
return
|
|
343
|
+
return z(this._config) ?? 0;
|
|
344
344
|
}
|
|
345
345
|
set groupingThreshold(e) {
|
|
346
|
-
|
|
346
|
+
et(e, this._config);
|
|
347
347
|
}
|
|
348
348
|
/**
|
|
349
349
|
* Character limit for the slice labels.
|
|
350
350
|
*/
|
|
351
351
|
get labelCharacterLimit() {
|
|
352
|
-
return
|
|
352
|
+
return de(this._config) ?? null;
|
|
353
353
|
}
|
|
354
354
|
set labelCharacterLimit(e) {
|
|
355
|
-
|
|
355
|
+
ue(e, this._config);
|
|
356
356
|
}
|
|
357
357
|
/**
|
|
358
358
|
* Number of decimal places to display in the slice values.
|
|
359
359
|
*/
|
|
360
360
|
get decimalPlaces() {
|
|
361
|
-
return
|
|
361
|
+
return we(this._config) ?? 1;
|
|
362
362
|
}
|
|
363
363
|
set decimalPlaces(e) {
|
|
364
|
-
|
|
364
|
+
Re(e, this._config);
|
|
365
365
|
}
|
|
366
366
|
/**
|
|
367
367
|
* Display type for the pie chart slices. Specifies whether to display the slices as a `percentage`, `value`, or `both`.
|
|
368
368
|
*/
|
|
369
369
|
get displayType() {
|
|
370
|
-
return
|
|
370
|
+
return Ne(this._config);
|
|
371
371
|
}
|
|
372
372
|
set displayType(e) {
|
|
373
|
-
|
|
373
|
+
Me(e, this._config);
|
|
374
374
|
}
|
|
375
375
|
// ---------------------------------------------------------------------------------------------
|
|
376
376
|
// #region Protected methods
|
|
377
377
|
// ---------------------------------------------------------------------------------------------
|
|
378
378
|
/** @private */
|
|
379
379
|
generateDefaultConfig() {
|
|
380
|
-
const e =
|
|
381
|
-
return e.series = [
|
|
380
|
+
const e = H(this.commonStrings);
|
|
381
|
+
return e.series = [J(this.commonStrings, j(this.layerInfo.layer).idField)], e;
|
|
382
382
|
}
|
|
383
383
|
// ---------------------------------------------------------------------------------------------
|
|
384
384
|
// #region Series Methods
|
|
@@ -389,7 +389,7 @@ class i extends X {
|
|
|
389
389
|
* @param sliceIndex - The index of the slice.
|
|
390
390
|
*/
|
|
391
391
|
getOriginalSliceName(e) {
|
|
392
|
-
return
|
|
392
|
+
return Je(e, this._config);
|
|
393
393
|
}
|
|
394
394
|
/**
|
|
395
395
|
* Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -397,11 +397,11 @@ class i extends X {
|
|
|
397
397
|
* @param sliceIndex - The index of the slice.
|
|
398
398
|
*/
|
|
399
399
|
getSliceName(e) {
|
|
400
|
-
return
|
|
400
|
+
return Qe(e, this._config);
|
|
401
401
|
}
|
|
402
402
|
setSliceName(e, a) {
|
|
403
403
|
const o = this.getSliceId(a);
|
|
404
|
-
o !== void 0 && this._customizedSliceIds.push(o),
|
|
404
|
+
o !== void 0 && this._customizedSliceIds.push(o), Ue(e, a, this._config);
|
|
405
405
|
}
|
|
406
406
|
/**
|
|
407
407
|
* Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -409,26 +409,26 @@ class i extends X {
|
|
|
409
409
|
* @param sliceIndex - The index of the slice.
|
|
410
410
|
*/
|
|
411
411
|
getSliceColor(e) {
|
|
412
|
-
return
|
|
412
|
+
return Xe(e, this._config);
|
|
413
413
|
}
|
|
414
414
|
setSliceColor(e, a) {
|
|
415
415
|
const o = this.getSliceId(a);
|
|
416
|
-
e !== void 0 && o !== void 0 && this._customizedSliceIds.push(o),
|
|
416
|
+
e !== void 0 && o !== void 0 && this._customizedSliceIds.push(o), Ye(e, a, this._config);
|
|
417
417
|
}
|
|
418
418
|
/**
|
|
419
419
|
* Order of the slice array by returning an array of slice ids
|
|
420
420
|
*/
|
|
421
421
|
get orderOfSlices() {
|
|
422
|
-
return
|
|
422
|
+
return Ze(this._config);
|
|
423
423
|
}
|
|
424
424
|
set orderOfSlices(e) {
|
|
425
|
-
e !== void 0 &&
|
|
425
|
+
e !== void 0 && W(e, this._config);
|
|
426
426
|
}
|
|
427
427
|
moveSeries(e, a) {
|
|
428
428
|
const o = this.orderOfSlices;
|
|
429
429
|
if (o !== void 0) {
|
|
430
430
|
const [n] = o.splice(e, 1);
|
|
431
|
-
o.splice(a, 0, n),
|
|
431
|
+
o.splice(a, 0, n), W(o, this._config);
|
|
432
432
|
}
|
|
433
433
|
}
|
|
434
434
|
/**
|
|
@@ -437,7 +437,7 @@ class i extends X {
|
|
|
437
437
|
* @param sliceIndex - The index of the slice.
|
|
438
438
|
*/
|
|
439
439
|
getSliceId(e) {
|
|
440
|
-
return
|
|
440
|
+
return st(e, this._config);
|
|
441
441
|
}
|
|
442
442
|
/**
|
|
443
443
|
* Gets the slice index for a given slice id. If the `sliceId` is not found, this function will return `undefined`.
|
|
@@ -445,16 +445,16 @@ class i extends X {
|
|
|
445
445
|
* @param sliceId - The id of the slice.
|
|
446
446
|
*/
|
|
447
447
|
getSliceIndex(e) {
|
|
448
|
-
return
|
|
448
|
+
return rt(e, this._config);
|
|
449
449
|
}
|
|
450
450
|
/**
|
|
451
451
|
* Gets the length of the slices array.
|
|
452
452
|
*/
|
|
453
453
|
getSlicesLength() {
|
|
454
|
-
return
|
|
454
|
+
return at(this._config);
|
|
455
455
|
}
|
|
456
456
|
resetSlices() {
|
|
457
|
-
this._customizedSliceIds = [],
|
|
457
|
+
this._customizedSliceIds = [], it(this._config);
|
|
458
458
|
}
|
|
459
459
|
/**
|
|
460
460
|
* Returns whether the series styling is able to be reset.
|
|
@@ -464,8 +464,8 @@ class i extends X {
|
|
|
464
464
|
let a = !1;
|
|
465
465
|
const o = this.slices?.length ?? 0;
|
|
466
466
|
for (let n = 0; n < o; n += 1) {
|
|
467
|
-
const c = this.getOriginalSliceName(n), d = this.getSliceName(n)
|
|
468
|
-
if (
|
|
467
|
+
const c = this.getOriginalSliceName(n), d = this.getSliceName(n);
|
|
468
|
+
if (c !== void 0 && c?.toString() !== d?.toString()) {
|
|
469
469
|
a = !0;
|
|
470
470
|
break;
|
|
471
471
|
}
|
|
@@ -476,35 +476,35 @@ class i extends X {
|
|
|
476
476
|
* Visibility of the ticks.
|
|
477
477
|
*/
|
|
478
478
|
get ticksVisibility() {
|
|
479
|
-
return
|
|
479
|
+
return je(this._config);
|
|
480
480
|
}
|
|
481
481
|
set ticksVisibility(e) {
|
|
482
|
-
|
|
482
|
+
Ke(e, this._config);
|
|
483
483
|
}
|
|
484
484
|
/**
|
|
485
485
|
* Start angle of the pie chart.
|
|
486
486
|
*/
|
|
487
487
|
get startAngle() {
|
|
488
|
-
return
|
|
488
|
+
return F(this._config);
|
|
489
489
|
}
|
|
490
490
|
set startAngle(e) {
|
|
491
|
-
|
|
491
|
+
he(e, this._config);
|
|
492
492
|
}
|
|
493
493
|
/**
|
|
494
494
|
* End angle of the pie chart.
|
|
495
495
|
*/
|
|
496
496
|
get endAngle() {
|
|
497
|
-
return
|
|
497
|
+
return F(this._config);
|
|
498
498
|
}
|
|
499
499
|
set endAngle(e) {
|
|
500
|
-
|
|
500
|
+
fe(e, this._config);
|
|
501
501
|
}
|
|
502
502
|
/**
|
|
503
503
|
* Whether to display the category on the data label.
|
|
504
504
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
505
505
|
*/
|
|
506
506
|
get displayCategoryOnDataLabel() {
|
|
507
|
-
return
|
|
507
|
+
return me(this._config);
|
|
508
508
|
}
|
|
509
509
|
set displayCategoryOnDataLabel(e) {
|
|
510
510
|
this._config.series[0].displayCategoryOnDataLabel = e;
|
|
@@ -515,7 +515,7 @@ class i extends X {
|
|
|
515
515
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
516
516
|
*/
|
|
517
517
|
get displayCategoryValueOnTooltip() {
|
|
518
|
-
return
|
|
518
|
+
return ye(this._config);
|
|
519
519
|
}
|
|
520
520
|
set displayCategoryValueOnTooltip(e) {
|
|
521
521
|
this._config.series[0].displayCategoryOnTooltip = e;
|
|
@@ -525,7 +525,7 @@ class i extends X {
|
|
|
525
525
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
526
526
|
*/
|
|
527
527
|
get displayNumericValueOnDataLabel() {
|
|
528
|
-
return
|
|
528
|
+
return _e(this._config);
|
|
529
529
|
}
|
|
530
530
|
set displayNumericValueOnDataLabel(e) {
|
|
531
531
|
this._config.series[0].displayNumericValueOnDataLabel = e;
|
|
@@ -536,7 +536,7 @@ class i extends X {
|
|
|
536
536
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
537
537
|
*/
|
|
538
538
|
get displayPercentageOnDataLabel() {
|
|
539
|
-
return
|
|
539
|
+
return Se(this._config);
|
|
540
540
|
}
|
|
541
541
|
set displayPercentageOnDataLabel(e) {
|
|
542
542
|
this._config.series[0].displayPercentageOnDataLabel = e;
|
|
@@ -547,7 +547,7 @@ class i extends X {
|
|
|
547
547
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
548
548
|
*/
|
|
549
549
|
get displayNumericValueOnTooltip() {
|
|
550
|
-
return
|
|
550
|
+
return be(this._config);
|
|
551
551
|
}
|
|
552
552
|
set displayNumericValueOnTooltip(e) {
|
|
553
553
|
this._config.series[0].displayNumericValueOnTooltip = e;
|
|
@@ -558,82 +558,82 @@ class i extends X {
|
|
|
558
558
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
559
559
|
*/
|
|
560
560
|
get displayPercentageOnTooltip() {
|
|
561
|
-
return
|
|
561
|
+
return Le(this._config);
|
|
562
562
|
}
|
|
563
563
|
set displayPercentageOnTooltip(e) {
|
|
564
|
-
|
|
564
|
+
Oe(e, this._config);
|
|
565
565
|
}
|
|
566
566
|
/**
|
|
567
567
|
* Prefix of the values of the slices.
|
|
568
568
|
*/
|
|
569
569
|
get valuePrefix() {
|
|
570
|
-
return
|
|
570
|
+
return De(this._config);
|
|
571
571
|
}
|
|
572
572
|
set valuePrefix(e) {
|
|
573
|
-
|
|
573
|
+
Ce(e, this._config);
|
|
574
574
|
}
|
|
575
575
|
/**
|
|
576
576
|
* Suffix of the values of the slice.
|
|
577
577
|
*/
|
|
578
578
|
get valueSuffix() {
|
|
579
|
-
return
|
|
579
|
+
return ve(this._config);
|
|
580
580
|
}
|
|
581
581
|
set valueSuffix(e) {
|
|
582
|
-
|
|
582
|
+
Pe(e, this._config);
|
|
583
583
|
}
|
|
584
584
|
/**
|
|
585
585
|
* Prefix of the percentages of the slices.
|
|
586
586
|
*/
|
|
587
587
|
get percentagePrefix() {
|
|
588
|
-
return
|
|
588
|
+
return Ie(this._config);
|
|
589
589
|
}
|
|
590
590
|
set percentagePrefix(e) {
|
|
591
|
-
|
|
591
|
+
Te(e, this._config);
|
|
592
592
|
}
|
|
593
593
|
/**
|
|
594
594
|
* Suffix of the percentages of the slices.
|
|
595
595
|
*/
|
|
596
596
|
get percentageSuffix() {
|
|
597
|
-
return
|
|
597
|
+
return Ve(this._config);
|
|
598
598
|
}
|
|
599
599
|
set percentageSuffix(e) {
|
|
600
|
-
|
|
600
|
+
xe(e, this._config);
|
|
601
601
|
}
|
|
602
602
|
/**
|
|
603
603
|
* Offset for the data labels.
|
|
604
604
|
*/
|
|
605
605
|
get dataLabelsOffset() {
|
|
606
|
-
return
|
|
606
|
+
return Ge(this._config);
|
|
607
607
|
}
|
|
608
608
|
set dataLabelsOffset(e) {
|
|
609
|
-
|
|
609
|
+
ze(e, this._config);
|
|
610
610
|
}
|
|
611
611
|
/**
|
|
612
612
|
* Align the data labels on the left or right side of the chart instead of the default position around the chart.
|
|
613
613
|
*/
|
|
614
614
|
get alignDataLabels() {
|
|
615
|
-
return
|
|
615
|
+
return Fe(this._config);
|
|
616
616
|
}
|
|
617
617
|
set alignDataLabels(e) {
|
|
618
|
-
|
|
618
|
+
We(e, this._config);
|
|
619
619
|
}
|
|
620
620
|
/**
|
|
621
621
|
* Setting for placing the data labels inside of the slices.
|
|
622
622
|
*/
|
|
623
623
|
get dataLabelsInside() {
|
|
624
|
-
return
|
|
624
|
+
return ke(this._config);
|
|
625
625
|
}
|
|
626
626
|
set dataLabelsInside(e) {
|
|
627
|
-
|
|
627
|
+
Ae(e, this._config);
|
|
628
628
|
}
|
|
629
629
|
/**
|
|
630
630
|
* Optimize data labels overlapping setting for the pie chart.
|
|
631
631
|
*/
|
|
632
632
|
get optimizeDataLabelsOverlapping() {
|
|
633
|
-
return
|
|
633
|
+
return Be(this._config);
|
|
634
634
|
}
|
|
635
635
|
set optimizeDataLabelsOverlapping(e) {
|
|
636
|
-
|
|
636
|
+
Ee(e, this._config);
|
|
637
637
|
}
|
|
638
638
|
// ---------------------------------------------------------------------------------------------
|
|
639
639
|
// #region Legend Props
|
|
@@ -642,46 +642,46 @@ class i extends X {
|
|
|
642
642
|
* Whether to display the numeric value on legend items.
|
|
643
643
|
*/
|
|
644
644
|
get displayNumericValueOnLegendItems() {
|
|
645
|
-
return
|
|
645
|
+
return v(this._config);
|
|
646
646
|
}
|
|
647
647
|
set displayNumericValueOnLegendItems(e) {
|
|
648
|
-
|
|
648
|
+
P(e, this._config);
|
|
649
649
|
}
|
|
650
650
|
/**
|
|
651
651
|
* Whether to display the percentage on legend items.
|
|
652
652
|
*/
|
|
653
653
|
get displayPercentageOnLegendItems() {
|
|
654
|
-
return
|
|
654
|
+
return V(this._config);
|
|
655
655
|
}
|
|
656
656
|
set displayPercentageOnLegendItems(e) {
|
|
657
|
-
|
|
657
|
+
x(e, this._config);
|
|
658
658
|
}
|
|
659
659
|
/**
|
|
660
660
|
* Whether to display the category on legend items.
|
|
661
661
|
*/
|
|
662
662
|
get displayCategoryOnLegendItems() {
|
|
663
|
-
return
|
|
663
|
+
return I(this._config);
|
|
664
664
|
}
|
|
665
665
|
set displayCategoryOnLegendItems(e) {
|
|
666
|
-
|
|
666
|
+
T(e, this._config);
|
|
667
667
|
}
|
|
668
668
|
/**
|
|
669
669
|
* Maximum width in pixels for legend item labels.
|
|
670
670
|
*/
|
|
671
671
|
get labelMaxWidth() {
|
|
672
|
-
return
|
|
672
|
+
return N(this._config);
|
|
673
673
|
}
|
|
674
674
|
set labelMaxWidth(e) {
|
|
675
|
-
|
|
675
|
+
M(e, this._config);
|
|
676
676
|
}
|
|
677
677
|
/**
|
|
678
678
|
* Maximum width in pixels for legend value labels.
|
|
679
679
|
*/
|
|
680
680
|
get valueLabelMaxWidth() {
|
|
681
|
-
return
|
|
681
|
+
return oe(this._config);
|
|
682
682
|
}
|
|
683
683
|
set valueLabelMaxWidth(e) {
|
|
684
|
-
|
|
684
|
+
ne(e, this._config);
|
|
685
685
|
}
|
|
686
686
|
/**
|
|
687
687
|
* Gets the setting for displaying numerical values on legend items.
|
|
@@ -689,10 +689,10 @@ class i extends X {
|
|
|
689
689
|
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#displayNumericValueOnLegendItems displayNumericValueOnLegendItems} instead. This method will be removed from `PieChartModel` in 6.0.
|
|
690
690
|
*/
|
|
691
691
|
getDisplayNumericValue() {
|
|
692
|
-
return
|
|
692
|
+
return v(this._config);
|
|
693
693
|
}
|
|
694
694
|
setDisplayNumericValue(e) {
|
|
695
|
-
|
|
695
|
+
P(e, this._config);
|
|
696
696
|
}
|
|
697
697
|
/**
|
|
698
698
|
* Gets the setting for displaying percentages on legend items.
|
|
@@ -700,10 +700,10 @@ class i extends X {
|
|
|
700
700
|
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#displayPercentageOnLegendItems displayPercentageOnLegendItems} instead. This method will be removed from `PieChartModel` in 6.0.
|
|
701
701
|
*/
|
|
702
702
|
getDisplayPercentage() {
|
|
703
|
-
return
|
|
703
|
+
return V(this._config);
|
|
704
704
|
}
|
|
705
705
|
setDisplayPercentage(e) {
|
|
706
|
-
|
|
706
|
+
x(e, this._config);
|
|
707
707
|
}
|
|
708
708
|
/**
|
|
709
709
|
* Gets the maximum width in pixels for legend item labels.
|
|
@@ -711,10 +711,10 @@ class i extends X {
|
|
|
711
711
|
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#labelMaxWidth labelMaxWidth} instead. This method will be removed from `PieChartModel` in 6.0.
|
|
712
712
|
*/
|
|
713
713
|
getLabelMaxWidth() {
|
|
714
|
-
return
|
|
714
|
+
return N(this._config);
|
|
715
715
|
}
|
|
716
716
|
setLabelMaxWidth(e) {
|
|
717
|
-
|
|
717
|
+
M(e, this._config);
|
|
718
718
|
}
|
|
719
719
|
/**
|
|
720
720
|
* Whether to display the category in the legend.
|
|
@@ -722,10 +722,10 @@ class i extends X {
|
|
|
722
722
|
* @deprecated since 5.2. Use {@link model/pie-chart-model/pie-chart-model#displayCategoryOnLegendItems displayCategoryOnLegendItems} instead. This property will be removed from `PieChartModel` in 6.0.
|
|
723
723
|
*/
|
|
724
724
|
get displayCategory() {
|
|
725
|
-
return
|
|
725
|
+
return I(this._config);
|
|
726
726
|
}
|
|
727
727
|
set displayCategory(e) {
|
|
728
|
-
|
|
728
|
+
T(e, this._config);
|
|
729
729
|
}
|
|
730
730
|
// ---------------------------------------------------------------------------------------------
|
|
731
731
|
// #region General Props
|
|
@@ -734,7 +734,7 @@ class i extends X {
|
|
|
734
734
|
* Generate the proper chart title given the current config.
|
|
735
735
|
*/
|
|
736
736
|
generateChartTitle() {
|
|
737
|
-
return
|
|
737
|
+
return re({
|
|
738
738
|
config: this._config,
|
|
739
739
|
layerInfo: this.layerInfo,
|
|
740
740
|
commonStrings: this.commonStrings,
|
|
@@ -889,14 +889,14 @@ r([
|
|
|
889
889
|
r([
|
|
890
890
|
s
|
|
891
891
|
], i.prototype, "displayCategory");
|
|
892
|
-
const
|
|
892
|
+
const lt = [
|
|
893
|
+
U,
|
|
894
|
+
X,
|
|
893
895
|
Y,
|
|
894
896
|
Z,
|
|
895
|
-
|
|
896
|
-
ee,
|
|
897
|
-
te
|
|
897
|
+
$
|
|
898
898
|
];
|
|
899
|
-
|
|
899
|
+
K(i, lt);
|
|
900
900
|
export {
|
|
901
901
|
i as PieChartModel
|
|
902
902
|
};
|