@arcgis/charts-components 5.0.0-next.162 → 5.0.0-next.164

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 (199) hide show
  1. package/dist/cdn/{TQRAYSWN.js → 2ZSCSQKE.js} +1 -1
  2. package/dist/cdn/{SW6ENGEK.js → 3ETPKJLH.js} +1 -1
  3. package/dist/cdn/3FJBR2FR.js +2 -0
  4. package/dist/cdn/3HSM4YOY.js +4 -0
  5. package/dist/cdn/{EYXP4YQW.js → 3IU5PLYH.js} +1 -1
  6. package/dist/cdn/{VMSL4CWI.js → 43YS2I72.js} +1 -1
  7. package/dist/cdn/45NODT2J.js +2 -0
  8. package/dist/cdn/{62OZB7FK.js → 4CICGGRX.js} +1 -1
  9. package/dist/cdn/{37TWMIC2.js → 4R2UOKDR.js} +1 -1
  10. package/dist/cdn/{UHB77RAE.js → 4TFNYB6N.js} +1 -1
  11. package/dist/cdn/{BYAYB5LF.js → 4WOGY3WA.js} +1 -1
  12. package/dist/cdn/{CTDG3FOZ.js → 4Z3XHMLM.js} +1 -1
  13. package/dist/cdn/{TUTT6I7D.js → 55KRKYFS.js} +1 -1
  14. package/dist/cdn/567U5TC6.js +2 -0
  15. package/dist/cdn/{7WZV7AE3.js → 5FIT7FHW.js} +1 -1
  16. package/dist/cdn/{PQRPDV2N.js → 5MM7SODQ.js} +1 -1
  17. package/dist/cdn/{7XUX4ZTI.js → 5R6MQSUY.js} +1 -1
  18. package/dist/cdn/{B5LXWQRU.js → 62V455IN.js} +1 -1
  19. package/dist/cdn/{UUZWRA5G.js → 6ERZOPDO.js} +1 -1
  20. package/dist/cdn/{DB3UL5LX.js → 735B4X34.js} +1 -1
  21. package/dist/cdn/{4L3ESTCL.js → 7SZ3MTAV.js} +1 -1
  22. package/dist/cdn/{XQAUA2KI.js → A6NRPBTW.js} +1 -1
  23. package/dist/cdn/{KLOSKKEF.js → A7BXN5EL.js} +1 -1
  24. package/dist/cdn/{OMR6RCJW.js → AAHVSFKB.js} +1 -1
  25. package/dist/cdn/AGJFBRLT.js +2 -0
  26. package/dist/cdn/{HAAT4GZV.js → AI3L7T2E.js} +1 -1
  27. package/dist/cdn/{RKJFJ3VI.js → AJHQESHE.js} +1 -1
  28. package/dist/cdn/{JBHDZEVD.js → ATTQBQ5G.js} +1 -1
  29. package/dist/cdn/{P3XTRZL3.js → B2MBGCT2.js} +1 -1
  30. package/dist/cdn/{KOC7VWEQ.js → BELVV3ZC.js} +1 -1
  31. package/dist/cdn/{MMVZJQGM.js → CDCU3GES.js} +1 -1
  32. package/dist/cdn/{MSNUKDFY.js → CJFTBI6B.js} +1 -1
  33. package/dist/cdn/{TBYLHPGX.js → CNCVZK7E.js} +1 -1
  34. package/dist/cdn/{TCKDCNZ6.js → COJU472P.js} +1 -1
  35. package/dist/cdn/CQUCOSCR.js +2 -0
  36. package/dist/cdn/{277KZ5EH.js → DUDOTKJA.js} +1 -1
  37. package/dist/cdn/{JASXULGK.js → E4D75GTQ.js} +1 -1
  38. package/dist/cdn/{7KAPOFBN.js → F2HVMZZK.js} +1 -1
  39. package/dist/cdn/{SW62HLGO.js → FU2EQLXU.js} +1 -1
  40. package/dist/cdn/{64DXX3FX.js → G7VC2XBZ.js} +1 -1
  41. package/dist/cdn/{GKUTVRCP.js → GS3GRA2H.js} +1 -1
  42. package/dist/cdn/GSVN46KN.js +2 -0
  43. package/dist/cdn/{DACWGPLL.js → GTHSVE2K.js} +1 -1
  44. package/dist/cdn/{WCBXBXTZ.js → GTSIEQM5.js} +1 -1
  45. package/dist/cdn/{KF4ILYWV.js → HHJIYADP.js} +1 -1
  46. package/dist/cdn/{GB223HFN.js → HZDRSBX2.js} +1 -1
  47. package/dist/cdn/{D2HQHUZF.js → I457NPW3.js} +1 -1
  48. package/dist/cdn/{IDMPL6T7.js → IP4VBE6Z.js} +1 -1
  49. package/dist/cdn/{WTZ23CRY.js → IYXHOL5D.js} +1 -1
  50. package/dist/cdn/{SZ2BB7ZG.js → J5JH47IU.js} +1 -1
  51. package/dist/cdn/{7HDTPUIY.js → K3LNGUQX.js} +1 -1
  52. package/dist/cdn/{6AP262U4.js → K4YRNWYA.js} +1 -1
  53. package/dist/cdn/{YHIJMVJQ.js → KKYRF4QI.js} +1 -1
  54. package/dist/cdn/{GRUDYKUK.js → KQHMG4PC.js} +1 -1
  55. package/dist/cdn/{S3MAP4NY.js → L6HK4PG5.js} +1 -1
  56. package/dist/cdn/{IBMHE4HG.js → LHJS2B4G.js} +1 -1
  57. package/dist/cdn/{KHPBPGZW.js → LN5HOZFK.js} +1 -1
  58. package/dist/cdn/{CBTHS6I5.js → M4XXCCFI.js} +1 -1
  59. package/dist/cdn/{Y7OQUVXC.js → M5OKIJH6.js} +1 -1
  60. package/dist/cdn/{IL22JCIC.js → M6KGYVL2.js} +1 -1
  61. package/dist/cdn/{PUO6TAT3.js → N673HFEJ.js} +1 -1
  62. package/dist/cdn/{DLT5ZL25.js → NYBZPU4F.js} +1 -1
  63. package/dist/cdn/{PZ5VL76M.js → OI76MVPM.js} +1 -1
  64. package/dist/cdn/{G7UITT5F.js → OJXN4Y6A.js} +1 -1
  65. package/dist/cdn/{OWTDESPZ.js → OQZBAWVC.js} +1 -1
  66. package/dist/cdn/{35FGLAKV.js → P4ZZY7IW.js} +1 -1
  67. package/dist/cdn/{7LRO7RMI.js → PFRK5465.js} +11 -5
  68. package/dist/cdn/{NNTJCO7Q.js → PO4LLHQE.js} +1 -1
  69. package/dist/cdn/{53QDB3IL.js → QJGDTSOH.js} +1 -1
  70. package/dist/cdn/{IYGUWGB6.js → QNI5OMGX.js} +1 -1
  71. package/dist/cdn/RICBVTMN.js +2 -0
  72. package/dist/cdn/{YHVWLHT7.js → ROH4QPZI.js} +1 -1
  73. package/dist/cdn/{R7TVVBB7.js → TLIZYLM2.js} +1 -1
  74. package/dist/cdn/{NLNJYC2E.js → TZEMRMGW.js} +1 -1
  75. package/dist/cdn/{IBDFXE7F.js → UZWDIHM7.js} +1 -1
  76. package/dist/cdn/{ISB65KPT.js → VBHRSNOL.js} +1 -1
  77. package/dist/cdn/{7HCS3J2W.js → VMTV5CBU.js} +1 -1
  78. package/dist/cdn/{CAXYDF5R.js → WEMAQZCY.js} +1 -1
  79. package/dist/cdn/{DHBBU7AG.js → WN37QN4E.js} +1 -1
  80. package/dist/cdn/{KDGGKNBV.js → XJ7KF4OJ.js} +1 -1
  81. package/dist/cdn/{3TCYZ5OB.js → XLJBOHXR.js} +10 -10
  82. package/dist/cdn/{OR2MF4BU.js → XQ4KCPRX.js} +1 -1
  83. package/dist/cdn/{FGMU7G6T.js → YHGIRUKH.js} +1 -1
  84. package/dist/cdn/YLV6SOAM.js +2 -0
  85. package/dist/cdn/{C72B5RSG.js → YVYDVSXP.js} +1 -1
  86. package/dist/cdn/{WORQWDJQ.js → Z5O5KIH5.js} +1 -1
  87. package/dist/cdn/{SAKNSC4M.js → ZOPR2Y4S.js} +1 -1
  88. package/dist/cdn/{XIFLK5EG.js → ZWD6ENTH.js} +1 -1
  89. package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
  90. package/dist/cdn/index.js +1 -1
  91. package/dist/chart-rendering/common/interfaces.d.ts +65 -73
  92. package/dist/chunks/action-bar-utils.js +1 -1
  93. package/dist/chunks/axis-lines-symbol.js +20 -20
  94. package/dist/chunks/bar-chart-model.js +8 -8
  95. package/dist/chunks/box-plot-data.js +60 -60
  96. package/dist/chunks/box-plot-model.js +20 -20
  97. package/dist/chunks/chart-model.js +37 -37
  98. package/dist/chunks/chart-ui-utils2.js +1 -1
  99. package/dist/chunks/class-breaks.js +120 -122
  100. package/dist/chunks/combo-bar-line-chart-model.js +4 -4
  101. package/dist/chunks/data-labels-symbol.js +1 -1
  102. package/dist/chunks/data.js +11 -11
  103. package/dist/chunks/gauge-model.js +17 -17
  104. package/dist/chunks/generate-x-axis-title.js +4 -4
  105. package/dist/chunks/heat-chart-model.js +32 -20
  106. package/dist/chunks/histogram-data.js +7 -7
  107. package/dist/chunks/histogram-model.js +8 -8
  108. package/dist/chunks/index.js +336 -360
  109. package/dist/chunks/index2.js +49 -49
  110. package/dist/chunks/index3.js +3 -3
  111. package/dist/chunks/line-chart-model.js +6 -6
  112. package/dist/chunks/model-setter.js +3 -3
  113. package/dist/chunks/model-with-guides.js +15 -15
  114. package/dist/chunks/model-with-tooltips.js +8 -8
  115. package/dist/chunks/model-with-y-guides.js +12 -12
  116. package/dist/chunks/negative-values-stacked-to-baseline.js +1 -1
  117. package/dist/chunks/pie-chart-data.js +26 -26
  118. package/dist/chunks/pie-chart-model.js +22 -22
  119. package/dist/chunks/radar-chart-model.js +7 -7
  120. package/dist/chunks/rotated-state.js +1 -1
  121. package/dist/chunks/scatterplot-model.js +15 -15
  122. package/dist/chunks/serial-chart-data.js +162 -165
  123. package/dist/chunks/serial-chart-model.js +17 -17
  124. package/dist/chunks/series-length.js +1 -1
  125. package/dist/chunks/series.js +3 -3
  126. package/dist/chunks/utils.js +43 -43
  127. package/dist/chunks/utils2.js +5 -5
  128. package/dist/chunks/web-component-utils.js +175 -169
  129. package/dist/components/arcgis-chart/customElement.d.ts +4 -4
  130. package/dist/components/arcgis-chart/customElement.js +864 -847
  131. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  132. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +4 -4
  133. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +8 -8
  134. package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +1 -1
  135. package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
  136. package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
  137. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +1 -1
  138. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +10 -10
  139. package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
  140. package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
  141. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  142. package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
  143. package/dist/components/arcgis-charts-config-format/customElement.js +42 -39
  144. package/dist/components/arcgis-charts-config-guide/customElement.js +8 -8
  145. package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
  146. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +18 -18
  147. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +4 -4
  148. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  149. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +1 -1
  150. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
  151. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  152. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +5 -5
  153. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
  154. package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
  155. package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
  156. package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
  157. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +4 -4
  158. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +3 -3
  159. package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -4
  160. package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +1 -1
  161. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  162. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +7 -7
  163. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  164. package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
  165. package/dist/docs/api.json +1 -1
  166. package/dist/docs/docs.json +1 -1
  167. package/dist/docs/web-types.json +1 -1
  168. package/dist/index.js +154 -153
  169. package/dist/interfaces.d.ts +6 -5
  170. package/dist/json-schema/index.d.ts +12 -20
  171. package/dist/model/heat-chart-model/heat-chart-model.d.ts +9 -1
  172. package/dist/spec/data-source.d.ts +26 -18
  173. package/dist/spec/events.d.ts +2 -5
  174. package/dist/spec/rest-js-types.d.ts +27 -9
  175. package/dist/utils/chart-config/converter/index.d.ts +7 -7
  176. package/dist/utils/chart-config/validator/index.d.ts +6 -4
  177. package/dist/utils/components/event-payloads.d.ts +3 -3
  178. package/dist/utils/data/index.d.ts +10 -1
  179. package/dist/utils/errors/index.d.ts +5 -5
  180. package/dist/utils/layer/index.d.ts +2 -2
  181. package/dist/utils/layer/inline-conversion/index.d.ts +7 -8
  182. package/dist/utils/layer/interfaces.d.ts +3 -3
  183. package/dist/utils/layer/query-features/interfaces.d.ts +1 -1
  184. package/dist/utils/layer/query-parser/index.d.ts +1 -1
  185. package/dist/utils/layer/utils/index.d.ts +11 -5
  186. package/dist/utils/localization/index.d.ts +1 -1
  187. package/dist/utils/misc/index.d.ts +3 -3
  188. package/dist/utils/misc/interfaces.d.ts +7 -6
  189. package/dist/utils/types/index.d.ts +17 -17
  190. package/package.json +3 -3
  191. package/dist/cdn/3UBEHDWK.js +0 -2
  192. package/dist/cdn/CIW6WMFK.js +0 -4
  193. package/dist/cdn/DKC6E3QZ.js +0 -2
  194. package/dist/cdn/HTKSTR36.js +0 -2
  195. package/dist/cdn/KPBKHH3V.js +0 -2
  196. package/dist/cdn/LRATJMH3.js +0 -2
  197. package/dist/cdn/V65HT7NA.js +0 -2
  198. package/dist/cdn/WNZXN6Y2.js +0 -2
  199. package/dist/cdn/XNTLXVQF.js +0 -2
