@arcgis/charts-components 5.2.0-next.71 → 5.2.0-next.73
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/{4M4SAEH4.js → 27T5D3K4.js} +1 -1
- package/dist/cdn/{QSGJ3MAT.js → 2EX6L3UK.js} +1 -1
- package/dist/cdn/{54VUGIAU.js → 2NQ6MELS.js} +1 -1
- package/dist/cdn/{VHW4OAKG.js → 2TE3YZBW.js} +3 -3
- package/dist/cdn/{7XWR4EVM.js → 3K3AZU3H.js} +1 -1
- package/dist/cdn/{FJGG2VVZ.js → 3P2SRGLO.js} +1 -1
- package/dist/cdn/{5NVOWYWZ.js → 3VM4DOEZ.js} +1 -1
- package/dist/cdn/{IODRBLGT.js → 4BRBVLD3.js} +1 -1
- package/dist/cdn/{2SLJKRSD.js → 4R7PF5KX.js} +1 -1
- package/dist/cdn/{SSQPRUUN.js → 54JCSWKS.js} +1 -1
- package/dist/cdn/{IO6A77U4.js → 5LWG4OGB.js} +1 -1
- package/dist/cdn/{I5DMUUEL.js → 5ROKZRVW.js} +1 -1
- package/dist/cdn/{25MA553Z.js → 5TF4XWIC.js} +1 -1
- package/dist/cdn/{OAXHS4LE.js → 5X7Q3I6R.js} +1 -1
- package/dist/cdn/{3PDVKKKZ.js → 6F6RXEE7.js} +1 -1
- package/dist/cdn/{SL7NRRSJ.js → 6O3HF44R.js} +1 -1
- package/dist/cdn/{QWCNHH6G.js → 6QQTUFRP.js} +1 -1
- package/dist/cdn/{WDUTZ6EO.js → 76SBKWBM.js} +1 -1
- package/dist/cdn/{VUHFYOLC.js → 7NQYTB6K.js} +1 -1
- package/dist/cdn/{4DC4ARHU.js → 7O3T7HG5.js} +1 -1
- package/dist/cdn/{6TJIHHQF.js → 7VJRGF4E.js} +1 -1
- package/dist/cdn/{GIH3U7YP.js → A7ISZ5RM.js} +1 -1
- package/dist/cdn/{VNYRZDY5.js → BBWFFVQ7.js} +1 -1
- package/dist/cdn/{RCZLTGQI.js → BE3D4CYZ.js} +1 -1
- package/dist/cdn/{BZ6FUIQF.js → BRWJSQNF.js} +1 -1
- package/dist/cdn/{OTFA727N.js → BTKWU3YE.js} +1 -1
- package/dist/cdn/{PTUMQCFF.js → C6U7HPQE.js} +1 -1
- package/dist/cdn/{DT5BOM5F.js → CY3UKUIP.js} +1 -1
- package/dist/cdn/{2K4MIK4T.js → D2AGAJK7.js} +1 -1
- package/dist/cdn/{LIDWAYQH.js → D43DR25R.js} +28 -28
- package/dist/cdn/{4JWIBRGO.js → D6MRUKIA.js} +1 -1
- package/dist/cdn/{4IO3VF3L.js → DQSPIG3P.js} +1 -1
- package/dist/cdn/DY2DE7FX.js +2 -0
- package/dist/cdn/{3B6QE7OV.js → E4ZOL5K5.js} +1 -1
- package/dist/cdn/{QT64PB4L.js → EUNBXPUS.js} +1 -1
- package/dist/cdn/{ROG3HFDT.js → EUQPESOK.js} +1 -1
- package/dist/cdn/{K6F2LRKI.js → F3ZGHFA6.js} +1 -1
- package/dist/cdn/{MAC4MPUA.js → FLMUOC55.js} +1 -1
- package/dist/cdn/{WM6SCZHN.js → HOQNWF7T.js} +1 -1
- package/dist/cdn/{PIEX577B.js → HS52MRKJ.js} +1 -1
- package/dist/cdn/{QC3FMJKL.js → HXC5LKJW.js} +1 -1
- package/dist/cdn/{IK4FPUFJ.js → IMG5US47.js} +1 -1
- package/dist/cdn/{7KNUJIOC.js → IXBLQSE6.js} +1 -1
- package/dist/cdn/{V2FHLWYC.js → JYV4I2GQ.js} +1 -1
- package/dist/cdn/{3FM3YR57.js → KBROJDYY.js} +1 -1
- package/dist/cdn/{NUHPR7BM.js → KMX777EF.js} +1 -1
- package/dist/cdn/{BQORJ3LU.js → KN6WLM2H.js} +1 -1
- package/dist/cdn/{WPLHZAZ3.js → LKNQUAR2.js} +1 -1
- package/dist/cdn/{OE7Q4MG5.js → LMOH2EKW.js} +1 -1
- package/dist/cdn/{NF4EBNLN.js → LP5TTMQR.js} +1 -1
- package/dist/cdn/{OE7FIKPS.js → M2TX43TJ.js} +1 -1
- package/dist/cdn/{XH57C72H.js → MQJAK2SJ.js} +1 -1
- package/dist/cdn/{L6DFXTSQ.js → NAUEEC5O.js} +1 -1
- package/dist/cdn/{F5AR3N3Z.js → NLIYZT4J.js} +1 -1
- package/dist/cdn/{LAPBDR32.js → NPH57JQ6.js} +1 -1
- package/dist/cdn/{JYLEN3VQ.js → NQ5JEX36.js} +1 -1
- package/dist/cdn/{MOG5ZVLX.js → NVINMCGT.js} +1 -1
- package/dist/cdn/{BAFCVCT4.js → OFJFM4B4.js} +1 -1
- package/dist/cdn/{BNNBHYRP.js → OQZDT6CL.js} +1 -1
- package/dist/cdn/{3XB2RWHK.js → OUOCOHTG.js} +1 -1
- package/dist/cdn/{EJWHEBKW.js → OWJQEWK7.js} +1 -1
- package/dist/cdn/{JAQYU6KP.js → P6YFC7LU.js} +1 -1
- package/dist/cdn/{7REEJ3OW.js → PE3I5BB4.js} +1 -1
- package/dist/cdn/{5GZDXWTQ.js → PZL4HGLN.js} +1 -1
- package/dist/cdn/{CVFKL3S2.js → Q2GJNRU2.js} +1 -1
- package/dist/cdn/{O2BQ374Y.js → Q7VV6RA4.js} +1 -1
- package/dist/cdn/{3WOYVXSZ.js → R2GPX6DA.js} +1 -1
- package/dist/cdn/{VAF3UIVA.js → RHSCKBJG.js} +1 -1
- package/dist/cdn/RSLGXN7X.js +2 -0
- package/dist/cdn/{P6DBPQZO.js → RXSNPRN7.js} +1 -1
- package/dist/cdn/{ZK5Z6BOX.js → S3LRWKAX.js} +1 -1
- package/dist/cdn/{3V4ZETXH.js → S3QIWVN6.js} +1 -1
- package/dist/cdn/{LPYRKK25.js → SJ7UC3JM.js} +1 -1
- package/dist/cdn/{NP24UZGI.js → SM5PY54Q.js} +1 -1
- package/dist/cdn/{AVE3KXWQ.js → SPAWFHXG.js} +1 -1
- package/dist/cdn/{RCLHFY6O.js → TBAK2RCH.js} +1 -1
- package/dist/cdn/{33JR3GH6.js → TSORVNA6.js} +1 -1
- package/dist/cdn/{27RKQQPS.js → TTMIUSJW.js} +1 -1
- package/dist/cdn/{QAXXYD6N.js → UFCXIYYK.js} +1 -1
- package/dist/cdn/{4ODTQZJK.js → UUKKQ3K7.js} +1 -1
- package/dist/cdn/VMN2UXWS.js +3 -0
- package/dist/cdn/{GKEW5JYD.js → VZOL2AD6.js} +1 -1
- package/dist/cdn/{E7QFC64H.js → W4F6FFOT.js} +1 -1
- package/dist/cdn/{4JUR3VIE.js → XFO5L4DP.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-model.js +37 -37
- package/dist/chunks/class-breaks.js +66 -66
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/data.js +15 -15
- package/dist/chunks/index2.js +3184 -3143
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
- package/dist/chunks/pie-chart-model.js +385 -334
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +50 -50
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/type-guards2.js +15 -15
- package/dist/chunks/utils.js +10 -10
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/chunks/x-bounds.js +5 -5
- package/dist/components/arcgis-chart/customElement.d.ts +11 -29
- package/dist/components/arcgis-chart/customElement.js +171 -166
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-guide/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +9 -9
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -18
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +4 -4
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +208 -207
- 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 +1 -0
- package/dist/utils/chart-config/converter/index.js +32 -32
- package/dist/utils/components/interfaces.d.ts +2 -0
- package/package.json +4 -4
- package/dist/cdn/CNI32IL3.js +0 -2
- package/dist/cdn/CRQK4CKK.js +0 -2
- package/dist/cdn/NAGOJPIX.js +0 -3
|
@@ -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
|
|
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
16
|
import { i as _ } from "./rest-js-object-literals.js";
|
|
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 ===
|
|
25
|
-
},
|
|
26
|
-
e.series[0]?.type ===
|
|
27
|
-
}
|
|
28
|
-
var de = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, b = (t, e, i, r) => {
|
|
29
|
-
for (var l = ue(e, i), n = t.length - 1, c; n >= 0; n--)
|
|
30
|
-
(c = t[n]) && (l = c(e, i, l) || l);
|
|
31
|
-
return l && de(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 ie(this._config);
|
|
41
|
-
}
|
|
42
|
-
setDisplayNumericValue(e) {
|
|
43
|
-
se(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 oe(this._config);
|
|
52
|
-
}
|
|
53
|
-
setDisplayPercentage(e) {
|
|
54
|
-
le(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 ne(this._config);
|
|
63
|
-
}
|
|
64
|
-
setLabelMaxWidth(e) {
|
|
65
|
-
ce(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 ge(this._config);
|
|
73
|
-
}
|
|
74
|
-
set valueLabelMaxWidth(e) {
|
|
75
|
-
pe(e, this._config), this.emitConfigUpdate("valueLabelMaxWidth");
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Whether to display the category in the legend.
|
|
79
|
-
*/
|
|
80
|
-
get displayCategory() {
|
|
81
|
-
return re(this._config);
|
|
82
|
-
}
|
|
83
|
-
set displayCategory(e) {
|
|
84
|
-
ae(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 fe = [x];
|
|
97
|
-
N(u, fe);
|
|
98
|
-
const he = (t) => t.series?.[0]?.innerRadius, ye = (t, e) => {
|
|
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
|
+
}, ne = (t) => t.legend?.valueLabelMaxWidth ?? 200, ce = (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
|
-
},
|
|
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:
|
|
125
|
-
displayPercentage:
|
|
53
|
+
displayNumericValue: a,
|
|
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
|
|
145
|
-
|
|
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 = {
|
|
146
75
|
type: _.SFS,
|
|
147
76
|
color: t,
|
|
148
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 =
|
|
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({
|
|
187
116
|
category: h(this._config),
|
|
188
|
-
numericFields:
|
|
117
|
+
numericFields: m(this._config),
|
|
189
118
|
fallbackMode: l
|
|
190
119
|
});
|
|
191
120
|
}
|
|
@@ -201,11 +130,11 @@ class a extends E {
|
|
|
201
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,31 +146,31 @@ class a extends E {
|
|
|
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 ?
|
|
152
|
+
typeof e == "string" && (e = [e]), (this.layerInfo !== void 0 ? U(this.layerInfo.layerFieldsInfo, e) : !0) ? (this._mode = y({
|
|
224
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
162
|
}), this._config.series[0].slices = this._config.series[0].slices?.filter(
|
|
234
|
-
(
|
|
235
|
-
), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))) :
|
|
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`");
|
|
236
165
|
}
|
|
237
166
|
/**
|
|
238
167
|
* Aggregation type for the pie chart.
|
|
239
168
|
*/
|
|
240
169
|
get aggregationType() {
|
|
241
|
-
return
|
|
170
|
+
return ie(this._config, this._mode);
|
|
242
171
|
}
|
|
243
172
|
set aggregationType(e) {
|
|
244
|
-
|
|
173
|
+
se({
|
|
245
174
|
newAggregationType: e,
|
|
246
175
|
config: this._config,
|
|
247
176
|
layerInfo: this.layerInfo,
|
|
@@ -253,13 +182,13 @@ class a extends E {
|
|
|
253
182
|
* Gets the sort order for the pie chart.
|
|
254
183
|
*/
|
|
255
184
|
getSortOrder() {
|
|
256
|
-
return
|
|
185
|
+
return re(this._config, this._mode);
|
|
257
186
|
}
|
|
258
|
-
setSortOrder(e,
|
|
259
|
-
|
|
187
|
+
setSortOrder(e, a) {
|
|
188
|
+
ae({
|
|
260
189
|
newSortOrderKind: e,
|
|
261
190
|
config: this._config,
|
|
262
|
-
orderByList:
|
|
191
|
+
orderByList: a
|
|
263
192
|
});
|
|
264
193
|
}
|
|
265
194
|
/**
|
|
@@ -271,10 +200,10 @@ class a extends E {
|
|
|
271
200
|
* ```
|
|
272
201
|
*/
|
|
273
202
|
get orderByList() {
|
|
274
|
-
return
|
|
203
|
+
return O(this._config, this._mode);
|
|
275
204
|
}
|
|
276
205
|
set orderByList(e) {
|
|
277
|
-
|
|
206
|
+
D({
|
|
278
207
|
values: e,
|
|
279
208
|
config: this._config,
|
|
280
209
|
mode: this._mode
|
|
@@ -297,19 +226,19 @@ class a extends E {
|
|
|
297
226
|
* Gets the list of the category values for the chart.
|
|
298
227
|
*/
|
|
299
228
|
async getCustomSortValues() {
|
|
300
|
-
const e = h(this._config),
|
|
301
|
-
let
|
|
302
|
-
return
|
|
229
|
+
const e = h(this._config), a = b(this._config.series);
|
|
230
|
+
let o = [];
|
|
231
|
+
return a === f.PieFromFields ? o = this.numericFields : e.trim() !== "" && a === f.PieFromCategory && (o = await Z({
|
|
303
232
|
category: e,
|
|
304
233
|
config: this._config,
|
|
305
234
|
layerInfo: this.layerInfo,
|
|
306
235
|
errorStrings: this.commonStrings.errorStrings
|
|
307
|
-
})),
|
|
236
|
+
})), o;
|
|
308
237
|
}
|
|
309
|
-
moveCustomSortValuesInOrderByList(e,
|
|
310
|
-
const
|
|
311
|
-
|
|
312
|
-
values:
|
|
238
|
+
moveCustomSortValuesInOrderByList(e, a) {
|
|
239
|
+
const o = O(this._config, this._mode), [l] = o.splice(e, 1);
|
|
240
|
+
o.splice(a, 0, l), D({
|
|
241
|
+
values: o,
|
|
313
242
|
config: this._config,
|
|
314
243
|
mode: this._mode
|
|
315
244
|
});
|
|
@@ -321,10 +250,10 @@ class a extends E {
|
|
|
321
250
|
* Ticks symbol connecting slices to labels.
|
|
322
251
|
*/
|
|
323
252
|
get ticksSymbol() {
|
|
324
|
-
return
|
|
253
|
+
return Xe(this._config);
|
|
325
254
|
}
|
|
326
255
|
set ticksSymbol(e) {
|
|
327
|
-
|
|
256
|
+
Ye(e, this._config);
|
|
328
257
|
}
|
|
329
258
|
// ---------------------------------------------------------------------------------------------
|
|
330
259
|
// #region Slices Props
|
|
@@ -333,10 +262,10 @@ class a extends E {
|
|
|
333
262
|
* Array of slices for the pie chart.
|
|
334
263
|
*/
|
|
335
264
|
get slices() {
|
|
336
|
-
return
|
|
265
|
+
return tt(this._config);
|
|
337
266
|
}
|
|
338
267
|
set slices(e) {
|
|
339
|
-
|
|
268
|
+
z(e, this._config);
|
|
340
269
|
}
|
|
341
270
|
/**
|
|
342
271
|
* Array of grouped slice ids for the pie chart.
|
|
@@ -351,63 +280,63 @@ class a extends E {
|
|
|
351
280
|
* Slice grouping configuration for the pie chart.
|
|
352
281
|
*/
|
|
353
282
|
get sliceGrouping() {
|
|
354
|
-
return
|
|
283
|
+
return $e(this._config);
|
|
355
284
|
}
|
|
356
285
|
set sliceGrouping(e) {
|
|
357
|
-
|
|
286
|
+
A(e, this._config);
|
|
358
287
|
}
|
|
359
288
|
/**
|
|
360
289
|
* Inner radius size for the pie chart.
|
|
361
290
|
*/
|
|
362
291
|
get innerRadiusSize() {
|
|
363
|
-
return
|
|
292
|
+
return ge(this._config) ?? 0;
|
|
364
293
|
}
|
|
365
294
|
set innerRadiusSize(e) {
|
|
366
|
-
|
|
295
|
+
pe(e, this._config);
|
|
367
296
|
}
|
|
368
297
|
/**
|
|
369
298
|
* Threshold below which slices will be grouped.
|
|
370
299
|
*/
|
|
371
300
|
get groupingThreshold() {
|
|
372
|
-
return
|
|
301
|
+
return G(this._config) ?? 0;
|
|
373
302
|
}
|
|
374
303
|
set groupingThreshold(e) {
|
|
375
|
-
|
|
304
|
+
et(e, this._config);
|
|
376
305
|
}
|
|
377
306
|
/**
|
|
378
307
|
* Character limit for the slice labels.
|
|
379
308
|
*/
|
|
380
309
|
get labelCharacterLimit() {
|
|
381
|
-
return
|
|
310
|
+
return de(this._config) ?? null;
|
|
382
311
|
}
|
|
383
312
|
set labelCharacterLimit(e) {
|
|
384
|
-
|
|
313
|
+
ue(e, this._config);
|
|
385
314
|
}
|
|
386
315
|
/**
|
|
387
316
|
* Number of decimal places to display in the slice values.
|
|
388
317
|
*/
|
|
389
318
|
get decimalPlaces() {
|
|
390
|
-
return
|
|
319
|
+
return we(this._config) ?? 1;
|
|
391
320
|
}
|
|
392
321
|
set decimalPlaces(e) {
|
|
393
|
-
|
|
322
|
+
Be(e, this._config);
|
|
394
323
|
}
|
|
395
324
|
/**
|
|
396
325
|
* Display type for the pie chart slices. Specifies whether to display the slices as a `percentage`, `value`, or `both`.
|
|
397
326
|
*/
|
|
398
327
|
get displayType() {
|
|
399
|
-
return
|
|
328
|
+
return Ne(this._config);
|
|
400
329
|
}
|
|
401
330
|
set displayType(e) {
|
|
402
|
-
|
|
331
|
+
Me(e, this._config);
|
|
403
332
|
}
|
|
404
333
|
// ---------------------------------------------------------------------------------------------
|
|
405
334
|
// #region Protected methods
|
|
406
335
|
// ---------------------------------------------------------------------------------------------
|
|
407
336
|
/** @private */
|
|
408
337
|
generateDefaultConfig() {
|
|
409
|
-
const e =
|
|
410
|
-
return e.series = [
|
|
338
|
+
const e = R(this.commonStrings);
|
|
339
|
+
return e.series = [j(this.commonStrings, B(this.layerInfo.layer).idField)], e;
|
|
411
340
|
}
|
|
412
341
|
// ---------------------------------------------------------------------------------------------
|
|
413
342
|
// #region Series Methods
|
|
@@ -418,7 +347,7 @@ class a extends E {
|
|
|
418
347
|
* @param sliceIndex - The index of the slice.
|
|
419
348
|
*/
|
|
420
349
|
getOriginalSliceName(e) {
|
|
421
|
-
return
|
|
350
|
+
return qe(e, this._config);
|
|
422
351
|
}
|
|
423
352
|
/**
|
|
424
353
|
* Gets the name of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -426,11 +355,11 @@ class a extends E {
|
|
|
426
355
|
* @param sliceIndex - The index of the slice.
|
|
427
356
|
*/
|
|
428
357
|
getSliceName(e) {
|
|
429
|
-
return
|
|
358
|
+
return He(e, this._config);
|
|
430
359
|
}
|
|
431
|
-
setSliceName(e,
|
|
432
|
-
const
|
|
433
|
-
|
|
360
|
+
setSliceName(e, a) {
|
|
361
|
+
const o = this.getSliceId(a);
|
|
362
|
+
o !== void 0 && this._customizedSliceIds.push(o), Je(e, a, this._config);
|
|
434
363
|
}
|
|
435
364
|
/**
|
|
436
365
|
* Gets the color of the slice based on the slice index. If the index is out of bounds, this function will return `undefined`.
|
|
@@ -438,26 +367,26 @@ class a extends E {
|
|
|
438
367
|
* @param sliceIndex - The index of the slice.
|
|
439
368
|
*/
|
|
440
369
|
getSliceColor(e) {
|
|
441
|
-
return
|
|
370
|
+
return Qe(e, this._config);
|
|
442
371
|
}
|
|
443
|
-
setSliceColor(e,
|
|
444
|
-
const
|
|
445
|
-
e !== void 0 &&
|
|
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);
|
|
446
375
|
}
|
|
447
376
|
/**
|
|
448
377
|
* Order of the slice array by returning an array of slice ids
|
|
449
378
|
*/
|
|
450
379
|
get orderOfSlices() {
|
|
451
|
-
return
|
|
380
|
+
return Ze(this._config);
|
|
452
381
|
}
|
|
453
382
|
set orderOfSlices(e) {
|
|
454
|
-
e !== void 0 &&
|
|
383
|
+
e !== void 0 && F(e, this._config);
|
|
455
384
|
}
|
|
456
|
-
moveSeries(e,
|
|
457
|
-
const
|
|
458
|
-
if (
|
|
459
|
-
const [l] =
|
|
460
|
-
|
|
385
|
+
moveSeries(e, a) {
|
|
386
|
+
const o = this.orderOfSlices;
|
|
387
|
+
if (o !== void 0) {
|
|
388
|
+
const [l] = o.splice(e, 1);
|
|
389
|
+
o.splice(a, 0, l), F(o, this._config);
|
|
461
390
|
}
|
|
462
391
|
}
|
|
463
392
|
/**
|
|
@@ -466,7 +395,7 @@ class a extends E {
|
|
|
466
395
|
* @param sliceIndex - The index of the slice.
|
|
467
396
|
*/
|
|
468
397
|
getSliceId(e) {
|
|
469
|
-
return
|
|
398
|
+
return st(e, this._config);
|
|
470
399
|
}
|
|
471
400
|
/**
|
|
472
401
|
* Gets the slice index for a given slice id. If the `sliceId` is not found, this function will return `undefined`.
|
|
@@ -474,71 +403,69 @@ class a extends E {
|
|
|
474
403
|
* @param sliceId - The id of the slice.
|
|
475
404
|
*/
|
|
476
405
|
getSliceIndex(e) {
|
|
477
|
-
return
|
|
406
|
+
return rt(e, this._config);
|
|
478
407
|
}
|
|
479
408
|
/**
|
|
480
409
|
* Gets the length of the slices array.
|
|
481
410
|
*/
|
|
482
411
|
getSlicesLength() {
|
|
483
|
-
return
|
|
412
|
+
return at(this._config);
|
|
484
413
|
}
|
|
485
414
|
resetSlices() {
|
|
486
|
-
this._customizedSliceIds = [],
|
|
415
|
+
this._customizedSliceIds = [], it(this._config);
|
|
487
416
|
}
|
|
488
417
|
/**
|
|
489
418
|
* Returns whether the series styling is able to be reset.
|
|
490
419
|
*/
|
|
491
420
|
resetAvailable() {
|
|
492
421
|
const e = !this.colorMatch;
|
|
493
|
-
let
|
|
494
|
-
const
|
|
495
|
-
for (let l = 0; l <
|
|
496
|
-
const
|
|
497
|
-
if (
|
|
498
|
-
|
|
422
|
+
let a = !1;
|
|
423
|
+
const o = this.slices?.length ?? 0;
|
|
424
|
+
for (let l = 0; l < o; l += 1) {
|
|
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;
|
|
499
428
|
break;
|
|
500
429
|
}
|
|
501
430
|
}
|
|
502
|
-
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;
|
|
503
432
|
}
|
|
504
433
|
/**
|
|
505
434
|
* Visibility of the ticks.
|
|
506
435
|
*/
|
|
507
436
|
get ticksVisibility() {
|
|
508
|
-
return
|
|
437
|
+
return je(this._config);
|
|
509
438
|
}
|
|
510
439
|
set ticksVisibility(e) {
|
|
511
|
-
|
|
440
|
+
Ke(e, this._config);
|
|
512
441
|
}
|
|
513
442
|
/**
|
|
514
443
|
* Start angle of the pie chart.
|
|
515
444
|
*/
|
|
516
445
|
get startAngle() {
|
|
517
|
-
return
|
|
446
|
+
return M(this._config);
|
|
518
447
|
}
|
|
519
448
|
set startAngle(e) {
|
|
520
|
-
|
|
449
|
+
he(e, this._config);
|
|
521
450
|
}
|
|
522
451
|
/**
|
|
523
452
|
* End angle of the pie chart.
|
|
524
453
|
*/
|
|
525
454
|
get endAngle() {
|
|
526
|
-
return
|
|
455
|
+
return M(this._config);
|
|
527
456
|
}
|
|
528
457
|
set endAngle(e) {
|
|
529
|
-
|
|
458
|
+
fe(e, this._config);
|
|
530
459
|
}
|
|
531
460
|
/**
|
|
532
461
|
* Whether to display the category on the data label.
|
|
533
462
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
534
463
|
*/
|
|
535
464
|
get displayCategoryOnDataLabel() {
|
|
536
|
-
return
|
|
465
|
+
return me(this._config);
|
|
537
466
|
}
|
|
538
467
|
set displayCategoryOnDataLabel(e) {
|
|
539
|
-
this.
|
|
540
|
-
this._config.series[0].displayCategoryOnDataLabel = e, this.emitConfigUpdate("displayCategoryOnDataLabel");
|
|
541
|
-
});
|
|
468
|
+
this._config.series[0].displayCategoryOnDataLabel = e;
|
|
542
469
|
}
|
|
543
470
|
/**
|
|
544
471
|
* Display category value on tooltip setting from the chart config.
|
|
@@ -546,7 +473,7 @@ class a extends E {
|
|
|
546
473
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
547
474
|
*/
|
|
548
475
|
get displayCategoryValueOnTooltip() {
|
|
549
|
-
return
|
|
476
|
+
return ye(this._config);
|
|
550
477
|
}
|
|
551
478
|
set displayCategoryValueOnTooltip(e) {
|
|
552
479
|
this._config.series[0].displayCategoryOnTooltip = e;
|
|
@@ -556,12 +483,10 @@ class a extends E {
|
|
|
556
483
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
557
484
|
*/
|
|
558
485
|
get displayNumericValueOnDataLabel() {
|
|
559
|
-
return
|
|
486
|
+
return _e(this._config);
|
|
560
487
|
}
|
|
561
488
|
set displayNumericValueOnDataLabel(e) {
|
|
562
|
-
this.
|
|
563
|
-
this._config.series[0].displayNumericValueOnDataLabel = e, this.emitConfigUpdate("displayNumericValueOnDataLabel");
|
|
564
|
-
});
|
|
489
|
+
this._config.series[0].displayNumericValueOnDataLabel = e;
|
|
565
490
|
}
|
|
566
491
|
/**
|
|
567
492
|
* Whether to display the percentage on the data label.
|
|
@@ -569,12 +494,10 @@ class a extends E {
|
|
|
569
494
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
570
495
|
*/
|
|
571
496
|
get displayPercentageOnDataLabel() {
|
|
572
|
-
return
|
|
497
|
+
return Se(this._config);
|
|
573
498
|
}
|
|
574
499
|
set displayPercentageOnDataLabel(e) {
|
|
575
|
-
this.
|
|
576
|
-
this._config.series[0].displayPercentageOnDataLabel = e, this.emitConfigUpdate("displayPercentageOnDataLabel");
|
|
577
|
-
});
|
|
500
|
+
this._config.series[0].displayPercentageOnDataLabel = e;
|
|
578
501
|
}
|
|
579
502
|
/**
|
|
580
503
|
* Display numeric value on tooltip setting from the chart config.
|
|
@@ -582,7 +505,7 @@ class a extends E {
|
|
|
582
505
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
583
506
|
*/
|
|
584
507
|
get displayNumericValueOnTooltip() {
|
|
585
|
-
return
|
|
508
|
+
return be(this._config);
|
|
586
509
|
}
|
|
587
510
|
set displayNumericValueOnTooltip(e) {
|
|
588
511
|
this._config.series[0].displayNumericValueOnTooltip = e;
|
|
@@ -593,82 +516,174 @@ class a extends E {
|
|
|
593
516
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
594
517
|
*/
|
|
595
518
|
get displayPercentageOnTooltip() {
|
|
596
|
-
return
|
|
519
|
+
return Le(this._config);
|
|
597
520
|
}
|
|
598
521
|
set displayPercentageOnTooltip(e) {
|
|
599
|
-
|
|
522
|
+
Oe(e, this._config);
|
|
600
523
|
}
|
|
601
524
|
/**
|
|
602
525
|
* Prefix of the values of the slices.
|
|
603
526
|
*/
|
|
604
527
|
get valuePrefix() {
|
|
605
|
-
return
|
|
528
|
+
return De(this._config);
|
|
606
529
|
}
|
|
607
530
|
set valuePrefix(e) {
|
|
608
|
-
|
|
531
|
+
Ce(e, this._config);
|
|
609
532
|
}
|
|
610
533
|
/**
|
|
611
534
|
* Suffix of the values of the slice.
|
|
612
535
|
*/
|
|
613
536
|
get valueSuffix() {
|
|
614
|
-
return
|
|
537
|
+
return ve(this._config);
|
|
615
538
|
}
|
|
616
539
|
set valueSuffix(e) {
|
|
617
|
-
|
|
540
|
+
Pe(e, this._config);
|
|
618
541
|
}
|
|
619
542
|
/**
|
|
620
543
|
* Prefix of the percentages of the slices.
|
|
621
544
|
*/
|
|
622
545
|
get percentagePrefix() {
|
|
623
|
-
return
|
|
546
|
+
return Ie(this._config);
|
|
624
547
|
}
|
|
625
548
|
set percentagePrefix(e) {
|
|
626
|
-
|
|
549
|
+
Te(e, this._config);
|
|
627
550
|
}
|
|
628
551
|
/**
|
|
629
552
|
* Suffix of the percentages of the slices.
|
|
630
553
|
*/
|
|
631
554
|
get percentageSuffix() {
|
|
632
|
-
return
|
|
555
|
+
return Ve(this._config);
|
|
633
556
|
}
|
|
634
557
|
set percentageSuffix(e) {
|
|
635
|
-
|
|
558
|
+
xe(e, this._config);
|
|
636
559
|
}
|
|
637
560
|
/**
|
|
638
561
|
* Offset for the data labels.
|
|
639
562
|
*/
|
|
640
563
|
get dataLabelsOffset() {
|
|
641
|
-
return
|
|
564
|
+
return Ge(this._config);
|
|
642
565
|
}
|
|
643
566
|
set dataLabelsOffset(e) {
|
|
644
|
-
|
|
567
|
+
ze(e, this._config);
|
|
645
568
|
}
|
|
646
569
|
/**
|
|
647
570
|
* Align the data labels on the left or right side of the chart instead of the default position around the chart.
|
|
648
571
|
*/
|
|
649
572
|
get alignDataLabels() {
|
|
650
|
-
return
|
|
573
|
+
return Fe(this._config);
|
|
651
574
|
}
|
|
652
575
|
set alignDataLabels(e) {
|
|
653
|
-
|
|
576
|
+
We(e, this._config);
|
|
654
577
|
}
|
|
655
578
|
/**
|
|
656
579
|
* Setting for placing the data labels inside of the slices.
|
|
657
580
|
*/
|
|
658
581
|
get dataLabelsInside() {
|
|
659
|
-
return
|
|
582
|
+
return ke(this._config);
|
|
660
583
|
}
|
|
661
584
|
set dataLabelsInside(e) {
|
|
662
|
-
|
|
585
|
+
Ae(e, this._config);
|
|
663
586
|
}
|
|
664
587
|
/**
|
|
665
588
|
* Optimize data labels overlapping setting for the pie chart.
|
|
666
589
|
*/
|
|
667
590
|
get optimizeDataLabelsOverlapping() {
|
|
668
|
-
return
|
|
591
|
+
return Ee(this._config);
|
|
669
592
|
}
|
|
670
593
|
set optimizeDataLabelsOverlapping(e) {
|
|
671
|
-
|
|
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);
|
|
672
687
|
}
|
|
673
688
|
// ---------------------------------------------------------------------------------------------
|
|
674
689
|
// #region General Props
|
|
@@ -677,7 +692,7 @@ class a extends E {
|
|
|
677
692
|
* Generate the proper chart title given the current config.
|
|
678
693
|
*/
|
|
679
694
|
generateChartTitle() {
|
|
680
|
-
return
|
|
695
|
+
return oe({
|
|
681
696
|
config: this._config,
|
|
682
697
|
layerInfo: this.layerInfo,
|
|
683
698
|
commonStrings: this.commonStrings,
|
|
@@ -685,119 +700,155 @@ class a extends E {
|
|
|
685
700
|
});
|
|
686
701
|
}
|
|
687
702
|
}
|
|
688
|
-
|
|
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([
|
|
689
740
|
s
|
|
690
|
-
],
|
|
691
|
-
|
|
741
|
+
], i.prototype, "groupingThreshold");
|
|
742
|
+
r([
|
|
692
743
|
s
|
|
693
|
-
],
|
|
694
|
-
|
|
744
|
+
], i.prototype, "labelCharacterLimit");
|
|
745
|
+
r([
|
|
695
746
|
s
|
|
696
|
-
],
|
|
697
|
-
|
|
747
|
+
], i.prototype, "decimalPlaces");
|
|
748
|
+
r([
|
|
698
749
|
s
|
|
699
|
-
],
|
|
700
|
-
|
|
750
|
+
], i.prototype, "displayType");
|
|
751
|
+
r([
|
|
701
752
|
s
|
|
702
|
-
],
|
|
703
|
-
|
|
753
|
+
], i.prototype, "setSliceName");
|
|
754
|
+
r([
|
|
704
755
|
s
|
|
705
|
-
],
|
|
706
|
-
|
|
756
|
+
], i.prototype, "setSliceColor");
|
|
757
|
+
r([
|
|
707
758
|
s
|
|
708
|
-
],
|
|
709
|
-
|
|
759
|
+
], i.prototype, "orderOfSlices");
|
|
760
|
+
r([
|
|
710
761
|
s
|
|
711
|
-
],
|
|
712
|
-
|
|
762
|
+
], i.prototype, "moveSeries");
|
|
763
|
+
r([
|
|
713
764
|
s
|
|
714
|
-
],
|
|
715
|
-
|
|
765
|
+
], i.prototype, "resetSlices");
|
|
766
|
+
r([
|
|
716
767
|
s
|
|
717
|
-
],
|
|
718
|
-
|
|
768
|
+
], i.prototype, "ticksVisibility");
|
|
769
|
+
r([
|
|
719
770
|
s
|
|
720
|
-
],
|
|
721
|
-
|
|
771
|
+
], i.prototype, "startAngle");
|
|
772
|
+
r([
|
|
722
773
|
s
|
|
723
|
-
],
|
|
724
|
-
|
|
774
|
+
], i.prototype, "endAngle");
|
|
775
|
+
r([
|
|
725
776
|
s
|
|
726
|
-
],
|
|
727
|
-
|
|
777
|
+
], i.prototype, "displayCategoryOnDataLabel");
|
|
778
|
+
r([
|
|
728
779
|
s
|
|
729
|
-
],
|
|
730
|
-
|
|
780
|
+
], i.prototype, "displayCategoryValueOnTooltip");
|
|
781
|
+
r([
|
|
731
782
|
s
|
|
732
|
-
],
|
|
733
|
-
|
|
783
|
+
], i.prototype, "displayNumericValueOnDataLabel");
|
|
784
|
+
r([
|
|
734
785
|
s
|
|
735
|
-
],
|
|
736
|
-
|
|
786
|
+
], i.prototype, "displayPercentageOnDataLabel");
|
|
787
|
+
r([
|
|
737
788
|
s
|
|
738
|
-
],
|
|
739
|
-
|
|
789
|
+
], i.prototype, "displayNumericValueOnTooltip");
|
|
790
|
+
r([
|
|
740
791
|
s
|
|
741
|
-
],
|
|
742
|
-
|
|
792
|
+
], i.prototype, "displayPercentageOnTooltip");
|
|
793
|
+
r([
|
|
743
794
|
s
|
|
744
|
-
],
|
|
745
|
-
|
|
795
|
+
], i.prototype, "valuePrefix");
|
|
796
|
+
r([
|
|
746
797
|
s
|
|
747
|
-
],
|
|
748
|
-
|
|
798
|
+
], i.prototype, "valueSuffix");
|
|
799
|
+
r([
|
|
749
800
|
s
|
|
750
|
-
],
|
|
751
|
-
|
|
801
|
+
], i.prototype, "percentagePrefix");
|
|
802
|
+
r([
|
|
752
803
|
s
|
|
753
|
-
],
|
|
754
|
-
|
|
804
|
+
], i.prototype, "percentageSuffix");
|
|
805
|
+
r([
|
|
755
806
|
s
|
|
756
|
-
],
|
|
757
|
-
|
|
807
|
+
], i.prototype, "dataLabelsOffset");
|
|
808
|
+
r([
|
|
758
809
|
s
|
|
759
|
-
],
|
|
760
|
-
|
|
810
|
+
], i.prototype, "alignDataLabels");
|
|
811
|
+
r([
|
|
761
812
|
s
|
|
762
|
-
],
|
|
763
|
-
|
|
813
|
+
], i.prototype, "dataLabelsInside");
|
|
814
|
+
r([
|
|
764
815
|
s
|
|
765
|
-
],
|
|
766
|
-
|
|
816
|
+
], i.prototype, "optimizeDataLabelsOverlapping");
|
|
817
|
+
r([
|
|
767
818
|
s
|
|
768
|
-
],
|
|
769
|
-
|
|
819
|
+
], i.prototype, "displayNumericValueOnLegendItems");
|
|
820
|
+
r([
|
|
770
821
|
s
|
|
771
|
-
],
|
|
772
|
-
|
|
822
|
+
], i.prototype, "displayPercentageOnLegendItems");
|
|
823
|
+
r([
|
|
773
824
|
s
|
|
774
|
-
],
|
|
775
|
-
|
|
825
|
+
], i.prototype, "displayCategoryOnLegendItems");
|
|
826
|
+
r([
|
|
776
827
|
s
|
|
777
|
-
],
|
|
778
|
-
|
|
828
|
+
], i.prototype, "labelMaxWidth");
|
|
829
|
+
r([
|
|
779
830
|
s
|
|
780
|
-
],
|
|
781
|
-
|
|
831
|
+
], i.prototype, "valueLabelMaxWidth");
|
|
832
|
+
r([
|
|
782
833
|
s
|
|
783
|
-
],
|
|
784
|
-
|
|
834
|
+
], i.prototype, "setDisplayNumericValue");
|
|
835
|
+
r([
|
|
785
836
|
s
|
|
786
|
-
],
|
|
787
|
-
|
|
837
|
+
], i.prototype, "setDisplayPercentage");
|
|
838
|
+
r([
|
|
788
839
|
s
|
|
789
|
-
],
|
|
790
|
-
|
|
840
|
+
], i.prototype, "setLabelMaxWidth");
|
|
841
|
+
r([
|
|
791
842
|
s
|
|
792
|
-
],
|
|
793
|
-
const
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
843
|
+
], i.prototype, "displayCategory");
|
|
844
|
+
const nt = [
|
|
845
|
+
Y,
|
|
846
|
+
q,
|
|
847
|
+
H,
|
|
848
|
+
J,
|
|
849
|
+
Q
|
|
799
850
|
];
|
|
800
|
-
|
|
851
|
+
$(i, nt);
|
|
801
852
|
export {
|
|
802
|
-
|
|
853
|
+
i as PieChartModel
|
|
803
854
|
};
|