@arcgis/charts-components 5.2.0-next.41 → 5.2.0-next.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{ZQDCFKNT.js → 33NDNTD4.js} +1 -1
- package/dist/cdn/{PTQOX5OZ.js → 5XXP2NRJ.js} +1 -1
- package/dist/cdn/{5SIHKT2T.js → 6TA7HFV2.js} +1 -1
- package/dist/cdn/76HEBLTU.js +2 -0
- package/dist/cdn/{TTTGMEZ7.js → D4WXMS4I.js} +1 -1
- package/dist/cdn/{3QI7A32R.js → DWOP2HE4.js} +1 -1
- package/dist/cdn/EIXU5GSK.js +2 -0
- package/dist/cdn/{FK7GEP3O.js → ESAVCU5M.js} +1 -1
- package/dist/cdn/{LN3IK232.js → HP47BFLZ.js} +1 -1
- package/dist/cdn/{7T5P3U5A.js → I2CZFSEB.js} +1 -1
- package/dist/cdn/{3MRL3AI7.js → ISYGPFXM.js} +1 -1
- package/dist/cdn/{D7D3TANP.js → KRBNJLUR.js} +1 -1
- package/dist/cdn/{JTYCEFWF.js → LMIDBRIM.js} +1 -1
- package/dist/cdn/{FBHIZNWF.js → NFJXS4T6.js} +1 -1
- package/dist/cdn/{DZP63RLO.js → OGRUONHM.js} +1 -1
- package/dist/cdn/{KS72POQC.js → PLEZNRQC.js} +1 -1
- package/dist/cdn/{CAOUA6TM.js → R32CA4NB.js} +1 -1
- package/dist/cdn/{O324BBM7.js → SG3NAFAX.js} +1 -1
- package/dist/cdn/{6BZMGEWV.js → T3ZESENF.js} +1 -1
- package/dist/cdn/{YLMCVYAS.js → YE6DMUZG.js} +1 -1
- package/dist/cdn/ZSATO43B.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/bar-chart-model.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +5 -5
- package/dist/chunks/chart-model.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/gauge-model.js +1 -1
- package/dist/chunks/heat-chart-model.js +66 -57
- package/dist/chunks/histogram-model.js +1 -1
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +8 -8
- package/dist/chunks/pie-chart-model.js +9 -9
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/scatterplot-model.js +11 -11
- package/dist/chunks/serial-chart-data.js +785 -702
- package/dist/chunks/serial-chart-model.js +1 -1
- package/dist/chunks/utils.js +11 -11
- package/dist/chunks/x-bounds.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +57 -70
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +2 -2
- package/package.json +3 -3
- package/dist/cdn/6IKWZMBE.js +0 -2
- package/dist/cdn/I6CEN2WV.js +0 -2
- package/dist/cdn/MWARLTCH.js +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { m as t } from "./model-setter.js";
|
|
3
3
|
import { H as o } from "./common.js";
|
|
4
|
-
import { S as u, g as _, a as
|
|
5
|
-
import { F as
|
|
6
|
-
import { d
|
|
7
|
-
import { u as
|
|
8
|
-
import { O as
|
|
4
|
+
import { S as u, g as _, a as S } from "./serial-chart-model.js";
|
|
5
|
+
import { F as C, G as T, H as A, I as F, J as O, K as x, L, M as R, N as D, O as I, P as v, Q as w, R as b, S as B, T as P, U as k, V as E, X as N, Y as W, Z as Y, _ as H, $ as G, a0 as M, a1 as U, a2 as V, a3 as X, a4 as j, a5 as K, a6 as Z, a7 as q, a8 as c, a9 as m, aa as z, ab as J, ac as Q, ad as $, ae as ee, af as te, z as y, ag as ie, ah as se, ai as re, aj as oe, ak as ne, al as ae, am as ge, an as le } from "./serial-chart-data.js";
|
|
6
|
+
import { d } from "./data.js";
|
|
7
|
+
import { u as pe, r as f } from "./chart-object-literals.js";
|
|
8
|
+
import { O as ce } from "./index.js";
|
|
9
9
|
import { an as h } from "./index2.js";
|
|
10
|
-
import { q as
|
|
10
|
+
import { q as me } from "./index3.js";
|
|
11
11
|
var ye = Object.defineProperty, de = Object.getOwnPropertyDescriptor, i = (l, e, r, a) => {
|
|
12
12
|
for (var n = de(e, r), g = l.length - 1, p; g >= 0; g--)
|
|
13
13
|
(p = l[g]) && (n = p(e, r, n) || n);
|
|
@@ -15,13 +15,13 @@ var ye = Object.defineProperty, de = Object.getOwnPropertyDescriptor, i = (l, e,
|
|
|
15
15
|
};
|
|
16
16
|
class s extends u {
|
|
17
17
|
constructor() {
|
|
18
|
-
super(...arguments), this._chartType =
|
|
18
|
+
super(...arguments), this._chartType = pe.HeatSeries;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Generate the proper chart title given the current config.
|
|
22
22
|
*/
|
|
23
23
|
generateChartTitle() {
|
|
24
|
-
return this.layerInfo !== void 0 ?
|
|
24
|
+
return this.layerInfo !== void 0 ? C(this._config, this.layerInfo, this.commonStrings) : "";
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
27
|
* Generate the proper y-axis title given the current config.
|
|
@@ -36,20 +36,29 @@ class s extends u {
|
|
|
36
36
|
get layer() {
|
|
37
37
|
return super.layer;
|
|
38
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* Sets up the heat chart model from the provided model params.
|
|
41
|
+
* @param {ModelParams<ChartConfig<typeof ModelTypes.HeatChart>>} params - The model setup params.
|
|
42
|
+
*/
|
|
39
43
|
async setup(e) {
|
|
40
|
-
await this.loadConfigFromLayer(e),
|
|
44
|
+
await this.loadConfigFromLayer(e), T({
|
|
45
|
+
commonStrings: this.commonStrings,
|
|
46
|
+
config: this._config,
|
|
47
|
+
layerInfo: this.layerInfo
|
|
48
|
+
}), this.setupLocalProps(), typeof this.resolveSetup == "function" && this.resolveSetup();
|
|
41
49
|
}
|
|
42
50
|
/**
|
|
43
51
|
* The y axis field used by the heat chart.
|
|
44
52
|
*/
|
|
45
53
|
get yAxisField() {
|
|
46
|
-
return
|
|
54
|
+
return A(this._config);
|
|
47
55
|
}
|
|
48
56
|
set yAxisField(e) {
|
|
49
|
-
|
|
57
|
+
F({
|
|
50
58
|
yField: e,
|
|
51
59
|
config: this._config,
|
|
52
|
-
layerInfo: this.layerInfo
|
|
60
|
+
layerInfo: this.layerInfo,
|
|
61
|
+
commonStrings: this.commonStrings
|
|
53
62
|
});
|
|
54
63
|
}
|
|
55
64
|
/**
|
|
@@ -60,11 +69,11 @@ class s extends u {
|
|
|
60
69
|
* **Note**: This is only applicable for calendar heat charts (when `xAxisField` and `yAxisField` are date fields).
|
|
61
70
|
*/
|
|
62
71
|
get viewType() {
|
|
63
|
-
return
|
|
72
|
+
return O(this._config);
|
|
64
73
|
}
|
|
65
74
|
set viewType(e) {
|
|
66
75
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
67
|
-
|
|
76
|
+
x(e, this._config), this.emitConfigUpdate("heatChartViewType");
|
|
68
77
|
});
|
|
69
78
|
}
|
|
70
79
|
/**
|
|
@@ -79,10 +88,10 @@ class s extends u {
|
|
|
79
88
|
* ```
|
|
80
89
|
*/
|
|
81
90
|
get xTemporalBinning() {
|
|
82
|
-
return
|
|
91
|
+
return L(this._config);
|
|
83
92
|
}
|
|
84
93
|
set xTemporalBinning(e) {
|
|
85
|
-
|
|
94
|
+
R({
|
|
86
95
|
commonStrings: this.commonStrings,
|
|
87
96
|
binning: e,
|
|
88
97
|
config: this._config
|
|
@@ -100,10 +109,10 @@ class s extends u {
|
|
|
100
109
|
* ```
|
|
101
110
|
*/
|
|
102
111
|
get yTemporalBinning() {
|
|
103
|
-
return
|
|
112
|
+
return D(this._config);
|
|
104
113
|
}
|
|
105
114
|
set yTemporalBinning(e) {
|
|
106
|
-
|
|
115
|
+
I({
|
|
107
116
|
commonStrings: this.commonStrings,
|
|
108
117
|
binning: e,
|
|
109
118
|
config: this._config
|
|
@@ -129,46 +138,46 @@ class s extends u {
|
|
|
129
138
|
* `manual` - Allows you to manually specify the class breaks.
|
|
130
139
|
*/
|
|
131
140
|
get classificationMethod() {
|
|
132
|
-
return
|
|
141
|
+
return b(this._config);
|
|
133
142
|
}
|
|
134
143
|
set classificationMethod(e) {
|
|
135
144
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
136
|
-
e && (
|
|
145
|
+
e && (B(e, this._config), this.emitConfigUpdate("classificationMethod"));
|
|
137
146
|
});
|
|
138
147
|
}
|
|
139
148
|
/**
|
|
140
149
|
* The name of the color ramp used by the heat chart.
|
|
141
150
|
*/
|
|
142
151
|
get colorRampName() {
|
|
143
|
-
return
|
|
152
|
+
return P(this._config);
|
|
144
153
|
}
|
|
145
154
|
set colorRampName(e) {
|
|
146
|
-
|
|
155
|
+
k(e, this._config);
|
|
147
156
|
}
|
|
148
157
|
/**
|
|
149
158
|
* Whether the color ramp is flipped for the heat chart,
|
|
150
159
|
* which means the colors will be reversed (e.g., if the original color ramp goes from light to dark, flipping it will make it go from dark to light).
|
|
151
160
|
*/
|
|
152
161
|
get isColorRampFlipped() {
|
|
153
|
-
return
|
|
162
|
+
return E(this._config);
|
|
154
163
|
}
|
|
155
164
|
set isColorRampFlipped(e) {
|
|
156
|
-
|
|
165
|
+
N(e, this._config);
|
|
157
166
|
}
|
|
158
167
|
/**
|
|
159
168
|
* Hide the empty rows and columns in the heat chart.
|
|
160
169
|
*/
|
|
161
170
|
get hideEmptyRowsAndColumns() {
|
|
162
|
-
return
|
|
171
|
+
return W(this._config);
|
|
163
172
|
}
|
|
164
173
|
set hideEmptyRowsAndColumns(e) {
|
|
165
|
-
|
|
174
|
+
Y(this._config, e);
|
|
166
175
|
}
|
|
167
176
|
/**
|
|
168
177
|
* The grid line width used by the heat chart.
|
|
169
178
|
*/
|
|
170
179
|
get gridLineWidth() {
|
|
171
|
-
return
|
|
180
|
+
return H(this._config);
|
|
172
181
|
}
|
|
173
182
|
set gridLineWidth(e) {
|
|
174
183
|
G(e, this._config);
|
|
@@ -177,7 +186,7 @@ class s extends u {
|
|
|
177
186
|
* The grid line color used by the heat chart.
|
|
178
187
|
*/
|
|
179
188
|
get gridLineColor() {
|
|
180
|
-
return
|
|
189
|
+
return M(this._config);
|
|
181
190
|
}
|
|
182
191
|
set gridLineColor(e) {
|
|
183
192
|
U(e, this._config);
|
|
@@ -190,7 +199,7 @@ class s extends u {
|
|
|
190
199
|
return _(0, this._config);
|
|
191
200
|
}
|
|
192
201
|
set seriesName(e) {
|
|
193
|
-
typeof e == "string" &&
|
|
202
|
+
typeof e == "string" && S(e, 0, this._config);
|
|
194
203
|
}
|
|
195
204
|
/**
|
|
196
205
|
* The heat rules type used by the heat chart.
|
|
@@ -198,10 +207,10 @@ class s extends u {
|
|
|
198
207
|
* `renderer`: A class break renderer is used to apply specific colors to cells based on defined value ranges, allowing for more customized visualizations.
|
|
199
208
|
*/
|
|
200
209
|
get heatRulesType() {
|
|
201
|
-
return
|
|
210
|
+
return V(this._config);
|
|
202
211
|
}
|
|
203
212
|
set heatRulesType(e) {
|
|
204
|
-
|
|
213
|
+
X(this._config, e);
|
|
205
214
|
}
|
|
206
215
|
/**
|
|
207
216
|
* Set the gradient rules for the heat chart, which define how data values map to colors.
|
|
@@ -223,10 +232,10 @@ class s extends u {
|
|
|
223
232
|
* ```
|
|
224
233
|
*/
|
|
225
234
|
get gradientRules() {
|
|
226
|
-
return
|
|
235
|
+
return j(this._config);
|
|
227
236
|
}
|
|
228
237
|
set gradientRules(e) {
|
|
229
|
-
|
|
238
|
+
K(this._config, e);
|
|
230
239
|
}
|
|
231
240
|
/**
|
|
232
241
|
* Gets the grid lines symbol. Contains styling information such as line width, line style, and line color.
|
|
@@ -241,19 +250,19 @@ class s extends u {
|
|
|
241
250
|
* Heat chart only supports one numeric field, if there are multiple numeric fields provided in the array, only the first one will be used and the rest will be ignored.
|
|
242
251
|
*/
|
|
243
252
|
get numericFields() {
|
|
244
|
-
const e =
|
|
253
|
+
const e = Z(this._config);
|
|
245
254
|
return e !== void 0 ? [e] : [];
|
|
246
255
|
}
|
|
247
256
|
set numericFields(e) {
|
|
248
|
-
const { idField: r } = h(this.layerInfo.layer), a =
|
|
249
|
-
|
|
257
|
+
const { idField: r } = h(this.layerInfo.layer), a = me(e[0]), n = a ? r : e[0];
|
|
258
|
+
q({
|
|
250
259
|
field: n,
|
|
251
260
|
config: this._config,
|
|
252
261
|
layerInfo: this.layerInfo,
|
|
253
262
|
commonStrings: this.commonStrings
|
|
254
263
|
});
|
|
255
264
|
const g = c(this._config);
|
|
256
|
-
a && g !== f.Count &&
|
|
265
|
+
a && g !== f.Count && m({
|
|
257
266
|
aggregationType: f.Count,
|
|
258
267
|
config: this._config,
|
|
259
268
|
layerInfo: this.layerInfo,
|
|
@@ -267,7 +276,7 @@ class s extends u {
|
|
|
267
276
|
return c(this._config);
|
|
268
277
|
}
|
|
269
278
|
set aggregationType(e) {
|
|
270
|
-
|
|
279
|
+
m({
|
|
271
280
|
aggregationType: e,
|
|
272
281
|
config: this._config,
|
|
273
282
|
layerInfo: this.layerInfo,
|
|
@@ -284,26 +293,26 @@ class s extends u {
|
|
|
284
293
|
set splitByField(e) {
|
|
285
294
|
}
|
|
286
295
|
get legendPosition() {
|
|
287
|
-
return
|
|
296
|
+
return z(this._config);
|
|
288
297
|
}
|
|
289
298
|
set legendPosition(e) {
|
|
290
|
-
|
|
299
|
+
J(e, this._config);
|
|
291
300
|
}
|
|
292
301
|
get nullPolicy() {
|
|
293
|
-
return
|
|
302
|
+
return Q(this._config);
|
|
294
303
|
}
|
|
295
304
|
set nullPolicy(e) {
|
|
296
|
-
|
|
305
|
+
$(e, this._config);
|
|
297
306
|
}
|
|
298
307
|
get emptyCell() {
|
|
299
|
-
return
|
|
308
|
+
return ee(this._config);
|
|
300
309
|
}
|
|
301
310
|
/**
|
|
302
311
|
* The heat chart's empty cell configuration.
|
|
303
312
|
*/
|
|
304
313
|
set emptyCell(e) {
|
|
305
314
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
306
|
-
|
|
315
|
+
te(e, this._config), this.emitConfigUpdate("emptyCell");
|
|
307
316
|
});
|
|
308
317
|
}
|
|
309
318
|
getSortOrder() {
|
|
@@ -316,38 +325,38 @@ class s extends u {
|
|
|
316
325
|
* @returns {"Asc" | "Desc" | "customSort"}
|
|
317
326
|
*/
|
|
318
327
|
getXAxisSortOrder() {
|
|
319
|
-
const e =
|
|
328
|
+
const e = y(this._config)[0];
|
|
320
329
|
return e === o.Asc || e === o.Desc || e === o.customSort ? e : o.Asc;
|
|
321
330
|
}
|
|
322
331
|
setXAxisSortOrder(e, r) {
|
|
323
|
-
|
|
332
|
+
d(e, this._config, r);
|
|
324
333
|
}
|
|
325
334
|
/**
|
|
326
335
|
* Gets the sort order for on the y axis for heat chart.
|
|
327
336
|
* @returns {"Asc" | "Desc" | "customSort"}
|
|
328
337
|
*/
|
|
329
338
|
getYAxisSortOrder() {
|
|
330
|
-
const e =
|
|
339
|
+
const e = y(this._config)[1];
|
|
331
340
|
return e === o.Asc || e === o.Desc || e === o.customSort ? e : o.Asc;
|
|
332
341
|
}
|
|
333
342
|
setYAxisSortOrder(e, r) {
|
|
334
|
-
|
|
343
|
+
d(e, this._config, r, !0);
|
|
335
344
|
}
|
|
336
345
|
get emptyCellText() {
|
|
337
|
-
return
|
|
346
|
+
return ie(this._config);
|
|
338
347
|
}
|
|
339
348
|
set emptyCellText(e) {
|
|
340
|
-
|
|
349
|
+
se(e, this._config);
|
|
341
350
|
}
|
|
342
351
|
get includeLeapDay() {
|
|
343
|
-
return
|
|
352
|
+
return re(this._config);
|
|
344
353
|
}
|
|
345
354
|
/**
|
|
346
355
|
* Whether to include leap day (February 29) in the heat chart when using "day of month" temporal binning.
|
|
347
356
|
*/
|
|
348
357
|
set includeLeapDay(e) {
|
|
349
358
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
350
|
-
|
|
359
|
+
oe(e, this._config), this.emitConfigUpdate("includeLeapDay");
|
|
351
360
|
});
|
|
352
361
|
}
|
|
353
362
|
/**
|
|
@@ -357,18 +366,18 @@ class s extends u {
|
|
|
357
366
|
* - `7`: Sunday
|
|
358
367
|
*/
|
|
359
368
|
get firstDayOfWeek() {
|
|
360
|
-
return
|
|
369
|
+
return ne(this._config);
|
|
361
370
|
}
|
|
362
371
|
set firstDayOfWeek(e) {
|
|
363
372
|
this.guardSetterFromAsyncOverwrite(() => {
|
|
364
|
-
|
|
373
|
+
ae(e, this._config), this.emitConfigUpdate("firstDayOfWeek");
|
|
365
374
|
});
|
|
366
375
|
}
|
|
367
376
|
get emptyCellSymbol() {
|
|
368
|
-
return
|
|
377
|
+
return ge(this._config);
|
|
369
378
|
}
|
|
370
379
|
set emptyCellSymbol(e) {
|
|
371
|
-
|
|
380
|
+
le(e, this._config);
|
|
372
381
|
}
|
|
373
382
|
// Chart override methods that aren't supported
|
|
374
383
|
/**
|
|
@@ -410,7 +419,7 @@ class s extends u {
|
|
|
410
419
|
* @private
|
|
411
420
|
*/
|
|
412
421
|
generateDefaultConfig() {
|
|
413
|
-
const e =
|
|
422
|
+
const e = ce(this.commonStrings, h(this.layerInfo.layer).idField);
|
|
414
423
|
return e.axes?.forEach((r, a) => {
|
|
415
424
|
r && (r.valueFormat = {
|
|
416
425
|
// use short date format for y axis labels
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import {
|
|
2
|
+
import { h as m } from "./utils.js";
|
|
3
3
|
import { g as h, s as y, a as g, b as f, c as p, d, e as c, f as S, h as v, i as b, j as u, k as _, l as D, m as M, n as O, o as w, p as C, q as W, r as T, t as x, u as A, v as N, w as L, x as E, y as F, z as X, A as B } from "./histogram-data.js";
|
|
4
4
|
import { C as P } from "./chart-model.js";
|
|
5
5
|
import { M as j, a as H, W as I, b as V } from "./data-labels-visibility.js";
|
|
@@ -7,7 +7,7 @@ import { M as g } from "./model-with-line-marker-styling.js";
|
|
|
7
7
|
import { s as u, a as p, b, c as I, d as v, W as _ } from "./negative-values-stacked-to-baseline.js";
|
|
8
8
|
import { S as C, s as L, a as M } from "./serial-chart-model.js";
|
|
9
9
|
import { h as f } from "./serial-chart-data.js";
|
|
10
|
-
import {
|
|
10
|
+
import { h as k } from "./utils.js";
|
|
11
11
|
var D = Object.defineProperty, F = Object.getOwnPropertyDescriptor, x = (o, e, s, t) => {
|
|
12
12
|
for (var i = F(e, s), r = o.length - 1, l; r >= 0; r--)
|
|
13
13
|
(l = o[r]) && (i = l(e, s, i) || i);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { G as n } from "./common.js";
|
|
3
|
-
import {
|
|
3
|
+
import { h as f } from "./utils.js";
|
|
4
4
|
import { M as a, b as l, d as G } from "./x-bounds.js";
|
|
5
5
|
import { m as p } from "./model-setter.js";
|
|
6
|
-
var m = Object.defineProperty, c = Object.getOwnPropertyDescriptor,
|
|
6
|
+
var m = Object.defineProperty, c = Object.getOwnPropertyDescriptor, u = (o, e, t, h) => {
|
|
7
7
|
for (var i = c(e, t), s = o.length - 1, r; s >= 0; s--)
|
|
8
8
|
(r = o[s]) && (i = r(e, t, i) || i);
|
|
9
9
|
return i && m(e, t, i), i;
|
|
@@ -36,14 +36,14 @@ class d extends a {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
u([
|
|
40
40
|
p
|
|
41
41
|
], d.prototype, "addXAxisGuide");
|
|
42
|
-
|
|
42
|
+
u([
|
|
43
43
|
p
|
|
44
44
|
], d.prototype, "deleteXAxisGuide");
|
|
45
45
|
const g = [a];
|
|
46
|
-
|
|
46
|
+
f(d, g);
|
|
47
47
|
export {
|
|
48
48
|
d as M
|
|
49
49
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { C as b } from "./chart-model.js";
|
|
3
|
-
import { r as o,
|
|
3
|
+
import { r as o, l as h, s as x, m as A, a as C, n as m, o as L, p as V, h as v } from "./utils.js";
|
|
4
4
|
import { cloneDeep as T } from "lodash-es";
|
|
5
5
|
import { j as y } from "./chart-object-literals.js";
|
|
6
6
|
import { H as g } from "./index.js";
|
|
@@ -12,15 +12,15 @@ const P = (t) => {
|
|
|
12
12
|
for (const i of t.axes ?? [])
|
|
13
13
|
if (i?.grid !== void 0)
|
|
14
14
|
return i.grid;
|
|
15
|
-
},
|
|
15
|
+
}, F = (t, i, s) => {
|
|
16
16
|
const e = i.axes;
|
|
17
17
|
s.forEach((c) => {
|
|
18
18
|
e?.[c] !== void 0 && (e[c].grid = T(t));
|
|
19
19
|
});
|
|
20
|
-
},
|
|
20
|
+
}, W = (t, i) => i.axes?.[t]?.visible ?? !0, Z = (t, i, s) => {
|
|
21
21
|
const e = s.axes?.[i];
|
|
22
22
|
e !== void 0 && (e.visible = t);
|
|
23
|
-
},
|
|
23
|
+
}, k = (t, i) => t.axes?.[i]?.displayZeroLine ?? !1, w = (t, i, s) => {
|
|
24
24
|
t.axes?.[s] !== void 0 && (t.axes[s].displayZeroLine = i);
|
|
25
25
|
}, N = (t, i) => t.axes?.[i]?.displayCursorTooltip ?? !1, j = (t) => {
|
|
26
26
|
const { config: i, displayCursorTooltip: s, axisIndex: e } = t;
|
|
@@ -83,7 +83,7 @@ class a extends b {
|
|
|
83
83
|
return o({
|
|
84
84
|
config: this._config,
|
|
85
85
|
axisIndex: i,
|
|
86
|
-
func: (s) =>
|
|
86
|
+
func: (s) => W(s, this._config)
|
|
87
87
|
}) ?? !0;
|
|
88
88
|
}
|
|
89
89
|
/**
|
|
@@ -98,7 +98,7 @@ class a extends b {
|
|
|
98
98
|
config: this._config,
|
|
99
99
|
axisIndex: s,
|
|
100
100
|
func: (e) => {
|
|
101
|
-
|
|
101
|
+
Z(i, e, this._config), this.emitConfigUpdate("setAxisVisibility");
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
});
|
|
@@ -319,7 +319,7 @@ class a extends b {
|
|
|
319
319
|
return P(this._config);
|
|
320
320
|
}
|
|
321
321
|
setGridLinesSymbol(i, s) {
|
|
322
|
-
Array.isArray(s) &&
|
|
322
|
+
Array.isArray(s) && F(i, this._config, s);
|
|
323
323
|
}
|
|
324
324
|
/**
|
|
325
325
|
* Get the default x-axis title text.
|
|
@@ -339,7 +339,7 @@ class a extends b {
|
|
|
339
339
|
return o({
|
|
340
340
|
config: this._config,
|
|
341
341
|
axisIndex: i,
|
|
342
|
-
func: (s) =>
|
|
342
|
+
func: (s) => k(this._config, s)
|
|
343
343
|
}) ?? !1;
|
|
344
344
|
}
|
|
345
345
|
setDisplayZeroLine(i, s) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { log as W } from "@arcgis/toolkit/log";
|
|
3
3
|
import { u as p } from "./chart-object-literals.js";
|
|
4
|
-
import { Y as L, an as
|
|
5
|
-
import { i as
|
|
4
|
+
import { Y as L, an as k } from "./index2.js";
|
|
5
|
+
import { i as A } from "./index4.js";
|
|
6
6
|
import { U as d, a6 as T, a0 as O, ay as V, a3 as w, a4 as G } from "./index.js";
|
|
7
7
|
import { C as h } from "./index3.js";
|
|
8
8
|
import { C as z } from "./chart-model.js";
|
|
@@ -10,7 +10,7 @@ import { m as s } from "./model-setter.js";
|
|
|
10
10
|
import { b as g, P as y } from "./common.js";
|
|
11
11
|
import { M as x, a as B, W as E, b as R } from "./data-labels-visibility.js";
|
|
12
12
|
import { W as j } from "./data-labels-symbol.js";
|
|
13
|
-
import {
|
|
13
|
+
import { h as I, k as U, c as K } from "./utils.js";
|
|
14
14
|
import { i as m, a as _, g as f, s as $, c as Y, b as q, d as H, e as J, f as Q, h as D, j as C, k as X } from "./pie-chart-data.js";
|
|
15
15
|
import { cloneDeep as Z } from "lodash-es";
|
|
16
16
|
import { i as S } from "./rest-js-object-literals.js";
|
|
@@ -117,14 +117,14 @@ const ue = (t) => t.series?.[0]?.innerRadius, fe = (t, e) => {
|
|
|
117
117
|
let e;
|
|
118
118
|
const i = t.series?.[0];
|
|
119
119
|
return i?.displayNumericValueOnDataLabel === !0 && i?.displayPercentageOnDataLabel === !0 ? e = g.Both : i?.displayNumericValueOnDataLabel === !0 ? e = g.Value : e = g.Percentage, e;
|
|
120
|
-
},
|
|
120
|
+
}, ke = (t, e) => {
|
|
121
121
|
const i = t === g.Value || t === g.Both, o = t === g.Percentage || t === g.Both;
|
|
122
122
|
e.series?.[0] && (e.series[0].displayNumericValueOnDataLabel = i, e.series[0].displayPercentageOnDataLabel = o), e.legend && (e.legend = {
|
|
123
123
|
...e.legend,
|
|
124
124
|
displayNumericValue: i,
|
|
125
125
|
displayPercentage: o
|
|
126
126
|
});
|
|
127
|
-
},
|
|
127
|
+
}, Ae = (t) => t.series?.[0]?.alignDataLabels ?? !1, we = (t, e) => {
|
|
128
128
|
e.series[0] && (e.series[0].alignDataLabels = t);
|
|
129
129
|
}, Ge = (t) => t.series?.[0]?.dataLabelsInside ?? !1, ze = (t, e) => {
|
|
130
130
|
e.series[0] && (e.series[0].dataLabelsInside = t);
|
|
@@ -201,7 +201,7 @@ class r extends z {
|
|
|
201
201
|
return f(this._config);
|
|
202
202
|
}
|
|
203
203
|
set category(e) {
|
|
204
|
-
(!
|
|
204
|
+
(!A(this._config) || e.trim() !== "") && (this._mode = m({
|
|
205
205
|
category: e,
|
|
206
206
|
numericFields: _(this._config),
|
|
207
207
|
fallbackMode: this._mode
|
|
@@ -397,7 +397,7 @@ class r extends z {
|
|
|
397
397
|
return We(this._config);
|
|
398
398
|
}
|
|
399
399
|
set displayType(e) {
|
|
400
|
-
|
|
400
|
+
ke(e, this._config);
|
|
401
401
|
}
|
|
402
402
|
// ---------------------------------------------------------------------------------------------
|
|
403
403
|
// #region Protected methods
|
|
@@ -405,7 +405,7 @@ class r extends z {
|
|
|
405
405
|
/** @private */
|
|
406
406
|
generateDefaultConfig() {
|
|
407
407
|
const e = w(this.commonStrings);
|
|
408
|
-
return e.series = [G(this.commonStrings,
|
|
408
|
+
return e.series = [G(this.commonStrings, k(this.layerInfo.layer).idField)], e;
|
|
409
409
|
}
|
|
410
410
|
// ---------------------------------------------------------------------------------------------
|
|
411
411
|
// #region Series Methods
|
|
@@ -643,7 +643,7 @@ class r extends z {
|
|
|
643
643
|
* Align the data labels on the left or right side of the chart instead of the default position around the chart.
|
|
644
644
|
*/
|
|
645
645
|
get alignDataLabels() {
|
|
646
|
-
return
|
|
646
|
+
return Ae(this._config);
|
|
647
647
|
}
|
|
648
648
|
set alignDataLabels(e) {
|
|
649
649
|
we(e, this._config);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { S as m, s as d, a as S } from "./serial-chart-model.js";
|
|
3
3
|
import { s as c, a as y, b as g, c as u, d as p, W as b } from "./negative-values-stacked-to-baseline.js";
|
|
4
4
|
import { h as n } from "./serial-chart-data.js";
|
|
5
|
-
import {
|
|
5
|
+
import { h as v } from "./utils.js";
|
|
6
6
|
import { m as I } from "./model-setter.js";
|
|
7
7
|
import { u as _ } from "./chart-object-literals.js";
|
|
8
8
|
import { M as C } from "./model-with-line-marker-styling.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { s as p, u as v,
|
|
2
|
+
import { s as p, u as v, e as X, h as O } from "./utils.js";
|
|
3
3
|
import { substitute as Y } from "@arcgis/core/intl.js";
|
|
4
|
-
import { isEmpty as
|
|
4
|
+
import { isEmpty as x, isEqual as D } from "lodash-es";
|
|
5
5
|
import { b as w } from "./series-length.js";
|
|
6
6
|
import { g as b } from "./utils2.js";
|
|
7
7
|
import { aj as m, ad as z, ab as k } from "./index.js";
|
|
@@ -33,17 +33,17 @@ function M(i, e) {
|
|
|
33
33
|
return s === r || o;
|
|
34
34
|
}
|
|
35
35
|
function C(i, e) {
|
|
36
|
-
const { layerFieldsInfo: t } = e, s =
|
|
36
|
+
const { layerFieldsInfo: t } = e, s = f(i), r = y(t, s), o = b(0, i), n = T(i);
|
|
37
37
|
return r === o || n;
|
|
38
38
|
}
|
|
39
39
|
function g(i, e, t) {
|
|
40
|
-
const s =
|
|
40
|
+
const s = f(i), r = u(i), { layerFieldsInfo: o } = e, n = y(o, s), a = y(o, r);
|
|
41
41
|
return Y(t.titleLabels.xAndY, { x: n, y: a });
|
|
42
42
|
}
|
|
43
43
|
const _ = (i) => {
|
|
44
44
|
const { x: e, y: t, config: s, layerInfo: r, updateChartTitle: o, updateXAxisTitle: n, updateYAxisTitle: a, commonStrings: h } = i, { layerFieldsInfo: A } = r, W = y(A, e), P = y(A, t);
|
|
45
|
-
!
|
|
46
|
-
},
|
|
45
|
+
!x(e) && n && v(s, 0, W), !x(t) && a && v(s, 1, P), !x(e) && !x(t) && s.title && o && (s.title.content.text = g(s, r, h));
|
|
46
|
+
}, f = (i) => i.series[0]?.x ?? "", u = (i) => i.series[0]?.y ?? "", re = (i) => {
|
|
47
47
|
const { fieldName: e, config: t, layerInfo: s, commonStrings: r } = i, o = I(t, s, r), n = C(t, s), a = M(t, s);
|
|
48
48
|
F(t), t.series[0] && (t.series[0].x = e), _({
|
|
49
49
|
x: e,
|
|
@@ -63,7 +63,7 @@ const _ = (i) => {
|
|
|
63
63
|
}, oe = (i) => {
|
|
64
64
|
const { fieldName: e, config: t, layerInfo: s, commonStrings: r } = i, o = I(t, s, r), n = C(t, s), a = M(t, s);
|
|
65
65
|
F(t), t.series[0] && (t.series[0].y = e), _({
|
|
66
|
-
x:
|
|
66
|
+
x: f(t),
|
|
67
67
|
y: e,
|
|
68
68
|
config: t,
|
|
69
69
|
layerInfo: s,
|
|
@@ -93,7 +93,7 @@ const _ = (i) => {
|
|
|
93
93
|
!(e.series[0]?.overlays?.trendLine?.created ?? !1) && i && (e.series[0].overlays ??= m(), e.series[0].overlays.trendLine ??= m().trendLine, e.series[0].overlays.trendLine.created = i), ye(i, e);
|
|
94
94
|
}, S = (i) => i.series[0]?.sizePolicy ?? z(), pe = (i, e) => {
|
|
95
95
|
e.series[0] && (i !== void 0 && i.field?.trim() !== "" ? e.series[0].sizePolicy = { ...e.series[0].sizePolicy, ...i } : e.series[0].sizePolicy = void 0);
|
|
96
|
-
},
|
|
96
|
+
}, xe = (i) => i?.series?.[0]?.overlays, fe = (i, e) => {
|
|
97
97
|
e?.series[0] !== void 0 && (e.series[0].overlays = i);
|
|
98
98
|
}, ue = (i) => i.series.find((e) => e.additionalTooltipFields !== void 0)?.additionalTooltipFields ?? [], he = (i, e) => {
|
|
99
99
|
e.series.forEach((t) => {
|
|
@@ -119,7 +119,7 @@ class l extends V {
|
|
|
119
119
|
* X-axis field.
|
|
120
120
|
*/
|
|
121
121
|
get xAxisField() {
|
|
122
|
-
return
|
|
122
|
+
return f(this._config);
|
|
123
123
|
}
|
|
124
124
|
set xAxisField(e) {
|
|
125
125
|
re({ fieldName: e, config: this._config, layerInfo: this.layerInfo, commonStrings: this.commonStrings }), this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"));
|
|
@@ -174,10 +174,10 @@ class l extends V {
|
|
|
174
174
|
* Trendline overlay for the scatterplot.
|
|
175
175
|
*/
|
|
176
176
|
get seriesOverlays() {
|
|
177
|
-
return
|
|
177
|
+
return xe(this._config);
|
|
178
178
|
}
|
|
179
179
|
set seriesOverlays(e) {
|
|
180
|
-
e !== void 0 &&
|
|
180
|
+
e !== void 0 && fe(e, this._config);
|
|
181
181
|
}
|
|
182
182
|
/**
|
|
183
183
|
* Add an additional field to display for scatterplot tooltips.
|