@arcgis/charts-components 5.2.0-next.70 → 5.2.0-next.72
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/LICENSE.md +4 -2
- package/dist/cdn/{S6C5PJP4.js → 27QJPJG2.js} +1 -1
- package/dist/cdn/{5BMIWC4E.js → 2IT2RCIC.js} +1 -1
- package/dist/cdn/{P4VJYOCL.js → 3F3DSHMX.js} +1 -1
- package/dist/cdn/{55FTLFES.js → 3O6KXZI3.js} +1 -1
- package/dist/cdn/{FJGG2VVZ.js → 3P2SRGLO.js} +1 -1
- package/dist/cdn/{AQOCENW4.js → 42A7W3OA.js} +1 -1
- package/dist/cdn/{3FNSOFZW.js → 4HZOLYYJ.js} +1 -1
- package/dist/cdn/{SKQQFLCU.js → 4MVV6KMX.js} +1 -1
- package/dist/cdn/{QB5VLM5A.js → 52AWRYBA.js} +1 -1
- package/dist/cdn/{NS22JUJ7.js → 5TUEP4OK.js} +1 -1
- package/dist/cdn/{OAXHS4LE.js → 5X7Q3I6R.js} +1 -1
- package/dist/cdn/{P3WSMZJU.js → 6HRHDLP5.js} +1 -1
- package/dist/cdn/{3PJG5RPA.js → 6X64PHGO.js} +1 -1
- package/dist/cdn/{SNLS5YDJ.js → 6XCI7UCI.js} +1 -1
- package/dist/cdn/{LTHNRIKF.js → 6YZUX3IR.js} +1 -1
- package/dist/cdn/{6PGKTC6F.js → 73JR3GLJ.js} +1 -1
- package/dist/cdn/7RSZDQRA.js +2 -0
- package/dist/cdn/{CQS3N3YT.js → AWL4BHAE.js} +1 -1
- package/dist/cdn/{FNJOMPCS.js → BFX4S6V7.js} +1 -1
- package/dist/cdn/{NJKSUAO7.js → BHH6HAXC.js} +1 -1
- package/dist/cdn/{BKENQZVC.js → BJYYXABD.js} +1 -1
- package/dist/cdn/{UDAL44H7.js → BPRQJH3C.js} +1 -1
- package/dist/cdn/{MFYVUIPM.js → D4YMWPO7.js} +1 -1
- package/dist/cdn/{24UNROUY.js → DGJT4BLR.js} +1 -1
- package/dist/cdn/{OF3OQQID.js → EPHJ2KVR.js} +1 -1
- package/dist/cdn/{2GXX5IMS.js → FY42MP27.js} +1 -1
- package/dist/cdn/{MGUUHKYW.js → G6RHXKZI.js} +1 -1
- package/dist/cdn/{LZABQV52.js → GBVHGXLI.js} +1 -1
- package/dist/cdn/{OJDYJETX.js → GDCYGJRG.js} +1 -1
- package/dist/cdn/{BSCFYA5P.js → GEGDQRVU.js} +1 -1
- package/dist/cdn/{HEWG4ZZE.js → GIW5FIBF.js} +28 -28
- package/dist/cdn/{ZSTPZFF6.js → GW33HA7C.js} +1 -1
- package/dist/cdn/{TYVMAK67.js → HE4DQBAF.js} +1 -1
- package/dist/cdn/{LNRNJHH3.js → HEV6CQ2O.js} +1 -1
- package/dist/cdn/{4SHVP5PZ.js → HFWQWWZX.js} +1 -1
- package/dist/cdn/{DGGCAG3N.js → HGWVBXGI.js} +1 -1
- package/dist/cdn/{7ENBCEQR.js → HTDEFWRO.js} +1 -1
- package/dist/cdn/{6JJHAS2P.js → IMJT2ADR.js} +1 -1
- package/dist/cdn/{TSQYRV3W.js → IOF3LHQS.js} +1 -1
- package/dist/cdn/{V75KABKD.js → IQAQH55N.js} +1 -1
- package/dist/cdn/{WTB23TU5.js → IRLDFW6T.js} +1 -1
- package/dist/cdn/{T2G5XRL5.js → J3UWN6IT.js} +1 -1
- package/dist/cdn/{7GO7L6K4.js → JCMK62IU.js} +1 -1
- package/dist/cdn/{MLPHSOJB.js → JRLNI3JM.js} +1 -1
- package/dist/cdn/{VZCYTHM2.js → JU77OUXG.js} +1 -1
- package/dist/cdn/{MFVIGPEF.js → JZIH5BEO.js} +1 -1
- package/dist/cdn/{76BU2ZWA.js → KW4YJOEM.js} +1 -1
- package/dist/cdn/{YXOUH52R.js → L44RZ2LJ.js} +1 -1
- package/dist/cdn/{UW3WL44H.js → LFUOUZRD.js} +1 -1
- package/dist/cdn/{7AFOMUPB.js → LQU6DEB6.js} +1 -1
- package/dist/cdn/{ZNGT5LSV.js → MHWVJW2G.js} +1 -1
- package/dist/cdn/{YWMVQFAN.js → MQJ65BCX.js} +1 -1
- package/dist/cdn/{W665SH4P.js → N7PKDRUM.js} +1 -1
- package/dist/cdn/{BIPFB5HW.js → NBS2RCOO.js} +1 -1
- package/dist/cdn/{ANMO6CLA.js → NORDWTUH.js} +1 -1
- package/dist/cdn/{CH7EMYXL.js → NWH7AJ52.js} +1 -1
- package/dist/cdn/{A2OP6Q3D.js → P5HKNAV6.js} +1 -1
- package/dist/cdn/{FLKBGFAC.js → PCTPAU4P.js} +1 -1
- package/dist/cdn/{WGPNG4C5.js → PDSFLHBW.js} +1 -1
- package/dist/cdn/{E76O5CL2.js → QAQ7XMIR.js} +1 -1
- package/dist/cdn/QQO3KMZ4.js +2 -0
- package/dist/cdn/{VWY7QP3W.js → RI7OFHO5.js} +1 -1
- package/dist/cdn/{EKBLEUCP.js → RLZXSSP6.js} +1 -1
- package/dist/cdn/{ZK5Z6BOX.js → S3LRWKAX.js} +1 -1
- package/dist/cdn/{KHGILG5X.js → S3XBL7KR.js} +1 -1
- package/dist/cdn/{UULF2NFJ.js → SCVLTVPD.js} +1 -1
- package/dist/cdn/SG2DVYJ7.js +2 -0
- package/dist/cdn/{CWSAYMFQ.js → SU5W5NFD.js} +1 -1
- package/dist/cdn/{ILI6Z4H3.js → SWD33GFB.js} +1 -1
- package/dist/cdn/{VPHWRDJI.js → TEVJHF4T.js} +1 -1
- package/dist/cdn/{OCYSGUCY.js → TTW52EWC.js} +1 -1
- package/dist/cdn/{KEHRL2MP.js → UAUXUYSZ.js} +1 -1
- package/dist/cdn/{GZVU6ATV.js → UKVRMGYE.js} +1 -1
- package/dist/cdn/{VWOS4FBW.js → V35ALJHW.js} +2 -2
- package/dist/cdn/V5EPH7SJ.js +2 -0
- package/dist/cdn/{PZ3FNMU7.js → V6WZ4HG3.js} +1 -1
- package/dist/cdn/{E7RGF2VG.js → VLTMMRNO.js} +1 -1
- package/dist/cdn/{UXVU3KHY.js → VPYOVHNR.js} +1 -1
- package/dist/cdn/{7IUKJ5PU.js → WDBM5DMV.js} +1 -1
- package/dist/cdn/{2WVTUVN4.js → WMXFQ3W5.js} +1 -1
- package/dist/cdn/YALJ3XEN.js +2 -0
- package/dist/cdn/{CGCRNEFM.js → ZBP6VJMM.js} +1 -1
- package/dist/cdn/{UGAHTOBA.js → ZCCW2VVQ.js} +1 -1
- package/dist/cdn/{XRRDA4TC.js → ZKB6OSA6.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +24 -23
- package/dist/chunks/box-plot-model.js +36 -36
- package/dist/chunks/index2.js +1550 -1548
- package/dist/chunks/pie-chart-model.js +381 -326
- package/dist/chunks/serial-chart-model.js +2 -1
- package/dist/chunks/type-guards2.js +15 -15
- package/dist/components/arcgis-chart/customElement.d.ts +11 -29
- package/dist/components/arcgis-chart/customElement.js +168 -163
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +40 -26
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +236 -224
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +59 -2
- package/dist/model/shared/type-guards.d.ts +2 -1
- package/package.json +4 -4
- package/dist/cdn/FLYZW7XF.js +0 -2
- package/dist/cdn/O2K4WDQR.js +0 -2
- package/dist/cdn/OANIWZFQ.js +0 -2
- package/dist/cdn/ODNJBXGP.js +0 -2
- package/dist/cdn/Z4LBCIER.js +0 -2
|
@@ -1,191 +1,120 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { log as
|
|
3
|
-
import { u as
|
|
4
|
-
import { Y as
|
|
5
|
-
import { i as
|
|
6
|
-
import { X as
|
|
7
|
-
import { C as
|
|
8
|
-
import { C as
|
|
2
|
+
import { log as w } from "@arcgis/toolkit/log";
|
|
3
|
+
import { u as g } from "./chart-object-literals.js";
|
|
4
|
+
import { Y as b, ap as B } from "./index2.js";
|
|
5
|
+
import { i as E } from "./index4.js";
|
|
6
|
+
import { X as p, a8 as W, a2 as L, aB as k, a5 as R, a6 as j } from "./index.js";
|
|
7
|
+
import { C as f, d as K } from "./index3.js";
|
|
8
|
+
import { C as X } 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 {
|
|
14
|
-
import { i as
|
|
15
|
-
import { cloneDeep as
|
|
16
|
-
import { i as
|
|
17
|
-
const
|
|
18
|
-
e.series[0]?.type ===
|
|
19
|
-
},
|
|
20
|
-
e.series[0]?.type ===
|
|
21
|
-
},
|
|
22
|
-
e.series[0]?.type ===
|
|
23
|
-
},
|
|
24
|
-
e.series[0]?.type ===
|
|
10
|
+
import { b as n, P as u } from "./common.js";
|
|
11
|
+
import { M as Y, a as q, W as H, b as J } from "./data-labels-visibility.js";
|
|
12
|
+
import { W as Q } from "./data-labels-symbol.js";
|
|
13
|
+
import { j as U, c as Z, f as $ } from "./utils.js";
|
|
14
|
+
import { i as y, a as m, g as h, s as ee, c as te, b as ie, d as se, e as re, f as ae, h as O, j as D, k as oe } from "./pie-chart-data.js";
|
|
15
|
+
import { cloneDeep as le } from "lodash-es";
|
|
16
|
+
import { i as _ } from "./rest-js-object-literals.js";
|
|
17
|
+
const C = (t) => t.legend?.displayNumericValue ?? !1, v = (t, e) => {
|
|
18
|
+
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayNumericValue = t);
|
|
19
|
+
}, P = (t) => t.legend?.displayCategory ?? !1, I = (t, e) => {
|
|
20
|
+
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayCategory = t);
|
|
21
|
+
}, T = (t) => t.legend?.displayPercentage ?? !1, V = (t, e) => {
|
|
22
|
+
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.displayPercentage = t);
|
|
23
|
+
}, x = (t) => t.legend?.labelMaxWidth ?? 200, N = (t, e) => {
|
|
24
|
+
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.labelMaxWidth = t);
|
|
25
25
|
}, ne = (t) => t.legend?.valueLabelMaxWidth ?? 200, ce = (t, e) => {
|
|
26
|
-
e.series[0]?.type ===
|
|
27
|
-
}
|
|
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
|
-
return l && ge(e, i, l), l;
|
|
32
|
-
};
|
|
33
|
-
class u extends x {
|
|
34
|
-
/**
|
|
35
|
-
* Gets the setting for the display of numerical value in the legend items.
|
|
36
|
-
*
|
|
37
|
-
* **Note**: Only applicable to pie charts.
|
|
38
|
-
*/
|
|
39
|
-
getDisplayNumericValue() {
|
|
40
|
-
return ee(this._config);
|
|
41
|
-
}
|
|
42
|
-
setDisplayNumericValue(e) {
|
|
43
|
-
te(e, this._config);
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* Gets the setting for the display of percentage in the legend items.
|
|
47
|
-
*
|
|
48
|
-
* **Note**: Only applicable to pie charts.
|
|
49
|
-
*/
|
|
50
|
-
getDisplayPercentage() {
|
|
51
|
-
return re(this._config);
|
|
52
|
-
}
|
|
53
|
-
setDisplayPercentage(e) {
|
|
54
|
-
ae(e, this._config);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Gets the maximum width in pixel for the legend item labels.
|
|
58
|
-
*
|
|
59
|
-
* **Note**: Only applicable to pie charts.
|
|
60
|
-
*/
|
|
61
|
-
getLabelMaxWidth() {
|
|
62
|
-
return oe(this._config);
|
|
63
|
-
}
|
|
64
|
-
setLabelMaxWidth(e) {
|
|
65
|
-
le(e, this._config);
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* The maximum width in pixel for the legend value labels.
|
|
69
|
-
* @returns {number}
|
|
70
|
-
*/
|
|
71
|
-
get valueLabelMaxWidth() {
|
|
72
|
-
return ne(this._config);
|
|
73
|
-
}
|
|
74
|
-
set valueLabelMaxWidth(e) {
|
|
75
|
-
ce(e, this._config), this.emitConfigUpdate("valueLabelMaxWidth");
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Whether to display the category in the legend.
|
|
79
|
-
*/
|
|
80
|
-
get displayCategory() {
|
|
81
|
-
return ie(this._config);
|
|
82
|
-
}
|
|
83
|
-
set displayCategory(e) {
|
|
84
|
-
se(e, this._config), this.emitConfigUpdate("displayCategory");
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
b([
|
|
88
|
-
s
|
|
89
|
-
], u.prototype, "setDisplayNumericValue");
|
|
90
|
-
b([
|
|
91
|
-
s
|
|
92
|
-
], u.prototype, "setDisplayPercentage");
|
|
93
|
-
b([
|
|
94
|
-
s
|
|
95
|
-
], u.prototype, "setLabelMaxWidth");
|
|
96
|
-
const de = [x];
|
|
97
|
-
I(u, de);
|
|
98
|
-
const ue = (t) => t.series?.[0]?.innerRadius, fe = (t, e) => {
|
|
26
|
+
e.series[0]?.type === g.PieSeries && (e.legend === void 0 && (e.legend = p()), e.legend.valueLabelMaxWidth = t);
|
|
27
|
+
}, ge = (t) => t.series?.[0]?.innerRadius, pe = (t, e) => {
|
|
99
28
|
e.series?.[0] && (e.series[0].innerRadius = t);
|
|
100
|
-
},
|
|
29
|
+
}, de = (t) => t.series?.[0]?.dataLabelsCharacterLimit, ue = (t, e) => {
|
|
101
30
|
e.series?.[0] && (e.series[0].dataLabelsCharacterLimit = t);
|
|
102
|
-
},
|
|
31
|
+
}, M = (t) => t.series[0]?.startAngle, he = (t, e) => {
|
|
103
32
|
e.series?.[0] && (e.series[0].startAngle = t);
|
|
104
|
-
},
|
|
33
|
+
}, fe = (t, e) => {
|
|
105
34
|
e.series?.[0] && (e.series[0].endAngle = t);
|
|
106
|
-
},
|
|
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) => {
|
|
107
36
|
e.series[0] && (e.series[0].displayPercentageOnTooltip = t);
|
|
108
|
-
},
|
|
37
|
+
}, De = (t) => t.series?.[0]?.valuePrefix, Ce = (t, e) => {
|
|
109
38
|
e.series?.[0] && (e.series[0].valuePrefix = t);
|
|
110
|
-
},
|
|
39
|
+
}, ve = (t) => t.series?.[0]?.valueSuffix, Pe = (t, e) => {
|
|
111
40
|
e.series?.[0] && (e.series[0].valueSuffix = t);
|
|
112
|
-
}, Ie = (t) => t.series?.[0]?.percentagePrefix,
|
|
41
|
+
}, Ie = (t) => t.series?.[0]?.percentagePrefix, Te = (t, e) => {
|
|
113
42
|
e.series?.[0] && (e.series[0].percentagePrefix = t);
|
|
114
|
-
},
|
|
43
|
+
}, Ve = (t) => t.series?.[0]?.percentageSuffix, xe = (t, e) => {
|
|
115
44
|
e.series?.[0] && (e.series[0].percentageSuffix = t);
|
|
116
|
-
},
|
|
45
|
+
}, Ne = (t) => {
|
|
117
46
|
let e;
|
|
118
|
-
const
|
|
119
|
-
return
|
|
120
|
-
},
|
|
121
|
-
const
|
|
122
|
-
e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel =
|
|
47
|
+
const a = t.series?.[0];
|
|
48
|
+
return a?.displayNumericValueOnDataLabel === !0 && a?.displayPercentageOnDataLabel === !0 ? e = n.Both : a?.displayNumericValueOnDataLabel === !0 ? e = n.Value : e = n.Percentage, e;
|
|
49
|
+
}, Me = (t, e) => {
|
|
50
|
+
const a = t === n.Value || t === n.Both, o = t === n.Percentage || t === n.Both;
|
|
51
|
+
e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel = a, e.series[0].displayPercentageOnDataLabel = o), e.legend && (e.legend = {
|
|
123
52
|
...e.legend,
|
|
124
|
-
displayNumericValue:
|
|
53
|
+
displayNumericValue: a,
|
|
125
54
|
displayPercentage: o
|
|
126
55
|
});
|
|
127
|
-
},
|
|
56
|
+
}, Fe = (t) => t.series?.[0]?.alignDataLabels ?? !1, We = (t, e) => {
|
|
128
57
|
e.series[0] && (e.series[0].alignDataLabels = t);
|
|
129
|
-
},
|
|
58
|
+
}, ke = (t) => t.series?.[0]?.dataLabelsInside ?? !1, Ae = (t, e) => {
|
|
130
59
|
e.series[0] && (e.series[0].dataLabelsInside = t);
|
|
131
|
-
},
|
|
60
|
+
}, Ge = (t) => t.series?.[0]?.dataLabelsOffset ?? 10, ze = (t, e) => {
|
|
132
61
|
e.series[0] && (e.series[0].dataLabelsOffset = t);
|
|
133
|
-
},
|
|
134
|
-
e.series?.[0] && (e.series[0].numericValueFormat ??=
|
|
135
|
-
},
|
|
62
|
+
}, we = (t) => t.series?.[0]?.numericValueFormat?.intlOptions?.minimumFractionDigits, Be = (t, e) => {
|
|
63
|
+
e.series?.[0] && (e.series[0].numericValueFormat ??= L(), e.series[0].numericValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].numericValueFormat.intlOptions.maximumFractionDigits = t, e.series[0].percentValueFormat ??= L(), e.series[0].percentValueFormat.intlOptions.minimumFractionDigits = t, e.series[0].percentValueFormat.intlOptions.maximumFractionDigits = t);
|
|
64
|
+
}, Ee = (t) => t.series?.[0]?.optimizeDataLabelsOverlapping ?? !1, Re = (t, e) => {
|
|
136
65
|
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
|
-
},
|
|
142
|
-
|
|
143
|
-
},
|
|
144
|
-
const o =
|
|
145
|
-
o !== void 0 ? (o.color = t, o.outline !== void 0 ? o.outline.color = t : o.outline = { type:
|
|
146
|
-
type:
|
|
66
|
+
}, je = (t) => t.series[0]?.ticks?.visible ?? !1, Ke = (t, e) => {
|
|
67
|
+
e.series?.[0] && (e.series[0].ticks ??= W(), e.series[0].ticks.visible = t);
|
|
68
|
+
}, Xe = (t) => t.series[0]?.ticks?.lineSymbol, Ye = (t, e) => {
|
|
69
|
+
t && e.series?.[0] && (e.series[0].ticks ??= W(), e.series[0].ticks.lineSymbol = le(t));
|
|
70
|
+
}, qe = (t, e) => e.series?.[0]?.slices?.[t]?.originalLabel, He = (t, e) => e.series?.[0]?.slices?.[t]?.label, Je = (t, e, a) => {
|
|
71
|
+
a.series?.[0]?.slices?.[e] && (a.series[0].slices[e].label = t);
|
|
72
|
+
}, Qe = (t, e) => e.series?.[0]?.slices?.[t]?.fillSymbol?.color, Ue = (t, e, a) => {
|
|
73
|
+
const o = a.series?.[0]?.slices?.[e]?.fillSymbol;
|
|
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
|
+
type: _.SFS,
|
|
147
76
|
color: t,
|
|
148
|
-
outline: { type:
|
|
77
|
+
outline: { type: _.SLS, color: t }
|
|
149
78
|
});
|
|
150
|
-
},
|
|
79
|
+
}, Ze = (t) => t.series?.[0]?.slices?.map((e) => e.sliceId), F = (t, e) => {
|
|
151
80
|
e.series?.[0]?.slices?.sort(
|
|
152
|
-
(
|
|
81
|
+
(a, o) => t.findIndex((l) => a.sliceId === l) - t.findIndex((l) => o.sliceId === l)
|
|
153
82
|
);
|
|
154
|
-
},
|
|
83
|
+
}, $e = (t) => t.series?.[0]?.sliceGrouping, A = (t, e) => {
|
|
155
84
|
e.series?.[0] && (e.series[0].sliceGrouping = t);
|
|
156
|
-
},
|
|
85
|
+
}, G = (t) => t.series?.[0]?.sliceGrouping?.percentageThreshold, et = (t, e) => {
|
|
157
86
|
e.series?.[0]?.sliceGrouping !== void 0 ? e.series[0].sliceGrouping.percentageThreshold = t : e.series[0].sliceGrouping = {
|
|
158
|
-
sliceId:
|
|
87
|
+
sliceId: k.defaultGroupOfSlicesId,
|
|
159
88
|
percentageThreshold: t
|
|
160
89
|
};
|
|
161
|
-
},
|
|
90
|
+
}, tt = (t) => t.series?.[0]?.slices, z = (t, e) => {
|
|
162
91
|
e.series?.[0] && (e.series[0].slices = t);
|
|
163
|
-
},
|
|
164
|
-
|
|
92
|
+
}, it = (t) => {
|
|
93
|
+
z(void 0, t), A(
|
|
165
94
|
{
|
|
166
|
-
sliceId:
|
|
167
|
-
percentageThreshold:
|
|
95
|
+
sliceId: k.defaultGroupOfSlicesId,
|
|
96
|
+
percentageThreshold: G(t) ?? 0
|
|
168
97
|
},
|
|
169
98
|
t
|
|
170
99
|
);
|
|
171
|
-
},
|
|
172
|
-
var
|
|
173
|
-
for (var l =
|
|
174
|
-
(
|
|
175
|
-
return l &&
|
|
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, lt = Object.getOwnPropertyDescriptor, r = (t, e, a, o) => {
|
|
102
|
+
for (var l = lt(e, a), c = t.length - 1, d; c >= 0; c--)
|
|
103
|
+
(d = t[c]) && (l = d(e, a, l) || l);
|
|
104
|
+
return l && ot(e, a, l), l;
|
|
176
105
|
};
|
|
177
|
-
class
|
|
106
|
+
class i extends X {
|
|
178
107
|
constructor() {
|
|
179
|
-
super(...arguments), this._chartType =
|
|
108
|
+
super(...arguments), this._chartType = g.PieSeries, this._mode = u.Category, this._groupedSliceIds = [], this._customizedSliceIds = [];
|
|
180
109
|
}
|
|
181
110
|
async setup(e) {
|
|
182
111
|
await this.loadConfigFromLayer(e);
|
|
183
|
-
const { config:
|
|
184
|
-
if (
|
|
185
|
-
const l =
|
|
186
|
-
this._mode =
|
|
187
|
-
category:
|
|
188
|
-
numericFields:
|
|
112
|
+
const { config: a } = e;
|
|
113
|
+
if (a !== void 0) {
|
|
114
|
+
const l = b(a.series) !== f.PieFromFields ? u.Category : u.Fields;
|
|
115
|
+
this._mode = y({
|
|
116
|
+
category: h(this._config),
|
|
117
|
+
numericFields: m(this._config),
|
|
189
118
|
fallbackMode: l
|
|
190
119
|
});
|
|
191
120
|
}
|
|
@@ -198,14 +127,14 @@ class r extends z {
|
|
|
198
127
|
* Category field for the pie chart.
|
|
199
128
|
*/
|
|
200
129
|
get category() {
|
|
201
|
-
return
|
|
130
|
+
return h(this._config);
|
|
202
131
|
}
|
|
203
132
|
set category(e) {
|
|
204
|
-
(!
|
|
133
|
+
(!E(this._config) || e.trim() !== "") && (this._mode = y({
|
|
205
134
|
category: e,
|
|
206
|
-
numericFields:
|
|
135
|
+
numericFields: m(this._config),
|
|
207
136
|
fallbackMode: this._mode
|
|
208
|
-
}),
|
|
137
|
+
}), ee({
|
|
209
138
|
newCategory: e,
|
|
210
139
|
config: this._config,
|
|
211
140
|
layerInfo: this.layerInfo,
|
|
@@ -217,29 +146,31 @@ class r extends z {
|
|
|
217
146
|
* Numeric fields for the pie chart.
|
|
218
147
|
*/
|
|
219
148
|
get numericFields() {
|
|
220
|
-
return
|
|
149
|
+
return m(this._config);
|
|
221
150
|
}
|
|
222
151
|
set numericFields(e) {
|
|
223
|
-
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? U(this.layerInfo.layerFieldsInfo, e) : !0) ? (this._mode =
|
|
224
|
-
category:
|
|
152
|
+
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? U(this.layerInfo.layerFieldsInfo, e) : !0) ? (this._mode = y({
|
|
153
|
+
category: h(this._config),
|
|
225
154
|
numericFields: e,
|
|
226
155
|
fallbackMode: this._mode
|
|
227
|
-
}),
|
|
156
|
+
}), te({
|
|
228
157
|
newNumericFields: e,
|
|
229
158
|
config: this._config,
|
|
230
159
|
layerInfo: this.layerInfo,
|
|
231
160
|
commonStrings: this.commonStrings,
|
|
232
161
|
mode: this._mode
|
|
233
|
-
}), this.
|
|
162
|
+
}), this._config.series[0].slices = this._config.series[0].slices?.filter(
|
|
163
|
+
(o) => o.fillSymbol?.color !== void 0 && this._customizedSliceIds.includes(o.sliceId ?? "")
|
|
164
|
+
), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) : w("error", "pie-chart-model", "Invalid `numericFields`");
|
|
234
165
|
}
|
|
235
166
|
/**
|
|
236
167
|
* Aggregation type for the pie chart.
|
|
237
168
|
*/
|
|
238
169
|
get aggregationType() {
|
|
239
|
-
return
|
|
170
|
+
return ie(this._config, this._mode);
|
|
240
171
|
}
|
|
241
172
|
set aggregationType(e) {
|
|
242
|
-
|
|
173
|
+
se({
|
|
243
174
|
newAggregationType: e,
|
|
244
175
|
config: this._config,
|
|
245
176
|
layerInfo: this.layerInfo,
|
|
@@ -251,13 +182,13 @@ class r extends z {
|
|
|
251
182
|
* Gets the sort order for the pie chart.
|
|
252
183
|
*/
|
|
253
184
|
getSortOrder() {
|
|
254
|
-
return
|
|
185
|
+
return re(this._config, this._mode);
|
|
255
186
|
}
|
|
256
|
-
setSortOrder(e,
|
|
257
|
-
|
|
187
|
+
setSortOrder(e, a) {
|
|
188
|
+
ae({
|
|
258
189
|
newSortOrderKind: e,
|
|
259
190
|
config: this._config,
|
|
260
|
-
orderByList:
|
|
191
|
+
orderByList: a
|
|
261
192
|
});
|
|
262
193
|
}
|
|
263
194
|
/**
|
|
@@ -269,10 +200,10 @@ class r extends z {
|
|
|
269
200
|
* ```
|
|
270
201
|
*/
|
|
271
202
|
get orderByList() {
|
|
272
|
-
return
|
|
203
|
+
return O(this._config, this._mode);
|
|
273
204
|
}
|
|
274
205
|
set orderByList(e) {
|
|
275
|
-
|
|
206
|
+
D({
|
|
276
207
|
values: e,
|
|
277
208
|
config: this._config,
|
|
278
209
|
mode: this._mode
|
|
@@ -295,18 +226,18 @@ class r extends z {
|
|
|
295
226
|
* Gets the list of the category values for the chart.
|
|
296
227
|
*/
|
|
297
228
|
async getCustomSortValues() {
|
|
298
|
-
const e =
|
|
229
|
+
const e = h(this._config), a = b(this._config.series);
|
|
299
230
|
let o = [];
|
|
300
|
-
return
|
|
231
|
+
return a === f.PieFromFields ? o = this.numericFields : e.trim() !== "" && a === f.PieFromCategory && (o = await Z({
|
|
301
232
|
category: e,
|
|
302
233
|
config: this._config,
|
|
303
234
|
layerInfo: this.layerInfo,
|
|
304
235
|
errorStrings: this.commonStrings.errorStrings
|
|
305
236
|
})), o;
|
|
306
237
|
}
|
|
307
|
-
moveCustomSortValuesInOrderByList(e,
|
|
308
|
-
const o =
|
|
309
|
-
o.splice(
|
|
238
|
+
moveCustomSortValuesInOrderByList(e, a) {
|
|
239
|
+
const o = O(this._config, this._mode), [l] = o.splice(e, 1);
|
|
240
|
+
o.splice(a, 0, l), D({
|
|
310
241
|
values: o,
|
|
311
242
|
config: this._config,
|
|
312
243
|
mode: this._mode
|
|
@@ -319,10 +250,10 @@ class r extends z {
|
|
|
319
250
|
* Ticks symbol connecting slices to labels.
|
|
320
251
|
*/
|
|
321
252
|
get ticksSymbol() {
|
|
322
|
-
return
|
|
253
|
+
return Xe(this._config);
|
|
323
254
|
}
|
|
324
255
|
set ticksSymbol(e) {
|
|
325
|
-
|
|
256
|
+
Ye(e, this._config);
|
|
326
257
|
}
|
|
327
258
|
// ---------------------------------------------------------------------------------------------
|
|
328
259
|
// #region Slices Props
|
|
@@ -331,10 +262,10 @@ class r extends z {
|
|
|
331
262
|
* Array of slices for the pie chart.
|
|
332
263
|
*/
|
|
333
264
|
get slices() {
|
|
334
|
-
return
|
|
265
|
+
return tt(this._config);
|
|
335
266
|
}
|
|
336
267
|
set slices(e) {
|
|
337
|
-
|
|
268
|
+
z(e, this._config);
|
|
338
269
|
}
|
|
339
270
|
/**
|
|
340
271
|
* Array of grouped slice ids for the pie chart.
|
|
@@ -349,63 +280,63 @@ class r extends z {
|
|
|
349
280
|
* Slice grouping configuration for the pie chart.
|
|
350
281
|
*/
|
|
351
282
|
get sliceGrouping() {
|
|
352
|
-
return
|
|
283
|
+
return $e(this._config);
|
|
353
284
|
}
|
|
354
285
|
set sliceGrouping(e) {
|
|
355
|
-
|
|
286
|
+
A(e, this._config);
|
|
356
287
|
}
|
|
357
288
|
/**
|
|
358
289
|
* Inner radius size for the pie chart.
|
|
359
290
|
*/
|
|
360
291
|
get innerRadiusSize() {
|
|
361
|
-
return
|
|
292
|
+
return ge(this._config) ?? 0;
|
|
362
293
|
}
|
|
363
294
|
set innerRadiusSize(e) {
|
|
364
|
-
|
|
295
|
+
pe(e, this._config);
|
|
365
296
|
}
|
|
366
297
|
/**
|
|
367
298
|
* Threshold below which slices will be grouped.
|
|
368
299
|
*/
|
|
369
300
|
get groupingThreshold() {
|
|
370
|
-
return
|
|
301
|
+
return G(this._config) ?? 0;
|
|
371
302
|
}
|
|
372
303
|
set groupingThreshold(e) {
|
|
373
|
-
|
|
304
|
+
et(e, this._config);
|
|
374
305
|
}
|
|
375
306
|
/**
|
|
376
307
|
* Character limit for the slice labels.
|
|
377
308
|
*/
|
|
378
309
|
get labelCharacterLimit() {
|
|
379
|
-
return
|
|
310
|
+
return de(this._config) ?? null;
|
|
380
311
|
}
|
|
381
312
|
set labelCharacterLimit(e) {
|
|
382
|
-
|
|
313
|
+
ue(e, this._config);
|
|
383
314
|
}
|
|
384
315
|
/**
|
|
385
316
|
* Number of decimal places to display in the slice values.
|
|
386
317
|
*/
|
|
387
318
|
get decimalPlaces() {
|
|
388
|
-
return
|
|
319
|
+
return we(this._config) ?? 1;
|
|
389
320
|
}
|
|
390
321
|
set decimalPlaces(e) {
|
|
391
|
-
|
|
322
|
+
Be(e, this._config);
|
|
392
323
|
}
|
|
393
324
|
/**
|
|
394
325
|
* Display type for the pie chart slices. Specifies whether to display the slices as a `percentage`, `value`, or `both`.
|
|
395
326
|
*/
|
|
396
327
|
get displayType() {
|
|
397
|
-
return
|
|
328
|
+
return Ne(this._config);
|
|
398
329
|
}
|
|
399
330
|
set displayType(e) {
|
|
400
|
-
|
|
331
|
+
Me(e, this._config);
|
|
401
332
|
}
|
|
402
333
|
// ---------------------------------------------------------------------------------------------
|
|
403
334
|
// #region Protected methods
|
|
404
335
|
// ---------------------------------------------------------------------------------------------
|
|
405
336
|
/** @private */
|
|
406
337
|
generateDefaultConfig() {
|
|
407
|
-
const e =
|
|
408
|
-
return e.series = [
|
|
338
|
+
const e = R(this.commonStrings);
|
|
339
|
+
return e.series = [j(this.commonStrings, B(this.layerInfo.layer).idField)], e;
|
|
409
340
|
}
|
|
410
341
|
// ---------------------------------------------------------------------------------------------
|
|
411
342
|
// #region Series Methods
|
|
@@ -416,7 +347,7 @@ class r extends z {
|
|
|
416
347
|
* @param sliceIndex - The index of the slice.
|
|
417
348
|
*/
|
|
418
349
|
getOriginalSliceName(e) {
|
|
419
|
-
return
|
|
350
|
+
return qe(e, this._config);
|
|
420
351
|
}
|
|
421
352
|
/**
|
|
422
353
|
* Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -424,10 +355,11 @@ class r extends z {
|
|
|
424
355
|
* @param sliceIndex - The index of the slice.
|
|
425
356
|
*/
|
|
426
357
|
getSliceName(e) {
|
|
427
|
-
return
|
|
358
|
+
return He(e, this._config);
|
|
428
359
|
}
|
|
429
|
-
setSliceName(e,
|
|
430
|
-
|
|
360
|
+
setSliceName(e, a) {
|
|
361
|
+
const o = this.getSliceId(a);
|
|
362
|
+
o !== void 0 && this._customizedSliceIds.push(o), Je(e, a, this._config);
|
|
431
363
|
}
|
|
432
364
|
/**
|
|
433
365
|
* Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -435,25 +367,26 @@ class r extends z {
|
|
|
435
367
|
* @param sliceIndex - The index of the slice.
|
|
436
368
|
*/
|
|
437
369
|
getSliceColor(e) {
|
|
438
|
-
return
|
|
370
|
+
return Qe(e, this._config);
|
|
439
371
|
}
|
|
440
|
-
setSliceColor(e,
|
|
441
|
-
|
|
372
|
+
setSliceColor(e, a) {
|
|
373
|
+
const o = this.getSliceId(a);
|
|
374
|
+
e !== void 0 && o !== void 0 && this._customizedSliceIds.push(o), Ue(e, a, this._config);
|
|
442
375
|
}
|
|
443
376
|
/**
|
|
444
377
|
* Order of the slice array by returning an array of slice ids
|
|
445
378
|
*/
|
|
446
379
|
get orderOfSlices() {
|
|
447
|
-
return
|
|
380
|
+
return Ze(this._config);
|
|
448
381
|
}
|
|
449
382
|
set orderOfSlices(e) {
|
|
450
|
-
e !== void 0 &&
|
|
383
|
+
e !== void 0 && F(e, this._config);
|
|
451
384
|
}
|
|
452
|
-
moveSeries(e,
|
|
385
|
+
moveSeries(e, a) {
|
|
453
386
|
const o = this.orderOfSlices;
|
|
454
387
|
if (o !== void 0) {
|
|
455
388
|
const [l] = o.splice(e, 1);
|
|
456
|
-
o.splice(
|
|
389
|
+
o.splice(a, 0, l), F(o, this._config);
|
|
457
390
|
}
|
|
458
391
|
}
|
|
459
392
|
/**
|
|
@@ -462,7 +395,7 @@ class r extends z {
|
|
|
462
395
|
* @param sliceIndex - The index of the slice.
|
|
463
396
|
*/
|
|
464
397
|
getSliceId(e) {
|
|
465
|
-
return
|
|
398
|
+
return st(e, this._config);
|
|
466
399
|
}
|
|
467
400
|
/**
|
|
468
401
|
* Gets the slice index for a given slice id. If the `sliceId` is not found, this function will return `undefined`.
|
|
@@ -470,71 +403,69 @@ class r extends z {
|
|
|
470
403
|
* @param sliceId - The id of the slice.
|
|
471
404
|
*/
|
|
472
405
|
getSliceIndex(e) {
|
|
473
|
-
return
|
|
406
|
+
return rt(e, this._config);
|
|
474
407
|
}
|
|
475
408
|
/**
|
|
476
409
|
* Gets the length of the slices array.
|
|
477
410
|
*/
|
|
478
411
|
getSlicesLength() {
|
|
479
|
-
return
|
|
412
|
+
return at(this._config);
|
|
480
413
|
}
|
|
481
414
|
resetSlices() {
|
|
482
|
-
|
|
415
|
+
this._customizedSliceIds = [], it(this._config);
|
|
483
416
|
}
|
|
484
417
|
/**
|
|
485
418
|
* Returns whether the series styling is able to be reset.
|
|
486
419
|
*/
|
|
487
420
|
resetAvailable() {
|
|
488
421
|
const e = !this.colorMatch;
|
|
489
|
-
let
|
|
422
|
+
let a = !1;
|
|
490
423
|
const o = this.slices?.length ?? 0;
|
|
491
424
|
for (let l = 0; l < o; l += 1) {
|
|
492
|
-
const
|
|
493
|
-
if (
|
|
494
|
-
|
|
425
|
+
const c = this.getOriginalSliceName(l), d = this.getSliceName(l), S = this._mode === u.Fields ? K(this.layerInfo?.layerFieldsInfo, c?.toString()) : c;
|
|
426
|
+
if (S !== void 0 && S?.toString() !== d?.toString()) {
|
|
427
|
+
a = !0;
|
|
495
428
|
break;
|
|
496
429
|
}
|
|
497
430
|
}
|
|
498
|
-
return this.sliceGrouping?.originalLabel !== void 0 && this.sliceGrouping?.label !== this.sliceGrouping.originalLabel && (
|
|
431
|
+
return this.sliceGrouping?.originalLabel !== void 0 && this.sliceGrouping?.label !== this.sliceGrouping.originalLabel && (a = !0), e || a;
|
|
499
432
|
}
|
|
500
433
|
/**
|
|
501
434
|
* Visibility of the ticks.
|
|
502
435
|
*/
|
|
503
436
|
get ticksVisibility() {
|
|
504
|
-
return
|
|
437
|
+
return je(this._config);
|
|
505
438
|
}
|
|
506
439
|
set ticksVisibility(e) {
|
|
507
|
-
|
|
440
|
+
Ke(e, this._config);
|
|
508
441
|
}
|
|
509
442
|
/**
|
|
510
443
|
* Start angle of the pie chart.
|
|
511
444
|
*/
|
|
512
445
|
get startAngle() {
|
|
513
|
-
return
|
|
446
|
+
return M(this._config);
|
|
514
447
|
}
|
|
515
448
|
set startAngle(e) {
|
|
516
|
-
|
|
449
|
+
he(e, this._config);
|
|
517
450
|
}
|
|
518
451
|
/**
|
|
519
452
|
* End angle of the pie chart.
|
|
520
453
|
*/
|
|
521
454
|
get endAngle() {
|
|
522
|
-
return
|
|
455
|
+
return M(this._config);
|
|
523
456
|
}
|
|
524
457
|
set endAngle(e) {
|
|
525
|
-
|
|
458
|
+
fe(e, this._config);
|
|
526
459
|
}
|
|
527
460
|
/**
|
|
528
461
|
* Whether to display the category on the data label.
|
|
529
462
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
530
463
|
*/
|
|
531
464
|
get displayCategoryOnDataLabel() {
|
|
532
|
-
return
|
|
465
|
+
return me(this._config);
|
|
533
466
|
}
|
|
534
467
|
set displayCategoryOnDataLabel(e) {
|
|
535
|
-
this.
|
|
536
|
-
this._config.series[0].displayCategoryOnDataLabel = e, this.emitConfigUpdate("displayCategoryOnDataLabel");
|
|
537
|
-
});
|
|
468
|
+
this._config.series[0].displayCategoryOnDataLabel = e;
|
|
538
469
|
}
|
|
539
470
|
/**
|
|
540
471
|
* Display category value on tooltip setting from the chart config.
|
|
@@ -542,7 +473,7 @@ class r extends z {
|
|
|
542
473
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
543
474
|
*/
|
|
544
475
|
get displayCategoryValueOnTooltip() {
|
|
545
|
-
return
|
|
476
|
+
return ye(this._config);
|
|
546
477
|
}
|
|
547
478
|
set displayCategoryValueOnTooltip(e) {
|
|
548
479
|
this._config.series[0].displayCategoryOnTooltip = e;
|
|
@@ -552,12 +483,10 @@ class r extends z {
|
|
|
552
483
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
553
484
|
*/
|
|
554
485
|
get displayNumericValueOnDataLabel() {
|
|
555
|
-
return
|
|
486
|
+
return _e(this._config);
|
|
556
487
|
}
|
|
557
488
|
set displayNumericValueOnDataLabel(e) {
|
|
558
|
-
this.
|
|
559
|
-
this._config.series[0].displayNumericValueOnDataLabel = e, this.emitConfigUpdate("displayNumericValueOnDataLabel");
|
|
560
|
-
});
|
|
489
|
+
this._config.series[0].displayNumericValueOnDataLabel = e;
|
|
561
490
|
}
|
|
562
491
|
/**
|
|
563
492
|
* Whether to display the percentage on the data label.
|
|
@@ -565,12 +494,10 @@ class r extends z {
|
|
|
565
494
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
566
495
|
*/
|
|
567
496
|
get displayPercentageOnDataLabel() {
|
|
568
|
-
return
|
|
497
|
+
return Se(this._config);
|
|
569
498
|
}
|
|
570
499
|
set displayPercentageOnDataLabel(e) {
|
|
571
|
-
this.
|
|
572
|
-
this._config.series[0].displayPercentageOnDataLabel = e, this.emitConfigUpdate("displayPercentageOnDataLabel");
|
|
573
|
-
});
|
|
500
|
+
this._config.series[0].displayPercentageOnDataLabel = e;
|
|
574
501
|
}
|
|
575
502
|
/**
|
|
576
503
|
* Display numeric value on tooltip setting from the chart config.
|
|
@@ -578,7 +505,7 @@ class r extends z {
|
|
|
578
505
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
579
506
|
*/
|
|
580
507
|
get displayNumericValueOnTooltip() {
|
|
581
|
-
return
|
|
508
|
+
return be(this._config);
|
|
582
509
|
}
|
|
583
510
|
set displayNumericValueOnTooltip(e) {
|
|
584
511
|
this._config.series[0].displayNumericValueOnTooltip = e;
|
|
@@ -589,28 +516,28 @@ class r extends z {
|
|
|
589
516
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
590
517
|
*/
|
|
591
518
|
get displayPercentageOnTooltip() {
|
|
592
|
-
return
|
|
519
|
+
return Le(this._config);
|
|
593
520
|
}
|
|
594
521
|
set displayPercentageOnTooltip(e) {
|
|
595
|
-
|
|
522
|
+
Oe(e, this._config);
|
|
596
523
|
}
|
|
597
524
|
/**
|
|
598
525
|
* Prefix of the values of the slices.
|
|
599
526
|
*/
|
|
600
527
|
get valuePrefix() {
|
|
601
|
-
return
|
|
528
|
+
return De(this._config);
|
|
602
529
|
}
|
|
603
530
|
set valuePrefix(e) {
|
|
604
|
-
|
|
531
|
+
Ce(e, this._config);
|
|
605
532
|
}
|
|
606
533
|
/**
|
|
607
534
|
* Suffix of the values of the slice.
|
|
608
535
|
*/
|
|
609
536
|
get valueSuffix() {
|
|
610
|
-
return
|
|
537
|
+
return ve(this._config);
|
|
611
538
|
}
|
|
612
539
|
set valueSuffix(e) {
|
|
613
|
-
|
|
540
|
+
Pe(e, this._config);
|
|
614
541
|
}
|
|
615
542
|
/**
|
|
616
543
|
* Prefix of the percentages of the slices.
|
|
@@ -619,52 +546,144 @@ class r extends z {
|
|
|
619
546
|
return Ie(this._config);
|
|
620
547
|
}
|
|
621
548
|
set percentagePrefix(e) {
|
|
622
|
-
|
|
549
|
+
Te(e, this._config);
|
|
623
550
|
}
|
|
624
551
|
/**
|
|
625
552
|
* Suffix of the percentages of the slices.
|
|
626
553
|
*/
|
|
627
554
|
get percentageSuffix() {
|
|
628
|
-
return
|
|
555
|
+
return Ve(this._config);
|
|
629
556
|
}
|
|
630
557
|
set percentageSuffix(e) {
|
|
631
|
-
|
|
558
|
+
xe(e, this._config);
|
|
632
559
|
}
|
|
633
560
|
/**
|
|
634
561
|
* Offset for the data labels.
|
|
635
562
|
*/
|
|
636
563
|
get dataLabelsOffset() {
|
|
637
|
-
return
|
|
564
|
+
return Ge(this._config);
|
|
638
565
|
}
|
|
639
566
|
set dataLabelsOffset(e) {
|
|
640
|
-
|
|
567
|
+
ze(e, this._config);
|
|
641
568
|
}
|
|
642
569
|
/**
|
|
643
570
|
* Align the data labels on the left or right side of the chart instead of the default position around the chart.
|
|
644
571
|
*/
|
|
645
572
|
get alignDataLabels() {
|
|
646
|
-
return
|
|
573
|
+
return Fe(this._config);
|
|
647
574
|
}
|
|
648
575
|
set alignDataLabels(e) {
|
|
649
|
-
|
|
576
|
+
We(e, this._config);
|
|
650
577
|
}
|
|
651
578
|
/**
|
|
652
579
|
* Setting for placing the data labels inside of the slices.
|
|
653
580
|
*/
|
|
654
581
|
get dataLabelsInside() {
|
|
655
|
-
return
|
|
582
|
+
return ke(this._config);
|
|
656
583
|
}
|
|
657
584
|
set dataLabelsInside(e) {
|
|
658
|
-
|
|
585
|
+
Ae(e, this._config);
|
|
659
586
|
}
|
|
660
587
|
/**
|
|
661
588
|
* Optimize data labels overlapping setting for the pie chart.
|
|
662
589
|
*/
|
|
663
590
|
get optimizeDataLabelsOverlapping() {
|
|
664
|
-
return
|
|
591
|
+
return Ee(this._config);
|
|
665
592
|
}
|
|
666
593
|
set optimizeDataLabelsOverlapping(e) {
|
|
667
|
-
|
|
594
|
+
Re(e, this._config);
|
|
595
|
+
}
|
|
596
|
+
// ---------------------------------------------------------------------------------------------
|
|
597
|
+
// #region Legend Props
|
|
598
|
+
// ---------------------------------------------------------------------------------------------
|
|
599
|
+
/**
|
|
600
|
+
* Whether to display the numeric value on legend items.
|
|
601
|
+
*/
|
|
602
|
+
get displayNumericValueOnLegendItems() {
|
|
603
|
+
return C(this._config);
|
|
604
|
+
}
|
|
605
|
+
set displayNumericValueOnLegendItems(e) {
|
|
606
|
+
v(e, this._config);
|
|
607
|
+
}
|
|
608
|
+
/**
|
|
609
|
+
* Whether to display the percentage on legend items.
|
|
610
|
+
*/
|
|
611
|
+
get displayPercentageOnLegendItems() {
|
|
612
|
+
return T(this._config);
|
|
613
|
+
}
|
|
614
|
+
set displayPercentageOnLegendItems(e) {
|
|
615
|
+
V(e, this._config);
|
|
616
|
+
}
|
|
617
|
+
/**
|
|
618
|
+
* Whether to display the category on legend items.
|
|
619
|
+
*/
|
|
620
|
+
get displayCategoryOnLegendItems() {
|
|
621
|
+
return P(this._config);
|
|
622
|
+
}
|
|
623
|
+
set displayCategoryOnLegendItems(e) {
|
|
624
|
+
I(e, this._config);
|
|
625
|
+
}
|
|
626
|
+
/**
|
|
627
|
+
* Maximum width in pixels for legend item labels.
|
|
628
|
+
*/
|
|
629
|
+
get labelMaxWidth() {
|
|
630
|
+
return x(this._config);
|
|
631
|
+
}
|
|
632
|
+
set labelMaxWidth(e) {
|
|
633
|
+
N(e, this._config);
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Maximum width in pixels for legend value labels.
|
|
637
|
+
*/
|
|
638
|
+
get valueLabelMaxWidth() {
|
|
639
|
+
return ne(this._config);
|
|
640
|
+
}
|
|
641
|
+
set valueLabelMaxWidth(e) {
|
|
642
|
+
ce(e, this._config);
|
|
643
|
+
}
|
|
644
|
+
/**
|
|
645
|
+
* Gets the setting for displaying numerical values on legend items.
|
|
646
|
+
*
|
|
647
|
+
* @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.
|
|
648
|
+
*/
|
|
649
|
+
getDisplayNumericValue() {
|
|
650
|
+
return C(this._config);
|
|
651
|
+
}
|
|
652
|
+
setDisplayNumericValue(e) {
|
|
653
|
+
v(e, this._config);
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Gets the setting for displaying percentages on legend items.
|
|
657
|
+
*
|
|
658
|
+
* @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.
|
|
659
|
+
*/
|
|
660
|
+
getDisplayPercentage() {
|
|
661
|
+
return T(this._config);
|
|
662
|
+
}
|
|
663
|
+
setDisplayPercentage(e) {
|
|
664
|
+
V(e, this._config);
|
|
665
|
+
}
|
|
666
|
+
/**
|
|
667
|
+
* Gets the maximum width in pixels for legend item labels.
|
|
668
|
+
*
|
|
669
|
+
* @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.
|
|
670
|
+
*/
|
|
671
|
+
getLabelMaxWidth() {
|
|
672
|
+
return x(this._config);
|
|
673
|
+
}
|
|
674
|
+
setLabelMaxWidth(e) {
|
|
675
|
+
N(e, this._config);
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Whether to display the category in the legend.
|
|
679
|
+
*
|
|
680
|
+
* @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.
|
|
681
|
+
*/
|
|
682
|
+
get displayCategory() {
|
|
683
|
+
return P(this._config);
|
|
684
|
+
}
|
|
685
|
+
set displayCategory(e) {
|
|
686
|
+
I(e, this._config);
|
|
668
687
|
}
|
|
669
688
|
// ---------------------------------------------------------------------------------------------
|
|
670
689
|
// #region General Props
|
|
@@ -673,7 +692,7 @@ class r extends z {
|
|
|
673
692
|
* Generate the proper chart title given the current config.
|
|
674
693
|
*/
|
|
675
694
|
generateChartTitle() {
|
|
676
|
-
return
|
|
695
|
+
return oe({
|
|
677
696
|
config: this._config,
|
|
678
697
|
layerInfo: this.layerInfo,
|
|
679
698
|
commonStrings: this.commonStrings,
|
|
@@ -681,119 +700,155 @@ class r extends z {
|
|
|
681
700
|
});
|
|
682
701
|
}
|
|
683
702
|
}
|
|
684
|
-
|
|
703
|
+
r([
|
|
704
|
+
s
|
|
705
|
+
], i.prototype, "category");
|
|
706
|
+
r([
|
|
707
|
+
s
|
|
708
|
+
], i.prototype, "numericFields");
|
|
709
|
+
r([
|
|
710
|
+
s
|
|
711
|
+
], i.prototype, "aggregationType");
|
|
712
|
+
r([
|
|
713
|
+
s
|
|
714
|
+
], i.prototype, "setSortOrder");
|
|
715
|
+
r([
|
|
716
|
+
s
|
|
717
|
+
], i.prototype, "orderByList");
|
|
718
|
+
r([
|
|
719
|
+
s
|
|
720
|
+
], i.prototype, "mode");
|
|
721
|
+
r([
|
|
722
|
+
s
|
|
723
|
+
], i.prototype, "moveCustomSortValuesInOrderByList");
|
|
724
|
+
r([
|
|
725
|
+
s
|
|
726
|
+
], i.prototype, "ticksSymbol");
|
|
727
|
+
r([
|
|
728
|
+
s
|
|
729
|
+
], i.prototype, "slices");
|
|
730
|
+
r([
|
|
731
|
+
s
|
|
732
|
+
], i.prototype, "groupedSliceIds");
|
|
733
|
+
r([
|
|
734
|
+
s
|
|
735
|
+
], i.prototype, "sliceGrouping");
|
|
736
|
+
r([
|
|
737
|
+
s
|
|
738
|
+
], i.prototype, "innerRadiusSize");
|
|
739
|
+
r([
|
|
685
740
|
s
|
|
686
|
-
],
|
|
687
|
-
|
|
741
|
+
], i.prototype, "groupingThreshold");
|
|
742
|
+
r([
|
|
688
743
|
s
|
|
689
|
-
],
|
|
690
|
-
|
|
744
|
+
], i.prototype, "labelCharacterLimit");
|
|
745
|
+
r([
|
|
691
746
|
s
|
|
692
|
-
],
|
|
693
|
-
|
|
747
|
+
], i.prototype, "decimalPlaces");
|
|
748
|
+
r([
|
|
694
749
|
s
|
|
695
|
-
],
|
|
696
|
-
|
|
750
|
+
], i.prototype, "displayType");
|
|
751
|
+
r([
|
|
697
752
|
s
|
|
698
|
-
],
|
|
699
|
-
|
|
753
|
+
], i.prototype, "setSliceName");
|
|
754
|
+
r([
|
|
700
755
|
s
|
|
701
|
-
],
|
|
702
|
-
|
|
756
|
+
], i.prototype, "setSliceColor");
|
|
757
|
+
r([
|
|
703
758
|
s
|
|
704
|
-
],
|
|
705
|
-
|
|
759
|
+
], i.prototype, "orderOfSlices");
|
|
760
|
+
r([
|
|
706
761
|
s
|
|
707
|
-
],
|
|
708
|
-
|
|
762
|
+
], i.prototype, "moveSeries");
|
|
763
|
+
r([
|
|
709
764
|
s
|
|
710
|
-
],
|
|
711
|
-
|
|
765
|
+
], i.prototype, "resetSlices");
|
|
766
|
+
r([
|
|
712
767
|
s
|
|
713
|
-
],
|
|
714
|
-
|
|
768
|
+
], i.prototype, "ticksVisibility");
|
|
769
|
+
r([
|
|
715
770
|
s
|
|
716
|
-
],
|
|
717
|
-
|
|
771
|
+
], i.prototype, "startAngle");
|
|
772
|
+
r([
|
|
718
773
|
s
|
|
719
|
-
],
|
|
720
|
-
|
|
774
|
+
], i.prototype, "endAngle");
|
|
775
|
+
r([
|
|
721
776
|
s
|
|
722
|
-
],
|
|
723
|
-
|
|
777
|
+
], i.prototype, "displayCategoryOnDataLabel");
|
|
778
|
+
r([
|
|
724
779
|
s
|
|
725
|
-
],
|
|
726
|
-
|
|
780
|
+
], i.prototype, "displayCategoryValueOnTooltip");
|
|
781
|
+
r([
|
|
727
782
|
s
|
|
728
|
-
],
|
|
729
|
-
|
|
783
|
+
], i.prototype, "displayNumericValueOnDataLabel");
|
|
784
|
+
r([
|
|
730
785
|
s
|
|
731
|
-
],
|
|
732
|
-
|
|
786
|
+
], i.prototype, "displayPercentageOnDataLabel");
|
|
787
|
+
r([
|
|
733
788
|
s
|
|
734
|
-
],
|
|
735
|
-
|
|
789
|
+
], i.prototype, "displayNumericValueOnTooltip");
|
|
790
|
+
r([
|
|
736
791
|
s
|
|
737
|
-
],
|
|
738
|
-
|
|
792
|
+
], i.prototype, "displayPercentageOnTooltip");
|
|
793
|
+
r([
|
|
739
794
|
s
|
|
740
|
-
],
|
|
741
|
-
|
|
795
|
+
], i.prototype, "valuePrefix");
|
|
796
|
+
r([
|
|
742
797
|
s
|
|
743
|
-
],
|
|
744
|
-
|
|
798
|
+
], i.prototype, "valueSuffix");
|
|
799
|
+
r([
|
|
745
800
|
s
|
|
746
|
-
],
|
|
747
|
-
|
|
801
|
+
], i.prototype, "percentagePrefix");
|
|
802
|
+
r([
|
|
748
803
|
s
|
|
749
|
-
],
|
|
750
|
-
|
|
804
|
+
], i.prototype, "percentageSuffix");
|
|
805
|
+
r([
|
|
751
806
|
s
|
|
752
|
-
],
|
|
753
|
-
|
|
807
|
+
], i.prototype, "dataLabelsOffset");
|
|
808
|
+
r([
|
|
754
809
|
s
|
|
755
|
-
],
|
|
756
|
-
|
|
810
|
+
], i.prototype, "alignDataLabels");
|
|
811
|
+
r([
|
|
757
812
|
s
|
|
758
|
-
],
|
|
759
|
-
|
|
813
|
+
], i.prototype, "dataLabelsInside");
|
|
814
|
+
r([
|
|
760
815
|
s
|
|
761
|
-
],
|
|
762
|
-
|
|
816
|
+
], i.prototype, "optimizeDataLabelsOverlapping");
|
|
817
|
+
r([
|
|
763
818
|
s
|
|
764
|
-
],
|
|
765
|
-
|
|
819
|
+
], i.prototype, "displayNumericValueOnLegendItems");
|
|
820
|
+
r([
|
|
766
821
|
s
|
|
767
|
-
],
|
|
768
|
-
|
|
822
|
+
], i.prototype, "displayPercentageOnLegendItems");
|
|
823
|
+
r([
|
|
769
824
|
s
|
|
770
|
-
],
|
|
771
|
-
|
|
825
|
+
], i.prototype, "displayCategoryOnLegendItems");
|
|
826
|
+
r([
|
|
772
827
|
s
|
|
773
|
-
],
|
|
774
|
-
|
|
828
|
+
], i.prototype, "labelMaxWidth");
|
|
829
|
+
r([
|
|
775
830
|
s
|
|
776
|
-
],
|
|
777
|
-
|
|
831
|
+
], i.prototype, "valueLabelMaxWidth");
|
|
832
|
+
r([
|
|
778
833
|
s
|
|
779
|
-
],
|
|
780
|
-
|
|
834
|
+
], i.prototype, "setDisplayNumericValue");
|
|
835
|
+
r([
|
|
781
836
|
s
|
|
782
|
-
],
|
|
783
|
-
|
|
837
|
+
], i.prototype, "setDisplayPercentage");
|
|
838
|
+
r([
|
|
784
839
|
s
|
|
785
|
-
],
|
|
786
|
-
|
|
840
|
+
], i.prototype, "setLabelMaxWidth");
|
|
841
|
+
r([
|
|
787
842
|
s
|
|
788
|
-
],
|
|
789
|
-
const
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
843
|
+
], i.prototype, "displayCategory");
|
|
844
|
+
const nt = [
|
|
845
|
+
Y,
|
|
846
|
+
q,
|
|
847
|
+
H,
|
|
848
|
+
J,
|
|
849
|
+
Q
|
|
795
850
|
];
|
|
796
|
-
|
|
851
|
+
$(i, nt);
|
|
797
852
|
export {
|
|
798
|
-
|
|
853
|
+
i as PieChartModel
|
|
799
854
|
};
|