@arcgis/charts-components 5.2.0-next.11 → 5.2.0-next.13
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/{KPWHYSA5.js → 2A24D2CL.js} +1 -1
- package/dist/cdn/{KZQFX7LH.js → 2D43CHPT.js} +1 -1
- package/dist/cdn/{PMIWXHTG.js → 2JXQPKO5.js} +1 -1
- package/dist/cdn/{NZXQ5BWP.js → 2TWHFFC4.js} +1 -1
- package/dist/cdn/{WHJU66P4.js → 3MDFLGUF.js} +1 -1
- package/dist/cdn/{SX6SDBU7.js → 3MKY6UCO.js} +1 -1
- package/dist/cdn/{TTBRUBXY.js → 3SBYV6BW.js} +1 -1
- package/dist/cdn/{O4LKWTBY.js → 4KW327JN.js} +1 -1
- package/dist/cdn/4NYV2JV3.js +3 -0
- package/dist/cdn/4PUPQ4ZW.js +2 -0
- package/dist/cdn/{DFKVPDMJ.js → 64LHZA6T.js} +1 -1
- package/dist/cdn/{7JIHGRTB.js → 6OEWH6DU.js} +1 -1
- package/dist/cdn/{5IIF22XN.js → 6QPY3WVJ.js} +1 -1
- package/dist/cdn/{CTBQ5Y4Z.js → 7QSJHT6K.js} +1 -1
- package/dist/cdn/{VIY3BCJZ.js → A5TGCD54.js} +1 -1
- package/dist/cdn/{77A4T4FJ.js → A636YSNA.js} +1 -1
- package/dist/cdn/{E2DO2HQ6.js → A6ZKJNCI.js} +1 -1
- package/dist/cdn/{UIRKQREJ.js → AGIHYXGK.js} +1 -1
- package/dist/cdn/{FEKSPYHM.js → AIPJCK34.js} +1 -1
- package/dist/cdn/AQIB3VEP.js +2 -0
- package/dist/cdn/{P56ROGSK.js → AZY72Q7D.js} +1 -1
- package/dist/cdn/{ZJHV3UVG.js → BBPUHC7W.js} +1 -1
- package/dist/cdn/{567CLBG4.js → BES3KNGY.js} +1 -1
- package/dist/cdn/{XNWSVHA3.js → CAYUSURH.js} +1 -1
- package/dist/cdn/{RJCJ3F5C.js → CMH6WLB4.js} +1 -1
- package/dist/cdn/{6R7VSDDU.js → CPQGJVLJ.js} +1 -1
- package/dist/cdn/{FWRMJQXY.js → CRCAJAFA.js} +1 -1
- package/dist/cdn/{5YEADAVZ.js → CW44UMK6.js} +1 -1
- package/dist/cdn/{IE3GLZJZ.js → D6IGHHX3.js} +1 -1
- package/dist/cdn/E3AWZQWL.js +2 -0
- package/dist/cdn/EH3OIMGC.js +2 -0
- package/dist/cdn/ESYY65PY.js +2 -0
- package/dist/cdn/FMF37DQF.js +2 -0
- package/dist/cdn/{UNTIPIBS.js → FZDYLJRV.js} +1 -1
- package/dist/cdn/{YALB4GSA.js → GKRMQS5Q.js} +1 -1
- package/dist/cdn/{OW2DLJGU.js → GN4O3BCI.js} +1 -1
- package/dist/cdn/{AHYYQWKY.js → GNVJXOOV.js} +1 -1
- package/dist/cdn/{F6QRLYSF.js → GRNKGPDQ.js} +1 -1
- package/dist/cdn/{XOM6LSIW.js → H4CCTXTD.js} +1 -1
- package/dist/cdn/{WWO326JE.js → IHHPUKGG.js} +1 -1
- package/dist/cdn/IKBGE4XH.js +2 -0
- package/dist/cdn/{4PHYDOBF.js → INCK5AFZ.js} +1 -1
- package/dist/cdn/{24AOJE7B.js → IVM77SOL.js} +1 -1
- package/dist/cdn/{MVGAATR7.js → J2HYDDIW.js} +1 -1
- package/dist/cdn/{ZQ2WG55W.js → JCWTD6DG.js} +1 -1
- package/dist/cdn/{JBPYGZPJ.js → JFMBYHTG.js} +1 -1
- package/dist/cdn/{I5T7JUDH.js → JHANH4UG.js} +1 -1
- package/dist/cdn/{HZFHTWL6.js → JK7I63SC.js} +1 -1
- package/dist/cdn/{SJVVFOAX.js → JMACRJOV.js} +1 -1
- package/dist/cdn/{SOKKWGPA.js → K2JOJV52.js} +1 -1
- package/dist/cdn/{MBSMC77K.js → KPXVJR6S.js} +1 -1
- package/dist/cdn/{ETSB7KD3.js → KR22STZN.js} +1 -1
- package/dist/cdn/{AXS3UMQJ.js → L4OHTO6S.js} +1 -1
- package/dist/cdn/{KXUQJ6GE.js → LRNKTAWO.js} +1 -1
- package/dist/cdn/{O4HUYRYL.js → LU5S2VRK.js} +1 -1
- package/dist/cdn/{U5IM4KAQ.js → LZMT7YW7.js} +1 -1
- package/dist/cdn/{FUAA6IFR.js → M4S67KAQ.js} +1 -1
- package/dist/cdn/{EE3KEIAT.js → MB36GVIV.js} +1 -1
- package/dist/cdn/{DJGEQ42V.js → MFGMIXHS.js} +1 -1
- package/dist/cdn/{GQPOEX7B.js → MNX2OQM7.js} +18 -18
- package/dist/cdn/{YUF4ZSA5.js → O533LNDP.js} +1 -1
- package/dist/cdn/{R7HW5WVG.js → O6JHQR4V.js} +1 -1
- package/dist/cdn/{DL43NPDO.js → O6X4UVEJ.js} +1 -1
- package/dist/cdn/{FBMA7FW4.js → OBEDC3OT.js} +1 -1
- package/dist/cdn/{ASI7RDYV.js → OFXDO3EK.js} +1 -1
- package/dist/cdn/{LL7NH3VV.js → OWO3NDGM.js} +1 -1
- package/dist/cdn/{RKB6QZNW.js → OZIAUW3A.js} +1 -1
- package/dist/cdn/{PXIAM4CZ.js → PBOTADC5.js} +1 -1
- package/dist/cdn/{WJ2VDT6B.js → PQGX64RE.js} +1 -1
- package/dist/cdn/{76MOP26H.js → QBKIVOUQ.js} +1 -1
- package/dist/cdn/{P2F2O6MH.js → QNT6HTFC.js} +1 -1
- package/dist/cdn/{7YXTWBT4.js → RIM4HLHN.js} +1 -1
- package/dist/cdn/RMJKQIQM.js +2 -0
- package/dist/cdn/{5IN5WK2R.js → RWRGGCHV.js} +1 -1
- package/dist/cdn/S7Z4HRW7.js +2 -0
- package/dist/cdn/{G5FULTB5.js → SKG5NCDS.js} +1 -1
- package/dist/cdn/{LYJFZA2M.js → TCS4HOSG.js} +1 -1
- package/dist/cdn/{XP4S2M7F.js → TFXFKPTU.js} +1 -1
- package/dist/cdn/{425PZ2QJ.js → TR7YC7GX.js} +1 -1
- package/dist/cdn/{LUMOL7ZP.js → TRRB6DUE.js} +1 -1
- package/dist/cdn/{I2EERAZ3.js → U2CTDP7X.js} +1 -1
- package/dist/cdn/{H45LPCQ2.js → U2GTLQKQ.js} +1 -1
- package/dist/cdn/{SVGAVKBQ.js → ULUPQFHW.js} +1 -1
- package/dist/cdn/{JEOBO5JM.js → US4WU5ZB.js} +1 -1
- package/dist/cdn/{L5DROI2A.js → VETKGJXJ.js} +1 -1
- package/dist/cdn/{EJCGZPIV.js → VNIK56MD.js} +1 -1
- package/dist/cdn/{P4UJJCPG.js → VS6T5RFW.js} +1 -1
- package/dist/cdn/{UE5VX2RL.js → W4XWIKEA.js} +1 -1
- package/dist/cdn/{GISGGO3Z.js → WL5E6TAV.js} +1 -1
- package/dist/cdn/{S6LH7YS6.js → WM36AOX7.js} +1 -1
- package/dist/cdn/{SQYOFBS6.js → X3UPL6NZ.js} +1 -1
- package/dist/cdn/{WU3C7BQU.js → XRLVJJBT.js} +1 -1
- package/dist/cdn/{5LXX2PUM.js → YG5HX7O4.js} +1 -1
- package/dist/cdn/{E4LJWBRC.js → YXQHE47P.js} +1 -1
- package/dist/cdn/{UIY2PSG4.js → ZN73TUTH.js} +1 -1
- package/dist/cdn/{CVK7KFEC.js → ZNXBQWBM.js} +1 -1
- package/dist/cdn/ZW4PF3UK.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/index2.js +1006 -998
- package/dist/chunks/pie-chart-data.js +42 -36
- package/dist/chunks/pie-chart-model.js +175 -162
- package/dist/components/arcgis-chart/customElement.js +2391 -2362
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +29 -36
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +2 -0
- package/package.json +3 -3
- package/dist/cdn/3KRPCKJZ.js +0 -2
- package/dist/cdn/5NTIKQP4.js +0 -2
- package/dist/cdn/BHUFE4DA.js +0 -2
- package/dist/cdn/CEWH3LQO.js +0 -2
- package/dist/cdn/GYXK3DV7.js +0 -2
- package/dist/cdn/HW6MJJSX.js +0 -2
- package/dist/cdn/IL2FG26D.js +0 -2
- package/dist/cdn/NNZCIR7W.js +0 -2
- package/dist/cdn/QPSJ6XOX.js +0 -2
- package/dist/cdn/S74GCXXK.js +0 -3
- package/dist/cdn/SA22QZNW.js +0 -2
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { log as
|
|
2
|
+
import { log as W } from "@arcgis/toolkit/log";
|
|
3
3
|
import { u as p } from "./chart-object-literals.js";
|
|
4
|
-
import { Y as
|
|
5
|
-
import { i as
|
|
6
|
-
import { S as d, a5 as
|
|
7
|
-
import { C as
|
|
8
|
-
import { C as
|
|
4
|
+
import { Y as L, an as A } from "./index2.js";
|
|
5
|
+
import { i as k } from "./index4.js";
|
|
6
|
+
import { S as d, a5 as T, $ as O, ax as V, a2 as w, a3 as G } from "./index.js";
|
|
7
|
+
import { C as h } from "./index3.js";
|
|
8
|
+
import { C as z } from "./chart-model.js";
|
|
9
9
|
import { m as s } from "./model-setter.js";
|
|
10
|
-
import { b as
|
|
11
|
-
import { M as
|
|
12
|
-
import { W as
|
|
13
|
-
import { f as
|
|
14
|
-
import {
|
|
15
|
-
import { cloneDeep as
|
|
16
|
-
import { i as
|
|
17
|
-
const
|
|
10
|
+
import { b as g, P as y } from "./common.js";
|
|
11
|
+
import { M as x, a as B, W as E, b as R } from "./data-labels-visibility.js";
|
|
12
|
+
import { W as j } from "./data-labels-symbol.js";
|
|
13
|
+
import { f as I, j as U, b as $ } from "./utils.js";
|
|
14
|
+
import { i as m, a as S, g as f, s as K, c as Y, b as q, d as H, e as J, f as Q, h as D, j as C, k as X } from "./pie-chart-data.js";
|
|
15
|
+
import { cloneDeep as Z } from "lodash-es";
|
|
16
|
+
import { i as _ } from "./rest-js-object-literals.js";
|
|
17
|
+
const ee = (t) => t.legend?.displayNumericValue ?? !1, te = (t, e) => {
|
|
18
18
|
e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.displayNumericValue = t);
|
|
19
|
-
},
|
|
19
|
+
}, ie = (t) => t.legend?.displayCategory ?? !1, se = (t, e) => {
|
|
20
20
|
e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.displayCategory = t);
|
|
21
|
-
},
|
|
21
|
+
}, re = (t) => t.legend?.displayPercentage ?? !1, ae = (t, e) => {
|
|
22
22
|
e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.displayPercentage = t);
|
|
23
|
-
},
|
|
23
|
+
}, oe = (t) => t.legend?.labelMaxWidth ?? 200, le = (t, e) => {
|
|
24
24
|
e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.labelMaxWidth = t);
|
|
25
|
-
},
|
|
25
|
+
}, ne = (t) => t.legend?.valueLabelMaxWidth ?? 200, ce = (t, e) => {
|
|
26
26
|
e.series[0]?.type === p.PieSeries && (e.legend === void 0 && (e.legend = d()), e.legend.valueLabelMaxWidth = t);
|
|
27
27
|
};
|
|
28
|
-
var ge = Object.defineProperty,
|
|
29
|
-
for (var l =
|
|
30
|
-
(
|
|
28
|
+
var ge = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, b = (t, e, i, o) => {
|
|
29
|
+
for (var l = pe(e, i), n = t.length - 1, c; n >= 0; n--)
|
|
30
|
+
(c = t[n]) && (l = c(e, i, l) || l);
|
|
31
31
|
return l && ge(e, i, l), l;
|
|
32
32
|
};
|
|
33
|
-
class u extends
|
|
33
|
+
class u extends x {
|
|
34
34
|
/**
|
|
35
35
|
* Gets the setting for the display of numerical value in the legend items.
|
|
36
36
|
*
|
|
37
37
|
* **Note**: Only applicable to pie charts.
|
|
38
38
|
*/
|
|
39
39
|
getDisplayNumericValue() {
|
|
40
|
-
return
|
|
40
|
+
return ee(this._config);
|
|
41
41
|
}
|
|
42
42
|
setDisplayNumericValue(e) {
|
|
43
|
-
|
|
43
|
+
te(e, this._config);
|
|
44
44
|
}
|
|
45
45
|
/**
|
|
46
46
|
* Gets the setting for the display of percentage in the legend items.
|
|
@@ -48,10 +48,10 @@ class u extends T {
|
|
|
48
48
|
* **Note**: Only applicable to pie charts.
|
|
49
49
|
*/
|
|
50
50
|
getDisplayPercentage() {
|
|
51
|
-
return
|
|
51
|
+
return re(this._config);
|
|
52
52
|
}
|
|
53
53
|
setDisplayPercentage(e) {
|
|
54
|
-
|
|
54
|
+
ae(e, this._config);
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Gets the maximum width in pixel for the legend item labels.
|
|
@@ -59,131 +59,135 @@ class u extends T {
|
|
|
59
59
|
* **Note**: Only applicable to pie charts.
|
|
60
60
|
*/
|
|
61
61
|
getLabelMaxWidth() {
|
|
62
|
-
return
|
|
62
|
+
return oe(this._config);
|
|
63
63
|
}
|
|
64
64
|
setLabelMaxWidth(e) {
|
|
65
|
-
|
|
65
|
+
le(e, this._config);
|
|
66
66
|
}
|
|
67
67
|
/**
|
|
68
68
|
* The maximum width in pixel for the legend value labels.
|
|
69
69
|
* @returns {number}
|
|
70
70
|
*/
|
|
71
71
|
get valueLabelMaxWidth() {
|
|
72
|
-
return
|
|
72
|
+
return ne(this._config);
|
|
73
73
|
}
|
|
74
74
|
set valueLabelMaxWidth(e) {
|
|
75
|
-
|
|
75
|
+
ce(e, this._config), this.emitConfigUpdate("valueLabelMaxWidth");
|
|
76
76
|
}
|
|
77
77
|
/**
|
|
78
78
|
* Whether to display the category in the legend.
|
|
79
79
|
*/
|
|
80
80
|
get displayCategory() {
|
|
81
|
-
return
|
|
81
|
+
return ie(this._config);
|
|
82
82
|
}
|
|
83
83
|
set displayCategory(e) {
|
|
84
|
-
|
|
84
|
+
se(e, this._config), this.emitConfigUpdate("displayCategory");
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
|
|
87
|
+
b([
|
|
88
88
|
s
|
|
89
89
|
], u.prototype, "setDisplayNumericValue");
|
|
90
|
-
|
|
90
|
+
b([
|
|
91
91
|
s
|
|
92
92
|
], u.prototype, "setDisplayPercentage");
|
|
93
|
-
|
|
93
|
+
b([
|
|
94
94
|
s
|
|
95
95
|
], u.prototype, "setLabelMaxWidth");
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
const
|
|
96
|
+
const de = [x];
|
|
97
|
+
I(u, de);
|
|
98
|
+
const ue = (t) => t.series?.[0]?.innerRadius, fe = (t, e) => {
|
|
99
99
|
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
100
|
-
},
|
|
100
|
+
}, he = (t) => t.series?.[0]?.dataLabelsCharacterLimit, ye = (t, e) => {
|
|
101
101
|
e.series?.[0] && (e.series[0].dataLabelsCharacterLimit = t);
|
|
102
|
-
},
|
|
102
|
+
}, v = (t) => t.series[0]?.startAngle, me = (t, e) => {
|
|
103
103
|
e.series?.[0] && (e.series[0].startAngle = t);
|
|
104
|
-
},
|
|
104
|
+
}, Se = (t, e) => {
|
|
105
105
|
e.series?.[0] && (e.series[0].endAngle = t);
|
|
106
|
-
},
|
|
106
|
+
}, _e = (t) => t.series?.[0]?.displayCategoryOnTooltip ?? !0, be = (t) => t.series?.[0]?.displayCategoryOnDataLabel ?? !0, Le = (t) => t.series?.[0]?.displayNumericValueOnDataLabel ?? !0, Oe = (t) => t.series?.[0]?.displayPercentageOnDataLabel ?? !1, De = (t) => t.series?.[0]?.displayNumericValueOnTooltip ?? !0, Ce = (t) => t.series?.[0]?.displayPercentageOnTooltip ?? !0, ve = (t, e) => {
|
|
107
107
|
e.series[0] && (e.series[0].displayPercentageOnTooltip = t);
|
|
108
|
-
},
|
|
108
|
+
}, Pe = (t) => t.series?.[0]?.valuePrefix, Te = (t, e) => {
|
|
109
109
|
e.series?.[0] && (e.series[0].valuePrefix = t);
|
|
110
|
-
},
|
|
110
|
+
}, Ve = (t) => t.series?.[0]?.valueSuffix, xe = (t, e) => {
|
|
111
111
|
e.series?.[0] && (e.series[0].valueSuffix = t);
|
|
112
|
-
},
|
|
112
|
+
}, Ie = (t) => t.series?.[0]?.percentagePrefix, Ne = (t, e) => {
|
|
113
113
|
e.series?.[0] && (e.series[0].percentagePrefix = t);
|
|
114
|
-
},
|
|
114
|
+
}, Me = (t) => t.series?.[0]?.percentageSuffix, Fe = (t, e) => {
|
|
115
115
|
e.series?.[0] && (e.series[0].percentageSuffix = t);
|
|
116
|
-
},
|
|
116
|
+
}, We = (t) => {
|
|
117
117
|
let e;
|
|
118
118
|
const i = t.series?.[0];
|
|
119
|
-
return i?.displayNumericValueOnDataLabel === !0 && i?.displayPercentageOnDataLabel === !0 ? e =
|
|
120
|
-
},
|
|
121
|
-
const i = t ===
|
|
119
|
+
return i?.displayNumericValueOnDataLabel === !0 && i?.displayPercentageOnDataLabel === !0 ? e = g.Both : i?.displayNumericValueOnDataLabel === !0 ? e = g.Value : e = g.Percentage, e;
|
|
120
|
+
}, Ae = (t, e) => {
|
|
121
|
+
const i = t === g.Value || t === g.Both, o = t === g.Percentage || t === g.Both;
|
|
122
122
|
e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel = i, e.series[0].displayPercentageOnDataLabel = o), e.legend && (e.legend = {
|
|
123
123
|
...e.legend,
|
|
124
124
|
displayNumericValue: i,
|
|
125
125
|
displayPercentage: o
|
|
126
126
|
});
|
|
127
|
-
},
|
|
127
|
+
}, ke = (t) => t.series?.[0]?.alignDataLabels ?? !1, we = (t, e) => {
|
|
128
128
|
e.series[0] && (e.series[0].alignDataLabels = t);
|
|
129
|
-
}, Ge = (t) => t.series?.[0]?.dataLabelsInside ?? !1,
|
|
129
|
+
}, Ge = (t) => t.series?.[0]?.dataLabelsInside ?? !1, ze = (t, e) => {
|
|
130
130
|
e.series[0] && (e.series[0].dataLabelsInside = t);
|
|
131
|
-
},
|
|
131
|
+
}, Be = (t) => t.series?.[0]?.dataLabelsOffset ?? 10, Ee = (t, e) => {
|
|
132
132
|
e.series[0] && (e.series[0].dataLabelsOffset = t);
|
|
133
|
-
},
|
|
134
|
-
e.series?.[0] && (e.series[0].numericValueFormat ??=
|
|
135
|
-
},
|
|
133
|
+
}, Re = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, je = (t, e) => {
|
|
134
|
+
e.series?.[0] && (e.series[0].numericValueFormat ??= O(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= O(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
|
|
135
|
+
}, Ue = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, $e = (t, e) => {
|
|
136
136
|
e.series[0] && (e.series[0].optimizeDataLabelsOverlapping = t);
|
|
137
|
-
},
|
|
138
|
-
e.series?.[0] && (e.series[0].ticks ??=
|
|
139
|
-
},
|
|
140
|
-
t && e.series?.[0] && (e.series[0].ticks ??=
|
|
141
|
-
},
|
|
137
|
+
}, Ke = (t) => t.series[0]?.ticks?.visible ?? !1, Ye = (t, e) => {
|
|
138
|
+
e.series?.[0] && (e.series[0].ticks ??= T(), e.series[0].ticks.visible = t);
|
|
139
|
+
}, qe = (t) => t.series[0]?.ticks?.lineSymbol, He = (t, e) => {
|
|
140
|
+
t && e.series?.[0] && (e.series[0].ticks ??= T(), e.series[0].ticks.lineSymbol = Z(t));
|
|
141
|
+
}, Je = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel, Qe = (t, e) => e.series?.[0]?.slices?.[t]?.label, Xe = (t, e, i) => {
|
|
142
142
|
i.series?.[0]?.slices?.[e] && (i.series[0].slices[e].label = t);
|
|
143
|
-
},
|
|
143
|
+
}, Ze = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color, et = (t, e, i) => {
|
|
144
144
|
const o = i.series?.[0]?.slices?.[e]?.fillSymbol;
|
|
145
|
-
o !== void 0 ? (o.color = t, o.outline !== void 0 ? o.outline.color = t : o.outline = { type:
|
|
146
|
-
type:
|
|
145
|
+
o !== void 0 ? (o.color = t, o.outline !== void 0 ? o.outline.color = t : o.outline = { type: _.SLS, color: t }) : i.series?.[0]?.slices?.[e] !== void 0 && (i.series[0].slices[e].fillSymbol = {
|
|
146
|
+
type: _.SFS,
|
|
147
147
|
color: t,
|
|
148
|
-
outline: { type:
|
|
148
|
+
outline: { type: _.SLS, color: t }
|
|
149
149
|
});
|
|
150
|
-
},
|
|
150
|
+
}, tt = (t) => t.series?.[0]?.slices?.map((e) => e.sliceId), P = (t, e) => {
|
|
151
151
|
e.series?.[0]?.slices?.sort(
|
|
152
152
|
(i, o) => t.findIndex((l) => i.sliceId === l) - t.findIndex((l) => o.sliceId === l)
|
|
153
153
|
);
|
|
154
|
-
},
|
|
154
|
+
}, it = (t) => t.series?.[0]?.sliceGrouping, N = (t, e) => {
|
|
155
155
|
e.series?.[0] && (e.series[0].sliceGrouping = t);
|
|
156
|
-
},
|
|
156
|
+
}, M = (t) => t.series?.[0]?.sliceGrouping?.percentageThreshold, st = (t, e) => {
|
|
157
157
|
e.series?.[0]?.sliceGrouping !== void 0 ? e.series[0].sliceGrouping.percentageThreshold = t : e.series[0].sliceGrouping = {
|
|
158
|
-
sliceId:
|
|
158
|
+
sliceId: V.defaultGroupOfSlicesId,
|
|
159
159
|
percentageThreshold: t
|
|
160
160
|
};
|
|
161
|
-
},
|
|
161
|
+
}, rt = (t) => t.series?.[0]?.slices, F = (t, e) => {
|
|
162
162
|
e.series?.[0] && (e.series[0].slices = t);
|
|
163
|
-
},
|
|
164
|
-
|
|
163
|
+
}, at = (t) => {
|
|
164
|
+
F(void 0, t), N(
|
|
165
165
|
{
|
|
166
|
-
sliceId:
|
|
167
|
-
percentageThreshold:
|
|
166
|
+
sliceId: V.defaultGroupOfSlicesId,
|
|
167
|
+
percentageThreshold: M(t) ?? 0
|
|
168
168
|
},
|
|
169
169
|
t
|
|
170
170
|
);
|
|
171
|
-
},
|
|
172
|
-
var
|
|
173
|
-
for (var l = gt(e, i), n = t.length - 1,
|
|
174
|
-
(
|
|
175
|
-
return l &&
|
|
171
|
+
}, ot = (t, e) => e.series[0]?.slices?.[t]?.sliceId, lt = (t, e) => e.series[0]?.slices?.findIndex((i) => i.sliceId === t), nt = (t) => t.series[0]?.slices?.length ?? 0;
|
|
172
|
+
var ct = Object.defineProperty, gt = Object.getOwnPropertyDescriptor, a = (t, e, i, o) => {
|
|
173
|
+
for (var l = gt(e, i), n = t.length - 1, c; n >= 0; n--)
|
|
174
|
+
(c = t[n]) && (l = c(e, i, l) || l);
|
|
175
|
+
return l && ct(e, i, l), l;
|
|
176
176
|
};
|
|
177
|
-
class r extends
|
|
177
|
+
class r extends z {
|
|
178
178
|
constructor() {
|
|
179
|
-
super(...arguments), this._chartType = p.PieSeries, this._mode =
|
|
179
|
+
super(...arguments), this._chartType = p.PieSeries, this._mode = y.Category, this._groupedSliceIds = [];
|
|
180
180
|
}
|
|
181
181
|
async setup(e) {
|
|
182
182
|
await this.loadConfigFromLayer(e);
|
|
183
183
|
const { config: i } = e;
|
|
184
184
|
if (i !== void 0) {
|
|
185
|
-
const
|
|
186
|
-
this._mode =
|
|
185
|
+
const l = L(i.series) !== h.PieFromFields ? y.Category : y.Fields;
|
|
186
|
+
this._mode = m({
|
|
187
|
+
category: f(this._config),
|
|
188
|
+
numericFields: S(this._config),
|
|
189
|
+
fallbackMode: l
|
|
190
|
+
});
|
|
187
191
|
}
|
|
188
192
|
typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
189
193
|
}
|
|
@@ -194,10 +198,14 @@ class r extends G {
|
|
|
194
198
|
* Category field for the pie chart.
|
|
195
199
|
*/
|
|
196
200
|
get category() {
|
|
197
|
-
return
|
|
201
|
+
return f(this._config);
|
|
198
202
|
}
|
|
199
203
|
set category(e) {
|
|
200
|
-
(!
|
|
204
|
+
(!k(this._config) || e.trim() !== "") && (this._mode = m({
|
|
205
|
+
category: e,
|
|
206
|
+
numericFields: S(this._config),
|
|
207
|
+
fallbackMode: this._mode
|
|
208
|
+
}), K({
|
|
201
209
|
newCategory: e,
|
|
202
210
|
config: this._config,
|
|
203
211
|
layerInfo: this.layerInfo,
|
|
@@ -209,25 +217,29 @@ class r extends G {
|
|
|
209
217
|
* Numeric fields for the pie chart.
|
|
210
218
|
*/
|
|
211
219
|
get numericFields() {
|
|
212
|
-
return
|
|
220
|
+
return S(this._config);
|
|
213
221
|
}
|
|
214
222
|
set numericFields(e) {
|
|
215
|
-
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ?
|
|
223
|
+
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? U(this.layerInfo.layerFieldsInfo, e) : !0) ? (this._mode = m({
|
|
224
|
+
category: f(this._config),
|
|
225
|
+
numericFields: e,
|
|
226
|
+
fallbackMode: this._mode
|
|
227
|
+
}), Y({
|
|
216
228
|
newNumericFields: e,
|
|
217
229
|
config: this._config,
|
|
218
230
|
layerInfo: this.layerInfo,
|
|
219
231
|
commonStrings: this.commonStrings,
|
|
220
232
|
mode: this._mode
|
|
221
|
-
}), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) :
|
|
233
|
+
}), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) : W("error", "pie-chart-model", "Invalid `numericFields`");
|
|
222
234
|
}
|
|
223
235
|
/**
|
|
224
236
|
* Aggregation type for the pie chart.
|
|
225
237
|
*/
|
|
226
238
|
get aggregationType() {
|
|
227
|
-
return
|
|
239
|
+
return q(this._config, this._mode);
|
|
228
240
|
}
|
|
229
241
|
set aggregationType(e) {
|
|
230
|
-
|
|
242
|
+
H({
|
|
231
243
|
newAggregationType: e,
|
|
232
244
|
config: this._config,
|
|
233
245
|
layerInfo: this.layerInfo,
|
|
@@ -239,10 +251,10 @@ class r extends G {
|
|
|
239
251
|
* Gets the sort order for the pie chart.
|
|
240
252
|
*/
|
|
241
253
|
getSortOrder() {
|
|
242
|
-
return
|
|
254
|
+
return J(this._config, this._mode);
|
|
243
255
|
}
|
|
244
256
|
setSortOrder(e, i) {
|
|
245
|
-
|
|
257
|
+
Q({
|
|
246
258
|
newSortOrderKind: e,
|
|
247
259
|
config: this._config,
|
|
248
260
|
orderByList: i
|
|
@@ -257,10 +269,10 @@ class r extends G {
|
|
|
257
269
|
* ```
|
|
258
270
|
*/
|
|
259
271
|
get orderByList() {
|
|
260
|
-
return
|
|
272
|
+
return D(this._config, this._mode);
|
|
261
273
|
}
|
|
262
274
|
set orderByList(e) {
|
|
263
|
-
|
|
275
|
+
C({
|
|
264
276
|
values: e,
|
|
265
277
|
config: this._config,
|
|
266
278
|
mode: this._mode
|
|
@@ -271,6 +283,7 @@ class r extends G {
|
|
|
271
283
|
*
|
|
272
284
|
* `category` - The chart is using values from the category field to determine each slice.
|
|
273
285
|
* `fields` - The chart is using aggregated values from the numeric fields to determine each slice.
|
|
286
|
+
* @deprecated since 5.2. Mode is inferred automatically from `category` and `numericFields`.
|
|
274
287
|
*/
|
|
275
288
|
get mode() {
|
|
276
289
|
return this._mode;
|
|
@@ -282,9 +295,9 @@ class r extends G {
|
|
|
282
295
|
* Gets the list of the category values for the chart.
|
|
283
296
|
*/
|
|
284
297
|
async getCustomSortValues() {
|
|
285
|
-
const e =
|
|
298
|
+
const e = f(this._config), i = L(this._config.series);
|
|
286
299
|
let o = [];
|
|
287
|
-
return i ===
|
|
300
|
+
return i === h.PieFromFields ? o = this.numericFields : e.trim() !== "" && i === h.PieFromCategory && (o = await $({
|
|
288
301
|
category: e,
|
|
289
302
|
config: this._config,
|
|
290
303
|
layerInfo: this.layerInfo,
|
|
@@ -292,8 +305,8 @@ class r extends G {
|
|
|
292
305
|
})), o;
|
|
293
306
|
}
|
|
294
307
|
moveCustomSortValuesInOrderByList(e, i) {
|
|
295
|
-
const o =
|
|
296
|
-
o.splice(i, 0, l),
|
|
308
|
+
const o = D(this._config, this._mode), [l] = o.splice(e, 1);
|
|
309
|
+
o.splice(i, 0, l), C({
|
|
297
310
|
values: o,
|
|
298
311
|
config: this._config,
|
|
299
312
|
mode: this._mode
|
|
@@ -306,10 +319,10 @@ class r extends G {
|
|
|
306
319
|
* Ticks symbol connecting slices to labels.
|
|
307
320
|
*/
|
|
308
321
|
get ticksSymbol() {
|
|
309
|
-
return
|
|
322
|
+
return qe(this._config);
|
|
310
323
|
}
|
|
311
324
|
set ticksSymbol(e) {
|
|
312
|
-
|
|
325
|
+
He(e, this._config);
|
|
313
326
|
}
|
|
314
327
|
// ---------------------------------------------------------------------------------------------
|
|
315
328
|
// #region Slices Props
|
|
@@ -318,10 +331,10 @@ class r extends G {
|
|
|
318
331
|
* Array of slices for the pie chart.
|
|
319
332
|
*/
|
|
320
333
|
get slices() {
|
|
321
|
-
return
|
|
334
|
+
return rt(this._config);
|
|
322
335
|
}
|
|
323
336
|
set slices(e) {
|
|
324
|
-
|
|
337
|
+
F(e, this._config);
|
|
325
338
|
}
|
|
326
339
|
/**
|
|
327
340
|
* Array of grouped slice ids for the pie chart.
|
|
@@ -336,63 +349,63 @@ class r extends G {
|
|
|
336
349
|
* Slice grouping configuration for the pie chart.
|
|
337
350
|
*/
|
|
338
351
|
get sliceGrouping() {
|
|
339
|
-
return
|
|
352
|
+
return it(this._config);
|
|
340
353
|
}
|
|
341
354
|
set sliceGrouping(e) {
|
|
342
|
-
|
|
355
|
+
N(e, this._config);
|
|
343
356
|
}
|
|
344
357
|
/**
|
|
345
358
|
* Inner radius size for the pie chart.
|
|
346
359
|
*/
|
|
347
360
|
get innerRadiusSize() {
|
|
348
|
-
return
|
|
361
|
+
return ue(this._config) ?? 0;
|
|
349
362
|
}
|
|
350
363
|
set innerRadiusSize(e) {
|
|
351
|
-
|
|
364
|
+
fe(e, this._config);
|
|
352
365
|
}
|
|
353
366
|
/**
|
|
354
367
|
* Threshold below which slices will be grouped.
|
|
355
368
|
*/
|
|
356
369
|
get groupingThreshold() {
|
|
357
|
-
return
|
|
370
|
+
return M(this._config) ?? 0;
|
|
358
371
|
}
|
|
359
372
|
set groupingThreshold(e) {
|
|
360
|
-
|
|
373
|
+
st(e, this._config);
|
|
361
374
|
}
|
|
362
375
|
/**
|
|
363
376
|
* Character limit for the slice labels.
|
|
364
377
|
*/
|
|
365
378
|
get labelCharacterLimit() {
|
|
366
|
-
return
|
|
379
|
+
return he(this._config) ?? null;
|
|
367
380
|
}
|
|
368
381
|
set labelCharacterLimit(e) {
|
|
369
|
-
|
|
382
|
+
ye(e, this._config);
|
|
370
383
|
}
|
|
371
384
|
/**
|
|
372
385
|
* Number of decimal places to display in the slice values.
|
|
373
386
|
*/
|
|
374
387
|
get decimalPlaces() {
|
|
375
|
-
return
|
|
388
|
+
return Re(this._config) ?? 1;
|
|
376
389
|
}
|
|
377
390
|
set decimalPlaces(e) {
|
|
378
|
-
|
|
391
|
+
je(e, this._config);
|
|
379
392
|
}
|
|
380
393
|
/**
|
|
381
394
|
* Display type for the pie chart slices. Specifies whether to display the slices as a `percentage`, `value`, or `both`.
|
|
382
395
|
*/
|
|
383
396
|
get displayType() {
|
|
384
|
-
return
|
|
397
|
+
return We(this._config);
|
|
385
398
|
}
|
|
386
399
|
set displayType(e) {
|
|
387
|
-
|
|
400
|
+
Ae(e, this._config);
|
|
388
401
|
}
|
|
389
402
|
// ---------------------------------------------------------------------------------------------
|
|
390
403
|
// #region Protected methods
|
|
391
404
|
// ---------------------------------------------------------------------------------------------
|
|
392
405
|
/** @private */
|
|
393
406
|
generateDefaultConfig() {
|
|
394
|
-
const e =
|
|
395
|
-
return e.series = [
|
|
407
|
+
const e = w(this.commonStrings);
|
|
408
|
+
return e.series = [G(this.commonStrings, A(this.layerInfo.layer).idField)], e;
|
|
396
409
|
}
|
|
397
410
|
// ---------------------------------------------------------------------------------------------
|
|
398
411
|
// #region Series Methods
|
|
@@ -403,7 +416,7 @@ class r extends G {
|
|
|
403
416
|
* @param sliceIndex - The index of the slice.
|
|
404
417
|
*/
|
|
405
418
|
getOriginalSliceName(e) {
|
|
406
|
-
return
|
|
419
|
+
return Je(e, this._config);
|
|
407
420
|
}
|
|
408
421
|
/**
|
|
409
422
|
* Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -411,10 +424,10 @@ class r extends G {
|
|
|
411
424
|
* @param sliceIndex - The index of the slice.
|
|
412
425
|
*/
|
|
413
426
|
getSliceName(e) {
|
|
414
|
-
return
|
|
427
|
+
return Qe(e, this._config);
|
|
415
428
|
}
|
|
416
429
|
setSliceName(e, i) {
|
|
417
|
-
|
|
430
|
+
Xe(e, i, this._config);
|
|
418
431
|
}
|
|
419
432
|
/**
|
|
420
433
|
* Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -422,25 +435,25 @@ class r extends G {
|
|
|
422
435
|
* @param sliceIndex - The index of the slice.
|
|
423
436
|
*/
|
|
424
437
|
getSliceColor(e) {
|
|
425
|
-
return
|
|
438
|
+
return Ze(e, this._config);
|
|
426
439
|
}
|
|
427
440
|
setSliceColor(e, i) {
|
|
428
|
-
|
|
441
|
+
et(e, i, this._config);
|
|
429
442
|
}
|
|
430
443
|
/**
|
|
431
444
|
* Order of the slice array by returning an array of slice ids
|
|
432
445
|
*/
|
|
433
446
|
get orderOfSlices() {
|
|
434
|
-
return
|
|
447
|
+
return tt(this._config);
|
|
435
448
|
}
|
|
436
449
|
set orderOfSlices(e) {
|
|
437
|
-
e !== void 0 &&
|
|
450
|
+
e !== void 0 && P(e, this._config);
|
|
438
451
|
}
|
|
439
452
|
moveSeries(e, i) {
|
|
440
453
|
const o = this.orderOfSlices;
|
|
441
454
|
if (o !== void 0) {
|
|
442
455
|
const [l] = o.splice(e, 1);
|
|
443
|
-
o.splice(i, 0, l),
|
|
456
|
+
o.splice(i, 0, l), P(o, this._config);
|
|
444
457
|
}
|
|
445
458
|
}
|
|
446
459
|
/**
|
|
@@ -449,7 +462,7 @@ class r extends G {
|
|
|
449
462
|
* @param sliceIndex - The index of the slice.
|
|
450
463
|
*/
|
|
451
464
|
getSliceId(e) {
|
|
452
|
-
return
|
|
465
|
+
return ot(e, this._config);
|
|
453
466
|
}
|
|
454
467
|
/**
|
|
455
468
|
* Gets the slice index for a given slice id. If the `sliceId` is not found, this function will return `undefined`.
|
|
@@ -457,16 +470,16 @@ class r extends G {
|
|
|
457
470
|
* @param sliceId - The id of the slice.
|
|
458
471
|
*/
|
|
459
472
|
getSliceIndex(e) {
|
|
460
|
-
return
|
|
473
|
+
return lt(e, this._config);
|
|
461
474
|
}
|
|
462
475
|
/**
|
|
463
476
|
* Gets the length of the slices array.
|
|
464
477
|
*/
|
|
465
478
|
getSlicesLength() {
|
|
466
|
-
return
|
|
479
|
+
return nt(this._config);
|
|
467
480
|
}
|
|
468
481
|
resetSlices() {
|
|
469
|
-
|
|
482
|
+
at(this._config);
|
|
470
483
|
}
|
|
471
484
|
/**
|
|
472
485
|
* Returns whether the series styling is able to be reset.
|
|
@@ -476,8 +489,8 @@ class r extends G {
|
|
|
476
489
|
let i = !1;
|
|
477
490
|
const o = this.slices?.length ?? 0;
|
|
478
491
|
for (let l = 0; l < o; l += 1) {
|
|
479
|
-
const n = this.getOriginalSliceName(l),
|
|
480
|
-
if (n !== void 0 && n?.toString() !==
|
|
492
|
+
const n = this.getOriginalSliceName(l), c = this.getSliceName(l);
|
|
493
|
+
if (n !== void 0 && n?.toString() !== c?.toString()) {
|
|
481
494
|
i = !0;
|
|
482
495
|
break;
|
|
483
496
|
}
|
|
@@ -488,35 +501,35 @@ class r extends G {
|
|
|
488
501
|
* Visibility of the ticks.
|
|
489
502
|
*/
|
|
490
503
|
get ticksVisibility() {
|
|
491
|
-
return
|
|
504
|
+
return Ke(this._config);
|
|
492
505
|
}
|
|
493
506
|
set ticksVisibility(e) {
|
|
494
|
-
|
|
507
|
+
Ye(e, this._config);
|
|
495
508
|
}
|
|
496
509
|
/**
|
|
497
510
|
* Start angle of the pie chart.
|
|
498
511
|
*/
|
|
499
512
|
get startAngle() {
|
|
500
|
-
return
|
|
513
|
+
return v(this._config);
|
|
501
514
|
}
|
|
502
515
|
set startAngle(e) {
|
|
503
|
-
|
|
516
|
+
me(e, this._config);
|
|
504
517
|
}
|
|
505
518
|
/**
|
|
506
519
|
* End angle of the pie chart.
|
|
507
520
|
*/
|
|
508
521
|
get endAngle() {
|
|
509
|
-
return
|
|
522
|
+
return v(this._config);
|
|
510
523
|
}
|
|
511
524
|
set endAngle(e) {
|
|
512
|
-
|
|
525
|
+
Se(e, this._config);
|
|
513
526
|
}
|
|
514
527
|
/**
|
|
515
528
|
* Whether to display the category on the data label.
|
|
516
529
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
517
530
|
*/
|
|
518
531
|
get displayCategoryOnDataLabel() {
|
|
519
|
-
return
|
|
532
|
+
return be(this._config);
|
|
520
533
|
}
|
|
521
534
|
set displayCategoryOnDataLabel(e) {
|
|
522
535
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
@@ -529,7 +542,7 @@ class r extends G {
|
|
|
529
542
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
530
543
|
*/
|
|
531
544
|
get displayCategoryValueOnTooltip() {
|
|
532
|
-
return
|
|
545
|
+
return _e(this._config);
|
|
533
546
|
}
|
|
534
547
|
set displayCategoryValueOnTooltip(e) {
|
|
535
548
|
this._config.series[0].displayCategoryOnTooltip = e;
|
|
@@ -539,7 +552,7 @@ class r extends G {
|
|
|
539
552
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
540
553
|
*/
|
|
541
554
|
get displayNumericValueOnDataLabel() {
|
|
542
|
-
return
|
|
555
|
+
return Le(this._config);
|
|
543
556
|
}
|
|
544
557
|
set displayNumericValueOnDataLabel(e) {
|
|
545
558
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
@@ -552,7 +565,7 @@ class r extends G {
|
|
|
552
565
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
553
566
|
*/
|
|
554
567
|
get displayPercentageOnDataLabel() {
|
|
555
|
-
return
|
|
568
|
+
return Oe(this._config);
|
|
556
569
|
}
|
|
557
570
|
set displayPercentageOnDataLabel(e) {
|
|
558
571
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
@@ -565,7 +578,7 @@ class r extends G {
|
|
|
565
578
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
566
579
|
*/
|
|
567
580
|
get displayNumericValueOnTooltip() {
|
|
568
|
-
return
|
|
581
|
+
return De(this._config);
|
|
569
582
|
}
|
|
570
583
|
set displayNumericValueOnTooltip(e) {
|
|
571
584
|
this._config.series[0].displayNumericValueOnTooltip = e;
|
|
@@ -576,43 +589,43 @@ class r extends G {
|
|
|
576
589
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
577
590
|
*/
|
|
578
591
|
get displayPercentageOnTooltip() {
|
|
579
|
-
return
|
|
592
|
+
return Ce(this._config);
|
|
580
593
|
}
|
|
581
594
|
set displayPercentageOnTooltip(e) {
|
|
582
|
-
|
|
595
|
+
ve(e, this._config);
|
|
583
596
|
}
|
|
584
597
|
/**
|
|
585
598
|
* Prefix of the values of the slices.
|
|
586
599
|
*/
|
|
587
600
|
get valuePrefix() {
|
|
588
|
-
return
|
|
601
|
+
return Pe(this._config);
|
|
589
602
|
}
|
|
590
603
|
set valuePrefix(e) {
|
|
591
|
-
|
|
604
|
+
Te(e, this._config);
|
|
592
605
|
}
|
|
593
606
|
/**
|
|
594
607
|
* Suffix of the values of the slice.
|
|
595
608
|
*/
|
|
596
609
|
get valueSuffix() {
|
|
597
|
-
return
|
|
610
|
+
return Ve(this._config);
|
|
598
611
|
}
|
|
599
612
|
set valueSuffix(e) {
|
|
600
|
-
|
|
613
|
+
xe(e, this._config);
|
|
601
614
|
}
|
|
602
615
|
/**
|
|
603
616
|
* Prefix of the percentages of the slices.
|
|
604
617
|
*/
|
|
605
618
|
get percentagePrefix() {
|
|
606
|
-
return
|
|
619
|
+
return Ie(this._config);
|
|
607
620
|
}
|
|
608
621
|
set percentagePrefix(e) {
|
|
609
|
-
|
|
622
|
+
Ne(e, this._config);
|
|
610
623
|
}
|
|
611
624
|
/**
|
|
612
625
|
* Suffix of the percentages of the slices.
|
|
613
626
|
*/
|
|
614
627
|
get percentageSuffix() {
|
|
615
|
-
return
|
|
628
|
+
return Me(this._config);
|
|
616
629
|
}
|
|
617
630
|
set percentageSuffix(e) {
|
|
618
631
|
Fe(e, this._config);
|
|
@@ -621,16 +634,16 @@ class r extends G {
|
|
|
621
634
|
* Offset for the data labels.
|
|
622
635
|
*/
|
|
623
636
|
get dataLabelsOffset() {
|
|
624
|
-
return
|
|
637
|
+
return Be(this._config);
|
|
625
638
|
}
|
|
626
639
|
set dataLabelsOffset(e) {
|
|
627
|
-
|
|
640
|
+
Ee(e, this._config);
|
|
628
641
|
}
|
|
629
642
|
/**
|
|
630
643
|
* Align the data labels on the left or right side of the chart instead of the default position around the chart.
|
|
631
644
|
*/
|
|
632
645
|
get alignDataLabels() {
|
|
633
|
-
return
|
|
646
|
+
return ke(this._config);
|
|
634
647
|
}
|
|
635
648
|
set alignDataLabels(e) {
|
|
636
649
|
we(e, this._config);
|
|
@@ -642,16 +655,16 @@ class r extends G {
|
|
|
642
655
|
return Ge(this._config);
|
|
643
656
|
}
|
|
644
657
|
set dataLabelsInside(e) {
|
|
645
|
-
|
|
658
|
+
ze(e, this._config);
|
|
646
659
|
}
|
|
647
660
|
/**
|
|
648
661
|
* Optimize data labels overlapping setting for the pie chart.
|
|
649
662
|
*/
|
|
650
663
|
get optimizeDataLabelsOverlapping() {
|
|
651
|
-
return
|
|
664
|
+
return Ue(this._config);
|
|
652
665
|
}
|
|
653
666
|
set optimizeDataLabelsOverlapping(e) {
|
|
654
|
-
|
|
667
|
+
$e(e, this._config);
|
|
655
668
|
}
|
|
656
669
|
// ---------------------------------------------------------------------------------------------
|
|
657
670
|
// #region General Props
|
|
@@ -660,7 +673,7 @@ class r extends G {
|
|
|
660
673
|
* Generate the proper chart title given the current config.
|
|
661
674
|
*/
|
|
662
675
|
generateChartTitle() {
|
|
663
|
-
return
|
|
676
|
+
return X({
|
|
664
677
|
config: this._config,
|
|
665
678
|
layerInfo: this.layerInfo,
|
|
666
679
|
commonStrings: this.commonStrings,
|
|
@@ -773,14 +786,14 @@ a([
|
|
|
773
786
|
a([
|
|
774
787
|
s
|
|
775
788
|
], r.prototype, "optimizeDataLabelsOverlapping");
|
|
776
|
-
const
|
|
789
|
+
const pt = [
|
|
777
790
|
u,
|
|
778
|
-
k,
|
|
779
|
-
z,
|
|
780
791
|
B,
|
|
781
|
-
E
|
|
792
|
+
E,
|
|
793
|
+
R,
|
|
794
|
+
j
|
|
782
795
|
];
|
|
783
|
-
|
|
796
|
+
I(r, pt);
|
|
784
797
|
export {
|
|
785
798
|
r as PieChartModel
|
|
786
799
|
};
|