@@ -1,6 +1,6 @@
1
- import type MapView from "@arcgis/core/views/MapView";
2
- import type SceneView from "@arcgis/core/views/SceneView";
3
- import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView";
1
+ import type MapView from "@arcgis/core/views/MapView.js";
2
+ import type SceneView from "@arcgis/core/views/SceneView.js";
3
+ import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
4
4
  import type { SupportedLayer } from "../../interfaces.js";
5
5
  import type { WebChart, WebChartDataFilters, WebChartPieChartSlice, WebGaugeChart } from "../../spec/web-chart.js";
6
6
  import type { WebChartDataItem, WebChartDataItemValue, WebChartDataTypes } from "../../spec/data-source.js";
@@ -21,7 +21,7 @@ export interface NotifyOptions {
21
21
  export type PieChartLegendValueLabelFormatCallback = (value?: number, percent?: number) => string;
22
22
 
23
23
  /**
24
- * Describes the signature of the callback function used to customize a guide's tooltip
24
+ * Describes the signature of the callback function used to customize a guide's tooltip.
25
25
  *
26
26
  * @param props
27
27
  */
@@ -29,8 +29,8 @@ export type GuideTooltipFormatCallback = (props: GuideTooltipFormatCallbackProps
29
29
 
30
30
  /**
31
31
  * Describes the signature of the callback function used to customize an axis labels.
32
- * The `value` is the displayed label.
33
- * The `originalValue` is provided when the `value` is an alias or coded domain description.
32
+ * - `value`: the displayed label.
33
+ * - `originalValue`: provided when the `value` is an alias or coded domain description.
34
34
  *
35
35
  * @param value
36
36
  * @param originalValue
@@ -46,7 +46,7 @@ export type GaugeInnerLabelFormatCallback = (value?: number) => string;
46
46
 
47
47
  /**
48
48
  * Describes the signature of the callback function executed before rendering the chart.
49
- * The `slices` property will be only provided for the pie charts.
49
+ * The `slices` property will be only provided for the pie charts.
50
50
  *
51
51
  * @param props
52
52
  */
@@ -58,7 +58,7 @@ export type PreRenderCallback = (props: {
58
58
 
59
59
  /** JSON representation of the runtime chart options for the update or initialization. */
60
60
  export interface ChartOptions {
61
- /** Whether to allow the object id to be used as a statistic other than COUNT. */
61
+ /** Whether to allow the object id to be used as a statistic other than `COUNT`. */
62
62
  allowUsingObjectIdStat?: boolean;
63
63
  /**
64
64
  * Whether to consider a `null` statistic as valid. If set to `false` and the data has only
@@ -74,9 +74,10 @@ export interface ChartOptions {
74
74
  showUIMessages?: boolean;
75
75
  /**
76
76
  * A property representing the selection to apply on the chart.
77
+ *
77
78
  * The properties are considered in the following order:
78
- * - selectionData.selectionOIDs: an array of Object Ids (for Feature Layer) representing a selection to apply to the chart.
79
- * - selectionData.selectionItems: an array of data items representing a selection to apply to the chart.
79
+ * - `selectionData.selectionOIDs`: an array of object Ids (for Feature Layer) representing a selection to apply to the chart.
80
+ * - `selectionData.selectionItems`: an array of data items representing a selection to apply to the chart.
80
81
  */
81
82
  selectionData?: SelectionData;
82
83
  /**
@@ -89,8 +90,9 @@ export interface ChartOptions {
89
90
  /**
90
91
  * Allows the features extent to be returned, through the `arcgisChartsJSDataProcessComplete` and `arcgisChartsJSSelectionComplete` events payload.
91
92
  * Applies only to:
92
- * - charts using an aggregation
93
- * - data source using a feature layer compatible with envelope aggregation
93
+ * - Charts using an aggregation
94
+ * - Data source using a feature layer compatible with envelope aggregation
95
+ *
94
96
  * The extent (IExtent) is returned through a property called `arcgis_charts_features_extent`.
95
97
  */
96
98
  returnFeaturesExtent?: boolean;
@@ -100,16 +102,15 @@ export interface ChartOptions {
100
102
  * If no style is provided for the non selected elements, the chart's style is applied.
101
103
  */
102
104
  selectionTheme?: SelectionTheme;
103
- /** used to perform client-side queries */
105
+ /** Used to perform client-side queries. */
104
106
  view?: MapView | SceneView;
105
- /** used to perform queries */
107
+ /** Used to perform queries. */
106
108
  layer?: FeatureLayerView | SupportedLayer;
107
- /** enable filter by selection */
109
+ /** Enable filter by selection. */
108
110
  filterBySelection?: boolean;
109
111
  /**
110
- * Re initialize chart object if the chart object is disposed.
111
- * Honoured only during the update call.
112
- * default is true;
112
+ * Re-initialize chart object if the chart object is disposed. Honored only during the update call.
113
+ * Default is `true`.
113
114
  */
114
115
  autoRecreateChart?: boolean;
115
116
  /**
@@ -118,13 +119,13 @@ export interface ChartOptions {
118
119
  * **Note**: Currently this feature is only available for stacked bar series and pie charts with `dataLabelsInside` set to true.
119
120
  */
120
121
  autoInverseDataLabelTextColor?: boolean;
121
- /** optional create message to be displayed in the chart container. */
122
+ /** Optional create message to be displayed in the chart container. */
122
123
  createMessage?: string;
123
124
  /** Used to hide the loader animation (curtain and spinner), showed by default at every update. */
124
125
  hideLoaderAnimation?: boolean;
125
126
  /**
126
- * Hide the series from the chart if it doesn't have data (i.e. empty)
127
- * For example, after apply data filters, filter by attribute or geometry (as when using the filter by extent)
127
+ * Hide the series from the chart if it doesn't have data (i.e. empty).
128
+ * For example, after apply data filters, filter by attribute or geometry (as when using the filter by extent).
128
129
  */
129
130
  hideEmptySeries?: boolean;
130
131
  /**
@@ -142,110 +143,100 @@ export interface ChartOptions {
142
143
  /**
143
144
  * Used to customize the chart's limits, especially the maximum number of elements (bars, markers...) to be displayed.
144
145
  * The chart's behavior once that limit is reached can be adjusted through the `behaviorAfterLimit` nested property, to either reject the creation
145
- * or update of the chart, or render the elements up to the given limits. Available on all charts but scatterplot and histogram.
146
+ * or update of the chart, or render the elements up to the given limits.
147
+ *
148
+ * Not applicable for scatterplot and histogram.
146
149
  */
147
150
  chartLimits?: ChartElementLimit;
148
151
  /**
149
- * Set the chart's mode (zoom, selection, none)
150
- * - zoom: allows to zoom on the chart. All selection is disabled
151
- * - mono-selection: the selection is enabled but only one element can be selected. Zoom is disabled
152
- * - multi-selection: the selection is enabled and allows selecting multiple elements. Zoom is disabled
153
- * - multi-selection-with-ctrl-key: the selection is enabled and allows selecting multiple elements when the ctrl/cmd key is pressed. Zoom is disabled
154
- * - none: the zoom and selection features are disabled
152
+ * Set the chart's mode.
153
+ * - `zoom`: Allows to zoom on the chart. All selection is disabled.
154
+ * - `mono-selection`: The selection is enabled but only one element can be selected. Zoom is disabled.
155
+ * - `multi-selection`: The selection is enabled and allows selecting multiple elements. Zoom is disabled.
156
+ * - `multi-selection-with-ctrl-key`: The selection is enabled and allows selecting multiple elements when the ctrl/cmd key is pressed. Zoom is disabled.
157
+ * - `none`: The zoom and selection features are disabled.
155
158
  */
156
159
  actionMode?: ActionModes;
157
160
  /**
158
- * Sets the cursor range:
159
- * - CursorRange.MultiAxes: allows to draw a free rectangle
160
- * - CursorRange.XAxis: allows to draw a rectangle bound to the x-axis
161
- * - CursorRange.YAxis: allows to draw a rectangle bound to the y-axis
162
- * - undefined: defaults to a preset behavior according to the chart type and action mode
161
+ * Sets the cursor range.
162
+ * - `multi-axes`: Allows to draw a free rectangle
163
+ * - `x-axis`: Allows to draw a rectangle bound to the x-axis
164
+ * - `y-axis`: Allows to draw a rectangle bound to the y-axis
165
+ * - `undefined`: Defaults to a preset behavior according to the chart type and action mode
166
+ *
163
167
  * Applies only when the action mode is set to zoom or multi-selection.
164
168
  */
165
169
  cursorRange?: CursorRange;
166
- /** If the option is set to true, the chart gets a full refresh. */
170
+ /** When `true`, the chart gets a full refresh. */
167
171
  dataUpdated?: boolean;
168
172
  /**
169
- * Helps identifying an update triggered after a view extent change.
173
+ * Helps to identify an update triggered after a view extent change.
170
174
  * This is used to support a selection workflow while the filter by extent mode is enabled.
171
175
  */
172
176
  viewExtentUpdated?: boolean;
173
177
  /** Used to apply runtime filters to the chart's data while in Feature Layer mode. */
174
178
  runtimeDataFilters?: WebChartDataFilters;
175
179
  /**
176
- * This property will be effective when the component's `view` is provided or when the `layer` is set to a FeatureLayerView.
180
+ * This property will be effective when the component's `view` is provided or when the `layer` is set to a `FeatureLayerView`.
177
181
  * By default the queries made by the chart will consider the view's extent as the unique geometry filter applicable. This implies ignoring any
178
182
  * geometry passed through the config (component.config.dataFilters) or the runtime filters (component.runtimeDataFilters).
179
183
  * Setting this property to `false` signals the queries to ignore the view's extent, whether an additional geometry filter is provided or not.
180
184
  */
181
185
  ignoreViewExtent?: boolean;
182
186
  /**
183
- * Can be used when creating or updating a chart compatible with time binning. If this option is `true`, the series properties
184
- * `unit` and `size` become optional and will be automatically set to values that fit the data set.
187
+ * Can be used when creating or updating a chart compatible with time binning.
188
+ *
189
+ * When `true`, the series properties `unit` and `size` become optional and will be automatically set to values that fit the data set.
185
190
  */
186
191
  setTimeBinningInfoWhenNotProvided?: boolean;
187
192
  /**
188
193
  * Can be used to disable the default setting that uses debounce functions to handle the visibility of markers
189
- * (for scatter-plot and line charts) that are outside of plotting area when min/max bound changes and/or
194
+ * (for scatterplots and line charts) that are outside of plotting area when min/max bound changes and/or
190
195
  * when zoom action is performed (via chart cursor or scrollbar), to increase performance.
191
196
  *
192
197
  * This property will be set when the chart is created and cannot be updated after that.
193
198
  *
194
- * It's recommended that this property should only be set to true for small datasets.
199
+ * It's recommended that this property should only be set to `true` for small datasets.
195
200
  */
196
201
  ignoreSmoothRenderingLimit?: boolean;
197
- /**
198
- * Used to customize the way the tooltips are rendered. The callback function can return an HTML string and the tags will
199
- * be interpreted properly.
200
- */
202
+ /** Used to customize how the tooltips are rendered. The callback function can return an HTML string and the tags will be interpreted properly. */
201
203
  tooltipFormatter?: TooltipFormatters;
202
204
  dataLabelFormatter?: BarAndLineDataLabelFormatCallback | HistogramLabelFormatCallback | PieChartLabelFormatCallback | ScatterplotLabelFormatCallback;
203
- /**
204
- * Used to customize the way the guides' tooltip are rendered. The callback function can return an HTML string and the tags will
205
- * be interpreted properly.
206
- */
205
+ /** Used to customize how the guides' tooltip are rendered. The callback function can return an HTML string and the tags will be interpreted properly. */
207
206
  guideTooltipFormatter?: GuideTooltipFormatCallback;
208
- /**
209
- * Used to customize the way the x-axis labels are rendered. The callback function can return an HTML string and the tags will
210
- * be interpreted properly.
211
- */
207
+ /** Used to customize how the x-axis labels are rendered. The callback function can return an HTML string and the tags will be interpreted properly. */
212
208
  xAxisLabelFormatter?: AxisLabelFormatCallback;
213
209
  /**
214
- * Used to customize the way the y-axis labels are rendered. The callback function can return an HTML string and the tags will
215
- * be interpreted properly.
216
- * Not available on gauge for now.
210
+ * Used to customize how the y-axis labels are rendered. The callback function can return an HTML string and the tags will be interpreted properly.
211
+ * Not applicable to gauge.
217
212
  */
218
213
  yAxisLabelFormatter?: AxisLabelFormatCallback;
219
214
  /**
220
- * Used to customize the way the secondary y-axis labels are rendered on a dual axis chart. The callback function can return an HTML
221
- * string and the tags will be interpreted properly.
222
- * Not available on gauge for now.
215
+ * Used to customize how the secondary y-axis labels are rendered on a dual axis chart. The callback function can return an HTML string and the tags will be interpreted properly.
216
+ * Not applicable to gauge.
223
217
  */
224
218
  secondaryYAxisLabelFormatter?: AxisLabelFormatCallback;
225
219
  pieChartLegendValueLabelFormatter?: PieChartLegendValueLabelFormatCallback;
226
- /**
227
- * Used to customize the gauge inner label. The callback function can return an HTML string and the tags will
228
- * be interpreted properly.
229
- */
220
+ /** Used to customize the gauge inner label. The callback function can return an HTML string and the tags will be interpreted properly. */
230
221
  gaugeInnerLabelFormatter?: GaugeInnerLabelFormatCallback;
231
222
  /**
232
- * Used to disable the toggling of legend items for XYChart series, Pie slices,
233
- * Histogram overlays, and Scatter-plot trend line.
234
- * This option is not applied for Gauge.
223
+ * Used to disable the toggling of legend items for xy chart series, pie slices, histogram overlays, and scatterplot trend line.
224
+ *
225
+ * Not applicable to gauge.
235
226
  */
236
227
  disableTogglingLegendItems?: boolean;
237
228
  /**
238
229
  * Callback function executed after the data has been processed and before the chart renders.
239
230
  * Can be used to alter the config from information extracted from the data for instance.
240
- * Only available for the pie chart and gauge at the moment.
231
+ * Only applicable to pie chart and gauge.
241
232
  */
242
233
  chartWillRender?: PreRenderCallback;
243
- /** Can be set to true to read the fields from layer.popupTemplate and use their alias when rendering tooltips */
234
+ /** When `true` read the fields from `layer.popupTemplate` and use their alias when rendering tooltips. */
244
235
  usePopupTemplateFieldsInfo?: boolean;
245
236
  }
246
237
 
247
238
  /**
248
- * Describes the signature of the callback function used to customize the pie chart data labels and tooltips
239
+ * Describes the signature of the callback function used to customize the pie chart data labels and tooltips.
249
240
  *
250
241
  * @param category
251
242
  * @param value
@@ -255,7 +246,7 @@ export interface ChartOptions {
255
246
  export type PieChartLabelFormatCallback = (category: string, value?: number, percent?: number, originalCategory?: WebChartDataItemValue) => string;
256
247
 
257
248
  /**
258
- * Describes the signature of the callback function used to customize the histogram tooltips
249
+ * Describes the signature of the callback function used to customize the histogram tooltips.
259
250
  *
260
251
  * @param count
261
252
  * @param binMinValue
@@ -264,7 +255,7 @@ export type PieChartLabelFormatCallback = (category: string, value?: number, per
264
255
  export type HistogramLabelFormatCallback = (count: number, binMinValue: number, binMaxValue: number) => string;
265
256
 
266
257
  /**
267
- * Describes the signature of the callback function used to customize the scatterplot tooltips
258
+ * Describes the signature of the callback function used to customize the scatterplot tooltips.
268
259
  *
269
260
  * @param x
270
261
  * @param y
@@ -274,7 +265,7 @@ export type HistogramLabelFormatCallback = (count: number, binMinValue: number,
274
265
  export type ScatterplotLabelFormatCallback = (x: number, y: number, sizePolicyValue?: number, dataContext?: WebChartDataItem) => string;
275
266
 
276
267
  /**
277
- * Describes the signature of the callback function used to customize the bar and line chart plot data labels
268
+ * Describes the signature of the callback function used to customize the bar and line chart data labels.
278
269
  *
279
270
  * @param statValue
280
271
  * @param percent
@@ -291,19 +282,20 @@ export interface GuideTooltipFormatCallbackProps {
291
282
  export type TooltipFormatters = BarAndLineTooltipFormatCallback | BoxPlotTooltipFormatCallback | HistogramLabelFormatCallback | PieChartLabelFormatCallback | ScatterplotLabelFormatCallback;
292
283
 
293
284
  /**
294
- * Describes the signature of the callback function used to customize the bar and line chart plot tooltips
285
+ * Describes the signature of the callback function used to customize the bar and line chart plot tooltips.
295
286
  *
296
287
  * @param props
297
288
  */
298
289
  export type BarAndLineTooltipFormatCallback = (props: BarAndLineTooltipFormatCallbackProps) => string;
299
290
 
300
291
  /**
301
- * Describes the signature of the callback function used to customize the box plot tooltips
292
+ * Describes the signature of the callback function used to customize the box plot tooltips.
302
293
  *
303
294
  * @param props
304
295
  */
305
296
  export type BoxPlotTooltipFormatCallback = (props: BoxPlotTooltipFormatCallbackProps) => string;
306
297
 
298
+ /** Describes the interface of the object passed to the callback function used to customize the bar and line chart tooltips. */
307
299
  export interface BarAndLineTooltipFormatCallbackProps {
308
300
  seriesName: string;
309
301
  statValue?: number;
@@ -5,7 +5,7 @@ import "@arcgis/toolkit/intl";
5
5
  import "lodash-es";
6
6
  import "luxon";
7
7
  import "d3-array";
8
- import { dd as B, c$ as y, o as x, dh as u, a3 as f, _ as b } from "./index.js";
8
+ import { de as B, d0 as y, o as x, di as u, a3 as f, _ as b } from "./index.js";
9
9
  import "@arcgis/core/geometry/support/jsonUtils.js";
10
10
  import "@arcgis/core/rest/support/AttributeBinsQuery.js";
11
11
  import "@arcgis/core/rest/support/StatisticDefinition.js";
@@ -2,13 +2,13 @@
2
2
  import { C as r, m as a } from "./model-setter.js";
3
3
  import { a as f, s as c } from "./utils2.js";
4
4
  import { cloneDeep as x } from "lodash-es";
5
- import { aJ as y, bC as b, aH as m, aK as S } from "./index.js";
5
+ import { aK as y, bD as b, aI as m, aL as S } from "./index.js";
6
6
  var p = Object.defineProperty, v = Object.getOwnPropertyDescriptor, _ = (s, e, t, l) => {
7
7
  for (var i = v(e, t), o = s.length - 1, n; o >= 0; o--)
8
8
  (n = s[o]) && (i = n(e, t, i) || i);
9
9
  return i && p(e, t, i), i;
10
10
  };
11
- function X(s) {
11
+ function I(s) {
12
12
  return s !== void 0 && "xAxisTitleSymbol" in s;
13
13
  }
14
14
  class d extends r {
@@ -25,8 +25,8 @@ class d extends r {
25
25
  _([
26
26
  a
27
27
  ], d.prototype, "xAxisTitleSymbol");
28
- var u = Object.defineProperty, g = Object.getOwnPropertyDescriptor, L = (s, e, t, l) => {
29
- for (var i = g(e, t), o = s.length - 1, n; o >= 0; o--)
28
+ var u = Object.defineProperty, L = Object.getOwnPropertyDescriptor, g = (s, e, t, l) => {
29
+ for (var i = L(e, t), o = s.length - 1, n; o >= 0; o--)
30
30
  (n = s[o]) && (i = n(e, t, i) || i);
31
31
  return i && u(e, t, i), i;
32
32
  };
@@ -46,7 +46,7 @@ const A = (s) => {
46
46
  }) : t.labels.content = x(s), t.labels.content.text = l;
47
47
  }
48
48
  };
49
- function B(s) {
49
+ function X(s) {
50
50
  return s !== void 0 && "axisLabelsSymbol" in s;
51
51
  }
52
52
  class O extends r {
@@ -60,44 +60,44 @@ class O extends r {
60
60
  h(e, this._config);
61
61
  }
62
62
  }
63
- L([
63
+ g([
64
64
  a
65
65
  ], O.prototype, "axisLabelsSymbol");
66
- var P = Object.defineProperty, T = Object.getOwnPropertyDescriptor, D = (s, e, t, l) => {
67
- for (var i = T(e, t), o = s.length - 1, n; o >= 0; o--)
66
+ var P = Object.defineProperty, D = Object.getOwnPropertyDescriptor, T = (s, e, t, l) => {
67
+ for (var i = D(e, t), o = s.length - 1, n; o >= 0; o--)
68
68
  (n = s[o]) && (i = n(e, t, i) || i);
69
69
  return i && P(e, t, i), i;
70
70
  };
71
- const C = (s) => {
71
+ const W = (s) => {
72
72
  for (const e of s.axes ?? [])
73
73
  if (e?.lineSymbol !== void 0)
74
74
  return e.lineSymbol;
75
- }, W = (s, e) => {
75
+ }, j = (s, e) => {
76
76
  for (const t of e.axes ?? [])
77
77
  t !== void 0 && (t.lineSymbol = x(s) ?? S());
78
78
  };
79
- function E(s) {
79
+ function B(s) {
80
80
  return s !== void 0 && "axisLinesSymbol" in s;
81
81
  }
82
- class j extends r {
82
+ class w extends r {
83
83
  /**
84
84
  * Axis lines symbol (line width, style, color).
85
85
  */
86
86
  get axisLinesSymbol() {
87
- return C(this._config);
87
+ return W(this._config);
88
88
  }
89
89
  set axisLinesSymbol(e) {
90
- W(e, this._config);
90
+ j(e, this._config);
91
91
  }
92
92
  }
93
- D([
93
+ T([
94
94
  a
95
- ], j.prototype, "axisLinesSymbol");
95
+ ], w.prototype, "axisLinesSymbol");
96
96
  export {
97
97
  d as W,
98
98
  O as a,
99
- j as b,
100
- B as c,
101
- X as d,
102
- E as i
99
+ w as b,
100
+ X as c,
101
+ I as d,
102
+ B as i
103
103
  };
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
2
  import { m as n } from "./model-setter.js";
3
- import { S as f, s as p, a as S } from "./serial-chart-model.js";
4
- import { g as c } from "./serial-chart-data.js";
3
+ import { S as c, s as p, a as S } from "./serial-chart-model.js";
4
+ import { g as f } from "./serial-chart-data.js";
5
5
  import { a as g } from "./data.js";
6
6
  import { g as h, s as y, a as u, b as v } from "./bar-chart-series.js";
7
7
  import "@arcgis/toolkit/intl";
@@ -10,7 +10,7 @@ import "luxon";
10
10
  import "d3-array";
11
11
  import "@arcgis/toolkit/type";
12
12
  import { W as b } from "./series-types.js";
13
- import { be as O, b7 as L, bL as a, aD as _, aq as I } from "./index.js";
13
+ import { bf as O, b8 as _, bM as a, aE as L, ar as I } from "./index.js";
14
14
  import "@arcgis/core/Graphic.js";
15
15
  import "@arcgis/core/renderers/support/jsonUtils.js";
16
16
  import "@arcgis/core/symbols/support/symbolUtils.js";
@@ -34,7 +34,7 @@ var C = Object.defineProperty, z = Object.getOwnPropertyDescriptor, d = (o, e, t
34
34
  (m = o[s]) && (i = m(e, t, i) || i);
35
35
  return i && C(e, t, i), i;
36
36
  };
37
- class l extends f {
37
+ class l extends c {
38
38
  constructor() {
39
39
  super(...arguments), this._chartType = b.BarSeries;
40
40
  }
@@ -49,7 +49,7 @@ class l extends f {
49
49
  generateDefaultConfig() {
50
50
  const e = O(this.commonStrings);
51
51
  return e.series = [
52
- L({
52
+ _({
53
53
  objectIDField: a(this.layerInfo.layer).idField,
54
54
  commonStrings: this.commonStrings
55
55
  })
@@ -92,12 +92,12 @@ class l extends f {
92
92
  }
93
93
  resetSeriesStyling() {
94
94
  for (let e = 0; e < this.seriesLength; e += 1) {
95
- const t = this.getSeriesId(e), r = _({
95
+ const t = this.getSeriesId(e), r = L({
96
96
  colorIndex: e,
97
97
  opacity: I
98
98
  });
99
99
  if (p(r, e, this._config), this.layerInfo !== void 0) {
100
- const i = c({
100
+ const i = f({
101
101
  config: this._config,
102
102
  seriesIndex: e,
103
103
  layerInfo: this.layerInfo,
@@ -116,7 +116,7 @@ class l extends f {
116
116
  let t = !1;
117
117
  if (!e && this.layerInfo !== void 0)
118
118
  for (let r = 0; r < this.seriesLength; r += 1) {
119
- const i = c({
119
+ const i = f({
120
120
  config: this._config,
121
121
  seriesIndex: r,
122
122
  layerInfo: this.layerInfo,