@arcgis/charts-components 5.2.0-next.71 → 5.2.0-next.72

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 (101) hide show
  1. package/LICENSE.md +4 -2
  2. package/dist/cdn/{I5DMUUEL.js → 27QJPJG2.js} +1 -1
  3. package/dist/cdn/{4JWIBRGO.js → 2IT2RCIC.js} +1 -1
  4. package/dist/cdn/{K6F2LRKI.js → 3F3DSHMX.js} +1 -1
  5. package/dist/cdn/{3PDVKKKZ.js → 3O6KXZI3.js} +1 -1
  6. package/dist/cdn/{FJGG2VVZ.js → 3P2SRGLO.js} +1 -1
  7. package/dist/cdn/{OE7Q4MG5.js → 42A7W3OA.js} +1 -1
  8. package/dist/cdn/{4M4SAEH4.js → 4HZOLYYJ.js} +1 -1
  9. package/dist/cdn/{7KNUJIOC.js → 4MVV6KMX.js} +1 -1
  10. package/dist/cdn/{RCZLTGQI.js → 52AWRYBA.js} +1 -1
  11. package/dist/cdn/{54VUGIAU.js → 5TUEP4OK.js} +1 -1
  12. package/dist/cdn/{OAXHS4LE.js → 5X7Q3I6R.js} +1 -1
  13. package/dist/cdn/{PTUMQCFF.js → 6HRHDLP5.js} +1 -1
  14. package/dist/cdn/{2K4MIK4T.js → 6X64PHGO.js} +1 -1
  15. package/dist/cdn/{7REEJ3OW.js → 6XCI7UCI.js} +1 -1
  16. package/dist/cdn/{3WOYVXSZ.js → 6YZUX3IR.js} +1 -1
  17. package/dist/cdn/{JYLEN3VQ.js → 73JR3GLJ.js} +1 -1
  18. package/dist/cdn/{3FM3YR57.js → 7RSZDQRA.js} +1 -1
  19. package/dist/cdn/{BZ6FUIQF.js → AWL4BHAE.js} +1 -1
  20. package/dist/cdn/{27RKQQPS.js → BFX4S6V7.js} +1 -1
  21. package/dist/cdn/{LAPBDR32.js → BHH6HAXC.js} +1 -1
  22. package/dist/cdn/{4IO3VF3L.js → BJYYXABD.js} +1 -1
  23. package/dist/cdn/{WPLHZAZ3.js → BPRQJH3C.js} +1 -1
  24. package/dist/cdn/{25MA553Z.js → D4YMWPO7.js} +1 -1
  25. package/dist/cdn/{4JUR3VIE.js → DGJT4BLR.js} +1 -1
  26. package/dist/cdn/{CVFKL3S2.js → EPHJ2KVR.js} +1 -1
  27. package/dist/cdn/{L6DFXTSQ.js → FY42MP27.js} +1 -1
  28. package/dist/cdn/{IODRBLGT.js → G6RHXKZI.js} +1 -1
  29. package/dist/cdn/{GKEW5JYD.js → GBVHGXLI.js} +1 -1
  30. package/dist/cdn/{JAQYU6KP.js → GDCYGJRG.js} +1 -1
  31. package/dist/cdn/{NUHPR7BM.js → GEGDQRVU.js} +1 -1
  32. package/dist/cdn/{LIDWAYQH.js → GIW5FIBF.js} +28 -28
  33. package/dist/cdn/{3B6QE7OV.js → GW33HA7C.js} +1 -1
  34. package/dist/cdn/{GIH3U7YP.js → HE4DQBAF.js} +1 -1
  35. package/dist/cdn/{QAXXYD6N.js → HEV6CQ2O.js} +1 -1
  36. package/dist/cdn/{AVE3KXWQ.js → HFWQWWZX.js} +1 -1
  37. package/dist/cdn/{LPYRKK25.js → HGWVBXGI.js} +1 -1
  38. package/dist/cdn/{6TJIHHQF.js → HTDEFWRO.js} +1 -1
  39. package/dist/cdn/{VHW4OAKG.js → IMJT2ADR.js} +1 -1
  40. package/dist/cdn/{SL7NRRSJ.js → IOF3LHQS.js} +1 -1
  41. package/dist/cdn/{P6DBPQZO.js → IQAQH55N.js} +1 -1
  42. package/dist/cdn/{33JR3GH6.js → IRLDFW6T.js} +1 -1
  43. package/dist/cdn/{PIEX577B.js → J3UWN6IT.js} +1 -1
  44. package/dist/cdn/{3V4ZETXH.js → JCMK62IU.js} +1 -1
  45. package/dist/cdn/{IK4FPUFJ.js → JRLNI3JM.js} +1 -1
  46. package/dist/cdn/{OTFA727N.js → JU77OUXG.js} +1 -1
  47. package/dist/cdn/{4ODTQZJK.js → JZIH5BEO.js} +1 -1
  48. package/dist/cdn/{DT5BOM5F.js → KW4YJOEM.js} +1 -1
  49. package/dist/cdn/{WM6SCZHN.js → L44RZ2LJ.js} +1 -1
  50. package/dist/cdn/{2SLJKRSD.js → LFUOUZRD.js} +1 -1
  51. package/dist/cdn/{4DC4ARHU.js → LQU6DEB6.js} +1 -1
  52. package/dist/cdn/{QWCNHH6G.js → MHWVJW2G.js} +1 -1
  53. package/dist/cdn/{QT64PB4L.js → MQJ65BCX.js} +1 -1
  54. package/dist/cdn/{VNYRZDY5.js → N7PKDRUM.js} +1 -1
  55. package/dist/cdn/{E7QFC64H.js → NBS2RCOO.js} +1 -1
  56. package/dist/cdn/{MAC4MPUA.js → NORDWTUH.js} +1 -1
  57. package/dist/cdn/{IO6A77U4.js → NWH7AJ52.js} +1 -1
  58. package/dist/cdn/{ROG3HFDT.js → P5HKNAV6.js} +1 -1
  59. package/dist/cdn/{QSGJ3MAT.js → PCTPAU4P.js} +1 -1
  60. package/dist/cdn/{VAF3UIVA.js → PDSFLHBW.js} +1 -1
  61. package/dist/cdn/{3XB2RWHK.js → QAQ7XMIR.js} +1 -1
  62. package/dist/cdn/{BQORJ3LU.js → QQO3KMZ4.js} +1 -1
  63. package/dist/cdn/{XH57C72H.js → RI7OFHO5.js} +1 -1
  64. package/dist/cdn/{MOG5ZVLX.js → RLZXSSP6.js} +1 -1
  65. package/dist/cdn/{ZK5Z6BOX.js → S3LRWKAX.js} +1 -1
  66. package/dist/cdn/{BAFCVCT4.js → S3XBL7KR.js} +1 -1
  67. package/dist/cdn/{SSQPRUUN.js → SCVLTVPD.js} +1 -1
  68. package/dist/cdn/SG2DVYJ7.js +2 -0
  69. package/dist/cdn/{NF4EBNLN.js → SU5W5NFD.js} +1 -1
  70. package/dist/cdn/{WDUTZ6EO.js → SWD33GFB.js} +1 -1
  71. package/dist/cdn/{RCLHFY6O.js → TEVJHF4T.js} +1 -1
  72. package/dist/cdn/{O2BQ374Y.js → TTW52EWC.js} +1 -1
  73. package/dist/cdn/{F5AR3N3Z.js → UAUXUYSZ.js} +1 -1
  74. package/dist/cdn/{BNNBHYRP.js → UKVRMGYE.js} +1 -1
  75. package/dist/cdn/{NAGOJPIX.js → V35ALJHW.js} +2 -2
  76. package/dist/cdn/{CRQK4CKK.js → V5EPH7SJ.js} +1 -1
  77. package/dist/cdn/{QC3FMJKL.js → V6WZ4HG3.js} +1 -1
  78. package/dist/cdn/{V2FHLWYC.js → VLTMMRNO.js} +1 -1
  79. package/dist/cdn/{5NVOWYWZ.js → VPYOVHNR.js} +1 -1
  80. package/dist/cdn/{5GZDXWTQ.js → WDBM5DMV.js} +1 -1
  81. package/dist/cdn/{7XWR4EVM.js → WMXFQ3W5.js} +1 -1
  82. package/dist/cdn/{VUHFYOLC.js → YALJ3XEN.js} +1 -1
  83. package/dist/cdn/{EJWHEBKW.js → ZBP6VJMM.js} +1 -1
  84. package/dist/cdn/{OE7FIKPS.js → ZCCW2VVQ.js} +1 -1
  85. package/dist/cdn/{NP24UZGI.js → ZKB6OSA6.js} +1 -1
  86. package/dist/cdn/index.js +1 -1
  87. package/dist/cdn/model/shared/setup-utils.js +1 -1
  88. package/dist/chunks/index2.js +1548 -1548
  89. package/dist/chunks/pie-chart-model.js +385 -334
  90. package/dist/chunks/type-guards2.js +15 -15
  91. package/dist/components/arcgis-chart/customElement.d.ts +11 -29
  92. package/dist/components/arcgis-chart/customElement.js +168 -163
  93. package/dist/docs/api.json +1 -1
  94. package/dist/docs/docs.json +1 -1
  95. package/dist/docs/vscode.html-custom-data.json +1 -1
  96. package/dist/docs/web-types.json +1 -1
  97. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
  98. package/dist/model/pie-chart-model/pie-chart-model.d.ts +59 -2
  99. package/dist/model/shared/type-guards.d.ts +1 -0
  100. package/package.json +4 -4
  101. package/dist/cdn/CNI32IL3.js +0 -2
