@arcgis/charts-components 5.2.0-next.60 → 5.2.0-next.62

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.
Files changed (141) hide show
  1. package/dist/cdn/{BXBY6D2F.js → 3IUZSUBJ.js} +1 -1
  2. package/dist/cdn/{DPTA2AET.js → 4DXQ255M.js} +1 -1
  3. package/dist/cdn/{67QYTLMM.js → 4F2MTKVF.js} +1 -1
  4. package/dist/cdn/4HNA5BEL.js +2 -0
  5. package/dist/cdn/{PLEC3GNT.js → 4II4V3R4.js} +1 -1
  6. package/dist/cdn/{ZWIF7LHW.js → 4SV3ARJE.js} +1 -1
  7. package/dist/cdn/{WTJ2NJ76.js → 5K4LYQAP.js} +1 -1
  8. package/dist/cdn/{2RYKKN36.js → 65QZ37RL.js} +1 -1
  9. package/dist/cdn/{O3VKOV2W.js → 6T37GQMM.js} +1 -1
  10. package/dist/cdn/{4COV22K4.js → 6ZJ4DH7D.js} +1 -1
  11. package/dist/cdn/{LGTXQIF7.js → 7H7MFSEY.js} +1 -1
  12. package/dist/cdn/{3YCGBAQY.js → 7JW7BKCY.js} +1 -1
  13. package/dist/cdn/{GARBFC7Q.js → 7Q5SYLKV.js} +1 -1
  14. package/dist/cdn/{BLZLMGO6.js → AJAOQCPS.js} +1 -1
  15. package/dist/cdn/{3AYXOX4U.js → AMM6O6DA.js} +1 -1
  16. package/dist/cdn/{JBFVGQSP.js → BIABAOQA.js} +1 -1
  17. package/dist/cdn/{Y5ZH7VS4.js → BP3IZMZQ.js} +1 -1
  18. package/dist/cdn/{WFW6BNDT.js → CNIDLTWS.js} +1 -1
  19. package/dist/cdn/{DGV6S2W3.js → CUW7EDSM.js} +1 -1
  20. package/dist/cdn/{QZCTLQBM.js → D5IKYXWS.js} +1 -1
  21. package/dist/cdn/DA4QOTYN.js +2 -0
  22. package/dist/cdn/{XM2GVJT3.js → DQXO7PWX.js} +1 -1
  23. package/dist/cdn/{6MNV7FJC.js → DT4C4JZW.js} +1 -1
  24. package/dist/cdn/{SYVPFDIW.js → EEF2GZWF.js} +1 -1
  25. package/dist/cdn/ELRXL4GL.js +2 -0
  26. package/dist/cdn/{6DOANSRL.js → FLA3PJ5I.js} +18 -18
  27. package/dist/cdn/{EUOJG5H6.js → FZOZWZSG.js} +1 -1
  28. package/dist/cdn/{AYUYEY5H.js → G3I2WY7S.js} +1 -1
  29. package/dist/cdn/{MJTWR33N.js → GK3ESMF2.js} +1 -1
  30. package/dist/cdn/{I3XBTQKJ.js → GQKDPSP6.js} +1 -1
  31. package/dist/cdn/{Z3LGGHZN.js → GRIVRWCF.js} +1 -1
  32. package/dist/cdn/{OWWQ5SYW.js → HHZSG3K6.js} +1 -1
  33. package/dist/cdn/{ZGBULDPL.js → IB5R6XBE.js} +1 -1
  34. package/dist/cdn/{EOHKNJSJ.js → INSAYWFB.js} +1 -1
  35. package/dist/cdn/{ZLXYBOM3.js → IP7NR32G.js} +1 -1
  36. package/dist/cdn/IPMFDZBI.js +2 -0
  37. package/dist/cdn/{JGESKW6S.js → JBO56HPJ.js} +1 -1
  38. package/dist/cdn/{RICA7GJM.js → JE4ZLQEX.js} +1 -1
  39. package/dist/cdn/JT2CHRVO.js +2 -0
  40. package/dist/cdn/JYS5HVHP.js +2 -0
  41. package/dist/cdn/{HOIPLQXD.js → KBMGQ3H6.js} +1 -1
  42. package/dist/cdn/{EAV3KAS7.js → KO6XLCKT.js} +1 -1
  43. package/dist/cdn/LK7Y2TPS.js +2 -0
  44. package/dist/cdn/{5YP7P6S3.js → LNMXGS7N.js} +1 -1
  45. package/dist/cdn/{HUNN3ERX.js → LYLK7H23.js} +1 -1
  46. package/dist/cdn/{2G65P262.js → MIL4ALAU.js} +1 -1
  47. package/dist/cdn/{NK66D65H.js → MIMPZBTK.js} +1 -1
  48. package/dist/cdn/{EMBMJCFZ.js → MN5LEOFQ.js} +1 -1
  49. package/dist/cdn/{5EYVH3PA.js → MRA3XRKD.js} +1 -1
  50. package/dist/cdn/{MXE4VPZS.js → MYAMCWA2.js} +1 -1
  51. package/dist/cdn/{TEWEPSIO.js → N2BF3AIP.js} +1 -1
  52. package/dist/cdn/{SUNHJPBW.js → NQYCZQ27.js} +1 -1
  53. package/dist/cdn/{UM7RIOCE.js → NSS4WWO7.js} +1 -1
  54. package/dist/cdn/{Y2WHHAAA.js → P7VFYZRI.js} +1 -1
  55. package/dist/cdn/{T62EETHJ.js → PZFM3BRK.js} +1 -1
  56. package/dist/cdn/PZUVU7CC.js +3 -0
  57. package/dist/cdn/{SQIKFO32.js → Q376XO5C.js} +1 -1
  58. package/dist/cdn/{VA6KJZ2Y.js → QGKWF4LR.js} +1 -1
  59. package/dist/cdn/QS6QHTAG.js +2 -0
  60. package/dist/cdn/{A36KQ6YP.js → QSFEGKYQ.js} +1 -1
  61. package/dist/cdn/{M744CFJ2.js → QXN2LIUA.js} +1 -1
  62. package/dist/cdn/{QTSF2LK7.js → R7VPFCG2.js} +1 -1
  63. package/dist/cdn/{BKK57XHL.js → S3YPXZ3Y.js} +1 -1
  64. package/dist/cdn/{J3CL6KB6.js → S7B57I24.js} +1 -1
  65. package/dist/cdn/{ANHW36VW.js → SSYHOPL2.js} +1 -1
  66. package/dist/cdn/{DBAM7MH7.js → SYU55EDE.js} +1 -1
  67. package/dist/cdn/{BHGOAHMJ.js → TGABTYRZ.js} +1 -1
  68. package/dist/cdn/{WZOHQJFB.js → TGXTKIAA.js} +1 -1
  69. package/dist/cdn/{JS6A5QAV.js → TRXKI7AQ.js} +1 -1
  70. package/dist/cdn/{KDCZQ6UT.js → V2POH2WS.js} +1 -1
  71. package/dist/cdn/{ISK4QVLY.js → VZPJL27P.js} +1 -1
  72. package/dist/cdn/WOE4UHYG.js +2 -0
  73. package/dist/cdn/WUUBA4AY.js +2 -0
  74. package/dist/cdn/{P5QEJOJS.js → X3B7R2CE.js} +1 -1
  75. package/dist/cdn/{JYITKARU.js → X4RUTR6U.js} +1 -1
  76. package/dist/cdn/{5MPXETTU.js → X7BEP5KL.js} +1 -1
  77. package/dist/cdn/{INISFVAK.js → XM6OTYSW.js} +1 -1
  78. package/dist/cdn/XS5G7ML2.js +2 -0
  79. package/dist/cdn/{KWA7OWHO.js → YN4QD76O.js} +1 -1
  80. package/dist/cdn/YQJBJRP7.js +2 -0
  81. package/dist/cdn/{L7TUV2MY.js → YWJTHRQP.js} +1 -1
  82. package/dist/cdn/{7DIQIFKR.js → ZOZ72K4S.js} +1 -1
  83. package/dist/cdn/index.js +1 -1
  84. package/dist/cdn/model/shared/setup-utils.js +1 -1
  85. package/dist/chunks/bar-chart-model.js +10 -10
  86. package/dist/chunks/box-plot-data.js +271 -279
  87. package/dist/chunks/box-plot-model.js +161 -146
  88. package/dist/chunks/chart-model.js +1 -1
  89. package/dist/chunks/class-breaks.js +66 -66
  90. package/dist/chunks/combo-bar-line-chart-model.js +12 -12
  91. package/dist/chunks/data.js +1 -1
  92. package/dist/chunks/gauge-model.js +1 -1
  93. package/dist/chunks/heat-chart-model.js +25 -25
  94. package/dist/chunks/histogram-model.js +1 -1
  95. package/dist/chunks/index2.js +2026 -2088
  96. package/dist/chunks/index4.js +1 -1
  97. package/dist/chunks/line-chart-model.js +11 -11
  98. package/dist/chunks/model-with-x-guides.js +5 -5
  99. package/dist/chunks/model-with-y-guides.js +33 -48
  100. package/dist/chunks/pie-chart-data.js +165 -189
  101. package/dist/chunks/pie-chart-model.js +9 -9
  102. package/dist/chunks/radar-chart-model.js +7 -7
  103. package/dist/chunks/scatterplot-model.js +1 -1
  104. package/dist/chunks/serial-chart-data.js +745 -770
  105. package/dist/chunks/serial-chart-model.js +19 -11
  106. package/dist/chunks/utils.js +36 -38
  107. package/dist/chunks/web-component-utils.js +38 -38
  108. package/dist/chunks/x-bounds.js +1 -1
  109. package/dist/components/arcgis-chart/customElement.d.ts +53 -11
  110. package/dist/components/arcgis-chart/customElement.js +2226 -2210
  111. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  112. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
  113. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +5 -5
  114. package/dist/docs/api.json +1 -1
  115. package/dist/docs/docs.json +1 -1
  116. package/dist/docs/vscode.html-custom-data.json +1 -1
  117. package/dist/docs/web-types.json +1 -1
  118. package/dist/index.js +171 -172
  119. package/dist/model/box-plot-model/box-plot-model.d.ts +7 -1
  120. package/dist/model/heat-chart-model/heat-chart-model.d.ts +20 -0
  121. package/dist/model/mixins/model-with-multi-axes.d.ts +61 -98
  122. package/dist/model/serial-chart-model/serial-chart-model.d.ts +12 -1
  123. package/dist/utils/chart-config/converter/index.js +26 -26
  124. package/dist/utils/data/categorical-data/index.d.ts +1 -1
  125. package/dist/utils/data/index.d.ts +1 -2
  126. package/dist/utils/layer/query-features/index.d.ts +2 -18
  127. package/dist/utils/layer/query-parser/index.d.ts +1 -2
  128. package/package.json +3 -3
  129. package/dist/cdn/3UHXOKCR.js +0 -2
  130. package/dist/cdn/54W4C75M.js +0 -2
  131. package/dist/cdn/6PIQ2O5S.js +0 -2
  132. package/dist/cdn/7CMQGTU6.js +0 -2
  133. package/dist/cdn/EBSQRCQQ.js +0 -2
  134. package/dist/cdn/EDVN42ME.js +0 -2
  135. package/dist/cdn/H2EMIJME.js +0 -2
  136. package/dist/cdn/JEVWE6ER.js +0 -2
  137. package/dist/cdn/O3DJD5IR.js +0 -2
  138. package/dist/cdn/V5W5LNFT.js +0 -2
  139. package/dist/cdn/V6LKZUEZ.js +0 -3
  140. package/dist/cdn/XKZ44LA2.js +0 -2
  141. package/dist/cdn/YVSZN6IH.js +0 -2
