@arcgis/charts-components 5.2.0-next.45 → 5.2.0-next.47

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 (122) hide show
  1. package/dist/cdn/{KRBNJLUR.js → 2RIV7YP7.js} +1 -1
  2. package/dist/cdn/{4WQF5DM3.js → 36GW74FC.js} +1 -1
  3. package/dist/cdn/{RPTZ52MF.js → 3PYGT3KV.js} +1 -1
  4. package/dist/cdn/3T2IDHNE.js +2 -0
  5. package/dist/cdn/{7KYTSBST.js → 44JRT6JL.js} +1 -1
  6. package/dist/cdn/{YGGPPIZ7.js → 4ZL7RZYY.js} +1 -1
  7. package/dist/cdn/{UG37REGM.js → 57T6CQMF.js} +1 -1
  8. package/dist/cdn/5BWFAIIH.js +2 -0
  9. package/dist/cdn/{OGRUONHM.js → 5CFFXTAD.js} +1 -1
  10. package/dist/cdn/{XY4HDZKZ.js → 5DQUV2BS.js} +1 -1
  11. package/dist/cdn/{B6GOLH4Q.js → 5HGLV4YJ.js} +1 -1
  12. package/dist/cdn/{WIPAO2FH.js → 5IZ7GQA3.js} +1 -1
  13. package/dist/cdn/{DE5QJPJV.js → 5VWMLMZC.js} +1 -1
  14. package/dist/cdn/{JATS27TM.js → 62SM3LKG.js} +1 -1
  15. package/dist/cdn/{PF7KNYUV.js → 653NB5BN.js} +1 -1
  16. package/dist/cdn/{LMIDBRIM.js → 6NIWXTIP.js} +2 -2
  17. package/dist/cdn/{WKRYWDKZ.js → 6OZDGXFC.js} +1 -1
  18. package/dist/cdn/77A4IT5I.js +2 -0
  19. package/dist/cdn/{GKXBWOFH.js → AIIZRKYB.js} +1 -1
  20. package/dist/cdn/{QZ5YUJ7Y.js → AWQD3H3L.js} +1 -1
  21. package/dist/cdn/{3WV4T637.js → AYCZ7QYH.js} +1 -1
  22. package/dist/cdn/{5XXP2NRJ.js → B3723WJJ.js} +1 -1
  23. package/dist/cdn/{PDYF2IZ2.js → BCV3U4I6.js} +1 -1
  24. package/dist/cdn/{DWOP2HE4.js → BFCWZUD5.js} +1 -1
  25. package/dist/cdn/{MNE46H4A.js → CGO3WESB.js} +1 -1
  26. package/dist/cdn/{YXG7RVTK.js → CGQSP57T.js} +1 -1
  27. package/dist/cdn/{22GC5BZP.js → CYVUWE2J.js} +1 -1
  28. package/dist/cdn/{D4WXMS4I.js → D272NRZP.js} +1 -1
  29. package/dist/cdn/DE2ZKH4C.js +2 -0
  30. package/dist/cdn/{7RFX7LUS.js → DEIEWNZ5.js} +2 -2
  31. package/dist/cdn/{IIQVRNZF.js → DHPNZ3EU.js} +1 -1
  32. package/dist/cdn/{4QGMMXRI.js → DZSZKZKR.js} +1 -1
  33. package/dist/cdn/{I2CZFSEB.js → EQCJAWHV.js} +1 -1
  34. package/dist/cdn/{PGO6DEJM.js → ERDMQ4DD.js} +1 -1
  35. package/dist/cdn/{SG3NAFAX.js → FDPEMHDL.js} +1 -1
  36. package/dist/cdn/{CXT62XXL.js → FWW34CP5.js} +1 -1
  37. package/dist/cdn/{HP47BFLZ.js → FYZANAJZ.js} +1 -1
  38. package/dist/cdn/{Z7NF4IGS.js → FZKGRO5W.js} +1 -1
  39. package/dist/cdn/GAOCEPQ4.js +2 -0
  40. package/dist/cdn/{HCYQEOJ6.js → GW2FFQSO.js} +1 -1
  41. package/dist/cdn/{SDHNDW2J.js → HAMYMGH7.js} +1 -1
  42. package/dist/cdn/{WVPMH6DW.js → HFSRQDTF.js} +1 -1
  43. package/dist/cdn/{QFDQH5CQ.js → HXETEKIP.js} +1 -1
  44. package/dist/cdn/{UNFEHNQQ.js → IIJVPJDY.js} +1 -1
  45. package/dist/cdn/{76ILRLUC.js → IMW6IZV2.js} +1 -1
  46. package/dist/cdn/J5GAGVHY.js +2 -0
  47. package/dist/cdn/{76HEBLTU.js → J6QR3W3U.js} +1 -1
  48. package/dist/cdn/{ELICLP7J.js → J7CXSB6I.js} +1 -1
  49. package/dist/cdn/{NFJXS4T6.js → K4GZRWKH.js} +1 -1
  50. package/dist/cdn/KRPNWB7M.js +3 -0
  51. package/dist/cdn/{WGYVJ5PD.js → LAZLV7CS.js} +1 -1
  52. package/dist/cdn/{LSMBD5CK.js → LIEXZQ4F.js} +1 -1
  53. package/dist/cdn/{ISYGPFXM.js → LLYZIGQ5.js} +1 -1
  54. package/dist/cdn/{JPPLQW3P.js → NZMYUW2H.js} +1 -1
  55. package/dist/cdn/{TAGN7GHJ.js → OJV25NTM.js} +1 -1
  56. package/dist/cdn/{UTJ2ODDK.js → OZWY2X4J.js} +1 -1
  57. package/dist/cdn/{YE6DMUZG.js → P2UP7IKV.js} +1 -1
  58. package/dist/cdn/{T3ZESENF.js → P3UDBIPN.js} +1 -1
  59. package/dist/cdn/{YABRVLVL.js → PZQ5KWM5.js} +1 -1
  60. package/dist/cdn/{USQYT55U.js → QI5LKIKB.js} +1 -1
  61. package/dist/cdn/{NG254LPM.js → QYLOKGLW.js} +1 -1
  62. package/dist/cdn/{R32CA4NB.js → RECQ5RQK.js} +1 -1
  63. package/dist/cdn/{CHFKSXBJ.js → RRTFXPN4.js} +1 -1
  64. package/dist/cdn/{MLBDUKS3.js → RU6NQOOO.js} +1 -1
  65. package/dist/cdn/SMG4WPTH.js +2 -0
  66. package/dist/cdn/{E47MLNJA.js → SZCMJ25W.js} +1 -1
  67. package/dist/cdn/{2WFIFBMW.js → TX6LSTKD.js} +1 -1
  68. package/dist/cdn/{2VWSSNE6.js → U3POGYXF.js} +1 -1
  69. package/dist/cdn/{ESAVCU5M.js → UFFXU3Y6.js} +11 -11
  70. package/dist/cdn/{HRMCHOLZ.js → V66PG4NP.js} +1 -1
  71. package/dist/cdn/{D7FL6CSK.js → VKHUZKK4.js} +1 -1
  72. package/dist/cdn/{6TA7HFV2.js → VV3BWL3P.js} +1 -1
  73. package/dist/cdn/{PCODH67Z.js → VWLHSMF2.js} +1 -1
  74. package/dist/cdn/{U5FPTPFH.js → W7EHW5TQ.js} +1 -1
  75. package/dist/cdn/{CMPHWKTI.js → WEMJBEUF.js} +1 -1
  76. package/dist/cdn/{3YJRZ7CT.js → XJM2JNPK.js} +1 -1
  77. package/dist/cdn/{GGN3I7J2.js → XL6DRPCS.js} +1 -1
  78. package/dist/cdn/{33NDNTD4.js → XZ3QQVHQ.js} +1 -1
  79. package/dist/cdn/{RE5QI7WA.js → Y32ROR3O.js} +1 -1
  80. package/dist/cdn/{4RGS5J3H.js → YKEAQMIM.js} +1 -1
  81. package/dist/cdn/{PLEZNRQC.js → YXLIRMQJ.js} +1 -1
  82. package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +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/data-labels-symbol.js +39 -24
  86. package/dist/chunks/index2.js +2003 -1996
  87. package/dist/chunks/serial-chart-data.js +203 -201
  88. package/dist/components/arcgis-chart/customElement.d.ts +37 -9
  89. package/dist/components/arcgis-chart/customElement.js +1342 -1367
  90. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +11 -11
  91. package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
  92. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +7 -7
  93. package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
  94. package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
  95. package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +6 -6
  96. package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
  97. package/dist/components/arcgis-charts-config-histogram-data/customElement.js +9 -9
  98. package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
  99. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +9 -9
  100. package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
  101. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +30 -30
  102. package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
  103. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +4 -4
  104. package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
  105. package/dist/components/arcgis-charts-config-view-charts/customElement.js +57 -26
  106. package/dist/docs/api.json +1 -1
  107. package/dist/docs/docs.json +1 -1
  108. package/dist/docs/vscode.html-custom-data.json +1 -1
  109. package/dist/docs/web-types.json +1 -1
  110. package/dist/loader.js +1 -1
  111. package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
  112. package/package.json +3 -3
  113. package/dist/cdn/6BXPCTBA.js +0 -2
  114. package/dist/cdn/EIXU5GSK.js +0 -2
  115. package/dist/cdn/EMMV3MPZ.js +0 -2
  116. package/dist/cdn/G3IEARQP.js +0 -2
  117. package/dist/cdn/I6REUMW3.js +0 -2
  118. package/dist/cdn/RS37HDC7.js +0 -2
  119. package/dist/cdn/VAUVQGBW.js +0 -3
  120. package/dist/cdn/ZSATO43B.js +0 -2
  121. package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
  122. /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
