@arcgis/charts-components 5.2.0-next.26 → 5.2.0-next.28
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/{D6GG2ADV.js → 2ODYZG66.js} +1 -1
- package/dist/cdn/{TSQOEJB4.js → 2SPGX6AF.js} +1 -1
- package/dist/cdn/{WY3UGKLF.js → 2SPURZEN.js} +1 -1
- package/dist/cdn/{2ASYBTGM.js → 35NSJ3NJ.js} +1 -1
- package/dist/cdn/{N3FUI2RC.js → 3QO6REDF.js} +1 -1
- package/dist/cdn/{5UX2FYTM.js → 3UTF2CB3.js} +1 -1
- package/dist/cdn/{XKHA7K4P.js → 3YN4EKSJ.js} +1 -1
- package/dist/cdn/4BEGCEGA.js +4 -0
- package/dist/cdn/{XKJN3WVL.js → 4P7URPRQ.js} +1 -1
- package/dist/cdn/{Y5GMGU4M.js → 5XCU5SR2.js} +1 -1
- package/dist/cdn/{AYNWMLFD.js → 6ANVHVX4.js} +1 -1
- package/dist/cdn/{LSKFMUX4.js → 6CB5R4QQ.js} +1 -1
- package/dist/cdn/{IUMYBJDG.js → 6GV2QPKV.js} +1 -1
- package/dist/cdn/{4YRCWE6Z.js → 6OCDFMFB.js} +1 -1
- package/dist/cdn/{5JREGZML.js → 6VK54DG5.js} +1 -1
- package/dist/cdn/{N6IOWWIK.js → 6XIDALQU.js} +1 -1
- package/dist/cdn/{GSYV5MTU.js → 7VQXBQMZ.js} +1 -1
- package/dist/cdn/{BUUTWPEP.js → 7Z7NOIH2.js} +1 -1
- package/dist/cdn/{ADJHTT4M.js → ADYDCO3M.js} +1 -1
- package/dist/cdn/{DKMTGCWH.js → AICTKGE3.js} +1 -1
- package/dist/cdn/{LSF6ITTC.js → AXRHJ55P.js} +1 -1
- package/dist/cdn/BJBNELDD.js +3 -0
- package/dist/cdn/{Y7HYSSRW.js → BKU72IQC.js} +1 -1
- package/dist/cdn/{7LI5APDL.js → BQXXD2HU.js} +1 -1
- package/dist/cdn/{SUTVT5OC.js → BZFGE4LO.js} +1 -1
- package/dist/cdn/{WJLUWK7Z.js → C4TQOUPO.js} +1 -1
- package/dist/cdn/{WXWLMWG5.js → CLN32L2L.js} +1 -1
- package/dist/cdn/{VHY7DPE3.js → DAF2U7TN.js} +1 -1
- package/dist/cdn/{MUG3AZLX.js → DRFJC64L.js} +1 -1
- package/dist/cdn/{HK3P3FUS.js → DVAQXOL6.js} +1 -1
- package/dist/cdn/{HPEG72LB.js → EXQXLQRA.js} +1 -1
- package/dist/cdn/{OO5SFCWJ.js → G5EGTXMY.js} +1 -1
- package/dist/cdn/{UB4O3XGF.js → GCRQHIGQ.js} +1 -1
- package/dist/cdn/{4RJT43K4.js → HBS6O3P3.js} +1 -1
- package/dist/cdn/{ASEWMED3.js → HIW5WRHR.js} +1 -1
- package/dist/cdn/{4XIBUPM6.js → IWMWJN7M.js} +1 -1
- package/dist/cdn/JBR6IJMK.js +2 -0
- package/dist/cdn/{TS6MWMCQ.js → JIV6BQKG.js} +1 -1
- package/dist/cdn/{VD3DRJBH.js → K27GKXGP.js} +1 -1
- package/dist/cdn/{X4LAYI76.js → KFPJI52X.js} +1 -1
- package/dist/cdn/{TNKGWBUO.js → KQLAAGKI.js} +1 -1
- package/dist/cdn/{4N3NVAA2.js → L5PCPBED.js} +1 -1
- package/dist/cdn/{4AF64XYR.js → LFXRCL7K.js} +1 -1
- package/dist/cdn/{2A24ACPF.js → M4ZJRIYM.js} +1 -1
- package/dist/cdn/{GZLTMREM.js → MBPFBE3E.js} +1 -1
- package/dist/cdn/{D46R6YHX.js → MEA74C44.js} +1 -1
- package/dist/cdn/{3BS7VF2U.js → MRNQGHRD.js} +1 -1
- package/dist/cdn/{IHJWEEOX.js → MVUIKY5Y.js} +1 -1
- package/dist/cdn/{RSYMKZMX.js → N673JFHK.js} +1 -1
- package/dist/cdn/{VWW6TY7N.js → NKVZYKL5.js} +1 -1
- package/dist/cdn/{ECG7HC37.js → O5NKLK7V.js} +1 -1
- package/dist/cdn/{MLD566HE.js → PEYVSFSE.js} +19 -19
- package/dist/cdn/{N5AW3HBF.js → PKQOLKTW.js} +1 -1
- package/dist/cdn/{TG4EXCPF.js → Q2GW5LB7.js} +1 -1
- package/dist/cdn/{IPECBZP3.js → QGEFY4ND.js} +1 -1
- package/dist/cdn/{KBUBJ24X.js → QV3NMKKZ.js} +1 -1
- package/dist/cdn/{GW6GNNLA.js → REZ2QR42.js} +1 -1
- package/dist/cdn/{IP3FZZNM.js → RKG6CXUU.js} +1 -1
- package/dist/cdn/{UFI4PRSB.js → SAYLTYWY.js} +1 -1
- package/dist/cdn/{ZB5KGMQ6.js → SOGVYNPI.js} +1 -1
- package/dist/cdn/{5W76WCRM.js → SSKHF7PO.js} +1 -1
- package/dist/cdn/{NJAGOS7G.js → T5TFLMQL.js} +1 -1
- package/dist/cdn/{K7VEKFCK.js → TOFVWGTG.js} +1 -1
- package/dist/cdn/{2B3QBXNI.js → TSA7UMSZ.js} +1 -1
- package/dist/cdn/{XWDLT2E4.js → U3MRRFML.js} +1 -1
- package/dist/cdn/{N4IFMTPA.js → VWTJHXHI.js} +1 -1
- package/dist/cdn/{6Y6EK76O.js → WHVW3P3O.js} +1 -1
- package/dist/cdn/{75XWLYW5.js → WJHIJTWS.js} +1 -1
- package/dist/cdn/{L6SM2ORZ.js → WU62O2AU.js} +1 -1
- package/dist/cdn/X7YEBHBF.js +2 -0
- package/dist/cdn/{FFE3EGXQ.js → X7Z4LEZH.js} +1 -1
- package/dist/cdn/{N4EH5HUB.js → XRP6IFM4.js} +1 -1
- package/dist/cdn/{ICJALFR4.js → Y6CFEFZM.js} +1 -1
- package/dist/cdn/{ZPFHE4XY.js → YF6HKRXX.js} +1 -1
- package/dist/cdn/{662GFATG.js → YFHB2EFH.js} +1 -1
- package/dist/cdn/{DE2LP6LN.js → YQIFZJTZ.js} +1 -1
- package/dist/cdn/{6ODWWOUP.js → YWCIV7ZZ.js} +1 -1
- package/dist/cdn/{AZZIMLGE.js → YWKPGNHB.js} +1 -1
- package/dist/cdn/{BMC75GCV.js → Z43DVT6G.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/heat-chart-model.js +46 -26
- package/dist/chunks/index2.js +713 -708
- package/dist/chunks/model-with-y-guides.js +6 -6
- package/dist/chunks/serial-chart-data.js +63 -62
- package/dist/chunks/serial-chart-model.js +107 -92
- package/dist/chunks/web-component-utils.js +414 -384
- package/dist/components/arcgis-chart/customElement.js +1927 -1923
- 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 +22 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +22 -22
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +15 -0
- package/dist/utils/data/index.d.ts +1 -1
- package/package.json +3 -3
- package/dist/cdn/2KCA3K57.js +0 -4
- package/dist/cdn/5NVUOG5B.js +0 -2
- package/dist/cdn/HFSVUO2D.js +0 -3
- package/dist/cdn/IK5VZ54O.js +0 -2
|
@@ -7,27 +7,27 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
7
7
|
/**
|
|
8
8
|
* Cursor crosshair from the chart config.
|
|
9
9
|
*
|
|
10
|
-
* **Note:** To set the cursor crosshair for the
|
|
10
|
+
* **Note:** To set the cursor crosshair for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
11
11
|
*/
|
|
12
12
|
accessor cursorCrosshair: WebChartCursorCrosshair | undefined;
|
|
13
13
|
/**
|
|
14
14
|
* Visibility of the horizontal line of the cursor's crosshair.
|
|
15
15
|
* - If the cursor crosshair or its horizontal line visibility is not set, the default value of `false` will be returned.
|
|
16
16
|
*
|
|
17
|
-
* **Note:** To set the cursor crosshair horizontal line visibility for the
|
|
17
|
+
* **Note:** To set the cursor crosshair horizontal line visibility for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
18
18
|
*/
|
|
19
19
|
accessor cursorCrosshairHorizontalLineVisibility: boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Style of the cursor's crosshair from the chart config.
|
|
22
22
|
*
|
|
23
|
-
* **Note:** To set the cursor crosshair style for the
|
|
23
|
+
* **Note:** To set the cursor crosshair style for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
24
24
|
*/
|
|
25
25
|
accessor cursorCrosshairStyle: ISimpleLineSymbol | undefined;
|
|
26
26
|
/**
|
|
27
27
|
* Visibility of the vertical line of the cursor's crosshair.
|
|
28
28
|
* - If the cursor crosshair or its vertical line visibility is not set, the default value of `false` will be returned.
|
|
29
29
|
*
|
|
30
|
-
* **Note:** To set the cursor crosshair vertical line visibility for the
|
|
30
|
+
* **Note:** To set the cursor crosshair vertical line visibility for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
31
31
|
*/
|
|
32
32
|
accessor cursorCrosshairVerticalLineVisibility: boolean;
|
|
33
33
|
/** Generate the proper y-axis title from the current config. */
|
|
@@ -148,7 +148,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
148
148
|
getVerticalAxisLabelsBehavior(): WebChartLabelBehavior;
|
|
149
149
|
/**
|
|
150
150
|
* Sets the visibility of the specified axis labels.
|
|
151
|
-
* **Note:** The labels visibility for the
|
|
151
|
+
* **Note:** The labels visibility for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
152
152
|
*
|
|
153
153
|
* @param isVisible - isVisible The visibility state for the axis labels.
|
|
154
154
|
* @param axisIndex - axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
@@ -156,7 +156,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
156
156
|
setAxisLabelsVisibility(isVisible: boolean, axisIndex: number): void;
|
|
157
157
|
/**
|
|
158
158
|
* Sets the scrollbar configuration for the specified axis.
|
|
159
|
-
* **Note:** The scrollbar configuration for the
|
|
159
|
+
* **Note:** The scrollbar configuration for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
160
160
|
*
|
|
161
161
|
* @param scrollbar - The scrollbar configuration to set.
|
|
162
162
|
* @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
@@ -164,7 +164,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
164
164
|
setAxisScrollbar(scrollbar: WebChartAxisScrollBar, axisIndex: number): void;
|
|
165
165
|
/**
|
|
166
166
|
* Sets the title text symbol for the specified axis. Contains styling information such as font, color, and symbol style.
|
|
167
|
-
* **Note:** The title text symbol for the
|
|
167
|
+
* **Note:** The title text symbol for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
168
168
|
*
|
|
169
169
|
* @param titleSymbol - The title text symbol to set.
|
|
170
170
|
* @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
@@ -172,7 +172,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
172
172
|
setAxisTitleSymbol(titleSymbol: WebChartTextSymbol | undefined, axisIndex: number): void;
|
|
173
173
|
/**
|
|
174
174
|
* Sets the title text for the specified axis.
|
|
175
|
-
* **Note:** The title text for the
|
|
175
|
+
* **Note:** The title text for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
176
176
|
*
|
|
177
177
|
* @param titleText - The title text for the axis.
|
|
178
178
|
* @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
@@ -180,7 +180,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
180
180
|
setAxisTitleText(titleText: string, axisIndex: number): void;
|
|
181
181
|
/**
|
|
182
182
|
* Sets the visibility of the specified axis title.
|
|
183
|
-
* **Note:** The title visibility for the
|
|
183
|
+
* **Note:** The title visibility for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
184
184
|
*
|
|
185
185
|
* @param isVisible - The visibility state for the axis title.
|
|
186
186
|
* @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
@@ -188,7 +188,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
188
188
|
setAxisTitleVisibility(isVisible: boolean, axisIndex: number): void;
|
|
189
189
|
/**
|
|
190
190
|
* Sets the value format for the specified axis.
|
|
191
|
-
* **Note:** The value format for the
|
|
191
|
+
* **Note:** The value format for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
192
192
|
*
|
|
193
193
|
* @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
194
194
|
* @param valueFormat - The value format to set.
|
|
@@ -196,7 +196,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
196
196
|
setAxisValueFormat(axisIndex: number, valueFormat?: CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions): void;
|
|
197
197
|
/**
|
|
198
198
|
* Sets the visibility of the specified axis.
|
|
199
|
-
* **Note:** The visibility for the
|
|
199
|
+
* **Note:** The visibility for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
200
200
|
*
|
|
201
201
|
* @param isVisible - isVisible The visibility state for the axis.
|
|
202
202
|
* @param axisIndex - axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
@@ -207,7 +207,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
207
207
|
* - This setting is only applicable to the axis of type ValueAxis.
|
|
208
208
|
* - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
209
209
|
*
|
|
210
|
-
* **Note:** To set the buffer for the
|
|
210
|
+
* **Note:** To set the buffer for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
211
211
|
*
|
|
212
212
|
* @param buffer - The setting for the buffer
|
|
213
213
|
* @param axisIndex - The index of the axis
|
|
@@ -217,7 +217,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
217
217
|
* Sets the display cursor tooltip setting for the specified axis.
|
|
218
218
|
* - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
219
219
|
*
|
|
220
|
-
* **Note:** To set the display cursor tooltip for the
|
|
220
|
+
* **Note:** To set the display cursor tooltip for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
221
221
|
*
|
|
222
222
|
* @param displayCursorTooltip - The display cursor tooltip setting for the axis.
|
|
223
223
|
* @param axisIndex - The index of the axis to set the display cursor tooltip for.
|
|
@@ -229,7 +229,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
229
229
|
* - This setting is only applicable to the axis of type ValueAxis.
|
|
230
230
|
* - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
231
231
|
*
|
|
232
|
-
* **Note:** To set the display zero line for the
|
|
232
|
+
* **Note:** To set the display zero line for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
233
233
|
*
|
|
234
234
|
* @param displayZeroLine - The display zero line setting for the axis.
|
|
235
235
|
* @param axisIndex - The index of the axis to set the display zero line for.
|
|
@@ -237,7 +237,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
237
237
|
setDisplayZeroLine(displayZeroLine: boolean, axisIndex: number): void;
|
|
238
238
|
/**
|
|
239
239
|
* Sets the grid lines symbol. Contains styling information such as line width, line style, and line color.
|
|
240
|
-
* **Note:** To set the grid lines symbol for the
|
|
240
|
+
* **Note:** To set the grid lines symbol for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
241
241
|
*
|
|
242
242
|
* @param linesSymbol - The grid lines symbol.
|
|
243
243
|
* @param axisIndices - The indices of the axes to set the grid lines symbol for.
|
|
@@ -245,7 +245,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
245
245
|
setGridLinesSymbol(linesSymbol: ISimpleLineSymbol | undefined, axisIndices?: number[]): void;
|
|
246
246
|
/**
|
|
247
247
|
* Sets the horizontal axis labels behavior for the chart.
|
|
248
|
-
* **Note:** The horizontal axis labels behavior for the
|
|
248
|
+
* **Note:** The horizontal axis labels behavior for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
249
249
|
*
|
|
250
250
|
* @param horizontalBehavior - The behavior for the horizontal axis labels.
|
|
251
251
|
*/
|
|
@@ -255,7 +255,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
255
255
|
* - This setting is only applicable to the axis of type ValueAxis.
|
|
256
256
|
* - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
257
257
|
*
|
|
258
|
-
* **Note:** To set the integer only values for the
|
|
258
|
+
* **Note:** To set the integer only values for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
259
259
|
*
|
|
260
260
|
* @param integerOnlyValues - The boolean value to set for the integer only values setting
|
|
261
261
|
* @param axisIndex - The index of the axis
|
|
@@ -266,7 +266,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
266
266
|
* - `true`: Enable logarithmic scale for the specified axis.
|
|
267
267
|
* - `false`: Disable logarithmic scale for the specified axis.
|
|
268
268
|
*
|
|
269
|
-
* **Note:** The logarithmic scale for the
|
|
269
|
+
* **Note:** The logarithmic scale for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
270
270
|
*
|
|
271
271
|
* @param isLogarithmic - Whether to enable logarithmic scale for the specified axis.
|
|
272
272
|
* @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
@@ -274,7 +274,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
274
274
|
setLogarithmic(isLogarithmic: boolean, axisIndex: number): void;
|
|
275
275
|
/**
|
|
276
276
|
* Sets the maximum bound for the specified axis.
|
|
277
|
-
* **Note:** The maximum bound for the
|
|
277
|
+
* **Note:** The maximum bound for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
278
278
|
*
|
|
279
279
|
* @param newMaxBound - The value to set as the maximum bound.
|
|
280
280
|
* @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
@@ -282,7 +282,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
282
282
|
setMaxBound(newMaxBound: number | null, axisIndex: number): void;
|
|
283
283
|
/**
|
|
284
284
|
* Sets the minimum bound for the specified axis.
|
|
285
|
-
* **Note:** The minimum bound for the
|
|
285
|
+
* **Note:** The minimum bound for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
286
286
|
*
|
|
287
287
|
* @param newMinBound - The value to set as the minimum bound.
|
|
288
288
|
* @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
@@ -291,7 +291,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
291
291
|
/**
|
|
292
292
|
* Sets the tick spacing for the specified axis.
|
|
293
293
|
* - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
294
|
-
* **Note:** To set the tick spacing for the
|
|
294
|
+
* **Note:** To set the tick spacing for the secondary Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
295
295
|
*
|
|
296
296
|
* @param tickSpacing - The value to set for the tick spacing
|
|
297
297
|
* @param axisIndex - The index of the axis
|
|
@@ -299,7 +299,7 @@ export abstract class ModelWithMultiAxes extends ChartModel {
|
|
|
299
299
|
setTickSpacing(tickSpacing: number, axisIndex: number): void;
|
|
300
300
|
/**
|
|
301
301
|
* Sets the vertical axis labels behavior for the chart.
|
|
302
|
-
* **Note:** The vertical axis labels behavior for the
|
|
302
|
+
* **Note:** The vertical axis labels behavior for the secondary Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart. To enable the secondary Y-axis, use the `setSeriesToSecondaryYAxis(true, 1)` method to assign a series to the secondary Y-axis.
|
|
303
303
|
*
|
|
304
304
|
* @param verticalBehavior - The behavior for the vertical axis labels.
|
|
305
305
|
*/
|
|
@@ -63,6 +63,7 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
|
|
|
63
63
|
/**
|
|
64
64
|
* Gets whether the series should be assigned to the second value axis.
|
|
65
65
|
*
|
|
66
|
+
* @deprecated since 5.2. Use [getSeriesToSecondaryYAxis](https://developers.arcgis.com/javascript/latest/references/charts-components/model/serial-chart-model/serial-chart-model/#getSeriesToSecondaryYAxis) instead.
|
|
66
67
|
* @param seriesIndex - The index of the series.
|
|
67
68
|
*/
|
|
68
69
|
getAssignToSecondValueAxis(seriesIndex: number): boolean;
|
|
@@ -83,6 +84,12 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
|
|
|
83
84
|
* @param seriesIndex - The index of the series.
|
|
84
85
|
*/
|
|
85
86
|
getSeriesName(seriesIndex: number): string | undefined;
|
|
87
|
+
/**
|
|
88
|
+
* Gets whether the series should be assigned to the secondary y-axis.
|
|
89
|
+
*
|
|
90
|
+
* @param seriesIndex - The index of the series.
|
|
91
|
+
*/
|
|
92
|
+
getSeriesToSecondaryYAxis(seriesIndex: number): boolean;
|
|
86
93
|
/** Gets the sort order for the bar chart. */
|
|
87
94
|
getSortOrder(): HeatChartDataSortingKinds | SerialChartDataSortingKinds;
|
|
88
95
|
/**
|
|
@@ -103,6 +110,7 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
|
|
|
103
110
|
/**
|
|
104
111
|
* Sets whether the series should be assigned to the second value axis.
|
|
105
112
|
*
|
|
113
|
+
* @deprecated since 5.2. Use [setSeriesToSecondaryYAxis](https://developers.arcgis.com/javascript/latest/references/charts-components/model/serial-chart-model/serial-chart-model/#setSeriesToSecondaryYAxis) instead.
|
|
106
114
|
* @param assign - The value for the setting.
|
|
107
115
|
* @param seriesIndex - The index of the series.
|
|
108
116
|
*/
|
|
@@ -133,6 +141,13 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
|
|
|
133
141
|
* @param seriesIndex - The index of the series.
|
|
134
142
|
*/
|
|
135
143
|
setSeriesName(name: string, seriesIndex: number): void;
|
|
144
|
+
/**
|
|
145
|
+
* Sets whether the series should be assigned to the secondary y-axis.
|
|
146
|
+
*
|
|
147
|
+
* @param assign - The value for the setting.
|
|
148
|
+
* @param seriesIndex - The index of the series.
|
|
149
|
+
*/
|
|
150
|
+
setSeriesToSecondaryYAxis(assign: boolean, seriesIndex: number): void;
|
|
136
151
|
/**
|
|
137
152
|
* Sets the sort order for the bar chart.
|
|
138
153
|
*
|
|
@@ -162,7 +162,7 @@ export function getDataMinMaxFromSeries(props: {
|
|
|
162
162
|
*/
|
|
163
163
|
export function getAxisSeriesIds(props: {
|
|
164
164
|
chartConfig: WebChart;
|
|
165
|
-
|
|
165
|
+
isSecondaryYAxis?: boolean;
|
|
166
166
|
seriesIds?: string[];
|
|
167
167
|
}): string[] | undefined;
|
|
168
168
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/charts-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.28",
|
|
4
4
|
"description": "Reusable ArcGIS charting Web Components.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"luxon": "~3.7.2",
|
|
43
43
|
"simple-statistics": "^7.8.8",
|
|
44
44
|
"tslib": "^2.8.1",
|
|
45
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
46
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
45
|
+
"@arcgis/lumina": "5.2.0-next.28",
|
|
46
|
+
"@arcgis/toolkit": "5.2.0-next.28"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@arcgis/core": "^5.2.0-next",
|
package/dist/cdn/2KCA3K57.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{i as ve}from"./IVLVCLDE.js";import{c as W}from"./AK7X7SGI.js";import g from"./5JREGZML.js";import f from"./IPECBZP3.js";import e from"./4AF64XYR.js";import d from"./TSQOEJB4.js";import c from"./XKHA7K4P.js";import b from"./6ODWWOUP.js";import a from"./HFSVUO2D.js";import{c as D,d as y,r as V}from"./3TBK72EK.js";import{Ba as le,Ca as Y,Ea as O,Fa as ne,p as N,q as E}from"./PAIRUVLU.js";import{a as ie}from"./KX7KGXKQ.js";import{e as w,l as re,m as U,s as J}from"./SP2IPHWF.js";import{e as Q}from"./QP5UAIC6.js";import{a as oe}from"./XJFVSX2E.js";import{a as C,l as P}from"./547RDEMV.js";export default $arcgis.t(([{B:B,J:se,La:de,T:T,a:K,ic:I,rb:fe,tb:ce,wa:ue,zb:me},{c:G},{f:ye,g:_},{k:q,l:H,m:X,x:be},{b:ge},{a:xe,c:pe,d:Le},{la:ee,ma:Fe,na:te}])=>{function De(l){let{hour:e,minute:t=0,format:r,locale:a="en-US"}=l,o=r&&Object.keys(r).length>0?r:{hour:"numeric",minute:"2-digit",hour12:!1},i=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let n=new Date(2e3,0,1,e,t);i=new Intl.DateTimeFormat(a,o).format(n),i.includes(":")||i.startsWith("0")&&(i=i.slice(1))}return i}function he(l){let{weekdayNumber:e,format:t,locale:r="en-US",firstDayOfWeek:a=7}=l,o=t&&Object.keys(t).length>0?t:{weekday:"long"},i=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(a)&&a>0&&a<=7){let n=(e+a-1)%7,s=new Date(2e3,0,2+n);i=new Intl.DateTimeFormat(r,o).format(s)}return i}function Ce(l){let{monthNumber:e,format:t,locale:r="en-US"}=l,a=t&&Object.keys(t).length>0?t:{month:"long"},o=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let i=new Date(2e3,e-1);o=new Intl.DateTimeFormat(r,a).format(i)}return o}function we(l){let{value:e,formatLocale:t,unit:r,config:a,utilsStrings:o}=l,i={label:"",value:e.toString()};switch(r){case P.DayOfWeek:i={label:o.heatChartCalendarDatePartsUnits.dayOfWeek,value:he({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in a?a.firstDayOfWeek:ne,locale:t})};break;case P.MonthOfYear:i={label:o.heatChartCalendarDatePartsUnits.monthOfYear,value:Ce({monthNumber:e,locale:t})};break;case P.HourOfDay:i={label:o.heatChartCalendarDatePartsUnits.hourOfDay,value:De({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case P.DayOfMonth:i={label:o.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case P.DayOfYear:i={label:o.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case P.MinuteOfDay:i={label:o.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case P.WeekOfYear:i={label:o.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case P.QuarterOfYear:i={label:o.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return i}function Oe(l,e){return!re(l,e)}function st(l,e){return Oe(l,e)||l!==e}function ke(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function $e(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var Be=l=>{let{value:e,quoteAll:t=!1,locale:r,roundDecimals:a}=l,o=e==null?"":String(e);if(e===null)o="null";else if(e===void 0)o="";else if(typeof e=="number"&&Number.isFinite(e)&&r!==void 0){let i=$e(r),n=a??o.split(i)[1]?.length??2;o=new Intl.NumberFormat(r,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(o))&&(o=`"${o.replace(/"/gu,'""')}"`),o};function ut(l,e={}){let{columns:t,delimiter:r,includeHeader:a=!0,quoteAll:o=!1,locale:i,roundDecimals:n}=e,s=l.length===0,d="";if(!s){let u=t??Object.keys(l[0]),p=[],F=r??ke(i??"en");if(i!==void 0&&F!==","&&(d+=`sep=${F}\r
|
|
3
|
-
`),a){let L=u.map(b=>Be({value:b,quoteAll:o,locale:i,roundDecimals:n}));p.push(L.join(F))}l.forEach(L=>{let b=u.map(g=>Be({value:L[g],quoteAll:o,locale:i,roundDecimals:n}));p.push(b.join(F))}),d+=p.join(`\r
|
|
4
|
-
`)}return d}function dt(l){let{rawData:e,config:t,layer:r,fieldList:a,formatters:o,useRendererLabel:i,formatLocale:n,utilsStrings:s}=l,d=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let u=oe(t?.series);u===C.HistogramSeries?d=Ve(t,e,o):u===C.HeatSeries?d=Re({config:t,rows:e,layer:r,fieldList:a,formatLocale:n,utilsStrings:s}):u===C.BarSeries||u===C.LineSeries||u===C.ComboLineAndBarSeries?d=Ie({config:t,rows:e,layer:r,fieldList:a,formatters:o,useRendererLabel:i}):u===C.PieSeries?d=Ue({config:t,rows:e,layer:r,fieldList:a,formatters:o,useRendererLabel:i}):u===C.BoxPlotSeries&&(d=Ye({config:t,rows:e,layer:r,fieldList:a,formatters:o,useRendererLabel:i}))}return d}function S(l){let{value:e,originalValue:t,formatter:r}=l,a=e;return r!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(a=r(e,t)),a}function $(l){let{field:e,value:t,dataContext:r,layer:a,fieldList:o,formatter:i}=l,n;if(t==null||typeof t=="boolean"||Array.isArray(t))n=t;else if(typeof t=="string"||typeof t=="number"||t instanceof Date){let s=Ne({fieldName:e,dataContext:r})??(a!==void 0&&(typeof t=="string"||typeof t=="number")?me({queryObject:a,fieldName:e,fieldValue:t}):void 0);n=Pe({field:e,value:s??t,fieldList:o})}else n=t;return S({value:n,originalValue:t,formatter:i})}function k(l){let{field:e,row:t,layer:r,fieldList:a,formatter:o,useRendererLabel:i=!1}=l,n=Object.keys(t).find(u=>u.toLocaleLowerCase()===e.toLocaleLowerCase()),s=t[n??e],d=ue({value:s,dataContext:t,useRendererLabel:i});return $({field:e,value:d,dataContext:t,layer:r,fieldList:a,formatter:o})}function Me(l,e){let t=!1;if(l===e)t=!0;else if(l!=null&&e!=null){let r=String(l),a=String(e);t=r===a||!Number.isNaN(Number(r))&&!Number.isNaN(Number(a))&&Number(r)===Number(a)}return t}function Ne(l){let{fieldName:e,dataContext:t}=l,r=D.rendererSymbolField;return e===r&&t!==void 0?de(t):void 0}function Se(l){let{config:e,splitByField:t,splitByValue:r,splitByValueIndex:a,layer:o,fieldList:i}=l,n,s=e.series[a??-1]?.name;return s!==void 0?n=s:n=$({field:t,value:r,layer:o,fieldList:i}),n}function Re(l){let{config:e,rows:t,layer:r,fieldList:a,formatLocale:o,utilsStrings:i}=l,[n]=e.series,s=n.x,d=ee(e),u=te(e),p=_({config:e,xAxisField:s,numericFields:u,aggregationType:d,layer:r,fieldList:a});return t.map(F=>{let L=F[E.xField],b=F[E.yField],g=F[E.valueField],f=typeof g=="number"&&Number.isFinite(g)?g.toFixed(2):g,c={label:n.x,value:L},m={label:n.y,value:b};if(n.xTemporalBinning!==void 0){let{label:x,value:v}=we({value:Number(L),config:e,formatLocale:o,unit:n.xTemporalBinning.unit,utilsStrings:i});!V(x)&&!V(v)&&(c={label:x,value:v})}if(n.yTemporalBinning!==void 0){let{label:x,value:v}=we({value:Number(b),config:e,formatLocale:o,unit:n.yTemporalBinning.unit,utilsStrings:i});!V(x)&&!V(v)&&(m={label:x,value:v})}return{[c.label]:c.value,[m.label]:m.value,[p.description]:f}})}function Ve(l,e,t){let r=ge(l),a=`${w(W.Min)} of ${r}`,o=`${w(W.Max)} of ${r}`,i=`${w(W.Count)} of ${r}`;return e.map(n=>{let{minValue:s,maxValue:d,count:u}=n,p=U(s),F=U(d),L=U(u),b={};if(p&&(b[a]=S({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter})),F&&(b[o]=S({value:d,originalValue:d,formatter:t?.xAxisLabelFormatter})),p&&F){let g=S({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter}),f=S({value:d,originalValue:d,formatter:t?.xAxisLabelFormatter});b.Label=`${String(g??"")} - ${String(f??"")}`}return L&&(b[i]=u),b})}function Te(l,e,t){let r=Object.keys(l),a=[];return t?a=t.map(o=>r.find(i=>i.toLowerCase().includes(o.toLowerCase()))||""):a=r.filter(o=>o.toLowerCase().includes(e.toLowerCase())),a.filter(o=>o.trim()!=="")}function Ie(l){let{config:e,rows:t,layer:r,fieldList:a,formatters:o,useRendererLabel:i=!1}=l,n=ye(e),s=ee(e),d=w(s),u=te(e),p=T(e.series),F=G(e),L=Fe(e),{idField:b,isTraditionalTypeOID:g}=fe(se(r)),f=g&&u.length===1&&u[0]===b,c;switch(p){case y.BarAndLineNoAggregation:c=t.map(m=>{let x=k({field:n,row:m,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i}),v={[n]:x};return Object.assign(v,...u.map(A=>({[A]:S({value:m[A],originalValue:m[A]})}))),v});break;case y.BarAndLineFromFields:c=J(u,t).map(([m,x])=>{let v=I(e.series)[0],A={};return x!==void 0&&m!==void 0&&(A.Field=S({value:x[n],originalValue:x[n],formatter:o?.xAxisLabelFormatter}),A.Value=S({value:x[v],originalValue:x[v]})),A});break;case y.BarAndLineMonoField:case y.BarAndLineMultiFields:c=t.map(m=>{let x=k({field:n,row:m,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i}),v={[n]:x};return u.forEach((A,h)=>{let M=_({config:e,xAxisField:n,numericFields:u,aggregationType:s,layer:r,numericFieldIndex:h,fieldList:a}),R=I(e.series)[h],ae=R,Z=R;R.toLowerCase()===M.name.toLowerCase()&&(ae=M.description,Z=M.name),v[ae]=S({value:m[Z],originalValue:m[Z]})}),v});break;case y.BarAndLineSplitBy:c=t.flatMap(m=>{let x=I(e.series),v=k({field:n,row:m,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i});return F.map((A,h)=>{let M=Se({config:e,splitByField:L,splitByValue:A,splitByValueIndex:h,layer:r,fieldList:a});return{[n]:v,[L]:M,[f?d:`${d} of ${u[0]}`]:m[x[h]]}})});break;case y.BarAndLineSplitByNoAggregation:c=t.map(m=>{let x=k({field:n,row:m,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i}),v=Te(m,u[0],F),A=m[L],h=F.findIndex(R=>Me(R,A)),M=Se({config:e,splitByField:L,splitByValue:A,splitByValueIndex:h>=0?h:void 0,layer:r,fieldList:a});return{[n]:x,[L]:M,[u[0]]:m[v[0]]}});break;default:c=t}return c}function je(l){if(l.length===0)return[];let e=l.reduce((t,r)=>{for(let[a,o]of Object.entries(r))typeof o=="number"&&Number.isFinite(o)&&(t[a]=(t[a]??0)+o);return t},{});return l.map(t=>{let r={...t};for(let[a,o]of Object.entries(t))if(typeof o=="number"&&e[a]>0){let i=o/e[a];r[`${a}${O}`]=i.toPrecision(2)}return r})}function Ue(l){let{config:e,rows:t,layer:r,fieldList:a,formatters:o,useRendererLabel:i=!1}=l,n=xe(e),s=T(e.series),d=je(t),u=pe(e),p=s!==y.PieFromFields?Q.Category:Q.Fields,F=Le(e,p),L=_({config:e,xAxisField:n,numericFields:u,aggregationType:F,mode:p,layer:r,fieldList:a}),b=I(e.series)[0];return s===y.PieFromCategory||s===y.PieNoAggregation?d=d.map(g=>{let f=k({field:n,row:g,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i}),c={[n]:f},m=b,x=b;return s===y.PieFromCategory&&b.toLowerCase()===L.name.toLowerCase()&&(m=L.description,x=L.name),c[m]=S({value:g[x],originalValue:g[x]}),c[w(O.trim())]=S({value:g[`${x}${O}`],originalValue:g[`${x}${O}`]}),c}):s===y.PieFromFields&&(d=J(u,d).map(([g,f])=>{let c={};return f!==void 0&&g!==void 0&&(c.Field=S({value:f[n],originalValue:f[n],formatter:o?.xAxisLabelFormatter}),c.Value=S({value:f[b],originalValue:f[b]}),c[w(O.trim())]=S({value:f[`${b}${O}`],originalValue:f[`${b}${O}`]})),c})),d}function z(l){let{rawData:e,keyBase:t="",outRow:r}=l;for(let[a,o]of Object.entries(B)){let i=e[t+o];i!==void 0&&(r[a]=i);let n=e[t+o+le];n!==void 0&&(r[`${a} Outlier`]=n);let s=e[t+o+Y];s!==void 0&&(r[`${a} Z-Score`]=s)}}function j(l){let{rawData:e,outRow:t,config:r,boxPlotSubType:a,layer:o,fieldList:i}=l,n=q(r),s=X(r),d=H(r),u=B.Outlier,p=N;switch(a){case y.BoxPlotMonoFieldAndCategory:{let b=Pe({field:n,value:e[n],fieldList:i});t[n]=b,t[w(B.Outlier)]=e[u];break}case y.BoxPlotMultiFieldsAndCategory:{t[w(n)]=e[n],u=`${s.find(b=>Object.keys(e).some(g=>g.toLowerCase().includes(b.toLowerCase())))??""}_${u}`,t[w(B.Outlier)]=e[u];break}case y.BoxPlotMonoFieldAndSplitBy:case y.BoxPlotMultiFieldsAndSplitBy:{let b=String(e[d]),g=$({field:d,value:b,layer:o,fieldList:i});u=`${b}_${u}`,t.Field=e[p],t[w(d)]=g,t[w(B.Outlier)]=e[u];break}case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{let b=String(e[d]),g=$({field:d,value:b,layer:o,fieldList:i});u=`${b}_${u}`,t[w(n)]=e[n],t[w(d)]=g,t[w(B.Outlier)]=e[u];break}case y.BoxPlotMonoField:case y.BoxPlotMultiFields:default:{t.Field=e[p],t[w(B.Outlier)]=e[u];break}}let F=`${u}${Y}`,L=e[F];L!==void 0&&(t[`${w(B.Outlier)} Z-Score`]=L)}function Ee(l){let{rawData:e,outRow:t,config:r,splitByValue:a,layer:o,fieldList:i}=l,n=T(r.series),s=e[`${a}_${B.Average}`],d=H(r),u=q(r),p="";switch(n){case y.BoxPlotMonoFieldAndSplitBy:{p=`${a}_${d}`,t.Field=e[N],t[w(d)]=$({field:d,value:e[p],layer:o,fieldList:i});break}case y.BoxPlotMultiFieldsAndSplitBy:{p=`${a}_${B.Average}`,t.Field=e[N],t[w(d)]=$({field:d,value:e[p],layer:o,fieldList:i});break}case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{p=`${a}_${B.Average}`,t[u]=e[u],t[w(d)]=$({field:d,value:a,layer:o,fieldList:i});break}}t[w(B.Average)]=s;let F=`${String(s)}${Y}`,L=e[F];L!==void 0&&(t[`${w(B.Average)} Z-Score`]=L)}function Ye(l){let{config:e,rows:t,layer:r,fieldList:a,formatters:o,useRendererLabel:i=!1}=l,n=T(e.series),s=n,d=be(e),u=Array.isArray(t)&&t.length>0&&t.every(f=>f[D.boxPlot.boxPlotMeanLineMarkerId]!==void 0);d&&!u&&(n===y.BoxPlotMonoFieldAndSplitBy?s=y.BoxPlotMonoField:n===y.BoxPlotMultiFieldsAndSplitBy?s=y.BoxPlotMultiFields:n===y.BoxPlotMonoFieldAndCategoryAndSplitBy&&(s=y.BoxPlotMonoFieldAndCategory));let p=q(e),F=X(e),L=G(e),b=H(e),g;switch(s){case y.BoxPlotMonoField:case y.BoxPlotMonoFieldAndCategory:{g=t.map(f=>{let c={};if(f[D.boxPlot.boxPlotOutlierId])j({rawData:f,outRow:c,config:e,boxPlotSubType:s,layer:r,fieldList:a});else{if(s===y.BoxPlotMonoFieldAndCategory){let m=k({field:p,row:f,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i});c[p]=m}else s===y.BoxPlotMonoField&&(c.Field=f[N]);z({rawData:f,outRow:c})}return c});break}case y.BoxPlotMultiFields:{g=t.flatMap(f=>{let c={};return f[D.boxPlot.boxPlotOutlierId]?j({rawData:f,outRow:c,config:e,boxPlotSubType:s,layer:r,fieldList:a}):(c.Field=f[N],z({rawData:f,outRow:c})),[c]});break}case y.BoxPlotMultiFieldsAndCategory:{g=t.flatMap(f=>F.map(c=>{let m={},x="";if(m.Field=c,f[D.boxPlot.boxPlotOutlierId])j({rawData:f,outRow:m,config:e,boxPlotSubType:s,layer:r,fieldList:a});else{if(s===y.BoxPlotMultiFieldsAndCategory){let v=k({field:p,row:f,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i});m[p]=v,x=`${c}_`}z({rawData:f,outRow:m,keyBase:x})}return m}));break}case y.BoxPlotMonoFieldAndSplitBy:case y.BoxPlotMultiFieldsAndSplitBy:case y.BoxPlotMonoFieldAndCategoryAndSplitBy:{g=t.flatMap(f=>{if(f[D.boxPlot.boxPlotOutlierId]){let c={};return j({rawData:f,outRow:c,config:e,boxPlotSubType:s,layer:r,fieldList:a}),[c]}else return f[D.boxPlot.boxPlotMeanLineMarkerId]?L?.map(c=>{let m={};return Ee({rawData:f,outRow:m,splitByValue:c,config:e,layer:r,fieldList:a}),m}):L.map(c=>{let m={},x=$({field:b,value:c,layer:r,fieldList:a});if(s===y.BoxPlotMonoFieldAndCategoryAndSplitBy){let v=k({field:p,row:f,layer:r,fieldList:a,formatter:o?.xAxisLabelFormatter,useRendererLabel:i});m[p]=v}return f[D.boxPlot.boxPlotOutlierId]?j({rawData:f,outRow:m,config:e,boxPlotSubType:s}):(m[b]=x,z({rawData:f,outRow:m,keyBase:`${c}_`})),m})});break}default:g=t}return g}var Ae=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},We=l=>K.fromJSDate(l,{zone:"local"}).toFormat("yyyy-LL-dd"),_e=l=>K.fromJSDate(l,{zone:"local"}).toFormat("yyyy-LL-dd'T'HH:mm:ss"),Pe=l=>{let{field:e,value:t,fieldList:r}=l,a=t,o=r?.find(i=>i.name===e);if(o){let i=o.type===ie.DateOnly;ce(o)&&!i?a=Ae(t)?_e(new Date(t)):t:i&&typeof t!="string"&&(a=Ae(t)?We(new Date(t)):t)}return a};function ft(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:r,syncViewTimeExtent:a}=l,o=e;return t&&(r===ve.Refresh||a)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(o={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),o}return{a:De,b:he,c:Ce,d:we,e:Oe,f:st,g:ut,h:dt,i:ft}},a,b,c,d,e,f,g)
|
package/dist/cdn/5NVUOG5B.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import t from"./IK5VZ54O.js";import s from"./5JREGZML.js";import q from"./IUMYBJDG.js";import p from"./75XWLYW5.js";import o from"./XKHA7K4P.js";import n from"./NJAGOS7G.js";import m from"./IP3FZZNM.js";import l from"./ADJHTT4M.js";import k from"./XWDLT2E4.js";import"./THTYR6IL.js";import j from"./Y5GMGU4M.js";import i from"./AYNWMLFD.js";import h from"./N3FUI2RC.js";import g from"./Y7HYSSRW.js";import f from"./6ODWWOUP.js";import"./Y7HBWU3M.js";import e from"./7LI5APDL.js";import d from"./L6SM2ORZ.js";import b from"./D46R6YHX.js";import"./WNKDEOFZ.js";import a from"./HFSVUO2D.js";import"./EZV7JSQJ.js";import{r as S}from"./3TBK72EK.js";import{pa as _}from"./PAIRUVLU.js";import"./KX7KGXKQ.js";import"./SP2IPHWF.js";import"./IHHPUKGG.js";import"./RIM4HLHN.js";import"./KDJ5RVHA.js";import{c as r}from"./QP5UAIC6.js";import"./XJFVSX2E.js";import{a as u,b as c}from"./547RDEMV.js";import"./U67P6YAZ.js";export default $arcgis.t(([{rb:l},,,{c:i},,,,,,,,,,{e:y},,,{$:Q,A:v,B:L,C:b,D:R,E:w,F:D,G:I,H:P,I:k,J:B,K:N,L:U,M:W,N:E,O:h,P:f,Q:M,R:Y,S:G,T:H,U:V,V:X,W:j,X:Z,Y:q,Z:J,_:K,aa:$,ba:z,ca:tt,da:et,ea:it,fa:st,ga:ot,ha:rt,ia:nt,ja:at,ka:gt,oa:m,u:C,v:T,w:A,x:F,y:O,z:x},{a:pt,b:ct,d:lt}])=>{var yt=Object.defineProperty,ht=Object.getOwnPropertyDescriptor,s=(p,t,o,a)=>{for(var n=ht(t,o),g=p.length-1,d;g>=0;g--)(d=p[g])&&(n=d(t,o,n)||n);return n&&yt(t,o,n),n},e=class extends lt{constructor(){super(...arguments),this._chartType=u.HeatSeries}generateChartTitle(){return this.layerInfo!==void 0?gt(this._config,this.layerInfo,this.commonStrings):""}generateYAxisTitle(){let t=this.yTemporalBinning?.unit;return t!==void 0?this.commonStrings.utilsStrings.heatChartCalendarDatePartsUnits[t]:""}get layer(){return super.layer}async setup(t){await this.loadConfigFromLayer(t),this.setupLocalProps(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get yAxisField(){return L(this._config)}set yAxisField(t){v({yField:t,config:this._config,layerInfo:this.layerInfo})}get viewType(){return K(this._config)}set viewType(t){this.guardSetterFromAsyncOverwrite(()=>{Q(t,this._config),this.emitConfigUpdate("heatChartViewType")})}get xTemporalBinning(){return R(this._config)}set xTemporalBinning(t){b({commonStrings:this.commonStrings,binning:t,config:this._config})}get yTemporalBinning(){return D(this._config)}set yTemporalBinning(t){w({commonStrings:this.commonStrings,binning:t,config:this._config})}get breaksCount(){return $(this._config)}set breaksCount(t){this.guardSetterFromAsyncOverwrite(()=>{z(t,this._config),this.emitConfigUpdate("breaksCount")})}get classificationMethod(){return tt(this._config)}set classificationMethod(t){this.guardSetterFromAsyncOverwrite(()=>{t&&(et(t,this._config),this.emitConfigUpdate("classificationMethod"))})}get colorRampName(){return ot(this._config)}set colorRampName(t){rt(t,this._config)}get isColorRampFlipped(){return nt(this._config)}set isColorRampFlipped(t){at(t,this._config)}get hideEmptyRowsAndColumns(){return C(this._config)}set hideEmptyRowsAndColumns(t){T(this._config,t)}get gridLineWidth(){return P(this._config)}set gridLineWidth(t){I(t,this._config)}get gridLineColor(){return B(this._config)}set gridLineColor(t){k(t,this._config)}get seriesName(){return pt(0,this._config)}set seriesName(t){typeof t=="string"&&ct(t,0,this._config)}get heatRulesType(){return F(this._config)}set heatRulesType(t){A(this._config,t)}get gradientRules(){return x(this._config)}set gradientRules(t){O(this._config,t)}getGridLinesSymbol(){return this._config.series?.[0]?.gridLine}setGridLinesSymbol(t){this._config.series?.[0]&&(this._config.series[0].gridLine=t)}get numericFields(){let t=W(this._config);return t!==void 0?[t]:[]}set numericFields(t){let{idField:o}=l(this.layerInfo.layer),a=S(t[0]),n=a?o:t[0];E({field:n,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings});let g=h(this._config);a&&g!==c.Count&&f({aggregationType:c.Count,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get aggregationType(){return h(this._config)}set aggregationType(t){f({aggregationType:t,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings})}get splitByField(){return""}set splitByField(t){}get legendPosition(){return U(this._config)}set legendPosition(t){N(t,this._config)}get nullPolicy(){return M(this._config)}set nullPolicy(t){Y(t,this._config)}get emptyCell(){return G(this._config)}set emptyCell(t){this.guardSetterFromAsyncOverwrite(()=>{H(t,this._config),this.emitConfigUpdate("emptyCell")})}getSortOrder(){return r.Asc}setSortOrder(t,o){}getXAxisSortOrder(){let t=m(this._config)[0];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setXAxisSortOrder(t,o){y(t,this._config,o)}getYAxisSortOrder(){let t=m(this._config)[1];return t===r.Asc||t===r.Desc||t===r.customSort?t:r.Asc}setYAxisSortOrder(t,o){y(t,this._config,o,!0)}get emptyCellText(){return V(this._config)}set emptyCellText(t){X(t,this._config)}get includeLeapDay(){return j(this._config)}set includeLeapDay(t){this.guardSetterFromAsyncOverwrite(()=>{Z(t,this._config),this.emitConfigUpdate("includeLeapDay")})}get firstDayOfWeek(){return st(this._config)}set firstDayOfWeek(t){this.guardSetterFromAsyncOverwrite(()=>{it(t,this._config),this.emitConfigUpdate("firstDayOfWeek")})}get emptyCellSymbol(){return q(this._config)}set emptyCellSymbol(t){J(t,this._config)}get rotated(){return!1}set rotated(t){}setAssignToSecondValueAxis(t,o){}set stackedType(t){}set binTemporalData(t){}set nullCategory(t){}generateDefaultConfig(){let t=_(this.commonStrings,l(this.layerInfo.layer).idField);return t.axes?.forEach((o,a)=>{o&&(o.valueFormat={intlOptions:{timeZone:void 0,dateStyle:a>0?"long":"medium"},type:"date"})}),t}};s([i],e.prototype,"yAxisField");s([i],e.prototype,"xTemporalBinning");s([i],e.prototype,"yTemporalBinning");s([i],e.prototype,"colorRampName");s([i],e.prototype,"isColorRampFlipped");s([i],e.prototype,"hideEmptyRowsAndColumns");s([i],e.prototype,"gridLineWidth");s([i],e.prototype,"gridLineColor");s([i],e.prototype,"seriesName");s([i],e.prototype,"heatRulesType");s([i],e.prototype,"gradientRules");s([i],e.prototype,"setGridLinesSymbol");s([i],e.prototype,"numericFields");s([i],e.prototype,"aggregationType");s([i],e.prototype,"splitByField");s([i],e.prototype,"legendPosition");s([i],e.prototype,"nullPolicy");s([i],e.prototype,"setSortOrder");s([i],e.prototype,"setXAxisSortOrder");s([i],e.prototype,"setYAxisSortOrder");s([i],e.prototype,"emptyCellText");s([i],e.prototype,"firstDayOfWeek");s([i],e.prototype,"emptyCellSymbol");s([i],e.prototype,"rotated");s([i],e.prototype,"setAssignToSecondValueAxis");s([i],e.prototype,"stackedType");s([i],e.prototype,"binTemporalData");s([i],e.prototype,"nullCategory");return e},a,b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t)
|