@@ -4,30 +4,18 @@ import type { WebChartLabelBehavior } from "../../spec/chart-object-literals.js"
4
4
  import type { ISimpleLineSymbol } from "../../spec/rest-js-types.js";
5
5
 
6
6
  export abstract class ModelWithMultiAxes extends ChartModel {
7
- /**
8
- * Cursor crosshair from the chart config.
9
- *
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
- */
7
+ /** Gets the cursor crosshair. */
12
8
  accessor cursorCrosshair: WebChartCursorCrosshair | undefined;
13
9
  /**
14
- * Visibility of the horizontal line of the cursor's crosshair.
10
+ * Gets the visibility of the horizontal line of the cursor's crosshair.
15
11
  * - If the cursor crosshair or its horizontal line visibility is not set, the default value of `false` will be returned.
16
- *
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
12
  */
19
13
  accessor cursorCrosshairHorizontalLineVisibility: boolean;
20
- /**
21
- * Style of the cursor's crosshair from the chart config.
22
- *
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
- */
14
+ /** Gets the style of the cursor's crosshair. */
25
15
  accessor cursorCrosshairStyle: ISimpleLineSymbol | undefined;
26
16
  /**
27
- * Visibility of the vertical line of the cursor's crosshair.
17
+ * Gets the visibility of the vertical line of the cursor's crosshair.
28
18
  * - If the cursor crosshair or its vertical line visibility is not set, the default value of `false` will be returned.
29
- *
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
19
  */
32
20
  accessor cursorCrosshairVerticalLineVisibility: boolean;
33
21
  /** Generate the proper y-axis title from the current config. */
@@ -35,14 +23,13 @@ export abstract class ModelWithMultiAxes extends ChartModel {
35
23
  /**
36
24
  * Gets the visibility of the specified axis labels.
37
25
  *
38
- * @param axisIndex - axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
39
- * @returns {boolean}
26
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
40
27
  */
41
28
  getAxisLabelsVisibility(axisIndex: number): boolean;
42
29
  /**
43
30
  * Gets the scrollbar configuration for the specified axis.
44
31
  *
45
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
32
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
46
33
  */
47
34
  getAxisScrollbar(axisIndex: number): WebChartAxisScrollBar | undefined;
48
35
  /**
@@ -54,54 +41,50 @@ export abstract class ModelWithMultiAxes extends ChartModel {
54
41
  /**
55
42
  * Gets the title text of the specified axis.
56
43
  *
57
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
44
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
58
45
  */
59
46
  getAxisTitleText(axisIndex: number): string;
60
47
  /**
61
48
  * Gets the visibility of the specified axis title.
62
49
  *
63
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
50
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
64
51
  */
65
52
  getAxisTitleVisibility(axisIndex: number): boolean;
66
53
  /**
67
54
  * Gets the value format for the specified axis.
68
55
  *
69
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
56
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
70
57
  */
71
58
  getAxisValueFormat(axisIndex: number): CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined;
72
59
  /**
73
60
  * Gets the visibility of the specified axis.
74
61
  *
75
- * @param axisIndex - axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
76
- * @returns {boolean}
62
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
77
63
  */
78
64
  getAxisVisibility(axisIndex: number): boolean;
79
65
  /**
80
66
  * Gets the buffer setting for the specified axis.
81
- * - This setting is only applicable to the axis of type ValueAxis.
82
- * - To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
67
+ * - This setting is only applicable to the axis of type `ValueAxis`.
83
68
  * - If the `buffer` is not set on the axis, the default value of `false` will be returned.
84
69
  *
85
- * @param axisIndex - The index of the axis
70
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
86
71
  */
87
72
  getBuffer(axisIndex: number): boolean;
88
73
  /** Get the default x-axis title text. */
89
74
  getDefaultXAxisTitleText(): string;
90
75
  /**
91
76
  * Gets the display cursor tooltip setting for the specified axis.
92
- * - To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
93
- * - If the displayCursorTooltip is not set on the axis, the default value of `false` will be returned.
77
+ * - If `displayCursorTooltip` is not set on the axis, the default value of `false` will be returned.
94
78
  *
95
- * @param axisIndex - The index of the axis to get the display cursor tooltip for.
79
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
96
80
  */
97
81
  getDisplayCursorTooltip(axisIndex: number): boolean;
98
82
  /**
99
83
  * Gets the display zero line setting for the specified axis.
100
- * - This setting is only applicable to the axis of type ValueAxis.
101
- * - To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
102
- * - If the displayZeroLine is not set on the axis, the default value of `false` will be returned.
84
+ * - This setting is only applicable to the axis of type `ValueAxis`.
85
+ * - If the `displayZeroLine` is not set on the axis, the default value of `false` will be returned.
103
86
  *
104
- * @param axisIndex - The index of the axis to get the display zero line for.
87
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
105
88
  */
106
89
  getDisplayZeroLine(axisIndex: number): boolean;
107
90
  /** Gets the grid lines symbol. Contains styling information such as line width, line style, and line color. */
@@ -110,196 +93,176 @@ export abstract class ModelWithMultiAxes extends ChartModel {
110
93
  getHorizontalAxisLabelsBehavior(): WebChartLabelBehavior;
111
94
  /**
112
95
  * Gets the integer only values setting for the specified axis.
113
- * - This setting is only applicable to the axis of type ValueAxis.
114
- * - To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
96
+ * - This setting is only applicable to the axis of type `ValueAxis`.
115
97
  * - If the `integerOnlyValues` is not set on the axis, the default value of `false` will be returned.
116
98
  *
117
- * @param axisIndex - The index of the axis
99
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
118
100
  */
119
101
  getIntegerOnlyValues(axisIndex: number): boolean;
120
102
  /**
121
103
  * Gets whether logarithmic scale is enabled for the specified axis.
122
- * - `true`: Logarithmic scale is enabled for the specified axis.
123
- * - `false`: Logarithmic scale is disabled for the specified axis.
124
104
  *
125
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
105
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
126
106
  */
127
107
  getLogarithmic(axisIndex: number): boolean;
128
108
  /**
129
109
  * Gets the maximum bound for the specified axis.
130
110
  *
131
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
111
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
132
112
  */
133
113
  getMaxBound(axisIndex: number): number;
134
114
  /**
135
115
  * Gets the minimum bound for the specified axis.
136
116
  *
137
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
117
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
138
118
  */
139
119
  getMinBound(axisIndex: number): number;
140
120
  /**
141
121
  * Gets the tick spacing setting for the specified axis.
142
- * - To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
143
122
  *
144
- * @param axisIndex - The index of the axis
123
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
145
124
  */
146
125
  getTickSpacing(axisIndex: number): number | undefined;
147
126
  /** Gets the vertical axis labels behavior for the chart. */
148
127
  getVerticalAxisLabelsBehavior(): WebChartLabelBehavior;
149
128
  /**
150
129
  * Sets the visibility of the specified axis labels.
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
130
  *
153
- * @param isVisible - isVisible The visibility state for the axis labels.
154
- * @param axisIndex - axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
131
+ * @param isVisible - The visibility state for the axis labels.
132
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
155
133
  */
156
134
  setAxisLabelsVisibility(isVisible: boolean, axisIndex: number): void;
157
135
  /**
158
136
  * Sets the scrollbar configuration for the specified axis.
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
137
  *
161
138
  * @param scrollbar - The scrollbar configuration to set.
162
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
139
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
163
140
  */
164
141
  setAxisScrollbar(scrollbar: WebChartAxisScrollBar, axisIndex: number): void;
165
142
  /**
166
143
  * 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 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
144
  *
169
145
  * @param titleSymbol - The title text symbol to set.
170
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
146
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
171
147
  */
172
148
  setAxisTitleSymbol(titleSymbol: WebChartTextSymbol | undefined, axisIndex: number): void;
173
149
  /**
174
150
  * Sets the title text for the specified axis.
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
151
  *
177
152
  * @param titleText - The title text for the axis.
178
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
153
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
179
154
  */
180
155
  setAxisTitleText(titleText: string, axisIndex: number): void;
181
156
  /**
182
157
  * Sets the visibility of the specified axis title.
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
158
  *
185
159
  * @param isVisible - The visibility state for the axis title.
186
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
160
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
187
161
  */
188
162
  setAxisTitleVisibility(isVisible: boolean, axisIndex: number): void;
189
163
  /**
190
164
  * Sets the value format for the specified axis.
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
165
  *
193
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
166
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
194
167
  * @param valueFormat - The value format to set.
195
168
  */
196
169
  setAxisValueFormat(axisIndex: number, valueFormat?: CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions): void;
197
170
  /**
198
171
  * Sets the visibility of the specified axis.
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
172
  *
201
- * @param isVisible - isVisible The visibility state for the axis.
202
- * @param axisIndex - axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
173
+ * @param isVisible - The visibility state for the axis.
174
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
203
175
  */
204
176
  setAxisVisibility(isVisible: boolean, axisIndex: number): void;
205
177
  /**
206
178
  * Sets the buffer for the specified axis.
207
- * - This setting is only applicable to the axis of type ValueAxis.
208
- * - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
209
- *
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.
179
+ * - This setting is only applicable to the axis of type `ValueAxis`.
211
180
  *
212
- * @param buffer - The setting for the buffer
213
- * @param axisIndex - The index of the axis
181
+ * @param buffer - The setting for the buffer.
182
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
214
183
  */
215
184
  setBuffer(buffer: boolean, axisIndex: number): void;
216
185
  /**
217
186
  * Sets the display cursor tooltip setting for the specified axis.
218
- * - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
219
- *
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
187
  *
222
188
  * @param displayCursorTooltip - The display cursor tooltip setting for the axis.
223
- * @param axisIndex - The index of the axis to set the display cursor tooltip for.
189
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
224
190
  */
225
191
  setDisplayCursorTooltip(displayCursorTooltip: boolean, axisIndex: number): void;
226
192
  /**
227
193
  * Sets the display zero line setting for the specified axis.
228
- *
229
- * - This setting is only applicable to the axis of type ValueAxis.
230
- * - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
231
- *
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.
194
+ * - This setting is only applicable to the axis of type `ValueAxis`.
233
195
  *
234
196
  * @param displayZeroLine - The display zero line setting for the axis.
235
- * @param axisIndex - The index of the axis to set the display zero line for.
197
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
236
198
  */
237
199
  setDisplayZeroLine(displayZeroLine: boolean, axisIndex: number): void;
238
200
  /**
239
201
  * 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 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
202
  *
242
203
  * @param linesSymbol - The grid lines symbol.
243
204
  * @param axisIndices - The indices of the axes to set the grid lines symbol for. If omitted, the symbol is applied to all axes.
205
+ * @example
206
+ * ```ts
207
+ * // Set the grid lines symbol for all axes since `axisIndices` is omitted
208
+ * chartModel.setGridLinesSymbol(
209
+ * {
210
+ * type: "esriSLS",
211
+ * style: "esriSLSDashDot",
212
+ * color: [0, 0, 128, 255],
213
+ * width: 3,
214
+ * }
215
+ * );
216
+ * ```
217
+ *
218
+ * ![setGridLinesSymbol](https://developers.arcgis.com/javascript/latest/assets/references/components/chart/setGridLinesSymbol.avif)
219
+ * @see [Styling with charts model](https://developers.arcgis.com/javascript/latest/charts/features-and-capabilities/styling-and-theming/#styling-with-charts-model)
244
220
  */
245
221
  setGridLinesSymbol(linesSymbol: ISimpleLineSymbol | undefined, axisIndices?: number[]): void;
246
222
  /**
247
223
  * Sets the horizontal axis labels behavior for the chart.
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
224
  *
250
225
  * @param horizontalBehavior - The behavior for the horizontal axis labels.
251
226
  */
252
227
  setHorizontalAxisLabelsBehavior(horizontalBehavior: WebChartLabelBehavior): void;
253
228
  /**
254
229
  * Sets the integer only values setting for the specified axis.
255
- * - This setting is only applicable to the axis of type ValueAxis.
256
- * - To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
257
- *
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.
230
+ * - This setting is only applicable to the axis of type `ValueAxis`.
259
231
  *
260
- * @param integerOnlyValues - The boolean value to set for the integer only values setting
261
- * @param axisIndex - The index of the axis
232
+ * @param integerOnlyValues - The boolean value to set for the integer only values setting.
233
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
262
234
  */
263
235
  setIntegerOnlyValues(integerOnlyValues: boolean, axisIndex: number): void;
264
236
  /**
265
237
  * Sets whether logarithmic scale is enabled for the specified axis.
266
- * - `true`: Enable logarithmic scale for the specified axis.
267
- * - `false`: Disable logarithmic scale for the specified axis.
268
- *
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
238
  *
271
239
  * @param isLogarithmic - Whether to enable logarithmic scale for the specified axis.
272
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
240
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
273
241
  */
274
242
  setLogarithmic(isLogarithmic: boolean, axisIndex: number): void;
275
243
  /**
276
244
  * Sets the maximum bound for the specified axis.
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
245
  *
279
246
  * @param newMaxBound - The value to set as the maximum bound.
280
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
247
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
281
248
  */
282
249
  setMaxBound(newMaxBound: number | null, axisIndex: number): void;
283
250
  /**
284
251
  * Sets the minimum bound for the specified axis.
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
252
  *
287
253
  * @param newMinBound - The value to set as the minimum bound.
288
- * @param axisIndex - The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
254
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
289
255
  */
290
256
  setMinBound(newMinBound: number | null, axisIndex: number): void;
291
257
  /**
292
258
  * Sets the tick spacing for the specified axis.
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 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
259
  *
296
- * @param tickSpacing - The value to set for the tick spacing
297
- * @param axisIndex - The index of the axis
260
+ * @param tickSpacing - The value to set for the tick spacing.
261
+ * @param axisIndex - Axis index for the chart: `0` for x-axis, `1` for primary y-axis, and `2` for secondary y-axis.
298
262
  */
299
263
  setTickSpacing(tickSpacing: number, axisIndex: number): void;
300
264
  /**
301
265
  * Sets the vertical axis labels behavior for the chart.
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
266
  *
304
267
  * @param verticalBehavior - The behavior for the vertical axis labels.
305
268
  */
@@ -107,6 +107,8 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
107
107
  * @param toIndex - Index to move the series to.
108
108
  */
109
109
  moveSeries(fromIndex: number, toIndex: number): void;
110
+ /** Rebuilds the series based on the current configuration. */
111
+ rebuildSeries(): Promise<void>;
110
112
  /**
111
113
  * Sets whether the series should be assigned to the second value axis.
112
114
  *
@@ -146,6 +148,11 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
146
148
  *
147
149
  * @param assign - The value for the setting.
148
150
  * @param seriesIndex - The index of the series.
151
+ * @example
152
+ * ```ts
153
+ * chartModel.setSeriesToSecondaryYAxis(true, 0); // Assigns the first series to the secondary y-axis
154
+ * chartModel.setSeriesToSecondaryYAxis(false, 1); // Removes the second series from the secondary y-axis
155
+ * ```
149
156
  */
150
157
  setSeriesToSecondaryYAxis(assign: boolean, seriesIndex: number): void;
151
158
  /**
@@ -155,7 +162,11 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
155
162
  * @param orderByList - The list of category's values to order by.
156
163
  */
157
164
  setSortOrder(newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void;
158
- /** Updates the series based on the layer filter. */
165
+ /**
166
+ * Updates the series based on the layer filter.
167
+ *
168
+ * @deprecated since 5.2. Use [rebuildSeries](https://developers.arcgis.com/javascript/latest/references/charts-components/model/serial-chart-model/serial-chart-model/#rebuildSeries) instead.
169
+ */
159
170
  updateSeriesFromLayerFilter(): void;
160
171
  }
161
172
  declare const SerialChartModelSuperclass: typeof ChartModel & typeof WithTimeZone & typeof WithGenerateXAxisTitle & typeof WithAxisLinesSymbol & typeof WithAxisLabelsSymbol & typeof WithXAxisTitleSymbol & typeof WithXBounds & typeof WithXAxisTitleVisibility & typeof WithXAxisLabelsVisibility & typeof WithXAxisTitleText & typeof ModelWithTemporalBinning & typeof ModelWithYGuides & typeof ModelWithXGuides & typeof WithDataLabelsSymbol & typeof WithDataLabelsVisibility & typeof WithRotatedState & typeof WithColorMatch & typeof ModelWithTooltips & typeof ModelWithLegend & typeof ModelWithMultiAxes
@@ -1,12 +1,12 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { getElementLocale as $e } from "@arcgis/toolkit/intl/dom";
3
- import { cloneDeep as n, isEmpty as B } from "lodash-es";
3
+ import { cloneDeep as n, isEmpty as h } from "lodash-es";
4
4
  import { DateTime as Qe } from "luxon";
5
- import { af as Ye, Q as se, Z as Je, cS as ne, dg as ae, ct as Ke, a$ as Xe, ac as Ze, Y as O, bo as Ue, O as b, c3 as te, aI as et, aJ as tt, m as Z, bD as rt, h as it, bJ as ot, w as st } from "../../../chunks/index2.js";
5
+ import { af as Ye, Q as se, Z as Je, cS as ne, dh as ae, cs as Ke, a$ as Xe, ac as Ze, Y as O, bo as Ue, O as b, c3 as te, aI as et, aJ as tt, m as Z, bD as rt, h as it, bJ as ot, w as st } from "../../../chunks/index2.js";
6
6
  import { W as nt, aB as at, g as dt, G as lt, ag as ct } from "../../../chunks/index.js";
7
7
  import { d as ut } from "../../../chunks/type-guards.js";
8
8
  import { C as f, h as k, q as de } from "../../../chunks/index3.js";
9
- import { g as h, s as ft } from "../../../chunks/series-types.js";
9
+ import { g as B, s as ft } from "../../../chunks/series-types.js";
10
10
  import { v as re, u as c, r as F, n as p, p as v, f as pt, j as ie, s as C } from "../../../chunks/chart-object-literals.js";
11
11
  import { p as yt, e as mt, f as gt, h as St } from "../../../chunks/class-breaks.js";
12
12
  import { i as vt } from "../../../chunks/rest-js-object-literals.js";
@@ -22,7 +22,7 @@ function le(r) {
22
22
  }
23
23
  return o;
24
24
  }
25
- function Bt(r) {
25
+ function ht(r) {
26
26
  const e = n(r);
27
27
  if (ae(e)) {
28
28
  const t = e.series[0], o = e.chartRenderer?.classBreakInfos;
@@ -42,17 +42,17 @@ function Bt(r) {
42
42
  }
43
43
  function ce(r) {
44
44
  const e = n(r);
45
- return B(r.axes) || (e.axes = r.axes?.map((i) => {
45
+ return h(r.axes) || (e.axes = r.axes?.map((i) => {
46
46
  const t = i;
47
47
  return delete t.calculateAutomaticMaximum, delete t.calculateAutomaticMinimum, t.title?.content.font?.style !== void 0 && (t.title.content.font.style = t.title.content.font.style.toLowerCase()), t;
48
48
  })), e;
49
49
  }
50
50
  function ue(r) {
51
51
  const e = n(r);
52
- return B(r.series) || (e.series = r.series.map((i, t) => {
52
+ return h(r.series) || (e.series = r.series.map((i, t) => {
53
53
  const o = i;
54
54
  i.id === void 0 && (o.id = `Series ${Date.now()}-${t}`);
55
- const s = h(r.series, t);
55
+ const s = B(r.series, t);
56
56
  return (s === c.BarSeries || s === c.LineSeries || s === c.RadarSeries) && o.query?.outStatistics?.[0]?.statisticType === "median" && (o.query.outStatistics[0].statisticType = F.ContinuousPercentile), s === c.BarSeries && o.multipleBarType !== void 0 && (o.stackedType = o.multipleBarType, delete o.multipleBarType), s === c.PieSeries && o.sliceGrouping !== void 0 && (o.sliceGrouping.sliceId = at.defaultGroupOfSlicesId, o.sliceGrouping.groupName !== void 0 && (o.sliceGrouping = {
57
57
  ...o.sliceGrouping,
58
58
  label: o.sliceGrouping.groupName
@@ -87,7 +87,7 @@ async function fe(r) {
87
87
  a && (s = await Ze(a, t));
88
88
  }
89
89
  if (s) {
90
- const a = O(o.series), u = h(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || u === c.GaugeSeries && !Ue(e) || a === f.PieFromFields || a === f.BarAndLineFromFields || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMultiFields || a === f.BoxPlotMultiFieldsAndSplitBy, He = u === c.ScatterSeries || u === c.HeatSeries || a === f.BarAndLineNoAggregation || a === f.BarAndLineSplitByNoAggregation || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMonoFieldAndCategory || a === f.BoxPlotMonoFieldAndCategoryAndSplitBy || a === f.PieNoAggregation;
90
+ const a = O(o.series), u = B(o.series), y = o.series && o.series.length > 0 && o.series[0].x.trim() === "" || u === c.GaugeSeries && !Ue(e) || a === f.PieFromFields || a === f.BarAndLineFromFields || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMultiFields || a === f.BoxPlotMultiFieldsAndSplitBy, He = u === c.ScatterSeries || u === c.HeatSeries || a === f.BarAndLineNoAggregation || a === f.BarAndLineSplitByNoAggregation || a === f.BoxPlotMonoField || a === f.BoxPlotMonoFieldAndSplitBy || a === f.BoxPlotMonoFieldAndCategory || a === f.BoxPlotMonoFieldAndCategoryAndSplitBy || a === f.PieNoAggregation;
91
91
  if (o.series = e.series.map((l) => {
92
92
  const d = { ...l };
93
93
  if (y || (d.x = b({ queryObject: s, fieldToMatch: l.x })), "y" in d && He) {
@@ -152,7 +152,7 @@ async function fe(r) {
152
152
  }
153
153
  function pe(r) {
154
154
  const e = n(r);
155
- if (!B(r.series) && h(r.series) === c.BoxPlotSeries) {
155
+ if (!h(r.series) && B(r.series) === c.BoxPlotSeries) {
156
156
  const t = e.series[0];
157
157
  t && (t.showOutliers !== void 0 && (r.showOutliers === void 0 && (e.showOutliers = t.showOutliers), delete t.showOutliers), t.standardizeValues !== void 0 && (r.standardizeValues === void 0 && (e.standardizeValues = t.standardizeValues), delete t.standardizeValues), t.showMean !== void 0 && (r.showMean === void 0 && (e.showMean = t.showMean), delete t.showMean));
158
158
  }
@@ -176,7 +176,7 @@ function me(r) {
176
176
  }
177
177
  function ge(r) {
178
178
  const e = n(r);
179
- if (!B(e.series) && h(r.series) === c.BoxPlotSeries) {
179
+ if (!h(e.series) && B(r.series) === c.BoxPlotSeries) {
180
180
  if (e.orderOptions?.data === void 0) {
181
181
  const t = ye(r.series[0]);
182
182
  t.orderType !== void 0 && (e.orderOptions ??= {}, e.orderOptions.data = {
@@ -186,7 +186,7 @@ function ge(r) {
186
186
  }
187
187
  if (e.series = r.series.map((t) => {
188
188
  const o = t;
189
- return B(o.x?.trim()) && (o.x = dt), delete o.query?.orderByFields, o;
189
+ return h(o.x?.trim()) && (o.x = dt), delete o.query?.orderByFields, o;
190
190
  }), me(e)) {
191
191
  e.showMean = !0;
192
192
  const t = e.series.find(
@@ -211,21 +211,21 @@ function ve(r) {
211
211
  const e = n(r);
212
212
  return "dataSource" in e && e.dataSource.layer && (e.iLayer = e.dataSource.layer, delete e.dataSource), e;
213
213
  }
214
- function Be(r) {
214
+ function he(r) {
215
215
  const e = n(r), i = /* @__PURE__ */ new Set(), t = e.id ?? "";
216
216
  return i.add(t), e.series.forEach((o) => {
217
217
  let s = o.id;
218
218
  i.has(s) && (s = `${s}_${Date.now()}`, o.id = s), i.add(s);
219
219
  }), e;
220
220
  }
221
- async function he(r) {
221
+ async function Be(r) {
222
222
  const { configToUpdate: e, layer: i, chartContainer: t, abortSignal: o } = r;
223
223
  let s = n(e);
224
224
  if (s = ce(s), s = ue(s), s = await fe({ configToUpdate: s, layer: i, abortSignal: o }), ne(s)) {
225
225
  const a = pe(s);
226
226
  s = ge(a);
227
227
  }
228
- return s = Se(s), s = Be(s), ae(s) && !ut(i) && (s = le({ configToUpdate: s, chartContainer: t, layer: i })), s;
228
+ return s = Se(s), s = he(s), ae(s) && !ut(i) && (s = le({ configToUpdate: s, chartContainer: t, layer: i })), s;
229
229
  }
230
230
  function Ce(r) {
231
231
  const e = n(r), i = e.series[0];
@@ -251,7 +251,7 @@ function be(r) {
251
251
  }
252
252
  function Fe(r) {
253
253
  const e = n(r);
254
- if (!B(r.series) && e.axes?.[0] !== void 0 && h(r.series) === c.GaugeSeries && r.axes?.[0] !== void 0) {
254
+ if (!h(r.series) && e.axes?.[0] !== void 0 && B(r.series) === c.GaugeSeries && r.axes?.[0] !== void 0) {
255
255
  const t = r.axes[0];
256
256
  t.ticks !== void 0 && Object.hasOwn(t.ticks, "spacing") && delete t.ticks.spacing, e.axes[0] = t;
257
257
  }
@@ -268,13 +268,13 @@ function Te(r) {
268
268
  }
269
269
  function U(r) {
270
270
  const e = n(r);
271
- return B(r.series) || (rt(r) && r.rotated === void 0 && (e.rotated = r.series[0].rotated ?? lt()), e.series.forEach((i) => {
271
+ return h(r.series) || (rt(r) && r.rotated === void 0 && (e.rotated = r.series[0].rotated ?? lt()), e.series.forEach((i) => {
272
272
  i.rotated !== void 0 && delete i.rotated;
273
273
  })), e;
274
274
  }
275
275
  function xe(r) {
276
276
  const e = n(r), i = r.dataSource;
277
- return "dataSource" in e && !B(i) && (i.type === "featureLayer" && e.dataSource !== void 0 && (e.dataSource.type = "layer"), "featureLayer" in i && (e.dataSource.layer = i.featureLayer, delete e.dataSource.featureLayer)), e;
277
+ return "dataSource" in e && !h(i) && (i.type === "featureLayer" && e.dataSource !== void 0 && (e.dataSource.type = "layer"), "featureLayer" in i && (e.dataSource.layer = i.featureLayer, delete e.dataSource.featureLayer)), e;
278
278
  }
279
279
  function Oe(r) {
280
280
  const e = n(r);
@@ -310,7 +310,7 @@ function ee(r) {
310
310
  }
311
311
  function Pe(r) {
312
312
  const e = n(r);
313
- if (!B(r.series) && h(r.series) === c.PieSeries) {
313
+ if (!h(r.series) && B(r.series) === c.PieSeries) {
314
314
  const t = e.series[0];
315
315
  if (t) {
316
316
  if (t.sortLabelsBy === "originalValue")
@@ -326,7 +326,7 @@ function Pe(r) {
326
326
  }
327
327
  function Le(r) {
328
328
  const e = n(r);
329
- return B(r.series) || (ot(r) && r.stackedType === void 0 && (e.stackedType = r.series[0].stackedType ?? ct()), e.series.forEach((i) => {
329
+ return h(r.series) || (ot(r) && r.stackedType === void 0 && (e.stackedType = r.series[0].stackedType ?? ct()), e.series.forEach((i) => {
330
330
  "stackedType" in i && delete i.stackedType;
331
331
  })), e;
332
332
  }
@@ -387,7 +387,7 @@ function Ie(r) {
387
387
  function P(r) {
388
388
  let e, i = r.orderOptions?.orderByFields?.[0];
389
389
  if (r.series?.length > 0) {
390
- const t = h(r.series), o = O(r.series);
390
+ const t = B(r.series), o = O(r.series);
391
391
  if (t !== c.PieSeries && o !== f.BarAndLineFromFields && (i = i ?? r.series[0].x), i && !de(i)) {
392
392
  const { fieldToSort: s, orderBy: a } = k(i);
393
393
  let u;
@@ -410,7 +410,7 @@ function We(r) {
410
410
  }), t.sortLabelsBy === "originalValue" || s.orderOptions?.data?.preferDataLabel === !1 || a.orderOptions?.data?.preferLabel === !1)
411
411
  e.orderOptions?.data && delete e.orderOptions.data;
412
412
  else if (e.orderOptions?.data === void 0)
413
- if (h(e.series) === c.BoxPlotSeries) {
413
+ if (B(e.series) === c.BoxPlotSeries) {
414
414
  if (t.sortLabelsBy || o.sortOptions?.sortDataBy !== void 0) {
415
415
  const y = ee(o.sortOptions?.sortDataBy?.sortType);
416
416
  y && y !== p.MultiAxes && (e.orderOptions ??= {}, e.orderOptions.data = {
@@ -579,11 +579,11 @@ function J(r) {
579
579
  }
580
580
  function K(r) {
581
581
  let e = n(r);
582
- return e = Bt(e), e;
582
+ return e = ht(e), e;
583
583
  }
584
584
  function X(r) {
585
585
  let e = n(r);
586
- return h(e.series) === c.BarSeries && (e = Ce(e)), e;
586
+ return B(e.series) === c.BarSeries && (e = Ce(e)), e;
587
587
  }
588
588
  function ze(r) {
589
589
  const { versionsToConvert: e, configToUpdate: i } = r;
@@ -664,7 +664,7 @@ async function Dt(r, e, i, t) {
664
664
  let o = r;
665
665
  if (r) {
666
666
  const s = Ye(e);
667
- await s?.load({ signal: t }), o = await he({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
667
+ await s?.load({ signal: t }), o = await Be({ configToUpdate: r, layer: s, chartContainer: i, abortSignal: t });
668
668
  const a = r.version ?? se, { versionStatus: u, versions: y } = Je(a);
669
669
  (u === re.Older || u === re.Unrecognized) && (o = ze({
670
670
  versionsToConvert: y,
@@ -688,7 +688,7 @@ const Mt = {
688
688
  movePieSeriesSortLabelsPropToChart: Pe,
689
689
  getProBoxPlotSortDataOption: ye,
690
690
  isBoxPlotConfigWithMeanLinesFromPro: me,
691
- preventDuplicatedIds: Be,
691
+ preventDuplicatedIds: he,
692
692
  adjustBoxPlotConfig: ge,
693
693
  convertSortSeriesByToObject: we,
694
694
  moveBoxPlotSortDataByProp: De,
@@ -705,7 +705,7 @@ const Mt = {
705
705
  convertTemporalBinningProps: Ee,
706
706
  convertRESTStatisticTypeToWebChartStatisticType: Ne,
707
707
  renameChartSubtitle: Ve,
708
- applyMandatoryConversions: he,
708
+ applyMandatoryConversions: Be,
709
709
  convertTo1x0x1: je,
710
710
  convertTo2x0x0: w,
711
711
  convertTo3x5x0: A,
@@ -27,4 +27,4 @@ export function uniqueValues(props: {
27
27
  errorStrings: ErrorStrings;
28
28
  abortKey?: AbortControllerKeyType;
29
29
  abortSignal?: AbortSignal;
30
- }): Promise<Map<number | string, number>>;
30
+ }): Promise<(number | string)[]>;
@@ -240,8 +240,7 @@ export function sanitizeData(props: {
240
240
  }): WebChartDataTypes | undefined;
241
241
 
242
242
  /**
243
- * Fetches data from a list of OIDs. If the chart is non aggregated we directly read the OIDs stored in the data context,
244
- * and if the chart is aggregated we perform queries to fetch the data.
243
+ * Fetches data from a list of OIDs. If the ids are stored within the chart's data we directly use them, otherwise we perform queries to find the matching data items.
245
244
  *
246
245
  * @param props - A snapshot of the updated props, used to determine whether the selection OIDs have changed
247
246
  * @internal