@@ -1,26 +1,26 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { c as n } from "./model-types.js";
3
3
  import { u as e } from "./chart-object-literals.js";
4
- function c(i) {
4
+ function d(i) {
5
5
  return i !== void 0 && "config" in i;
6
6
  }
7
7
  function s(i) {
8
8
  return i?.chartType === e.BarSeries;
9
9
  }
10
- function d(i) {
10
+ function f(i) {
11
11
  return i?.chartType === e.LineSeries;
12
12
  }
13
- function f(i) {
13
+ function h(i) {
14
14
  return i?.chartType === e.RadarSeries;
15
15
  }
16
16
  function o(i) {
17
17
  return i?.chartType === e.ComboLineAndBarSeries;
18
18
  }
19
- function h(i) {
19
+ function l(i) {
20
20
  const t = i?.chartType;
21
21
  return t === e.LineSeries || t === e.BarSeries || t === e.ComboLineAndBarSeries || t === e.RadarSeries;
22
22
  }
23
- function l(i) {
23
+ function a(i) {
24
24
  return i?.chartType === e.PieSeries;
25
25
  }
26
26
  function p(i) {
@@ -56,10 +56,10 @@ function C(i) {
56
56
  function x(i) {
57
57
  return i !== void 0 && "getDataTooltipVisibility" in i;
58
58
  }
59
- function v(i) {
59
+ function B(i) {
60
60
  return i !== void 0 && "getGuideVisibility" in i && typeof i.getGuideVisibility == "function";
61
61
  }
62
- function B(i) {
62
+ function v(i) {
63
63
  return i !== void 0 && "addXAxisGuide" in i && typeof i.addXAxisGuide == "function";
64
64
  }
65
65
  function A(i) {
@@ -69,7 +69,7 @@ function G(i) {
69
69
  return i !== void 0 && "legendVisibility" in i;
70
70
  }
71
71
  function L(i) {
72
- return i !== void 0 && "displayCategory" in i;
72
+ return a(i);
73
73
  }
74
74
  function W(i) {
75
75
  return i !== void 0 && "temporalBinningSize" in i;
@@ -86,15 +86,15 @@ function P(i) {
86
86
  }
87
87
  export {
88
88
  p as a,
89
- c as b,
89
+ d as b,
90
90
  o as c,
91
91
  T as d,
92
92
  S as e,
93
93
  M as f,
94
- d as g,
94
+ f as g,
95
95
  H as h,
96
96
  s as i,
97
- v as j,
97
+ B as j,
98
98
  G as k,
99
99
  C as l,
100
100
  g as m,
@@ -102,11 +102,11 @@ export {
102
102
  b as o,
103
103
  W as p,
104
104
  x as q,
105
- B as r,
105
+ v as r,
106
106
  A as s,
107
107
  L as t,
108
- l as u,
109
- f as v,
108
+ a as u,
109
+ h as v,
110
110
  y as w,
111
- h as x
111
+ l as x
112
112
  };
@@ -23,36 +23,18 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
23
23
 
24
24
  /**
25
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:
27
26
  *
28
- * ##### Load from a layer item
27
+ * You can render a chart either by:
28
+ * - Setting [layerItemId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layerItemId) and [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex) to load a saved chart from a layer item.
29
+ * - Create a new chart by using the [`createModel()`](/references/charts-components/model/shared/setup-utils/#createModel) function to create a chart model and set it to the [model](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#model) property.
29
30
  *
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.
31
+ * > [!IMPORTANT]
32
+ * >
33
+ * > See the [Introduction to charts](https://developers.arcgis.com/javascript/latest/charts-components-intro/) guide for detailed examples on how to render a chart using the above patterns.
32
34
  *
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](https://developers.arcgis.com/javascript/latest/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](https://developers.arcgis.com/javascript/latest/charts/chart-types/) has its own configuration properties and methods with their corresponding models.
35
+ * There are 10 supported chart types, each with its own model properties and methods. Refer to the [chart types documentation](https://developers.arcgis.com/javascript/latest/charts/chart-types/) for more information on each chart type.
53
36
  *
54
37
  * ##### See also:
55
- * - [Introduction to charts](https://developers.arcgis.com/javascript/latest/charts-components-intro/)
56
38
  * - [Tutorial: Display a chart](https://developers.arcgis.com/javascript/latest/tutorials/display-a-chart/)
57
39
  * - [Tutorial: Chart and map interactions](https://developers.arcgis.com/javascript/latest/tutorials/chart-and-map-interactions/)
58
40
  *
@@ -1031,15 +1013,15 @@ export abstract class ArcgisChart extends LitElement {
1031
1013
  accessor legendPosition: WebChartLegendPositions | undefined;
1032
1014
  /**
1033
1015
  * When the pie chart label contains either a numeric value or a percentage (which can be set through the
1034
- * [setDisplayNumericValue](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#setDisplayNumericValue) and
1035
- * [setDisplayPercentage](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#setDisplayPercentage) methods from the pie chart model), this property
1016
+ * [displayNumericValueOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayNumericValueOnLegendItems) and
1017
+ * [displayPercentageOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayPercentageOnLegendItems) properties from the pie chart model), this property
1036
1018
  * can be used to format the numeric value and/or percentage. If the returned string contains HTML tags they will be interpreted as such.
1037
1019
  *
1038
1020
  * @example
1039
1021
  * ```ts
1040
1022
  * // Set the pie chart model to display both numeric value and percentage.
1041
- * pieChartModel.setDisplayNumericValue(true);
1042
- * pieChartModel.setDisplayPercentage(true);
1023
+ * pieChartModel.displayNumericValueOnLegendItems = true;
1024
+ * pieChartModel.displayPercentageOnLegendItems = true;
1043
1025
  *
1044
1026
  * // Render the numeric value and percentage in bold and italic respectively, with 2 decimal places.
1045
1027
  * chartElement.legendValueLabelFormatter = (value, percentage) => {