@@ -22,16 +22,44 @@ import type { ErrorPolicy, LayerFieldsChangePolicy, LayerFilterChangePolicy, Lay
22
22
  import type { T9nMeta } from "@arcgis/lumina/controllers";
23
23
 
24
24
  /**
25
- * The Chart component renders a chart based on the provided model. Get started by reading the [introduction to charts](https://developers.arcgis.com/javascript/latest/charts-components-intro/) page.
25
+ * The ArcGIS Chart component renders a chart by setting a [model](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#model) object that defines the chart's configuration and data.
26
+ * There are different ways to render a chart with the ArcGIS Chart component:
26
27
  *
27
- * Supported chart types include bar charts, box plots, line charts, combo bar-line charts, gauges, heat charts, histograms, pie charts, scatterplots, and radar charts.
28
+ * ##### Load from a layer item
28
29
  *
29
- * @slot [action-bar] - Slot for adding a `charts-action-bar` component or `calcite-action-bar`.
30
- * @see [Introduction to charts](https://developers.arcgis.com/javascript/latest/charts-components-intro/)
31
- * @see
32
- * [Tutorial: Display a chart](https://developers.arcgis.com/javascript/latest/tutorials/display-a-chart/)
30
+ * To load a chart from a layer item, first the chart needs to be [configured in Map Viewer](https://doc.arcgis.com/en/arcgis-online/create-maps/configure-charts-mv.htm) and [saved to the layer item](https://doc.arcgis.com/en/arcgis-online/create-maps/duplicate-save-layers.htm#ESRI_SECTION1_2AE9121DFA5D4E099F0D434EBA7D9365).
31
+ * Then set the [layerItemId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layerItemId) property to the item's ID and the [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex) property to the index of the chart within the item.
33
32
  *
34
- * **Note**: When the chart is getting rendered while its container is not yet fully sized, a console error about the chart's attribute height may appear. This is a known issue and should not affect the functionality of the chart.
33
+ * ```html
34
+ * <arcgis-chart layer-item-id="..." chart-index="0"></arcgis-chart>
35
+ * ```
36
+ *
37
+ * ##### Create a new chart with charts model
38
+ *
39
+ * To create a new chart, use the [`createModel()`](/references/charts-components/model/shared/setup-utils/#createModel) method with a layer and a chart type, then configure the chart using the model's properties and methods.
40
+ *
41
+ * ```js
42
+ * import FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
43
+ * import { createModel } from "@arcgis/charts-components/model/shared/setup-utils.js";
44
+ *
45
+ * const myLayer = new FeatureLayer({ portalItem: { id: "..." } });
46
+ *
47
+ * const chartElement = document.querySelector("arcgis-chart");
48
+ * const barChartModel = await createModel({ layer: myLayer, chartType: "barChart" });
49
+ * barChartModel.xAxisField = "field";
50
+ * ```
51
+ *
52
+ * Each supported chart type has its own configuration properties and methods, which are covered with examples in the [chart types documentation](https://developers.arcgis.com/javascript/latest/charts/chart-types/chart-types-intro).
53
+ *
54
+ * ##### See also:
55
+ * - [Introduction to charts](https://developers.arcgis.com/javascript/latest/charts-components-intro/)
56
+ * - [Tutorial: Display a chart](https://developers.arcgis.com/javascript/latest/tutorials/display-a-chart/)
57
+ * - [Tutorial: Chart and map interactions](https://developers.arcgis.com/javascript/latest/tutorials/chart-and-map-interactions/)
58
+ *
59
+ * > [!WARNING]
60
+ * > When the chart is rendering while its container is not yet fully sized, a console error about the chart's attribute height may appear. This is a known issue and should not affect the functionality of the chart.
61
+ *
62
+ * @slot [action-bar] - Slot for the [arcgis-charts-action-bar](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/) component or [calcite-action-bar](https://developers.arcgis.com/calcite-design-system/components/action-bar/) component.
35
63
  * @since 4.32
36
64
  */
37
65
  export abstract class ArcgisChart extends LitElement {
@@ -882,9 +910,9 @@ export abstract class ArcgisChart extends LitElement {
882
910
  */
883
911
  accessor layerFilterChangePolicy: LayerFilterChangePolicy;
884
912
  /**
885
- * Layer item ID associated with the chart to be rendered. Can be used in conjunction with the `chartIndex` property.
913
+ * Layer item ID associated with the chart to be rendered. Can be used in conjunction with the `chartIndex` property. If `layerItemId` is set without `chartIndex`, the first chart in the layer will be rendered.
886
914
  *
887
- * If `layerItemId` is set without `chartIndex`, the first chart in the layer will be rendered.
915
+ * The layer item ID can be found in the URL of the layer's item page on ArcGIS Online or Enterprise. For example, in the URL `https://www.arcgis.com/home/item.html?id=8871626e970a4f3e9d6113ec63a92f2f`, the layer item ID is `8871626e970a4f3e9d6113ec63a92f2f`.
888
916
  *
889
917
  * Supported layers include: `FeatureLayer`, `SubtypeSublayer`, `ImageryLayer`, `ImageryTileLayer` and `WCSLayer`.
890
918
  *