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

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 (134) hide show
  1. package/LICENSE.md +4 -2
  2. package/dist/cdn/{4M4SAEH4.js → 27T5D3K4.js} +1 -1
  3. package/dist/cdn/{QSGJ3MAT.js → 2EX6L3UK.js} +1 -1
  4. package/dist/cdn/{54VUGIAU.js → 2NQ6MELS.js} +1 -1
  5. package/dist/cdn/{VHW4OAKG.js → 2TE3YZBW.js} +3 -3
  6. package/dist/cdn/{7XWR4EVM.js → 3K3AZU3H.js} +1 -1
  7. package/dist/cdn/{FJGG2VVZ.js → 3P2SRGLO.js} +1 -1
  8. package/dist/cdn/{5NVOWYWZ.js → 3VM4DOEZ.js} +1 -1
  9. package/dist/cdn/{IODRBLGT.js → 4BRBVLD3.js} +1 -1
  10. package/dist/cdn/{2SLJKRSD.js → 4R7PF5KX.js} +1 -1
  11. package/dist/cdn/{SSQPRUUN.js → 54JCSWKS.js} +1 -1
  12. package/dist/cdn/{IO6A77U4.js → 5LWG4OGB.js} +1 -1
  13. package/dist/cdn/{I5DMUUEL.js → 5ROKZRVW.js} +1 -1
  14. package/dist/cdn/{25MA553Z.js → 5TF4XWIC.js} +1 -1
  15. package/dist/cdn/{OAXHS4LE.js → 5X7Q3I6R.js} +1 -1
  16. package/dist/cdn/{3PDVKKKZ.js → 6F6RXEE7.js} +1 -1
  17. package/dist/cdn/{SL7NRRSJ.js → 6O3HF44R.js} +1 -1
  18. package/dist/cdn/{QWCNHH6G.js → 6QQTUFRP.js} +1 -1
  19. package/dist/cdn/{WDUTZ6EO.js → 76SBKWBM.js} +1 -1
  20. package/dist/cdn/{VUHFYOLC.js → 7NQYTB6K.js} +1 -1
  21. package/dist/cdn/{4DC4ARHU.js → 7O3T7HG5.js} +1 -1
  22. package/dist/cdn/{6TJIHHQF.js → 7VJRGF4E.js} +1 -1
  23. package/dist/cdn/{GIH3U7YP.js → A7ISZ5RM.js} +1 -1
  24. package/dist/cdn/{VNYRZDY5.js → BBWFFVQ7.js} +1 -1
  25. package/dist/cdn/{RCZLTGQI.js → BE3D4CYZ.js} +1 -1
  26. package/dist/cdn/{BZ6FUIQF.js → BRWJSQNF.js} +1 -1
  27. package/dist/cdn/{OTFA727N.js → BTKWU3YE.js} +1 -1
  28. package/dist/cdn/{PTUMQCFF.js → C6U7HPQE.js} +1 -1
  29. package/dist/cdn/{DT5BOM5F.js → CY3UKUIP.js} +1 -1
  30. package/dist/cdn/{2K4MIK4T.js → D2AGAJK7.js} +1 -1
  31. package/dist/cdn/{LIDWAYQH.js → D43DR25R.js} +28 -28
  32. package/dist/cdn/{4JWIBRGO.js → D6MRUKIA.js} +1 -1
  33. package/dist/cdn/{4IO3VF3L.js → DQSPIG3P.js} +1 -1
  34. package/dist/cdn/DY2DE7FX.js +2 -0
  35. package/dist/cdn/{3B6QE7OV.js → E4ZOL5K5.js} +1 -1
  36. package/dist/cdn/{QT64PB4L.js → EUNBXPUS.js} +1 -1
  37. package/dist/cdn/{ROG3HFDT.js → EUQPESOK.js} +1 -1
  38. package/dist/cdn/{K6F2LRKI.js → F3ZGHFA6.js} +1 -1
  39. package/dist/cdn/{MAC4MPUA.js → FLMUOC55.js} +1 -1
  40. package/dist/cdn/{WM6SCZHN.js → HOQNWF7T.js} +1 -1
  41. package/dist/cdn/{PIEX577B.js → HS52MRKJ.js} +1 -1
  42. package/dist/cdn/{QC3FMJKL.js → HXC5LKJW.js} +1 -1
  43. package/dist/cdn/{IK4FPUFJ.js → IMG5US47.js} +1 -1
  44. package/dist/cdn/{7KNUJIOC.js → IXBLQSE6.js} +1 -1
  45. package/dist/cdn/{V2FHLWYC.js → JYV4I2GQ.js} +1 -1
  46. package/dist/cdn/{3FM3YR57.js → KBROJDYY.js} +1 -1
  47. package/dist/cdn/{NUHPR7BM.js → KMX777EF.js} +1 -1
  48. package/dist/cdn/{BQORJ3LU.js → KN6WLM2H.js} +1 -1
  49. package/dist/cdn/{WPLHZAZ3.js → LKNQUAR2.js} +1 -1
  50. package/dist/cdn/{OE7Q4MG5.js → LMOH2EKW.js} +1 -1
  51. package/dist/cdn/{NF4EBNLN.js → LP5TTMQR.js} +1 -1
  52. package/dist/cdn/{OE7FIKPS.js → M2TX43TJ.js} +1 -1
  53. package/dist/cdn/{XH57C72H.js → MQJAK2SJ.js} +1 -1
  54. package/dist/cdn/{L6DFXTSQ.js → NAUEEC5O.js} +1 -1
  55. package/dist/cdn/{F5AR3N3Z.js → NLIYZT4J.js} +1 -1
  56. package/dist/cdn/{LAPBDR32.js → NPH57JQ6.js} +1 -1
  57. package/dist/cdn/{JYLEN3VQ.js → NQ5JEX36.js} +1 -1
  58. package/dist/cdn/{MOG5ZVLX.js → NVINMCGT.js} +1 -1
  59. package/dist/cdn/{BAFCVCT4.js → OFJFM4B4.js} +1 -1
  60. package/dist/cdn/{BNNBHYRP.js → OQZDT6CL.js} +1 -1
  61. package/dist/cdn/{3XB2RWHK.js → OUOCOHTG.js} +1 -1
  62. package/dist/cdn/{EJWHEBKW.js → OWJQEWK7.js} +1 -1
  63. package/dist/cdn/{JAQYU6KP.js → P6YFC7LU.js} +1 -1
  64. package/dist/cdn/{7REEJ3OW.js → PE3I5BB4.js} +1 -1
  65. package/dist/cdn/{5GZDXWTQ.js → PZL4HGLN.js} +1 -1
  66. package/dist/cdn/{CVFKL3S2.js → Q2GJNRU2.js} +1 -1
  67. package/dist/cdn/{O2BQ374Y.js → Q7VV6RA4.js} +1 -1
  68. package/dist/cdn/{3WOYVXSZ.js → R2GPX6DA.js} +1 -1
  69. package/dist/cdn/{VAF3UIVA.js → RHSCKBJG.js} +1 -1
  70. package/dist/cdn/RSLGXN7X.js +2 -0
  71. package/dist/cdn/{P6DBPQZO.js → RXSNPRN7.js} +1 -1
  72. package/dist/cdn/{ZK5Z6BOX.js → S3LRWKAX.js} +1 -1
  73. package/dist/cdn/{3V4ZETXH.js → S3QIWVN6.js} +1 -1
  74. package/dist/cdn/{LPYRKK25.js → SJ7UC3JM.js} +1 -1
  75. package/dist/cdn/{NP24UZGI.js → SM5PY54Q.js} +1 -1
  76. package/dist/cdn/{AVE3KXWQ.js → SPAWFHXG.js} +1 -1
  77. package/dist/cdn/{RCLHFY6O.js → TBAK2RCH.js} +1 -1
  78. package/dist/cdn/{33JR3GH6.js → TSORVNA6.js} +1 -1
  79. package/dist/cdn/{27RKQQPS.js → TTMIUSJW.js} +1 -1
  80. package/dist/cdn/{QAXXYD6N.js → UFCXIYYK.js} +1 -1
  81. package/dist/cdn/{4ODTQZJK.js → UUKKQ3K7.js} +1 -1
  82. package/dist/cdn/VMN2UXWS.js +3 -0
  83. package/dist/cdn/{GKEW5JYD.js → VZOL2AD6.js} +1 -1
  84. package/dist/cdn/{E7QFC64H.js → W4F6FFOT.js} +1 -1
  85. package/dist/cdn/{4JUR3VIE.js → XFO5L4DP.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/box-plot-model.js +37 -37
  89. package/dist/chunks/class-breaks.js +66 -66
  90. package/dist/chunks/combo-bar-line-chart-model.js +1 -1
  91. package/dist/chunks/data.js +15 -15
  92. package/dist/chunks/index2.js +3184 -3143
  93. package/dist/chunks/index4.js +1 -1
  94. package/dist/chunks/model-setter.js +1 -1
  95. package/dist/chunks/negative-values-stacked-to-baseline.js +6 -6
  96. package/dist/chunks/pie-chart-model.js +385 -334
  97. package/dist/chunks/scatterplot-model.js +1 -1
  98. package/dist/chunks/serial-chart-data.js +50 -50
  99. package/dist/chunks/serial-chart-model.js +1 -1
  100. package/dist/chunks/type-guards2.js +15 -15
  101. package/dist/chunks/utils.js +10 -10
  102. package/dist/chunks/web-component-utils.js +1 -1
  103. package/dist/chunks/x-bounds.js +5 -5
  104. package/dist/components/arcgis-chart/customElement.d.ts +11 -29
  105. package/dist/components/arcgis-chart/customElement.js +171 -166
  106. package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
  107. package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
  108. package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
  109. package/dist/components/arcgis-charts-config-create-flow/customElement.js +1 -1
  110. package/dist/components/arcgis-charts-config-format/customElement.js +7 -7
  111. package/dist/components/arcgis-charts-config-guide/customElement.js +7 -7
  112. package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
  113. package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
  114. package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +9 -9
  115. package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
  116. package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +9 -9
  117. package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -18
  118. package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
  119. package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
  120. package/dist/components/arcgis-charts-config-view-charts/customElement.js +4 -4
  121. package/dist/docs/api.json +1 -1
  122. package/dist/docs/docs.json +1 -1
  123. package/dist/docs/vscode.html-custom-data.json +1 -1
  124. package/dist/docs/web-types.json +1 -1
  125. package/dist/index.js +208 -207
  126. package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
  127. package/dist/model/pie-chart-model/pie-chart-model.d.ts +59 -2
  128. package/dist/model/shared/type-guards.d.ts +1 -0
  129. package/dist/utils/chart-config/converter/index.js +32 -32
  130. package/dist/utils/components/interfaces.d.ts +2 -0
  131. package/package.json +4 -4
  132. package/dist/cdn/CNI32IL3.js +0 -2
  133. package/dist/cdn/CRQK4CKK.js +0 -2
  134. package/dist/cdn/NAGOJPIX.js +0 -3
@@ -6,7 +6,7 @@ import { b as w } from "./series-length.js";
6
6
  import { g as b } from "./utils2.js";
7
7
  import { al as m, af as z, ad as k } from "./index.js";
8
8
  import { d as y } from "./index3.js";
9
- import { br as E } from "./index2.js";
9
+ import { bs as E } from "./index2.js";
10
10
  import { i as T } from "./index4.js";
11
11
  import { C as V } from "./chart-model.js";
12
12
  import { M as B, a as G, W as U, b as j } from "./data-labels-visibility.js";
@@ -2,21 +2,21 @@
2
2
  import { substitute as E } from "@arcgis/core/intl.js";
3
3
  import { cloneDeep as J, isEmpty as Ye, memoize as We } from "lodash-es";
4
4
  import { S as oe } from "./common.js";
5
- import { s as D, u as $, a as Ie, g as ye, b as Le, c as He, d as Xe, e as pe } from "./utils.js";
6
- import { w as I, i as Ue, di as Y, cn as je, bC as Ke, a$ as De, x as Ze, Y as ee, cS as _e, cR as Qe, p as ze, aJ as me, ct as Ge, d as Je, aI as et, I as tt, a7 as st, bx as it, W as at, e as rt, bI as nt, ds as ot, v as lt, dy as fe, cb as ct, dz as ut, c7 as dt, B as yt, N as Se, bL as _, dv as mt, bj as q, bP as Q, ap as j, a6 as Ne, bd as M, bc as gt, k as U, bt as pt, bB as ft, bs as O, bA as V, bp as Fe, br as xe } from "./index2.js";
5
+ import { s as L, u as $, a as Ie, g as ye, b as De, c as He, d as Xe, e as pe } from "./utils.js";
6
+ import { w as I, i as je, dj as Y, co as Ue, bD as Ke, a$ as Le, x as Ze, Y as ee, cT as _e, cS as Qe, p as ze, aJ as me, cu as Ge, d as Je, aI as et, I as tt, a7 as st, by as it, W as at, e as rt, bJ as nt, dt as ot, v as lt, dz as fe, cc as ct, dA as ut, c8 as dt, B as yt, N as Se, bM as _, dw as mt, bj as q, bQ as Q, ap as U, a6 as Ne, bd as M, bc as gt, k as j, bu as pt, bC as ft, bt as O, bB as V, bp as Fe, bs as xe } from "./index2.js";
7
7
  import { a as P, s as ge, g as te, b as he, c as St } from "./data.js";
8
- import { u as T, r as v, k as Ft, d as k, n as L, m as W, p as xt, t as ht, s as le } from "./chart-object-literals.js";
8
+ import { u as T, r as v, k as Ft, d as k, n as D, m as W, p as xt, t as ht, s as le } from "./chart-object-literals.js";
9
9
  import { R as Oe, i as Tt } from "./rest-js-object-literals.js";
10
10
  import { i as se } from "./index4.js";
11
- import { aD as Bt, K as z, F as ce, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Lt } from "./index.js";
11
+ import { aD as Bt, K as z, F as ce, w as Ct, $ as bt, ac as At, ao as vt, A as It, a2 as Dt } from "./index.js";
12
12
  import { C as w, F as H, d as R } from "./index3.js";
13
- import { g as Ve, s as Dt } from "./series-types.js";
13
+ import { g as Ve, s as Lt } from "./series-types.js";
14
14
  import { convertChartSpec as Nt } from "../utils/chart-config/converter/index.js";
15
15
  import { d as ue, f as Ot } from "./type-guards.js";
16
16
  import { C as Vt, m as kt } from "./model-setter.js";
17
17
  import { g as ie } from "./utils2.js";
18
18
  import { a as Rt, b as qt } from "./series-length.js";
19
- const Ds = (s) => {
19
+ const Ls = (s) => {
20
20
  let e;
21
21
  const t = s.series[0];
22
22
  return I(t) && (e = t.temporalBinning?.size), e;
@@ -39,23 +39,23 @@ const Ds = (s) => {
39
39
  }, Pt = (s, e) => {
40
40
  e?.series?.forEach((t) => {
41
41
  I(t) && (t.temporalBinning ??= {}, t.temporalBinning.size = s);
42
- }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
42
+ }), L({ config: e, value: null, axisIndex: 1, isMax: !1 }), L({ config: e, value: null, axisIndex: 1, isMax: !0 });
43
43
  }, Et = (s, e) => {
44
44
  e?.series?.forEach((t) => {
45
45
  I(t) && (t.temporalBinning ??= {}, t.temporalBinning.nullPolicy = s);
46
- }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
46
+ }), L({ config: e, value: null, axisIndex: 1, isMax: !1 }), L({ config: e, value: null, axisIndex: 1, isMax: !0 });
47
47
  }, ks = (s, e) => {
48
48
  e.series?.forEach((t) => {
49
49
  I(t) && (t.temporalBinning ??= {}, t.temporalBinning.unit = s);
50
- }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
50
+ }), L({ config: e, value: null, axisIndex: 1, isMax: !1 }), L({ config: e, value: null, axisIndex: 1, isMax: !0 });
51
51
  }, Rs = (s, e) => {
52
52
  e.series?.forEach((t) => {
53
53
  I(t) && (t.temporalBinning ??= {}, t.temporalBinning.timeAggregationType = s);
54
- }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
54
+ }), L({ config: e, value: null, axisIndex: 1, isMax: !1 }), L({ config: e, value: null, axisIndex: 1, isMax: !0 });
55
55
  }, qs = (s, e) => {
56
56
  e.series?.forEach((t) => {
57
57
  I(t) && (t.temporalBinning ??= {}, t.temporalBinning.trimIncompleteTimeInterval = s);
58
- }), D({ config: e, value: null, axisIndex: 1, isMax: !1 }), D({ config: e, value: null, axisIndex: 1, isMax: !0 });
58
+ }), L({ config: e, value: null, axisIndex: 1, isMax: !1 }), L({ config: e, value: null, axisIndex: 1, isMax: !0 });
59
59
  }, Mt = (s) => {
60
60
  Pt(0, s);
61
61
  };
