@arcgis/charts-components 5.2.0-next.126 → 5.2.0-next.127
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.
- package/dist/cdn/{WQQMTR5J.js → 2BLR6LKU.js} +1 -1
- package/dist/cdn/{CRDOGPB7.js → 2FX7HMA2.js} +1 -1
- package/dist/cdn/{WOENRIAM.js → 2IGXLFRI.js} +1 -1
- package/dist/cdn/{JZ6V5FKE.js → 2Q2NNE2E.js} +1 -1
- package/dist/cdn/{VT2XOG5Y.js → 2YBRQEHS.js} +1 -1
- package/dist/cdn/{7OESRD4R.js → 334POAQ3.js} +1 -1
- package/dist/cdn/{ANSNUR3I.js → 375FEZQ5.js} +1 -1
- package/dist/cdn/{G4MIOOVR.js → 376GFRZL.js} +1 -1
- package/dist/cdn/{VFVOONAN.js → 3RDYU4CX.js} +1 -1
- package/dist/cdn/4F6DKNCU.js +3 -0
- package/dist/cdn/{6664UEHL.js → 4ZEVGEUR.js} +1 -1
- package/dist/cdn/{IS2A63E6.js → 53DLKKX7.js} +1 -1
- package/dist/cdn/{DX7M2EXK.js → 5MPUVSSI.js} +1 -1
- package/dist/cdn/{PEHD5Y4I.js → 5SHZ5RBA.js} +1 -1
- package/dist/cdn/{UYFTXYBR.js → 664RSE7L.js} +1 -1
- package/dist/cdn/{TCYUL3JC.js → 7LEWHR3Q.js} +1 -1
- package/dist/cdn/{CD3XMKTK.js → 7LFTV63Q.js} +1 -1
- package/dist/cdn/{YUN3KGXG.js → 7O2ABH2O.js} +1 -1
- package/dist/cdn/{A5P6WB3G.js → 7TPUUEPX.js} +1 -1
- package/dist/cdn/{763Z5IGF.js → A4BJ3NJD.js} +1 -1
- package/dist/cdn/{TPTH224R.js → A7F727QE.js} +1 -1
- package/dist/cdn/{SKRBORPC.js → AGQVZOVL.js} +1 -1
- package/dist/cdn/{KS4EBLYJ.js → AIXWFRR4.js} +19 -19
- package/dist/cdn/{VJG6ZEH4.js → ARWJ6M4M.js} +1 -1
- package/dist/cdn/{7KZO2XXD.js → BFY23RQL.js} +1 -1
- package/dist/cdn/{5BMODU2D.js → BJDMP3WZ.js} +1 -1
- package/dist/cdn/{DAB3SJBG.js → BQPKHSH4.js} +1 -1
- package/dist/cdn/{B5VRC7DP.js → BTIQHZCI.js} +1 -1
- package/dist/cdn/{VSMUBBEN.js → C4SI4UTD.js} +1 -1
- package/dist/cdn/{IJAURACW.js → CFR5LTRT.js} +1 -1
- package/dist/cdn/{4VFEZCIA.js → CLA5QG6H.js} +1 -1
- package/dist/cdn/{I3LNZVEA.js → CQADACRW.js} +2 -2
- package/dist/cdn/{56LNZVTX.js → CSDFCGJY.js} +1 -1
- package/dist/cdn/{MRN3GTKF.js → D37G7ULI.js} +1 -1
- package/dist/cdn/{2PJPH3IO.js → DA2DRI66.js} +1 -1
- package/dist/cdn/{RBTEJMJT.js → DC4Z6SV3.js} +1 -1
- package/dist/cdn/{5BNYRPXI.js → DJI3JWXH.js} +1 -1
- package/dist/cdn/{6QIL7VBD.js → DKHJVESD.js} +1 -1
- package/dist/cdn/{4MAJ24GS.js → E7IR37BS.js} +1 -1
- package/dist/cdn/{EJXBVT5O.js → EHPRMIGU.js} +1 -1
- package/dist/cdn/{NNRSK2LV.js → EQN5SLMX.js} +1 -1
- package/dist/cdn/{6MHADUGC.js → EWO4KNLN.js} +1 -1
- package/dist/cdn/{HKFQANWN.js → EYU2FEWB.js} +1 -1
- package/dist/cdn/{WW7WSQXS.js → FHOUXGMO.js} +1 -1
- package/dist/cdn/{EX2R2B4U.js → FSP2N2BP.js} +1 -1
- package/dist/cdn/{HQMCT3VB.js → FZNCVGVR.js} +1 -1
- package/dist/cdn/{N75HEDSD.js → GZBPHJ7H.js} +1 -1
- package/dist/cdn/{W2QXMYBG.js → HQ47ZXN2.js} +1 -1
- package/dist/cdn/{UPEMQGFY.js → I45GQK3M.js} +1 -1
- package/dist/cdn/{F3UFKEVT.js → ICZSZBA3.js} +1 -1
- package/dist/cdn/{YQDW3D4E.js → IMB2RGHX.js} +1 -1
- package/dist/cdn/{CW4JPG3J.js → IYWKTFGB.js} +1 -1
- package/dist/cdn/{E5JWMNIW.js → J2QFNFBN.js} +1 -1
- package/dist/cdn/{UY4AKYFU.js → JTKDMKW6.js} +1 -1
- package/dist/cdn/{6GTMALBB.js → K56BTXNK.js} +1 -1
- package/dist/cdn/{YSZKMYYU.js → KVKWGTCH.js} +1 -1
- package/dist/cdn/{LV3GHN5L.js → L4NJDPAN.js} +1 -1
- package/dist/cdn/{AOO37P5T.js → LFYVQQCR.js} +1 -1
- package/dist/cdn/{TIVS64YH.js → M2ZKATSW.js} +1 -1
- package/dist/cdn/{K3R6EK3N.js → M4JMQVOW.js} +1 -1
- package/dist/cdn/{3W4HHL2V.js → NWITMWCT.js} +1 -1
- package/dist/cdn/{V3HNAMD7.js → O3QNNSPD.js} +1 -1
- package/dist/cdn/{QZHRLUXI.js → O4XG2WHA.js} +1 -1
- package/dist/cdn/{Z5VGMG7G.js → O6FFCCEN.js} +1 -1
- package/dist/cdn/{IBLYUVF2.js → O6UAGUCM.js} +1 -1
- package/dist/cdn/{RPMGP2UN.js → OQJS4S7W.js} +1 -1
- package/dist/cdn/{JOEBZXL4.js → OXNIW3Q4.js} +1 -1
- package/dist/cdn/{GMP2UWJG.js → P5QBGJ75.js} +1 -1
- package/dist/cdn/{WG2TWSUV.js → PABVNO3N.js} +1 -1
- package/dist/cdn/{2IW2QZFJ.js → PPRYBWCL.js} +1 -1
- package/dist/cdn/{RS2T6377.js → QXTIAJBT.js} +1 -1
- package/dist/cdn/{GZWV22RE.js → RCUNGWMS.js} +1 -1
- package/dist/cdn/{M2WD5JN6.js → RKUYNM5K.js} +1 -1
- package/dist/cdn/{LE2B3JXK.js → RQ3JFQIF.js} +1 -1
- package/dist/cdn/{AOKEN5ZO.js → T4455CTF.js} +1 -1
- package/dist/cdn/{SYSQA3IG.js → T4I6RQBL.js} +1 -1
- package/dist/cdn/{6AKXJHB7.js → TAH7RJAD.js} +1 -1
- package/dist/cdn/{LHGIUJ6U.js → TYA3HM4I.js} +1 -1
- package/dist/cdn/{4U3OAZA7.js → UUI4JRAP.js} +1 -1
- package/dist/cdn/{5R7ZWTMY.js → UY6H4LX7.js} +1 -1
- package/dist/cdn/{ONKX4PWR.js → V2D3WUU5.js} +1 -1
- package/dist/cdn/{QELGEYXU.js → V6IB4JKW.js} +1 -1
- package/dist/cdn/{DXWP65HI.js → W55DHSL2.js} +1 -1
- package/dist/cdn/{FASMW7S2.js → WHLIG2UP.js} +1 -1
- package/dist/cdn/{YRWKRJU4.js → X4IUQKA3.js} +1 -1
- package/dist/cdn/{YSLCFR5X.js → X5IJFDLG.js} +1 -1
- package/dist/cdn/{T6RCABY5.js → XSKN27NO.js} +2 -2
- package/dist/cdn/{UEAU7YQZ.js → Y2C4JNPJ.js} +1 -1
- package/dist/cdn/{5MDZB2JE.js → Y62HYU6W.js} +1 -1
- package/dist/cdn/{JSUH5PFI.js → Y6IIGQGN.js} +1 -1
- package/dist/cdn/{YHQ5JR63.js → YIG6OTNW.js} +1 -1
- package/dist/cdn/{5434ASC3.js → YNHYJOH7.js} +1 -1
- package/dist/cdn/{SL3ZM7G5.js → YPPTTXOS.js} +1 -1
- package/dist/cdn/{AMVJMEWD.js → YWPZICTG.js} +1 -1
- package/dist/cdn/{57SE2XVZ.js → ZAHELPTS.js} +1 -1
- package/dist/cdn/{IYI6DUGL.js → ZISTDZXP.js} +1 -1
- package/dist/cdn/{KW4KLLTK.js → ZOXCNZCT.js} +1 -1
- package/dist/cdn/{TRR5AXW7.js → ZZHMWOE6.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/box-plot-data.js +1 -1
- package/dist/chunks/box-plot-model.js +2 -2
- package/dist/chunks/chart-ui-utils.js +5 -5
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +2 -1
- package/dist/chunks/data-labels-visibility.js +2 -4
- package/dist/chunks/data.js +2 -2
- package/dist/chunks/index.js +152 -151
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/model-setter.js +5 -5
- package/dist/chunks/negative-values-stacked-to-baseline.js +2 -2
- package/dist/chunks/rounded-corners.js +1 -1
- package/dist/chunks/scatterplot-model.js +1 -1
- package/dist/chunks/serial-chart-data.js +35 -35
- package/dist/chunks/serial-chart-model.js +7 -7
- package/dist/chunks/utils.js +10 -10
- package/dist/chunks/web-component-utils.js +1 -1
- package/dist/chunks/x-bounds.js +14 -14
- package/dist/components/arcgis-chart/customElement.d.ts +45 -12
- package/dist/components/arcgis-chart/customElement.js +2569 -2535
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +251 -250
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +2 -2
- package/dist/model/box-plot-model/box-plot-model.d.ts +1 -1
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +3 -0
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +1 -1
- package/dist/model/mixins/model-with-tooltips.d.ts +4 -8
- package/dist/model/properties/series/negative-values-stacked-to-baseline.d.ts +2 -2
- package/dist/utils/chart-config/converter/index.js +20 -20
- package/dist/utils/chart-config/utils/index.d.ts +12 -0
- package/package.json +5 -5
- package/dist/cdn/ASBXNQOS.js +0 -3
- /package/dist/cdn/{IJPD3GVL.js → UE4KTI5X.js} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { substitute as M } from "@arcgis/core/intl.js";
|
|
3
3
|
import { cloneDeep as te, memoize as Xe, isEmpty as He, isEqual as Ue } from "es-toolkit/compat";
|
|
4
4
|
import { S as ce } from "./common.js";
|
|
5
|
-
import { Y as L, aP as W, bo as je,
|
|
5
|
+
import { Y as L, aP as W, bo as je, bU as Ze, bV as _e, bJ as De, f as Ke, p as ie, W as Qe, V as ze, bW as Ge, O as ge, a$ as Je, bX as et, N as tt, t as it, bY as st, aQ as at, Q as rt, bZ as nt, _ as ot, bC as lt, b_ as ct, b$ as Se, c0 as ut, c1 as dt, c2 as yt, P as mt, c3 as Fe, c4 as Q, bL as gt, aR as k, a_ as z, M as pt, r as Z, a1 as Ne, c5 as Y, bH as j, c6 as ft, c7 as St, c8 as O, c9 as V, ca as he, bI as Te } from "./index.js";
|
|
6
6
|
import { u as $, s as Oe, g as pe, a as Ve, b as Ft, c as ht, d as G, e as xe } from "./utils.js";
|
|
7
7
|
import { a as w, s as fe, g as se, b as Be, c as Tt } from "./data.js";
|
|
8
8
|
import { a as x, d as I, f as xt, l as q, t as N, h as X, g as Bt, b as Ct, e as ue } from "./chart-object-literals.js";
|
|
@@ -75,7 +75,7 @@ const jt = (i) => {
|
|
|
75
75
|
(a.type === x.BarSeries || a.type === x.RadarSeries || a.type === x.LineSeries) && (i ? (a.temporalBinning ??= {}, a.temporalBinning.outTimeZone = t) : a.temporalBinning && delete a.temporalBinning.outTimeZone);
|
|
76
76
|
}), e?.axes?.[0]?.valueFormat.type === x.DateAxisFormat && (i ? e.axes[0].valueFormat.intlOptions.timeZone = t : delete e.axes[0].valueFormat.intlOptions.timeZone);
|
|
77
77
|
};
|
|
78
|
-
class
|
|
78
|
+
class Zt extends kt {
|
|
79
79
|
/**
|
|
80
80
|
* Gets the time zone for the chart.
|
|
81
81
|
*/
|
|
@@ -88,7 +88,7 @@ class Kt extends kt {
|
|
|
88
88
|
}
|
|
89
89
|
Ut([
|
|
90
90
|
qt
|
|
91
|
-
],
|
|
91
|
+
], Zt.prototype, "timeZone");
|
|
92
92
|
function $i(i, e) {
|
|
93
93
|
let t;
|
|
94
94
|
return e !== void 0 && (t = { ...e }, t.legend !== void 0 && (t.legend.position = i)), t;
|
|
@@ -101,7 +101,7 @@ function Xi(i, e) {
|
|
|
101
101
|
let t;
|
|
102
102
|
return e !== void 0 && (t = { ...e, rotated: i }), t;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function _t(i) {
|
|
105
105
|
let e;
|
|
106
106
|
return i !== void 0 && (e = { ...i }, delete e.axes?.[0]?.minimum, delete e.axes?.[0]?.maximum, delete e.axes?.[1]?.minimum, delete e.axes?.[1]?.maximum), e;
|
|
107
107
|
}
|
|
@@ -111,9 +111,9 @@ function Hi(i, e) {
|
|
|
111
111
|
async function Ui(i) {
|
|
112
112
|
const { config: e, layer: t, abortSignal: a } = i;
|
|
113
113
|
let s = !1;
|
|
114
|
-
return ye(t) || Pt(e) ? e && ye(t) && (s = await
|
|
114
|
+
return ye(t) || Pt(e) ? e && ye(t) && (s = await _e({ config: e, layer: t, abortSignal: a })) : s = !0, s;
|
|
115
115
|
}
|
|
116
|
-
async function
|
|
116
|
+
async function Kt(i) {
|
|
117
117
|
const {
|
|
118
118
|
queryObject: e,
|
|
119
119
|
chartConfig: t,
|
|
@@ -265,7 +265,7 @@ async function Jt(i) {
|
|
|
265
265
|
t.series.length === 0 && p !== void 0 && t.series.push(p);
|
|
266
266
|
const y = ie(t.series);
|
|
267
267
|
if (y === P.BoxPlotC5MonoFieldAndSplitBy || y === P.BoxPlotC6MultiFieldsAndSplitBy || y === P.BoxPlotC7MonoFieldAndCategoryAndSplitBy || y === P.BarAndLineSplitBy || y === P.BarAndLineSplitByNoAggregation) {
|
|
268
|
-
const m = tt(t.series[0]?.query?.where), F = it(a), S = st(m, F), h = S ? at(S) : !1, b = await
|
|
268
|
+
const m = tt(t.series[0]?.query?.where), F = it(a), S = st(m, F), h = S ? at(S) : !1, b = await Kt({
|
|
269
269
|
queryObject: a,
|
|
270
270
|
chartConfig: t,
|
|
271
271
|
splitByField: m,
|
|
@@ -335,7 +335,7 @@ async function ji(i) {
|
|
|
335
335
|
returnFeaturesExtent: f,
|
|
336
336
|
returnStatisticsAggregatedIds: p,
|
|
337
337
|
chartLimits: u
|
|
338
|
-
})), m =
|
|
338
|
+
})), m = Ze(m, r), Re(d, m)), { alteredConfig: m, preFetchedQueryResponse: F };
|
|
339
339
|
}
|
|
340
340
|
function ti(i, e) {
|
|
341
341
|
let t = !1;
|
|
@@ -345,11 +345,11 @@ function ti(i, e) {
|
|
|
345
345
|
}
|
|
346
346
|
return t;
|
|
347
347
|
}
|
|
348
|
-
function
|
|
348
|
+
function Zi(i) {
|
|
349
349
|
const { data: e, config: t, showEmptySeries: a } = i, s = t.series.length, r = te(t);
|
|
350
350
|
let n = !1;
|
|
351
351
|
if (!a && s > 1 && e) {
|
|
352
|
-
const o =
|
|
352
|
+
const o = Ke(e), l = qe(t?.series), c = ie(t?.series), g = /* @__PURE__ */ new Set();
|
|
353
353
|
switch (l) {
|
|
354
354
|
case x.ComboLineAndBarSeries:
|
|
355
355
|
case x.BarSeries:
|
|
@@ -394,7 +394,7 @@ function Ki(i) {
|
|
|
394
394
|
}
|
|
395
395
|
return { seriesFilteredOut: n, filteredConfig: r };
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const _i = (i) => i.hideEmptyRowsAndColumns, Ki = (i, e) => {
|
|
398
398
|
i.hideEmptyRowsAndColumns = e;
|
|
399
399
|
}, Qi = (i, e) => {
|
|
400
400
|
const t = i.series[0];
|
|
@@ -405,7 +405,7 @@ const Zi = (i) => i.hideEmptyRowsAndColumns, _i = (i, e) => {
|
|
|
405
405
|
}, Ji = (i) => i.series[0].gradientRules, es = (i) => {
|
|
406
406
|
const { yField: e, config: t, layerInfo: a, commonStrings: s } = i, { layerFieldsInfo: r } = a, n = re(1, t), o = ii(t), l = ae(t), c = t.series[0];
|
|
407
407
|
if (typeof e == "string" && o !== e && c) {
|
|
408
|
-
if (c.y = e,
|
|
408
|
+
if (c.y = e, _t(t), o === n || l) {
|
|
409
409
|
const g = R(r, e);
|
|
410
410
|
$(t, 1, g);
|
|
411
411
|
}
|
|
@@ -451,10 +451,10 @@ const Zi = (i) => i.hideEmptyRowsAndColumns, _i = (i, e) => {
|
|
|
451
451
|
statisticType: I.Count
|
|
452
452
|
}
|
|
453
453
|
]
|
|
454
|
-
}, n && t.title && (t.title.content.text =
|
|
454
|
+
}, n && t.title && (t.title.content.text = _(t, a, s));
|
|
455
455
|
}, ds = (i) => i.series[0].query?.outStatistics?.[0].statisticType ?? I.Count, ys = (i) => {
|
|
456
456
|
const { aggregationType: e, config: t, layerInfo: a, commonStrings: s } = i, r = t.series[0]?.query?.outStatistics?.[0], n = le(t, a, s);
|
|
457
|
-
r && e !== I.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === I.Count || e === I.Sum) && ni(X.Zero, t), n && t.title && (t.title.content.text =
|
|
457
|
+
r && e !== I.NoAggregation && (r.statisticType = e, r.outStatisticFieldName = `${e}_${r.onStatisticField}`), (e === I.Count || e === I.Sum) && ni(X.Zero, t), n && t.title && (t.title.content.text = _(t, a, s));
|
|
458
458
|
}, ms = (i) => i.nullPolicy, ni = (i, e) => {
|
|
459
459
|
e.nullPolicy = i;
|
|
460
460
|
}, gs = (i) => i.series[0].emptyCells, ps = (i, e) => {
|
|
@@ -605,7 +605,7 @@ function ui(i) {
|
|
|
605
605
|
}), e.text || e.fillSymbol || e.markerSymbol ? e : void 0;
|
|
606
606
|
}
|
|
607
607
|
function ne(i) {
|
|
608
|
-
const { seriesIndex: e, xAxisField: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, o =
|
|
608
|
+
const { seriesIndex: e, xAxisField: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, o = Z(r?.layer).idField;
|
|
609
609
|
let l;
|
|
610
610
|
const c = s.series[e ?? 0];
|
|
611
611
|
let g = !1, f = !1, p = !1;
|
|
@@ -666,8 +666,8 @@ function ne(i) {
|
|
|
666
666
|
}
|
|
667
667
|
return te(C);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
670
|
-
const { layerFieldsInfo: a } = e, { idField: s, isTraditionalTypeOID: r } =
|
|
669
|
+
function _(i, e, t) {
|
|
670
|
+
const { layerFieldsInfo: a } = e, { idField: s, isTraditionalTypeOID: r } = Z(e.layer), n = w(i), o = U(i), l = oe(i), c = K(i), g = r && (o.length === 0 || o.includes(s)), f = vt(l, t), p = g ? "" : o.map((h) => R(a ?? [], h)).join(", "), u = R(a ?? [], n), d = R(a ?? [], c), y = i.series.some((h) => Y(h)), m = y ? "category" : "xAxisField", F = u;
|
|
671
671
|
let S = "";
|
|
672
672
|
if (fe({
|
|
673
673
|
fieldName: n,
|
|
@@ -731,7 +731,7 @@ const we = (i) => ge({
|
|
|
731
731
|
where: i.query?.where,
|
|
732
732
|
normalize: !1,
|
|
733
733
|
escape: !1
|
|
734
|
-
}) ?? "", oe = (i) => i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation,
|
|
734
|
+
}) ?? "", oe = (i) => i?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? I.NoAggregation, K = Xe(
|
|
735
735
|
(i) => {
|
|
736
736
|
const e = i?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
737
737
|
return pt(i?.series?.[0]?.query?.where) ? "" : e;
|
|
@@ -739,7 +739,7 @@ const we = (i) => ge({
|
|
|
739
739
|
(i) => i?.series?.[0]?.query?.where
|
|
740
740
|
), U = (i) => {
|
|
741
741
|
let e = [];
|
|
742
|
-
if (
|
|
742
|
+
if (K(i) === "")
|
|
743
743
|
e = i?.series.map((t) => {
|
|
744
744
|
const a = t.query?.outStatistics?.map((s) => s.onStatisticField) ?? [];
|
|
745
745
|
return a?.length > 0 ? a : t.y;
|
|
@@ -751,7 +751,7 @@ const we = (i) => ge({
|
|
|
751
751
|
return e.filter((t) => t !== "");
|
|
752
752
|
};
|
|
753
753
|
function Ee(i) {
|
|
754
|
-
const { splitByField: e, numericFields: t, layer: a, seriesIndex: s } = i, r =
|
|
754
|
+
const { splitByField: e, numericFields: t, layer: a, seriesIndex: s } = i, r = Z(a).idField ?? "";
|
|
755
755
|
return e === "" ? t[s] ?? r : t[0] ?? r;
|
|
756
756
|
}
|
|
757
757
|
function di(i) {
|
|
@@ -817,7 +817,7 @@ function yi(i) {
|
|
|
817
817
|
return F.query = { outStatistics: S }, s.series.length === 1 && ((O(F) || V(F)) && $e(F, s.series[0]), Y(F) ? F.fillSymbol = s.series[0].fillSymbol : (O(F) || V(F)) && (F.lineSymbol = s.series[0].lineSymbol, F.markerSymbol = s.series[0].markerSymbol)), [F];
|
|
818
818
|
}
|
|
819
819
|
function Ye(i) {
|
|
820
|
-
const { xAxisField: e, numericFields: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, { layerFieldsInfo: o } = r, l =
|
|
820
|
+
const { xAxisField: e, numericFields: t, aggregationType: a, config: s, layerInfo: r, commonStrings: n } = i, { layerFieldsInfo: o } = r, l = Z(r.layer).idField, c = [];
|
|
821
821
|
for (let d = 0; d < t.length; d += 1) {
|
|
822
822
|
const y = ne({
|
|
823
823
|
config: s,
|
|
@@ -859,7 +859,7 @@ function Ye(i) {
|
|
|
859
859
|
return p.length === 1 && g.length === 1 && Y(p[0]) && Y(g[0]) && (g[0].fillSymbol = p[0].fillSymbol), u.length === 1 && f.length === 1 && ((O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && $e(f[0], u[0]), (O(u[0]) && O(f[0]) || V(u[0]) && V(f[0])) && (f[0].lineSymbol = u[0].lineSymbol, f[0].markerSymbol = u[0].markerSymbol)), c;
|
|
860
860
|
}
|
|
861
861
|
function qs(i) {
|
|
862
|
-
const { aggregationType: e, config: t, layerInfo: a, commonStrings: s } = i, { layerFieldsInfo: r, layer: n } = a, o = w(t), l = U(t), c =
|
|
862
|
+
const { aggregationType: e, config: t, layerInfo: a, commonStrings: s } = i, { layerFieldsInfo: r, layer: n } = a, o = w(t), l = U(t), c = K(t), g = oe(t), f = le(t, a, s), p = We(t, a, s);
|
|
863
863
|
if (t.series.forEach((u, d) => {
|
|
864
864
|
const y = se({
|
|
865
865
|
config: t,
|
|
@@ -890,7 +890,7 @@ function qs(i) {
|
|
|
890
890
|
}
|
|
891
891
|
]
|
|
892
892
|
}, "temporalBinning" in u && u.temporalBinning !== void 0 && (u.temporalBinning.nullPolicy = e === I.NoAggregation ? X.Interpolate : X.Null), e === I.NoAggregation && Wt(t);
|
|
893
|
-
}), f && t.title && (t.title.content.text =
|
|
893
|
+
}), f && t.title && (t.title.content.text = _(t, a, s)), p && t.series[0].type !== x.HeatSeries) {
|
|
894
894
|
const u = pe({
|
|
895
895
|
config: t,
|
|
896
896
|
layerInfo: a,
|
|
@@ -986,7 +986,7 @@ const Rs = (i) => {
|
|
|
986
986
|
layerInfo: n,
|
|
987
987
|
commonStrings: o,
|
|
988
988
|
splitByFieldInfos: l
|
|
989
|
-
} = i, { layerFieldsInfo: c } = n ?? {}, g = te(r), f = wt(r), p = w(g), u =
|
|
989
|
+
} = i, { layerFieldsInfo: c } = n ?? {}, g = te(r), f = wt(r), p = w(g), u = K(g), d = oe(g), y = c.find((B) => B.name === p), m = r.series[0]?.query === void 0, F = U(g), S = c.find((B) => B.name === e), h = le(g, n, o), b = We(g, n, o), C = gi({ config: g, layerInfo: n, commonStrings: o });
|
|
990
990
|
let T = Ve(r);
|
|
991
991
|
const A = g.series.some((B) => Y(B)), v = ft(g.series), E = St(g.series), D = k(y) || k(S);
|
|
992
992
|
if (Q(S) ? T = de() : !z(y) && z(S) ? T = J() : !k(y) && k(S) ? T = J() : k(y) && !k(S) && (A ? T = de() : T = Ot()), T !== void 0 && ht(r, o, T), f === 0 && (r.series = [
|
|
@@ -1034,7 +1034,7 @@ const Rs = (i) => {
|
|
|
1034
1034
|
});
|
|
1035
1035
|
$(r, 1, B);
|
|
1036
1036
|
}
|
|
1037
|
-
if (h && r.title && (r.title.content.text =
|
|
1037
|
+
if (h && r.title && (r.title.content.text = _(r, n, o)), p === e && u === t && d === s && Ue(F, a) || Me(r), di({ numericFields: a, aggregationType: s, config: r, layerInfo: n }), (v || E) && (G({ config: r, value: null, axisIndex: 0, isMax: !1 }), G({ config: r, value: null, axisIndex: 0, isMax: !0 }), D && s !== I.NoAggregation && !W(g))) {
|
|
1038
1038
|
const B = k(S) ? X.Null : X.Interpolate;
|
|
1039
1039
|
$t(B, r);
|
|
1040
1040
|
}
|
|
@@ -1047,13 +1047,13 @@ const Rs = (i) => {
|
|
|
1047
1047
|
color: i.markerSymbol?.color
|
|
1048
1048
|
});
|
|
1049
1049
|
}, Ps = (i) => {
|
|
1050
|
-
const { config: e, seriesIndex: t, layerInfo: a, commonStrings: s } = i, r = e.series?.[t], n =
|
|
1050
|
+
const { config: e, seriesIndex: t, layerInfo: a, commonStrings: s } = i, r = e.series?.[t], n = K(e);
|
|
1051
1051
|
let o;
|
|
1052
1052
|
if (ie(e.series) === P.BarAndLineFromFields)
|
|
1053
1053
|
o = s.axisLabels.values;
|
|
1054
1054
|
else if (He(n)) {
|
|
1055
1055
|
const c = r.query?.outStatistics?.[0]?.onStatisticField;
|
|
1056
|
-
c !== void 0 && c !==
|
|
1056
|
+
c !== void 0 && c !== Z(a.layer).idField && (o = R(a.layerFieldsInfo, c));
|
|
1057
1057
|
} else {
|
|
1058
1058
|
const c = String(we(r)).trim().replace(/'/gu, "");
|
|
1059
1059
|
o = Ne({
|
|
@@ -1085,7 +1085,7 @@ const Rs = (i) => {
|
|
|
1085
1085
|
}))), l;
|
|
1086
1086
|
};
|
|
1087
1087
|
function le(i, e, t) {
|
|
1088
|
-
const a =
|
|
1088
|
+
const a = _(i, e, t), s = Et(i), r = ae(i);
|
|
1089
1089
|
return a === s || r;
|
|
1090
1090
|
}
|
|
1091
1091
|
function We(i, e, t) {
|
|
@@ -1123,7 +1123,7 @@ export {
|
|
|
1123
1123
|
Rs as C,
|
|
1124
1124
|
Ms as D,
|
|
1125
1125
|
Ys as E,
|
|
1126
|
-
|
|
1126
|
+
_ as F,
|
|
1127
1127
|
Pe as G,
|
|
1128
1128
|
ii as H,
|
|
1129
1129
|
es as I,
|
|
@@ -1140,10 +1140,10 @@ export {
|
|
|
1140
1140
|
Ns as T,
|
|
1141
1141
|
Os as U,
|
|
1142
1142
|
Vs as V,
|
|
1143
|
-
|
|
1143
|
+
Zt as W,
|
|
1144
1144
|
ks as X,
|
|
1145
|
-
|
|
1146
|
-
|
|
1145
|
+
_i as Y,
|
|
1146
|
+
Ki as Z,
|
|
1147
1147
|
as as _,
|
|
1148
1148
|
Hi as a,
|
|
1149
1149
|
ns as a0,
|
|
@@ -1173,8 +1173,8 @@ export {
|
|
|
1173
1173
|
$i as b,
|
|
1174
1174
|
Wi as c,
|
|
1175
1175
|
U as d,
|
|
1176
|
-
|
|
1177
|
-
|
|
1176
|
+
K as e,
|
|
1177
|
+
Zi as f,
|
|
1178
1178
|
oe as g,
|
|
1179
1179
|
Ps as h,
|
|
1180
1180
|
Ui as i,
|
|
@@ -1186,7 +1186,7 @@ export {
|
|
|
1186
1186
|
Mi as o,
|
|
1187
1187
|
ji as p,
|
|
1188
1188
|
Pi as q,
|
|
1189
|
-
|
|
1189
|
+
_t as r,
|
|
1190
1190
|
Re as s,
|
|
1191
1191
|
Yi as t,
|
|
1192
1192
|
Xi as u,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { isEqual as u } from "es-toolkit/compat";
|
|
3
3
|
import { a as S, c as b, d as f } from "./chart-object-literals.js";
|
|
4
|
-
import {
|
|
4
|
+
import { c5 as v, c8 as L, bH as p, r as M } from "./index.js";
|
|
5
5
|
import { i as P } from "./index4.js";
|
|
6
6
|
import { m as o } from "./model-setter.js";
|
|
7
7
|
import { S as V } from "./common.js";
|
|
8
8
|
import { M as N, a as k, W as R, b as E } from "./data-labels-visibility.js";
|
|
9
9
|
import { M as U, a as j } from "./model-with-y-guides.js";
|
|
10
10
|
import { C as O } from "./chart-model.js";
|
|
11
|
-
import { g as d, d as y, j as X, k as Y, l as w, m as z, n as
|
|
11
|
+
import { g as d, d as y, j as X, k as Y, l as w, m as z, n as K, o as q, q as G, t as $, v as H, w as Z, x as J, y as Q, z as _, A as x, B as T, C as m, D as ee, E as ie, e as te, F as se, W as re } from "./serial-chart-data.js";
|
|
12
12
|
import { M as oe } from "./model-with-x-guides.js";
|
|
13
13
|
import { W as ne, c as ae, d as le } from "./axis-lines-symbol.js";
|
|
14
14
|
import { W as ge, c as ce, d as he } from "./generate-x-axis-title.js";
|
|
@@ -96,16 +96,16 @@ class c extends O {
|
|
|
96
96
|
* Time aggregation type for a temporal bar chart or line chart.
|
|
97
97
|
*/
|
|
98
98
|
get timeAggregationType() {
|
|
99
|
-
return
|
|
99
|
+
return K(this._config);
|
|
100
100
|
}
|
|
101
101
|
set timeAggregationType(e) {
|
|
102
|
-
|
|
102
|
+
q(e, this._config);
|
|
103
103
|
}
|
|
104
104
|
/**
|
|
105
105
|
* Whether to trim incomplete time intervals for a temporal bar chart or line chart.
|
|
106
106
|
*/
|
|
107
107
|
get trimIncompleteTimeInterval() {
|
|
108
|
-
return
|
|
108
|
+
return G(this._config);
|
|
109
109
|
}
|
|
110
110
|
set trimIncompleteTimeInterval(e) {
|
|
111
111
|
$(e, this._config);
|
|
@@ -120,10 +120,10 @@ class c extends O {
|
|
|
120
120
|
* - Line series: connects the lines across null values.
|
|
121
121
|
*/
|
|
122
122
|
get nullPolicy() {
|
|
123
|
-
return
|
|
123
|
+
return H(this._config);
|
|
124
124
|
}
|
|
125
125
|
set nullPolicy(e) {
|
|
126
|
-
|
|
126
|
+
Z(e, this._config);
|
|
127
127
|
}
|
|
128
128
|
resetTimeInterval() {
|
|
129
129
|
J(this._config);
|
package/dist/chunks/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import { c as $, a as n, d as
|
|
3
|
-
import { r as B, aj as T,
|
|
2
|
+
import { c as $, a as n, d as A, g as U } from "./chart-object-literals.js";
|
|
3
|
+
import { r as B, aj as T, ci as X, cj as j, ck as D, cl as k, O as H, a1 as I } from "./index.js";
|
|
4
4
|
import { I as K, a0 as G, a1 as Q, X as Y, a7 as z, a2 as J, H as Z } from "./index3.js";
|
|
5
5
|
import { i as q } from "./type-guards.js";
|
|
6
6
|
import { f as _, b as N, i as ee, q as te } from "./index2.js";
|
|
@@ -37,11 +37,11 @@ function ge(s) {
|
|
|
37
37
|
o = N(i.layerFieldsInfo, e.series[0].y);
|
|
38
38
|
else if (a.length === 1) {
|
|
39
39
|
const x = N(i.layerFieldsInfo, a[0]), l = B(i.layer).idField;
|
|
40
|
-
r ===
|
|
40
|
+
r === A.NoAggregation ? o = x : r === A.Count && l !== void 0 && a[0] === l ? o = t.utilsStrings.statistics.count : o = O(t.axisLabels.aggregationOfFieldName, {
|
|
41
41
|
aggregation: f,
|
|
42
42
|
fieldName: x
|
|
43
43
|
});
|
|
44
|
-
} else a.length > 1 && (r ===
|
|
44
|
+
} else a.length > 1 && (r === A.NoAggregation ? o = t.axisLabels.values : o = O(t.axisLabels.aggregationOfValues, {
|
|
45
45
|
aggregation: f
|
|
46
46
|
}));
|
|
47
47
|
}
|
|
@@ -83,7 +83,7 @@ const E = (s, e, i) => s.axes?.[e] ?? z(i, s.type)[e], M = (s) => {
|
|
|
83
83
|
let i;
|
|
84
84
|
const t = e.axes?.[s]?.valueFormat;
|
|
85
85
|
return (s === 0 || s >= 1 && T(t)) && (i = t), i;
|
|
86
|
-
},
|
|
86
|
+
}, Ae = (s) => {
|
|
87
87
|
const { config: e, commonStrings: i, valueFormat: t, axisIndex: a = 0 } = s, r = E(e, a, i);
|
|
88
88
|
if (r !== void 0 && t !== void 0) {
|
|
89
89
|
const o = {
|
|
@@ -96,7 +96,7 @@ const E = (s, e, i) => s.axes?.[e] ?? z(i, s.type)[e], M = (s) => {
|
|
|
96
96
|
axisIndex: a
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
},
|
|
99
|
+
}, he = (s, e) => s.axes?.[e]?.isLogarithmic ?? !1, be = (s) => {
|
|
100
100
|
const { config: e, isLogarithmic: i, axisIndex: t } = s, a = e.axes?.[t];
|
|
101
101
|
a && (a.isLogarithmic = i, C({ config: e, value: null, axisIndex: t, isMax: !0 }), C({ config: e, value: null, axisIndex: t, isMax: !1 }));
|
|
102
102
|
}, ve = (s) => {
|
|
@@ -114,7 +114,7 @@ async function Le(s) {
|
|
|
114
114
|
fetchNullValues: d,
|
|
115
115
|
chartLimits: f,
|
|
116
116
|
errorStrings: x
|
|
117
|
-
} = s, m = r.filter((S) => S.name === a)[0]?.type, c = d !== !0 ? `${a} IS NOT NULL` : "", p = t && d !== !0 ? `${t} IS NOT NULL` : "",
|
|
117
|
+
} = s, m = r.filter((S) => S.name === a)[0]?.type, c = d !== !0 ? `${a} IS NOT NULL` : "", p = t && d !== !0 ? `${t} IS NOT NULL` : "", h = w(e?.series), { where: P } = e?.dataFilters ?? {}, R = {
|
|
118
118
|
where: j([P, c, p]),
|
|
119
119
|
// excluding the null values from the list
|
|
120
120
|
orderByFields: ee(a) ? [] : [`${a} ${U.Ascending}`],
|
|
@@ -139,7 +139,7 @@ async function Le(s) {
|
|
|
139
139
|
[n.BoxPlotSeries]: y.maxBoxPlotSeriesCount,
|
|
140
140
|
[n.LineSeries]: y.maxLineChartSeriesCount,
|
|
141
141
|
[n.RadarSeries]: y.maxRadarChartSeriesCount
|
|
142
|
-
}, b = (
|
|
142
|
+
}, b = (h ? W[h] : void 0) ?? y.serialChart.series, v = g.length, L = v > b;
|
|
143
143
|
if (L && (g = g.slice(0, b)), e) {
|
|
144
144
|
const S = e?.series.map((u) => H({ where: u.query?.where })?.toString() ?? "").filter((u) => u !== void 0 && u !== "");
|
|
145
145
|
g = te({
|
|
@@ -234,10 +234,10 @@ export {
|
|
|
234
234
|
fe as m,
|
|
235
235
|
me as n,
|
|
236
236
|
V as o,
|
|
237
|
-
|
|
237
|
+
he as p,
|
|
238
238
|
be as q,
|
|
239
239
|
Se as r,
|
|
240
|
-
|
|
240
|
+
Ae as s,
|
|
241
241
|
ve as t,
|
|
242
242
|
xe as u
|
|
243
243
|
};
|
|
@@ -7,7 +7,7 @@ import { g as me, a as de, b as ye } from "./pie-chart-data.js";
|
|
|
7
7
|
import { a 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 z, a as pe } from "./data.js";
|
|
10
|
-
import { p as U, r as be, q as xe, U as E, H as Fe, P, a1 as Ce, aR as De,
|
|
10
|
+
import { p as U, r as be, q as xe, U as E, H as Fe, P, a1 as Ce, aR as De, bP as Se } from "./index.js";
|
|
11
11
|
import { i as Y, K as $, l as R, M as ve, N as Be, O as Q } from "./index3.js";
|
|
12
12
|
import { i as K, a as g, C as A } from "./index2.js";
|
|
13
13
|
import { g as he } from "./series-types.js";
|
package/dist/chunks/x-bounds.js
CHANGED
|
@@ -5,7 +5,7 @@ import { G as c } from "./common.js";
|
|
|
5
5
|
import { b as g } from "./rest-js-object-literals.js";
|
|
6
6
|
import { a as x } from "./chart-object-literals.js";
|
|
7
7
|
import { P as S, a1 as L, a2 as b, t as T } from "./index3.js";
|
|
8
|
-
import {
|
|
8
|
+
import { bR as X, b as C, i as B } from "./index.js";
|
|
9
9
|
import { m as r, C as f } from "./model-setter.js";
|
|
10
10
|
import { f as A, e as M } from "./utils2.js";
|
|
11
11
|
import { n as y, d as v, h as O } from "./utils.js";
|
|
@@ -67,13 +67,13 @@ const V = (t) => {
|
|
|
67
67
|
}, Y = (t) => {
|
|
68
68
|
const { axis: e, index: i } = a(t);
|
|
69
69
|
return e?.guides?.[i]?.above ?? !1;
|
|
70
|
-
},
|
|
70
|
+
}, U = (t) => {
|
|
71
71
|
const { above: e, axis: i, index: s } = a(t);
|
|
72
72
|
i?.guides?.[s] !== void 0 && (i.guides[s].above = e);
|
|
73
|
-
},
|
|
73
|
+
}, q = (t) => {
|
|
74
74
|
const { axis: e, index: i } = a(t);
|
|
75
75
|
return e?.guides?.[i]?.style;
|
|
76
|
-
},
|
|
76
|
+
}, z = (t) => {
|
|
77
77
|
const { style: e, axis: i, index: s } = a(t);
|
|
78
78
|
i?.guides?.[s] !== void 0 && (i.guides[s].style = e);
|
|
79
79
|
}, Ge = (t) => {
|
|
@@ -91,19 +91,19 @@ const V = (t) => {
|
|
|
91
91
|
}, pe = (t) => {
|
|
92
92
|
const { config: e, index: i, orientation: s } = t, o = s === c.X ? e.axes?.[0] : e.axes?.[1];
|
|
93
93
|
o?.guides !== void 0 && (i !== void 0 && i < o.guides.length ? o.guides.splice(i, 1) : o.guides.pop());
|
|
94
|
-
},
|
|
94
|
+
}, H = (t) => {
|
|
95
95
|
const { axis: e, index: i } = a(t);
|
|
96
96
|
return e?.guides?.[i]?.tooltipReverseColor ?? !1;
|
|
97
|
-
},
|
|
97
|
+
}, J = (t) => {
|
|
98
98
|
const i = (t.orientation ?? c.Y) === c.X ? t.config.axes?.[0] : t.config.axes?.[1];
|
|
99
99
|
[t.index !== void 0 ? i?.guides?.[t.index] : i?.guides].flat().forEach((s) => {
|
|
100
100
|
s !== void 0 && (s.tooltipReverseColor = t.reverseColor);
|
|
101
101
|
});
|
|
102
102
|
};
|
|
103
|
-
var
|
|
104
|
-
for (var o =
|
|
103
|
+
var K = Object.defineProperty, Q = Object.getOwnPropertyDescriptor, l = (t, e, i, s) => {
|
|
104
|
+
for (var o = Q(e, i), n = t.length - 1, d; n >= 0; n--)
|
|
105
105
|
(d = t[n]) && (o = d(e, i, o) || o);
|
|
106
|
-
return o &&
|
|
106
|
+
return o && K(e, i, o), o;
|
|
107
107
|
};
|
|
108
108
|
class u extends h {
|
|
109
109
|
/**
|
|
@@ -185,7 +185,7 @@ class u extends h {
|
|
|
185
185
|
return Y({ config: this._config, index: e, orientation: i });
|
|
186
186
|
}
|
|
187
187
|
setGuideAbove(e, i, s) {
|
|
188
|
-
|
|
188
|
+
U({ above: e, config: this._config, index: i, orientation: s });
|
|
189
189
|
}
|
|
190
190
|
/**
|
|
191
191
|
* Gets the guide style.
|
|
@@ -194,10 +194,10 @@ class u extends h {
|
|
|
194
194
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
195
195
|
*/
|
|
196
196
|
getGuideStyle(e, i) {
|
|
197
|
-
return
|
|
197
|
+
return q({ config: this._config, index: e, orientation: i });
|
|
198
198
|
}
|
|
199
199
|
setGuideStyle(e, i, s) {
|
|
200
|
-
|
|
200
|
+
z({ style: e, config: this._config, index: i, orientation: s });
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
203
|
* Gets whether the tooltip text color should be reversed for a guide.
|
|
@@ -206,10 +206,10 @@ class u extends h {
|
|
|
206
206
|
* @param orientation - The axis orientation of the guide.
|
|
207
207
|
*/
|
|
208
208
|
getTooltipReverseColor(e, i) {
|
|
209
|
-
return
|
|
209
|
+
return H({ config: this._config, index: e, orientation: i });
|
|
210
210
|
}
|
|
211
211
|
setTooltipReverseColor(e, i, s) {
|
|
212
|
-
|
|
212
|
+
J({ reverseColor: e, config: this._config, index: i, orientation: s });
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
l([
|
|
@@ -941,11 +941,11 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
941
941
|
*/
|
|
942
942
|
accessor ignoreSmoothRenderingLimit: boolean;
|
|
943
943
|
/**
|
|
944
|
-
* When `true`, it signals the queries to ignore the view's extent, whether an additional geometry filter is provided or not.
|
|
944
|
+
* When `true`, it signals the queries to ignore the view's [`extent`](/references/core/views/MapView/#extent), whether an additional geometry filter is provided or not.
|
|
945
945
|
*
|
|
946
946
|
* This property will be effective when the component's [view](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#view) property is provided or when the [layer](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layer) property is set to [ChartLayerView](https://developers.arcgis.com/javascript/latest/references/charts-components/interfaces/#ChartLayerView).
|
|
947
947
|
*
|
|
948
|
-
* By default the queries made by the chart will consider the view's extent as the unique geometry filter applicable. This implies ignoring any
|
|
948
|
+
* By default the queries made by the chart will consider the view's [`extent`](/references/core/views/MapView/#extent) as the unique geometry filter applicable. This implies ignoring any
|
|
949
949
|
* geometry filters passed through the [model](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#model) or the [runtimeDataFilters](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#runtimeDataFilters) properties.
|
|
950
950
|
*
|
|
951
951
|
* @default false
|
|
@@ -1522,6 +1522,24 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1522
1522
|
*
|
|
1523
1523
|
* 
|
|
1524
1524
|
*
|
|
1525
|
+
* ##### Selection by indexes
|
|
1526
|
+
* When passing in a `selectionIndexes` map, the chart will match the provided indexes with the chart's data items and apply the selection.
|
|
1527
|
+
* @example
|
|
1528
|
+
* ```ts
|
|
1529
|
+
* // This selects the first and third chart data items.
|
|
1530
|
+
* chartElement.selectionData = {
|
|
1531
|
+
* selectionIndexes: new Map([
|
|
1532
|
+
* // Selects the first and third data items ("Bronx" and "Manhattan") for the first series ("Entire home/apt").
|
|
1533
|
+
* [0, { indexesToSelect: [0, 2] }],
|
|
1534
|
+
* // Selects the second data item ("Brooklyn") for the second series ("Private room").
|
|
1535
|
+
* [1, { indexesToSelect: [1] }],
|
|
1536
|
+
* // With no indexesToSelect provided, all data items for the third series ("Shared room") are selected.
|
|
1537
|
+
* [2, {}],
|
|
1538
|
+
* ]),
|
|
1539
|
+
* };
|
|
1540
|
+
* ```
|
|
1541
|
+
*
|
|
1542
|
+
* 
|
|
1525
1543
|
*
|
|
1526
1544
|
* ##### Selection by items
|
|
1527
1545
|
* When passing in a `selectionItems` array, the chart will match the provided items with the chart's data items and apply the selection.
|
|
@@ -1546,9 +1564,14 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1546
1564
|
*/
|
|
1547
1565
|
accessor selectionData: SelectionData | undefined;
|
|
1548
1566
|
/**
|
|
1549
|
-
*
|
|
1550
|
-
*
|
|
1567
|
+
* Use this property to supply a custom selection manager for charts.
|
|
1568
|
+
* This is useful when applications want to share selection sets between components, without relying on the view's [SelectionManager](/references/core/views/SelectionManager/).
|
|
1551
1569
|
*
|
|
1570
|
+
* @example
|
|
1571
|
+
* ```ts
|
|
1572
|
+
* // Sync chart's selection manager with another component's selection manager (e.g. feature table)
|
|
1573
|
+
* chartElement.selectionManager = featureTableElement.selectionManager;
|
|
1574
|
+
* ```
|
|
1552
1575
|
* @since 5.1
|
|
1553
1576
|
*/
|
|
1554
1577
|
accessor selectionManager: SelectionManager | undefined;
|
|
@@ -1666,21 +1689,21 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1666
1689
|
*/
|
|
1667
1690
|
accessor syncSelection: boolean;
|
|
1668
1691
|
/**
|
|
1669
|
-
*
|
|
1692
|
+
* When `true`, chart selections will be synchronized with the view's [SelectionManager](/references/core/views/SelectionManager/).
|
|
1670
1693
|
*
|
|
1671
1694
|
* @deprecated since 5.1. Use [syncViewSelection](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#syncViewSelection) prop instead.
|
|
1672
1695
|
* @default "disabled"
|
|
1673
1696
|
*/
|
|
1674
1697
|
accessor syncSelectionsBetweenChartAndLayerViewPolicy: SyncSelectionsBetweenChartAndLayerViewPolicy;
|
|
1675
1698
|
/**
|
|
1676
|
-
*
|
|
1699
|
+
* When `true`, chart selections will be synchronized with the view's [SelectionManager](/references/core/views/SelectionManager/).
|
|
1677
1700
|
*
|
|
1678
1701
|
* @default false
|
|
1679
1702
|
* @since 5.1
|
|
1680
1703
|
*/
|
|
1681
1704
|
accessor syncViewSelection: boolean;
|
|
1682
1705
|
/**
|
|
1683
|
-
*
|
|
1706
|
+
* When `true`, the chart will be refreshed when the view's [`timeExtent`](/references/core/views/MapView/#timeExtent) changes.
|
|
1684
1707
|
*
|
|
1685
1708
|
* **Note**: Not supported for histogram.
|
|
1686
1709
|
*
|
|
@@ -1689,10 +1712,10 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1689
1712
|
*/
|
|
1690
1713
|
accessor syncViewTimeExtent: boolean;
|
|
1691
1714
|
/**
|
|
1692
|
-
*
|
|
1715
|
+
* When `true`, the chart's data will be in sync with the view's [timeZone](/references/core/views/MapView/#timeZone).
|
|
1693
1716
|
*
|
|
1694
|
-
* **Note**:
|
|
1695
|
-
*
|
|
1717
|
+
* **Note**: Applicable only to bar, line, combo bar-line, heat and radar charts that use temporal data.
|
|
1718
|
+
* For binned data, the layer must support the `/queryBins` operation. Otherwise, the chart ignores the view's time zone.
|
|
1696
1719
|
*
|
|
1697
1720
|
* @default false
|
|
1698
1721
|
* @since 5.1
|
|
@@ -1708,11 +1731,21 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1708
1731
|
*/
|
|
1709
1732
|
accessor syncViewTimeZoneInclusionList: (typeof WebChartTypes.BarSeries | typeof WebChartTypes.ComboLineAndBarSeries | typeof WebChartTypes.HeatSeries | typeof WebChartTypes.LineSeries | typeof WebChartTypes.RadarSeries)[];
|
|
1710
1733
|
/**
|
|
1711
|
-
*
|
|
1734
|
+
* Defines the time zone used to display date and time values in the chart. The underlying data is not modified.
|
|
1735
|
+
*
|
|
1736
|
+
* | America/New_York | Europe/Helsinki |
|
|
1737
|
+
* |---|---|
|
|
1738
|
+
* | |  |
|
|
1739
|
+
*
|
|
1740
|
+
* **Note**: Applicable only to bar, line, combo bar-line, and heat and radar charts that use temporal data.
|
|
1741
|
+
* For binned data, the layer must support the `/queryBins` operation. Otherwise, the chart ignores
|
|
1742
|
+
* the view's time zone.
|
|
1712
1743
|
*
|
|
1744
|
+
* @see [Wikipedia - List of tz database time zones](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
|
|
1713
1745
|
* @example
|
|
1714
1746
|
* ```ts
|
|
1715
|
-
*
|
|
1747
|
+
* // Display date and time values in the specified time zone.
|
|
1748
|
+
* chartElement.timeZone = "Europe/Helsinki";
|
|
1716
1749
|
* ```
|
|
1717
1750
|
*/
|
|
1718
1751
|
accessor timeZone: MapView["timeZone"] | undefined;
|