@@ -70,7 +70,7 @@ const Ht = (s) => {
70
70
  (t.type === T.BarSeries || t.type === T.RadarSeries || t.type === T.LineSeries) && t.temporalBinning && (e = t.temporalBinning.outTimeZone);
71
71
  }), e || (e = s?.axes?.[0]?.valueFormat.type === T.DateAxisFormat ? s.axes[0].valueFormat.intlOptions.timeZone : void 0), e;
72
72
  }, ke = (s, e) => {
73
- const t = Ue(s);
73
+ const t = je(s);
74
74
  Y(e) ? s ? e.outTimeZone = t : delete e.outTimeZone : e?.series.forEach((r) => {
75
75
  (r.type === T.BarSeries || r.type === T.RadarSeries || r.type === T.LineSeries) && (s ? (r.temporalBinning ??= {}, r.temporalBinning.outTimeZone = t) : r.temporalBinning && delete r.temporalBinning.outTimeZone);
76
76
  }), e?.axes?.[0]?.valueFormat.type === T.DateAxisFormat && (s ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
@@ -101,19 +101,19 @@ function Es(s, e) {
101
101
  let t;
102
102
  return e !== void 0 && (t = { ...e, rotated: s }), t;
103
103
  }
104
- function Ut(s) {
104
+ function jt(s) {
105
105
  let e;
106
106
  return s !== void 0 && (e = { ...s }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
107
107
  }
108
108
  function Ms(s, e) {
109
- return e != null || De(s);
109
+ return e != null || Le(s);
110
110
  }
111
111
  async function $s(s) {
112
112
  const { config: e, layer: t, abortSignal: r } = s;
113
113
  let i = !1;
114
114
  return ue(t) || Ot(e) ? e && ue(t) && (i = await Ke({ config: e, layer: t, abortSignal: r })) : i = !0, i;
115
115
  }
116
- async function jt(s) {
116
+ async function Ut(s) {
117
117
  const {
118
118
  queryObject: e,
119
119
  chartConfig: t,
@@ -265,7 +265,7 @@ async function Qt(s) {
265
265
  t.series.length === 0 && u !== void 0 && t.series.push(u);
266
266
  const y = ee(t.series);
267
267
  if (y === w.BoxPlotMonoFieldAndSplitBy || y === w.BoxPlotMultiFieldsAndSplitBy || y === w.BoxPlotMonoFieldAndCategoryAndSplitBy || y === w.BarAndLineSplitBy || y === w.BarAndLineSplitByNoAggregation) {
268
- const g = et(t.series[0]?.query?.where), F = tt(r), h = st(g, F), S = h ? it(h) : !1, b = await jt({
268
+ const g = et(t.series[0]?.query?.where), F = tt(r), h = st(g, F), S = h ? it(h) : !1, b = await Ut({
269
269
  queryObject: r,
270
270
  chartConfig: t,
271
271
  splitByField: g,
@@ -302,7 +302,7 @@ async function Qt(s) {
302
302
  return m;
303
303
  }
304
304
  function zt(s, e) {
305
- e && !De(e) && (e = Je({ chartConfig: e, queryObject: s }));
305
+ e && !Le(e) && (e = Je({ chartConfig: e, queryObject: s }));
306
306
  }
307
307
  async function Ys(s) {
308
308
  const {
@@ -335,7 +335,7 @@ async function Ys(s) {
335
335
  returnFeaturesExtent: f,
336
336
  returnStatisticsAggregatedIds: u,
337
337
  chartLimits: m
338
- })), g = je(g, a), ke(d, g)), { alteredConfig: g, preFetchedQueryResponse: F };
338
+ })), g = Ue(g, a), ke(d, g)), { alteredConfig: g, preFetchedQueryResponse: F };
339
339
  }
340
340
  function Gt(s, e) {
341
341
  let t = !1;
@@ -396,16 +396,16 @@ function Ws(s) {
396
396
  }
397
397
  const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
398
398
  s.hideEmptyRowsAndColumns = e;
399
- }, Us = (s, e) => {
399
+ }, js = (s, e) => {
400
400
  const t = s.series[0];
401
401
  t.heatRulesType = e;
402
- }, js = (s) => s.series[0].heatRulesType, Ks = (s, e) => {
402
+ }, Us = (s) => s.series[0].heatRulesType, Ks = (s, e) => {
403
403
  const t = s.series[0];
404
404
  t.gradientRules = e;
405
405
  }, Zs = (s) => s.series[0].gradientRules, _s = (s) => {
406
406
  const { yField: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a } = r, n = ie(1, t), o = Jt(t), l = se(t), c = t.series[0];
407
407
  if (typeof e == "string" && o !== e && c) {
408
- if (c.y = e, Ut(t), o === n || l) {
408
+ if (c.y = e, jt(t), o === n || l) {
409
409
  const p = R(a, e);
410
410
  $(t, 1, p);
411
411
  }
@@ -427,11 +427,11 @@ const Hs = (s) => s.hideEmptyRowsAndColumns, Xs = (s, e) => {
427
427
  G({ axisIndex: 1, commonStrings: r, config: t });
428
428
  }, ts = (s) => s.series[0].yTemporalBinning, ss = (s, e) => {
429
429
  e.orderOptions ??= {};
430
- const t = e.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, r = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = de(e)[1], n = {
430
+ const t = e.axes?.[0]?.valueFormat?.type === "category" ? D.Category : D.YValue, r = de(e)[0], i = e.axes?.[1]?.valueFormat?.type === "category" ? D.Category : D.YValue, a = de(e)[1], n = {
431
431
  ...e.orderOptions.data ?? {},
432
- orderType: L.MultiAxes
432
+ orderType: D.MultiAxes
433
433
  };
434
- r === oe.customSort && t === L.Category && (n.orderByX = [...s]), a === oe.customSort && i === L.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
434
+ r === oe.customSort && t === D.Category && (n.orderByX = [...s]), a === oe.customSort && i === D.Category && (n.orderByY = [...s]), Object.keys(n).length > 1 && (e.orderOptions.data = n);
435
435
  }, Gs = (s, e) => {
436
436
  const t = e.series[0];
437
437
  t.gridLine && (t.gridLine.width = s);
@@ -511,7 +511,7 @@ function vi(s, e) {
511
511
  function Ii(s) {
512
512
  return s.series[0].classBreaksRules?.colorRampInfo?.flipped ?? !1;
513
513
  }
514
- function Li(s, e) {
514
+ function Di(s, e) {
515
515
  e.series[0].classBreaksRules !== void 0 ? e.series[0].classBreaksRules.colorRampInfo = {
516
516
  ...e.series[0].classBreaksRules.colorRampInfo,
517
517
  flipped: s
@@ -601,11 +601,11 @@ const as = [
601
601
  function os(s) {
602
602
  const e = {};
603
603
  return s.series.forEach((t) => {
604
- Dt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === T.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
604
+ Lt(t) && "nullCategory" in t && t.nullCategory !== void 0 && (e.text ??= t.nullCategory.text, t.type === T.BarSeries ? e.fillSymbol ??= t.nullCategory.fillSymbol : e.markerSymbol ??= t.nullCategory.markerSymbol);
605
605
  }), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
606
606
  }
607
607
  function ae(s) {
608
- const { seriesIndex: e, xAxisField: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, o = j(a?.layer).idField;
608
+ const { seriesIndex: e, xAxisField: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, o = U(a?.layer).idField;
609
609
  let l;
610
610
  const c = i.series[e ?? 0];
611
611
  let p = !1, f = !1, u = !1;
@@ -667,7 +667,7 @@ function ae(s) {
667
667
  return J(C);
668
668
  }
669
669
  function K(s, e, t) {
670
- const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = j(e.layer), n = P(s), o = Z(s), l = we(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => R(r ?? [], S)).join(", "), m = R(r ?? [], n), d = R(r ?? [], c), y = s.series.some((S) => M(S)), g = y ? "category" : "xAxisField", F = m;
670
+ const { layerFieldsInfo: r } = e, { idField: i, isTraditionalTypeOID: a } = U(e.layer), n = P(s), o = Z(s), l = we(s), c = re(s), p = a && (o.length === 0 || o.includes(i)), f = Ct(l, t), u = p ? "" : o.map((S) => R(r ?? [], S)).join(", "), m = R(r ?? [], n), d = R(r ?? [], c), y = s.series.some((S) => M(S)), g = y ? "category" : "xAxisField", F = m;
671
671
  let h = "";
672
672
  if (ge({
673
673
  fieldName: n,
@@ -751,7 +751,7 @@ const qe = (s) => me({
751
751
  return e.filter((t) => t !== "");
752
752
  };
753
753
  function Pe(s) {
754
- const { splitByField: e, numericFields: t, layer: r, seriesIndex: i } = s, a = j(r).idField ?? "";
754
+ const { splitByField: e, numericFields: t, layer: r, seriesIndex: i } = s, a = U(r).idField ?? "";
755
755
  return e === "" ? t[i] ?? a : t[0] ?? a;
756
756
  }
757
757
  function ls(s) {
@@ -770,10 +770,10 @@ function ls(s) {
770
770
  const de = (s) => {
771
771
  let e;
772
772
  if (Y(s)) {
773
- const t = s.orderOptions?.data?.orderByX ?? [""], r = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? L.Category : L.YValue, a = s.axes?.[1]?.valueFormat?.type === "category" ? L.Category : L.YValue;
773
+ const t = s.orderOptions?.data?.orderByX ?? [""], r = s.orderOptions?.data?.orderByY ?? [""], i = s.axes?.[0]?.valueFormat?.type === "category" ? D.Category : D.YValue, a = s.axes?.[1]?.valueFormat?.type === "category" ? D.Category : D.YValue;
774
774
  e = [he(t, i), he(r, a)];
775
775
  } else {
776
- const t = s.orderOptions?.data?.orderType ?? L.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
776
+ const t = s.orderOptions?.data?.orderType ?? D.Category, r = s.orderOptions?.data && "orderBy" in s.orderOptions.data ? s.orderOptions.data.orderBy : xt.Ascending;
777
777
  e = [St(r, t)];
778
778
  }
779
779
  return e;
@@ -801,7 +801,7 @@ function cs(s) {
801
801
  ...u ?? l,
802
802
  id: d,
803
803
  name: y,
804
- x: U,
804
+ x: j,
805
805
  y: c
806
806
  }, h = [];
807
807
  for (const S of t)
@@ -813,7 +813,7 @@ function cs(s) {
813
813
  return F.query = { outStatistics: h }, i.series.length === 1 && ((O(F) || V(F)) && Me(F, i.series[0]), M(F) ? F.fillSymbol = i.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = i.series[0].lineSymbol, F.markerSymbol = i.series[0].markerSymbol)), [F];
814
814
  }
815
815
  function Ee(s) {
816
- const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = j(a.layer).idField, c = [];
816
+ const { xAxisField: e, numericFields: t, aggregationType: r, config: i, layerInfo: a, commonStrings: n } = s, { layerFieldsInfo: o } = a, l = U(a.layer).idField, c = [];
817
817
  for (let d = 0; d < t.length; d += 1) {
818
818
  const y = ae({
819
819
  config: i,
@@ -854,7 +854,7 @@ function Ee(s) {
854
854
  );
855
855
  return u.length === 1 && p.length === 1 && M(u[0]) && M(p[0]) && (p[0].fillSymbol = u[0].fillSymbol), m.length === 1 && f.length === 1 && ((O(m[0]) && O(f[0]) || V(m[0]) && V(f[0])) && Me(f[0], m[0]), (O(m[0]) && O(f[0]) || V(m[0]) && V(f[0])) && (f[0].lineSymbol = m[0].lineSymbol, f[0].markerSymbol = m[0].markerSymbol)), c;
856
856
  }
857
- function Di(s) {
857
+ function Li(s) {
858
858
  const { aggregationType: e, config: t, layerInfo: r, commonStrings: i } = s, { layerFieldsInfo: a, layer: n } = r, o = P(t), l = Z(t), c = re(t), p = ne(t, r, i), f = $e(t, r, i);
859
859
  if (t.series.forEach((u, m) => {
860
860
  const d = te({
@@ -982,9 +982,9 @@ const Ni = (s) => {
982
982
  commonStrings: o,
983
983
  splitByFieldInfos: l
984
984
  } = s, { layerFieldsInfo: c } = n ?? {}, p = J(a), f = Rt(a), u = P(p), m = c.find((x) => x.name === u), d = a.series[0]?.query === void 0, y = c.find((x) => x.name === e), g = ne(p, n, o), F = $e(p, n, o), h = ds({ config: p, layerInfo: n, commonStrings: o });
985
- let S = Le(a);
985
+ let S = De(a);
986
986
  const b = p.series.some((x) => M(x)), C = pt(p.series), B = ft(p.series), A = q(m) || q(y);
987
- if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !q(m) && q(y) ? S = z() : q(m) && !q(y) && (b ? S = ce() : S = Lt()), S !== void 0 && Xe(a, o, S), f === 0 && (a.series = [
987
+ if (_(y) ? S = ce() : !Q(m) && Q(y) ? S = z() : !q(m) && q(y) ? S = z() : q(m) && !q(y) && (b ? S = ce() : S = Dt()), S !== void 0 && Xe(a, o, S), f === 0 && (a.series = [
988
988
  ae({ config: a, xAxisField: e, aggregationType: i, layerInfo: n, commonStrings: o })
989
989
  ]), a.series.forEach((x) => {
990
990
  x.x = e, x.query !== void 0 && (x.query.groupByFieldsForStatistics = [e]);
@@ -1015,7 +1015,7 @@ const Ni = (s) => {
1015
1015
  aggregationType: i,
1016
1016
  commonStrings: o,
1017
1017
  splitByFieldInfos: l
1018
- })), h && e !== U && a.series[0].type !== T.HeatSeries) {
1018
+ })), h && e !== j && a.series[0].type !== T.HeatSeries) {
1019
1019
  const x = R(c, e);
1020
1020
  $(a, 0, x);
1021
1021
  }
@@ -1029,7 +1029,7 @@ const Ni = (s) => {
1029
1029
  });
1030
1030
  $(a, 1, x);
1031
1031
  }
1032
- if (g && a.title && (a.title.content.text = K(a, n, o)), D({ config: a, value: null, axisIndex: 1, isMax: !1 }), D({ config: a, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (D({ config: a, value: null, axisIndex: 0, isMax: !1 }), D({ config: a, value: null, axisIndex: 0, isMax: !0 }), A && i !== v.NoAggregation && !Y(p))) {
1032
+ if (g && a.title && (a.title.content.text = K(a, n, o)), L({ config: a, value: null, axisIndex: 1, isMax: !1 }), L({ config: a, value: null, axisIndex: 1, isMax: !0 }), ls({ numericFields: r, aggregationType: i, config: a, layerInfo: n }), (C || B) && (L({ config: a, value: null, axisIndex: 0, isMax: !1 }), L({ config: a, value: null, axisIndex: 0, isMax: !0 }), A && i !== v.NoAggregation && !Y(p))) {
1033
1033
  const x = q(y) ? W.Null : W.Interpolate;
1034
1034
  Et(x, a);
1035
1035
  }
@@ -1048,7 +1048,7 @@ const Ni = (s) => {
1048
1048
  o = i.axisLabels.values;
1049
1049
  else if (Ye(n)) {
1050
1050
  const c = a.query?.outStatistics?.[0]?.onStatisticField;
1051
- c !== void 0 && c !== j(r.layer).idField && (o = R(r.layerFieldsInfo, c));
1051
+ c !== void 0 && c !== U(r.layer).idField && (o = R(r.layerFieldsInfo, c));
1052
1052
  } else {
1053
1053
  const c = String(qe(a)).trim().replace(/'/gu, "");
1054
1054
  o = Ne({
@@ -1064,15 +1064,15 @@ const Ni = (s) => {
1064
1064
  else {
1065
1065
  e.orderOptions ??= {};
1066
1066
  const t = e.orderOptions?.data?.orderType;
1067
- de(e)[0] === oe.customSort && t === L.Category && (e.orderOptions.data = {
1068
- orderType: L.Category,
1067
+ de(e)[0] === oe.customSort && t === D.Category && (e.orderOptions.data = {
1068
+ orderType: D.Category,
1069
1069
  orderBy: [...s]
1070
1070
  });
1071
1071
  }
1072
1072
  }, ki = async (s) => {
1073
- const { config: e, layerInfo: t, errorStrings: r } = s, i = P(e), a = Le(e)?.type, n = Z(e), o = ee(e.series);
1073
+ const { config: e, layerInfo: t, errorStrings: r } = s, i = P(e), a = De(e)?.type, n = Z(e), o = ee(e.series);
1074
1074
  let l = [];
1075
- return a === T.CategoryAxisFormat && (o === w.BarAndLineFromFields || i === U ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== U && t !== void 0 && (l = await He({
1075
+ return a === T.CategoryAxisFormat && (o === w.BarAndLineFromFields || i === j ? l = n.map((c) => R(t?.layerFieldsInfo, c)) : i.trim() !== "" && i !== j && t !== void 0 && (l = await He({
1076
1076
  layerInfo: t,
1077
1077
  config: e,
1078
1078
  category: i,
@@ -1094,7 +1094,7 @@ function $e(s, e, t) {
1094
1094
  return r === i || a;
1095
1095
  }
1096
1096
  function ds(s) {
1097
- const { config: e, layerInfo: t, commonStrings: r } = s, i = R(t.layerFieldsInfo, P(e)), a = ie(0, e), n = se(e), o = P(e) === U && (a === "" || a === r.xAxis);
1097
+ const { config: e, layerInfo: t, commonStrings: r } = s, i = R(t.layerFieldsInfo, P(e)), a = ie(0, e), n = se(e), o = P(e) === j && (a === "" || a === r.xAxis);
1098
1098
  return i === a || n || o;
1099
1099
  }
1100
1100
  function Ri(s) {
@@ -1136,15 +1136,15 @@ export {
1136
1136
  vi as U,
1137
1137
  Ii as V,
1138
1138
  Xt as W,
1139
- Li as X,
1139
+ Di as X,
1140
1140
  Hs as Y,
1141
1141
  Xs as Z,
1142
1142
  Js as _,
1143
1143
  Ms as a,
1144
1144
  ti as a0,
1145
1145
  ei as a1,
1146
- js as a2,
1147
- Us as a3,
1146
+ Us as a2,
1147
+ js as a3,
1148
1148
  Zs as a4,
1149
1149
  Ks as a5,
1150
1150
  ai as a6,
@@ -1173,7 +1173,7 @@ export {
1173
1173
  we as g,
1174
1174
  Oi as h,
1175
1175
  $s as i,
1176
- Ds as j,
1176
+ Ls as j,
1177
1177
  Pt as k,
1178
1178
  wt as l,
1179
1179
  ks as m,
@@ -1181,13 +1181,13 @@ export {
1181
1181
  Rs as o,
1182
1182
  Ys as p,
1183
1183
  Os as q,
1184
- Ut as r,
1184
+ jt as r,
1185
1185
  ke as s,
1186
1186
  qs as t,
1187
1187
  Es as u,
1188
1188
  Vs as v,
1189
1189
  Et as w,
1190
1190
  Mt as x,
1191
- Di as y,
1191
+ Li as y,
1192
1192
  de as z
1193
1193
  };
@@ -1,7 +1,7 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
2
  import { isEqual as D } from "lodash-es";
3
3
  import { u, q as b, r as h } from "./chart-object-literals.js";
4
- import { bd as I, bs as v, k as p, ap as M } from "./index2.js";
4
+ import { bd as I, bt as v, k as p, ap as M } from "./index2.js";
5
5
  import { i as P } from "./index4.js";
6
6
  import { C as O } from "./chart-model.js";
7
7
  import { m as o } from "./model-setter.js";
@@ -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
  };
@@ -1,6 +1,6 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import { q, u as f, r as A, p as C } from "./chart-object-literals.js";
3
- import { bw as j, ap as I, ag as k, h as O, cq as L, cr as V, aJ as M, a6 as b } from "./index2.js";
2
+ import { q as C, u as f, r as A, p as j } from "./chart-object-literals.js";
3
+ import { bx as q, ap as I, ag as k, h as O, cr as L, cs as V, aJ as M, a6 as b } from "./index2.js";
4
4
  import { d as T } from "./type-guards.js";
5
5
  import { l as W, d as S, q as $, D as E } from "./index3.js";
6
6
  import { substitute as h } from "@arcgis/core/intl.js";
@@ -18,7 +18,7 @@ function ae(s) {
18
18
  const { config: e, layerInfo: i, commonStrings: t, numericFields: a, aggregationType: r } = s;
19
19
  let o = "";
20
20
  if (e)
21
- if (W(e) === q.Stacked100)
21
+ if (W(e) === C.Stacked100)
22
22
  o = t.utilsStrings.statistics.percent;
23
23
  else {
24
24
  const d = U(r, t);
@@ -36,7 +36,7 @@ function ae(s) {
36
36
  }
37
37
  return o;
38
38
  }
39
- const B = (s, e, i) => s.axes?.[e] ?? R(i, s.type)[e], w = (s) => {
39
+ const B = (s, e, i) => s.axes?.[e] ?? R(i, s.type)[e], D = (s) => {
40
40
  const { config: e, axis: i, axisIndex: t } = s;
41
41
  e.axes !== void 0 && (e.axes[t] = i);
42
42
  }, re = (s) => {
@@ -53,7 +53,7 @@ const B = (s, e, i) => s.axes?.[e] ?? R(i, s.type)[e], w = (s) => {
53
53
  ...t,
54
54
  valueFormat: i
55
55
  };
56
- w({ config: s, axis: a, axisIndex: 0 });
56
+ D({ config: s, axis: a, axisIndex: 0 });
57
57
  }
58
58
  }, le = (s, e, i) => {
59
59
  const t = s.axes?.[e];
@@ -71,7 +71,7 @@ const B = (s, e, i) => s.axes?.[e] ?? R(i, s.type)[e], w = (s) => {
71
71
  }, v = (s, e) => {
72
72
  let i;
73
73
  const t = e.axes?.[s]?.valueFormat;
74
- return (s === 0 || s >= 1 && j(t)) && (i = t), i;
74
+ return (s === 0 || s >= 1 && q(t)) && (i = t), i;
75
75
  }, ue = (s) => {
76
76
  const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s, r = B(e, a, i);
77
77
  if (r !== void 0 && t !== void 0) {
@@ -79,7 +79,7 @@ const B = (s, e, i) => s.axes?.[e] ?? R(i, s.type)[e], w = (s) => {
79
79
  ...r,
80
80
  valueFormat: t
81
81
  };
82
- w({
82
+ D({
83
83
  config: e,
84
84
  axis: o,
85
85
  axisIndex: a
@@ -93,10 +93,10 @@ const B = (s, e, i) => s.axes?.[e] ?? R(i, s.type)[e], w = (s) => {
93
93
  e.axes?.[t] !== void 0 && (e.axes[t].scrollbar = i);
94
94
  };
95
95
  async function xe(s) {
96
- const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: u, errorStrings: d } = s, n = r.filter((F) => F.name === a)[0]?.type, x = u !== !0 ? `${a} IS NOT NULL` : "", l = t && u !== !0 ? `${t} IS NOT NULL` : "", { where: m } = e?.dataFilters ?? {}, D = {
96
+ const { config: e, layer: i, xAxisField: t, splitByField: a, layerFieldsInfo: r, aggregationFields: o, fetchNullValues: u, errorStrings: d } = s, n = r.filter((F) => F.name === a)[0]?.type, x = u !== !0 ? `${a} IS NOT NULL` : "", l = t && u !== !0 ? `${t} IS NOT NULL` : "", { where: m } = e?.dataFilters ?? {}, w = {
97
97
  where: O([m, x, l]),
98
98
  // excluding the null values from the list
99
- orderByFields: $(a) ? [] : [`${a} ${C.Ascending}`],
99
+ orderByFields: $(a) ? [] : [`${a} ${j.Ascending}`],
100
100
  // default sorting ascending for split-by field
101
101
  geometry: e?.dataFilters?.geometry
102
102
  };
@@ -110,7 +110,7 @@ async function xe(s) {
110
110
  queryObject: i,
111
111
  category: e?.series[0].x ?? "",
112
112
  splitByField: a,
113
- queryConfig: D,
113
+ queryConfig: w,
114
114
  errorStrings: d
115
115
  }) : [];
116
116
  if (y = y.slice(0, 500), e) {
@@ -7,7 +7,7 @@ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
7
7
  import { g as ie } from "./series-length.js";
8
8
  import { g as re, d as le, e as ge } from "./serial-chart-data.js";
9
9
  import { g as _, a as pe } from "./data.js";
10
- import { Y as U, ap as be, af as xe, aM as E, cL as Fe, B as V, a6 as De, bj as Se, dx as Be } from "./index2.js";
10
+ import { Y as U, ap as be, af as xe, aM as E, cM as Fe, B as V, a6 as De, bj as Se, dy as Be } from "./index2.js";
11
11
  import { k as H, az as $, g as R, as as ve, b as he, a as Q } from "./index.js";
12
12
  import { q as K, C as g, F as A } from "./index3.js";
13
13
  import { g as Pe } from "./series-types.js";
@@ -5,7 +5,7 @@ import { G as g } from "./common.js";
5
5
  import { i as c } from "./rest-js-object-literals.js";
6
6
  import { u as x } from "./chart-object-literals.js";
7
7
  import { ai as S, M as L, T as b, a0 as T } from "./index.js";
8
- import { M as C, bF as M, bE as X } from "./index2.js";
8
+ import { M as C, bG as M, bF as X } from "./index2.js";
9
9
  import { m as a, C as f } from "./model-setter.js";
10
10
  import { e as B, f as A } from "./utils2.js";
11
11
  import { l as p, s as y, f as O } from "./utils.js";
@@ -32,13 +32,13 @@ function d(t) {
32
32
  const V = (t) => {
33
33
  const { axis: e, index: i } = d(t);
34
34
  return e?.guides?.[i]?.visible ?? !0;
35
- }, E = (t) => {
35
+ }, R = (t) => {
36
36
  const { visible: e, axis: i, index: s } = d(t);
37
37
  i?.guides?.[s] !== void 0 && (i.guides[s].visible = e);
38
38
  }, m = (t) => {
39
39
  const e = C(t.start, t.end);
40
40
  M(t.style) && e === c.SFS ? t.style = { type: c.SFS, color: t.style.color } : X(t.style) && e === c.SLS && (t.style = { type: c.SLS, color: t.style.color });
41
- }, R = (t) => {
41
+ }, E = (t) => {
42
42
  const { axis: e, index: i } = d(t);
43
43
  return e?.guides?.[i]?.start ?? null;
44
44
  }, F = (t) => {
@@ -121,7 +121,7 @@ class l extends _ {
121
121
  return V({ config: this._config, index: e, orientation: i });
122
122
  }
123
123
  setGuideVisibility(e, i, s) {
124
- E({ visible: e, config: this._config, index: i, orientation: s });
124
+ R({ visible: e, config: this._config, index: i, orientation: s });
125
125
  }
126
126
  /**
127
127
  * Gets the start value of a guide.
@@ -130,7 +130,7 @@ class l extends _ {
130
130
  * @param orientation - Default `y`. The axis orientation of the guide.
131
131
  */
132
132
  getGuideStart(e, i) {
133
- return R({ config: this._config, index: e, orientation: i });
133
+ return E({ config: this._config, index: e, orientation: i });
134
134
  }
135
135
  setGuideStart(e, i, s) {
136
136
  F({ start: e, config: this._config, index: i, orientation: s });
@@ -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) => {