@arcgis/charts-components 6.0.0-next.37 → 6.0.0-next.39
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/{2DQ7ZBXE.js → 25GQ2WOU.js} +1 -1
- package/dist/cdn/{FBYUBQLZ.js → 2CNLZPFO.js} +1 -1
- package/dist/cdn/{B3X2DPZL.js → 2HC3GCXA.js} +22 -22
- package/dist/cdn/{F3TJTLG7.js → 2IRI6FP7.js} +1 -1
- package/dist/cdn/{7KAWS7PM.js → 2POSDCZH.js} +1 -1
- package/dist/cdn/{BG5Q5IKV.js → 2S3IMV7O.js} +1 -1
- package/dist/cdn/{RPHXKD7J.js → 2W6EH2HT.js} +1 -1
- package/dist/cdn/{DH2G4KHH.js → 35MV6UPM.js} +1 -1
- package/dist/cdn/{4XTFDZMW.js → 3642CP3R.js} +1 -1
- package/dist/cdn/{5EAIW2ZK.js → 36MF6B63.js} +1 -1
- package/dist/cdn/{RH2BBROM.js → 3YSNYETN.js} +1 -1
- package/dist/cdn/{FXTL5IZJ.js → 3ZFAYKJQ.js} +1 -1
- package/dist/cdn/{JZXZAQPZ.js → 52TVDV6J.js} +1 -1
- package/dist/cdn/{MT6F4GEI.js → 6KL6DV3E.js} +1 -1
- package/dist/cdn/{CPZAKMTU.js → 73YNQF72.js} +1 -1
- package/dist/cdn/{F3MIZQUC.js → AGCK7Y3J.js} +1 -1
- package/dist/cdn/{XNLXGZIZ.js → AHDUDHZR.js} +1 -1
- package/dist/cdn/{WLIVWHF6.js → AHPDMFQQ.js} +1 -1
- package/dist/cdn/{BLNSWTDE.js → AMVPRTNI.js} +1 -1
- package/dist/cdn/{5VI725BE.js → B2VFTKK6.js} +1 -1
- package/dist/cdn/{HECZ3OT6.js → BIBYAKIS.js} +1 -1
- package/dist/cdn/{B3XFRI2T.js → CBWKTXC5.js} +1 -1
- package/dist/cdn/{VHDFOTME.js → D4CBXK5J.js} +1 -1
- package/dist/cdn/{Y6URECIF.js → DH3CD2VT.js} +1 -1
- package/dist/cdn/{HO2B7R2W.js → DKMYO4GP.js} +1 -1
- package/dist/cdn/{STEMSCEZ.js → DPNQLXLE.js} +1 -1
- package/dist/cdn/{MQKJTPAC.js → DVEX52DB.js} +1 -1
- package/dist/cdn/{OCAITJL6.js → DXIZZBC3.js} +2 -2
- package/dist/cdn/{ILNDY3YI.js → ESZG2ICM.js} +1 -1
- package/dist/cdn/{3NTU2K22.js → EYBYOHDN.js} +1 -1
- package/dist/cdn/{YGEJBPIE.js → F2UUETR2.js} +1 -1
- package/dist/cdn/{VHLEM5TX.js → FKHPICOV.js} +1 -1
- package/dist/cdn/{PSKIJ3SM.js → FKWL3PHQ.js} +1 -1
- package/dist/cdn/{Z6VYURPS.js → FLVDCXI5.js} +1 -1
- package/dist/cdn/{5VW7MADK.js → FVJHFMGW.js} +1 -1
- package/dist/cdn/{ALUFN6JU.js → FWB3GJHP.js} +1 -1
- package/dist/cdn/{I6FJ54MZ.js → FWETNIKF.js} +1 -1
- package/dist/cdn/{B6TOZWKP.js → H5VGO7ZZ.js} +1 -1
- package/dist/cdn/{Z2XPKJMJ.js → HAXUUJKD.js} +1 -1
- package/dist/cdn/{FCOD27CY.js → HEJIMSEP.js} +1 -1
- package/dist/cdn/{VHXIV5BX.js → HNUEP5UH.js} +2 -2
- package/dist/cdn/{42LSDQXN.js → HTLTED56.js} +1 -1
- package/dist/cdn/{6ITF7OPU.js → HXIF6BYN.js} +1 -1
- package/dist/cdn/{QJJYPIM7.js → HYPA7F2W.js} +1 -1
- package/dist/cdn/{7OQ5KHLB.js → IBB72HGQ.js} +1 -1
- package/dist/cdn/{SMYPC6YZ.js → IMNOJDGS.js} +1 -1
- package/dist/cdn/{5NMRQXC4.js → IWIBZTFJ.js} +1 -1
- package/dist/cdn/{5GJ7X4OZ.js → J5O323AF.js} +1 -1
- package/dist/cdn/{YKM3E7AD.js → JWNZPKX7.js} +1 -1
- package/dist/cdn/{QLRY7QKC.js → JXUSPONB.js} +1 -1
- package/dist/cdn/{Q3P2IG23.js → KH3XGJ6Z.js} +1 -1
- package/dist/cdn/{IZJLIFYM.js → KIDN7AE6.js} +1 -1
- package/dist/cdn/{YWAAPW2R.js → KPG4VSFN.js} +1 -1
- package/dist/cdn/{RYAQ7TZ5.js → KQXIXHLV.js} +1 -1
- package/dist/cdn/{4EEG3Y4A.js → KXKSKVSJ.js} +1 -1
- package/dist/cdn/{5N22DW2N.js → LAVDVQYZ.js} +1 -1
- package/dist/cdn/{RVRNYRR5.js → LHMYCCGG.js} +1 -1
- package/dist/cdn/{7Z5HY6CX.js → LHYIQG2Q.js} +1 -1
- package/dist/cdn/{BS6ZKR5Y.js → LYVMSY65.js} +1 -1
- package/dist/cdn/{HF7ILAKI.js → MCK5B2BZ.js} +1 -1
- package/dist/cdn/{Q4HEXCLD.js → MNETNH5F.js} +1 -1
- package/dist/cdn/{KMVAWVMM.js → MNHJXGWB.js} +1 -1
- package/dist/cdn/{PMHRQOKZ.js → MUDUWLYM.js} +1 -1
- package/dist/cdn/{BQSQE7VQ.js → N3IQELQL.js} +1 -1
- package/dist/cdn/{VSYK6HGS.js → N4VKOGCE.js} +1 -1
- package/dist/cdn/{2BZPX3WJ.js → N6IQLOCY.js} +1 -1
- package/dist/cdn/{UEH74K4Z.js → NQBZWHCV.js} +1 -1
- package/dist/cdn/{3JRS3R5K.js → OAQNKLKH.js} +1 -1
- package/dist/cdn/{NACMNBIP.js → OEYCWE7U.js} +1 -1
- package/dist/cdn/{4FEQIWCL.js → ON6KUQYR.js} +1 -1
- package/dist/cdn/{WPAN7ZED.js → PLEMHP2B.js} +1 -1
- package/dist/cdn/{A4SE2666.js → PNMVOOAS.js} +1 -1
- package/dist/cdn/{KOZPLQLZ.js → Q63KS3AS.js} +1 -1
- package/dist/cdn/{HVXXE5ZN.js → QBZEEHY7.js} +1 -1
- package/dist/cdn/{D7GICKNU.js → QE2PCHA4.js} +1 -1
- package/dist/cdn/{WXUTW33L.js → RAXTWSX7.js} +1 -1
- package/dist/cdn/{HCQDDW6C.js → RFI6U64E.js} +1 -1
- package/dist/cdn/{S2CDU562.js → RYKZNNAE.js} +1 -1
- package/dist/cdn/{54I7ID6Z.js → RYSNUM3A.js} +1 -1
- package/dist/cdn/{JPR5ZF7D.js → S5LVF5UL.js} +1 -1
- package/dist/cdn/{EYHCX276.js → SEAGEOR3.js} +1 -1
- package/dist/cdn/{SPQSYOVK.js → SQHNAWY2.js} +1 -1
- package/dist/cdn/{747HTBX6.js → SWE5OVAM.js} +1 -1
- package/dist/cdn/{OZEYHJND.js → UHIFEXWJ.js} +1 -1
- package/dist/cdn/{3LWOTXAJ.js → V564QSU3.js} +1 -1
- package/dist/cdn/{XEW2A47I.js → W34R4JQD.js} +1 -1
- package/dist/cdn/{GU6VG5TK.js → W7TD4Z24.js} +1 -1
- package/dist/cdn/{G3VKWODV.js → WSHSXWLF.js} +1 -1
- package/dist/cdn/{C2LULOIM.js → WT6Y3ALM.js} +1 -1
- package/dist/cdn/{GA2UFZXY.js → X6JMBWG7.js} +1 -1
- package/dist/cdn/{WVXK6SQ2.js → XBFYV6W2.js} +1 -1
- package/dist/cdn/{FDM5MY6D.js → XFHCIQYP.js} +1 -1
- package/dist/cdn/{JQIPTC5I.js → XSQEK2DR.js} +1 -1
- package/dist/cdn/{F5NV3AJ5.js → YDKVGUUH.js} +1 -1
- package/dist/cdn/{IBS2EHYN.js → YO7YSHP3.js} +1 -1
- package/dist/cdn/{MD76NSPD.js → Z2LXXRNV.js} +1 -1
- package/dist/cdn/{W52LHBTO.js → ZJAOAKQP.js} +1 -1
- package/dist/cdn/{AWS2YG4M.js → ZYZASO4B.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chunks/action-bar-utils.js +7 -7
- package/dist/chunks/bar-chart-model.js +3 -3
- package/dist/chunks/box-plot-data.js +47 -47
- package/dist/chunks/box-plot-model.js +12 -12
- package/dist/chunks/chart-model.js +23 -23
- package/dist/chunks/chart-ui-utils.js +7 -7
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/class-breaks.js +7 -7
- package/dist/chunks/combo-bar-line-chart-model.js +9 -9
- package/dist/chunks/data.js +10 -10
- package/dist/chunks/gauge-model.js +5 -5
- package/dist/chunks/histogram-model.js +4 -4
- package/dist/chunks/index.js +317 -316
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/line-chart-model.js +5 -5
- package/dist/chunks/model-setter.js +1 -1
- package/dist/chunks/model-with-x-guides.js +1 -1
- package/dist/chunks/model-with-y-guides.js +4 -4
- package/dist/chunks/negative-values-stacked-to-baseline.js +5 -5
- package/dist/chunks/pie-chart-model.js +9 -9
- package/dist/chunks/radar-chart-model.js +1 -1
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +5 -5
- package/dist/chunks/scatterplot-model.js +3 -3
- package/dist/chunks/serial-chart-data.js +28 -28
- package/dist/chunks/serial-chart-model.js +11 -11
- package/dist/chunks/series-length.js +11 -11
- package/dist/chunks/utils.js +19 -19
- package/dist/chunks/web-component-utils.js +19 -19
- package/dist/chunks/x-bounds.js +13 -13
- package/dist/components/arcgis-chart/customElement.js +6938 -6954
- package/dist/components/arcgis-charts-action-bar/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +14 -14
- 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-bar-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-data/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 +5 -5
- package/dist/components/arcgis-charts-config-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-data/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 +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +1 -1
- package/dist/components/arcgis-charts-info-modal/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +171 -171
- package/dist/utils/chart-config/converter/index.js +14 -14
- package/package.json +4 -4
package/dist/chunks/utils.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { J as I, a4 as c, a5 as x, $ as F, ag as h, a6 as n } from "./index2.js";
|
|
3
3
|
import { substitute as b } from "@arcgis/core/intl.js";
|
|
4
4
|
import { g as S } from "./series-types.js";
|
|
5
|
-
import {
|
|
5
|
+
import { a4 as L, x as A, u as V, aA as y } from "./index.js";
|
|
6
6
|
import { c as k, a as r, d as f } from "./chart-object-literals.js";
|
|
7
7
|
const d = (i) => {
|
|
8
8
|
const { config: e, axisIndex: s, callback: t } = i;
|
|
@@ -32,9 +32,9 @@ function w(i) {
|
|
|
32
32
|
else {
|
|
33
33
|
const g = I(o, t);
|
|
34
34
|
if (e.series[0]?.type === r.HeatSeries)
|
|
35
|
-
l =
|
|
35
|
+
l = A(s.layerFieldsInfo, e.series[0].y);
|
|
36
36
|
else if (a.length === 1) {
|
|
37
|
-
const u =
|
|
37
|
+
const u = A(s.layerFieldsInfo, a[0]), m = V(s.layer).idField;
|
|
38
38
|
o === f.NoAggregation ? l = u : o === f.Count && m !== void 0 && a[0] === m ? l = t.utilsStrings.statistics.count : l = b(t.axisLabels.aggregationOfFieldName, {
|
|
39
39
|
aggregation: g,
|
|
40
40
|
fieldName: u
|
|
@@ -48,14 +48,14 @@ function w(i) {
|
|
|
48
48
|
const p = (i, e, s) => i.axes?.[e] ?? h(s, i.type)[e], T = (i) => {
|
|
49
49
|
const { config: e, axis: s, axisIndex: t } = i;
|
|
50
50
|
e.axes !== void 0 && (e.axes[t] = s);
|
|
51
|
-
},
|
|
51
|
+
}, G = (i) => {
|
|
52
52
|
const { config: e, axisIndex: s, isMax: t } = i;
|
|
53
53
|
let a = Number.NaN;
|
|
54
54
|
return t ? a = e.axes?.[s]?.maximum : a = e.axes?.[s]?.minimum, a ?? Number.NaN;
|
|
55
|
-
},
|
|
55
|
+
}, v = (i) => {
|
|
56
56
|
const { config: e, value: s, axisIndex: t, isMax: a } = i, o = e?.axes?.[t];
|
|
57
57
|
o !== void 0 && (a ? o.maximum = s : o.minimum = s);
|
|
58
|
-
},
|
|
58
|
+
}, H = (i) => i.axes?.[0]?.valueFormat ?? F(), J = (i, e, s) => {
|
|
59
59
|
const t = p(i, 0, e);
|
|
60
60
|
if (t !== void 0 && s !== void 0) {
|
|
61
61
|
const a = {
|
|
@@ -64,7 +64,7 @@ const p = (i, e, s) => i.axes?.[e] ?? h(s, i.type)[e], T = (i) => {
|
|
|
64
64
|
};
|
|
65
65
|
T({ config: i, axis: a, axisIndex: 0 });
|
|
66
66
|
}
|
|
67
|
-
},
|
|
67
|
+
}, K = (i, e, s) => {
|
|
68
68
|
const t = i.axes?.[e];
|
|
69
69
|
t !== void 0 && (t.integerOnlyValues = s);
|
|
70
70
|
}, N = (i) => {
|
|
@@ -74,14 +74,14 @@ const p = (i, e, s) => i.axes?.[e] ?? h(s, i.type)[e], T = (i) => {
|
|
|
74
74
|
const { axisIndex: e, config: s, isMultiAxis: t } = i;
|
|
75
75
|
let a = !1;
|
|
76
76
|
return e === 0 || e === 1 && t ? a = !0 : e === 2 && (a = N(s)), a;
|
|
77
|
-
},
|
|
77
|
+
}, Y = (i) => {
|
|
78
78
|
const { axisIndex: e, func: s, config: t } = i;
|
|
79
79
|
return C({ axisIndex: e, config: t, isMultiAxis: !0 }) ? s(e) : void 0;
|
|
80
|
-
},
|
|
80
|
+
}, $ = (i, e) => {
|
|
81
81
|
let s;
|
|
82
82
|
const t = e.axes?.[i]?.valueFormat;
|
|
83
83
|
return (i === 0 || i >= 1 && y(t)) && (s = t), s;
|
|
84
|
-
},
|
|
84
|
+
}, z = (i) => {
|
|
85
85
|
const { config: e, commonStrings: s, valueFormat: t, axisIndex: a = 0 } = i, o = p(e, a, s);
|
|
86
86
|
if (o !== void 0 && t !== void 0) {
|
|
87
87
|
const l = {
|
|
@@ -96,7 +96,7 @@ const p = (i, e, s) => i.axes?.[e] ?? h(s, i.type)[e], T = (i) => {
|
|
|
96
96
|
}
|
|
97
97
|
}, P = (i, e) => i.axes?.[e]?.isLogarithmic ?? !1, Q = (i) => {
|
|
98
98
|
const { config: e, isLogarithmic: s, axisIndex: t } = i, a = e.axes?.[t];
|
|
99
|
-
a && (a.isLogarithmic = s,
|
|
99
|
+
a && (a.isLogarithmic = s, v({ config: e, value: null, axisIndex: t, isMax: !0 }), v({ config: e, value: null, axisIndex: t, isMax: !1 }));
|
|
100
100
|
}, R = (i) => {
|
|
101
101
|
const { config: e, scrollbar: s, axisIndex: t } = i;
|
|
102
102
|
e.axes?.[t] !== void 0 && (e.axes[t].scrollbar = s);
|
|
@@ -152,10 +152,10 @@ const p = (i, e, s) => i.axes?.[e] ?? h(s, i.type)[e], T = (i) => {
|
|
|
152
152
|
};
|
|
153
153
|
export {
|
|
154
154
|
w as a,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
155
|
+
H as b,
|
|
156
|
+
J as c,
|
|
157
|
+
v as d,
|
|
158
|
+
K as e,
|
|
159
159
|
ie as f,
|
|
160
160
|
D as g,
|
|
161
161
|
se as h,
|
|
@@ -166,10 +166,10 @@ export {
|
|
|
166
166
|
d as m,
|
|
167
167
|
Z as n,
|
|
168
168
|
U as o,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
169
|
+
G as p,
|
|
170
|
+
$ as q,
|
|
171
|
+
Y as r,
|
|
172
|
+
z as s,
|
|
173
173
|
P as t,
|
|
174
174
|
q as u,
|
|
175
175
|
Q as v,
|
|
@@ -7,13 +7,13 @@ 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 { O as K, r as U, u as be, t as xe, y as g,
|
|
11
|
-
import { i as Y, M as
|
|
10
|
+
import { O as K, r as U, u as be, t as xe, y as g, a6 as E, C as A, P as Fe, $ as P, ai as Ce, b6 as De, ch as Se } from "./index.js";
|
|
11
|
+
import { i as Y, M as k, l as R, N as ve, O as Be, P as Q } from "./index2.js";
|
|
12
12
|
import { g as he } from "./series-types.js";
|
|
13
13
|
import { V as Pe } from "./index4.js";
|
|
14
14
|
import { DateTime as ne } from "luxon";
|
|
15
15
|
import { P as X } from "./common.js";
|
|
16
|
-
import { a as
|
|
16
|
+
import { a as $, l as L } from "./chart-object-literals.js";
|
|
17
17
|
import { d as Ve } from "./rest-js-object-literals.js";
|
|
18
18
|
function Le(l) {
|
|
19
19
|
const { hour: e, minute: t = 0, format: a, locale: o = "en-US" } = l, i = a && Object.keys(a).length > 0 ? a : {
|
|
@@ -124,7 +124,7 @@ function we(l) {
|
|
|
124
124
|
maximumFractionDigits: 1
|
|
125
125
|
}).formatToParts(1.1).find((a) => a.type === "decimal")?.value ?? ".") === "." ? "," : ";";
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function $e(l) {
|
|
128
128
|
return new Intl.NumberFormat(l, {
|
|
129
129
|
minimumFractionDigits: 1,
|
|
130
130
|
maximumFractionDigits: 1
|
|
@@ -138,7 +138,7 @@ const J = (l) => {
|
|
|
138
138
|
else if (e === void 0)
|
|
139
139
|
i = "";
|
|
140
140
|
else if (typeof e == "number" && Number.isFinite(e) && a !== void 0) {
|
|
141
|
-
const n =
|
|
141
|
+
const n = $e(a), s = o ?? i.split(n)[1]?.length ?? 2;
|
|
142
142
|
i = new Intl.NumberFormat(a, {
|
|
143
143
|
maximumFractionDigits: s
|
|
144
144
|
}).format(e).replace(/\u202F/gu, " ");
|
|
@@ -168,18 +168,18 @@ function ct(l) {
|
|
|
168
168
|
let f = [];
|
|
169
169
|
if (t !== void 0 && Array.isArray(e) && e.length > 0) {
|
|
170
170
|
const u = he(t?.series);
|
|
171
|
-
u ===
|
|
171
|
+
u === $.HistogramSeries ? f = Re(
|
|
172
172
|
t,
|
|
173
173
|
e,
|
|
174
174
|
i
|
|
175
|
-
) : u ===
|
|
175
|
+
) : u === $.HeatSeries ? f = Te({
|
|
176
176
|
config: t,
|
|
177
177
|
rows: e,
|
|
178
178
|
layer: a,
|
|
179
179
|
fieldList: o,
|
|
180
180
|
formatLocale: s,
|
|
181
181
|
utilsStrings: c
|
|
182
|
-
}) : u ===
|
|
182
|
+
}) : u === $.BarSeries || u === $.LineSeries || u === $.ComboLineAndBarSeries ? f = Ke({
|
|
183
183
|
config: t,
|
|
184
184
|
rows: e,
|
|
185
185
|
layer: a,
|
|
@@ -187,7 +187,7 @@ function ct(l) {
|
|
|
187
187
|
formatters: i,
|
|
188
188
|
useRendererLabel: r,
|
|
189
189
|
timeZone: n
|
|
190
|
-
}) : u ===
|
|
190
|
+
}) : u === $.PieSeries ? f = Ee({
|
|
191
191
|
config: t,
|
|
192
192
|
rows: e,
|
|
193
193
|
layer: a,
|
|
@@ -195,7 +195,7 @@ function ct(l) {
|
|
|
195
195
|
formatters: i,
|
|
196
196
|
useRendererLabel: r,
|
|
197
197
|
timeZone: n
|
|
198
|
-
}) : u ===
|
|
198
|
+
}) : u === $.BoxPlotSeries && (f = Ze({
|
|
199
199
|
config: t,
|
|
200
200
|
rows: e,
|
|
201
201
|
layer: a,
|
|
@@ -256,7 +256,7 @@ function O(l) {
|
|
|
256
256
|
timeZone: n
|
|
257
257
|
});
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function ke(l, e) {
|
|
260
260
|
let t = !1;
|
|
261
261
|
if (l === e)
|
|
262
262
|
t = !0;
|
|
@@ -461,7 +461,7 @@ function Ke(l) {
|
|
|
461
461
|
formatter: i?.xAxisLabelFormatter,
|
|
462
462
|
useRendererLabel: r,
|
|
463
463
|
timeZone: n
|
|
464
|
-
}), D = Ie(y, u[0], v), h = y[b], V = v.findIndex((I) =>
|
|
464
|
+
}), D = Ie(y, u[0], v), h = y[b], V = v.findIndex((I) => ke(I, h)), w = ee({
|
|
465
465
|
config: e,
|
|
466
466
|
splitByField: b,
|
|
467
467
|
splitByValue: h,
|
|
@@ -495,7 +495,7 @@ function je(l) {
|
|
|
495
495
|
for (const [o, i] of Object.entries(t))
|
|
496
496
|
if (typeof i == "number" && e[o] > 0) {
|
|
497
497
|
const r = i / e[o];
|
|
498
|
-
a[`${o}${
|
|
498
|
+
a[`${o}${k}`] = r.toPrecision(2);
|
|
499
499
|
}
|
|
500
500
|
return a;
|
|
501
501
|
});
|
|
@@ -526,9 +526,9 @@ function Ee(l) {
|
|
|
526
526
|
return c === g.PieFromCategory && x.toLowerCase() === b.name.toLowerCase() && (y = b.description, F = b.name), d[y] = B({
|
|
527
527
|
value: C[F],
|
|
528
528
|
originalValue: C[F]
|
|
529
|
-
}), d[S(
|
|
530
|
-
value: C[`${F}${
|
|
531
|
-
originalValue: C[`${F}${
|
|
529
|
+
}), d[S(k.trim())] = B({
|
|
530
|
+
value: C[`${F}${k}`],
|
|
531
|
+
originalValue: C[`${F}${k}`]
|
|
532
532
|
}), d;
|
|
533
533
|
}) : c === g.PieFromFields && (f = ae(u, f).map(([C, m]) => {
|
|
534
534
|
const d = {};
|
|
@@ -539,9 +539,9 @@ function Ee(l) {
|
|
|
539
539
|
}), d.Value = B({
|
|
540
540
|
value: m[x],
|
|
541
541
|
originalValue: m[x]
|
|
542
|
-
}), d[S(
|
|
543
|
-
value: m[`${x}${
|
|
544
|
-
originalValue: m[`${x}${
|
|
542
|
+
}), d[S(k.trim())] = B({
|
|
543
|
+
value: m[`${x}${k}`],
|
|
544
|
+
originalValue: m[`${x}${k}`]
|
|
545
545
|
})), d;
|
|
546
546
|
})), f;
|
|
547
547
|
}
|
package/dist/chunks/x-bounds.js
CHANGED
|
@@ -6,7 +6,7 @@ import { g as T } from "./model-types.js";
|
|
|
6
6
|
import { b as g } from "./rest-js-object-literals.js";
|
|
7
7
|
import { a as x } from "./chart-object-literals.js";
|
|
8
8
|
import { Q as C, a5 as L, a6 as b, t as M } from "./index2.js";
|
|
9
|
-
import {
|
|
9
|
+
import { cj as X, b as B, i as A, eN as O } from "./index.js";
|
|
10
10
|
import { m as a, C as f } from "./model-setter.js";
|
|
11
11
|
import { o as P, n as R, p as v, d as y } from "./utils.js";
|
|
12
12
|
const D = (t) => {
|
|
@@ -41,22 +41,22 @@ const E = (t) => {
|
|
|
41
41
|
}, p = (t) => {
|
|
42
42
|
const e = X(t.start, t.end);
|
|
43
43
|
B(t.style) && e === g.SFS ? t.style = { type: g.SFS, color: t.style.color } : A(t.style) && e === g.SLS && (t.style = { type: g.SLS, color: t.style.color });
|
|
44
|
-
},
|
|
44
|
+
}, j = (t) => {
|
|
45
45
|
const { axis: e, index: i } = d(t);
|
|
46
46
|
return e?.guides?.[i]?.start ?? null;
|
|
47
|
-
},
|
|
47
|
+
}, w = (t) => {
|
|
48
48
|
const { start: e, axis: i, index: s } = d(t);
|
|
49
49
|
i?.guides?.[s] !== void 0 && (i.guides[s].start = e, p(i.guides[s]));
|
|
50
|
-
},
|
|
50
|
+
}, W = (t) => {
|
|
51
51
|
const { axis: e, index: i } = d(t);
|
|
52
52
|
return e?.guides?.[i]?.end;
|
|
53
|
-
},
|
|
53
|
+
}, N = (t) => {
|
|
54
54
|
const { end: e, axis: i, index: s } = d(t);
|
|
55
55
|
i?.guides?.[s] !== void 0 && (i.guides[s].end = e, p(i.guides[s]));
|
|
56
|
-
},
|
|
56
|
+
}, $ = (t) => {
|
|
57
57
|
const { axis: e, index: i } = d(t);
|
|
58
58
|
return e?.guides?.[i]?.name;
|
|
59
|
-
},
|
|
59
|
+
}, I = (t) => {
|
|
60
60
|
const { name: e, axis: i, index: s } = d(t);
|
|
61
61
|
i?.guides?.[s] !== void 0 && (i.guides[s].name = e);
|
|
62
62
|
}, Q = (t) => {
|
|
@@ -135,10 +135,10 @@ class u extends h {
|
|
|
135
135
|
* @param orientation - Default `y`. The axis orientation of the guide. If it's a gauge, the default is `x`
|
|
136
136
|
*/
|
|
137
137
|
getGuideStart(e, i) {
|
|
138
|
-
return
|
|
138
|
+
return j({ config: this._config, index: e, orientation: i });
|
|
139
139
|
}
|
|
140
140
|
setGuideStart(e, i, s) {
|
|
141
|
-
|
|
141
|
+
w({ start: e, config: this._config, index: i, orientation: s });
|
|
142
142
|
}
|
|
143
143
|
/**
|
|
144
144
|
* Gets the end value of a guide.
|
|
@@ -147,10 +147,10 @@ class u extends h {
|
|
|
147
147
|
* @param orientation - Default `y`. The axis orientation of the guide. If it's a gauge, the default is `x`
|
|
148
148
|
*/
|
|
149
149
|
getGuideEnd(e, i) {
|
|
150
|
-
return
|
|
150
|
+
return W({ config: this._config, index: e, orientation: i });
|
|
151
151
|
}
|
|
152
152
|
setGuideEnd(e, i, s) {
|
|
153
|
-
|
|
153
|
+
N({ end: e, config: this._config, index: i, orientation: s });
|
|
154
154
|
}
|
|
155
155
|
/**
|
|
156
156
|
* Gets the name of a guide.
|
|
@@ -159,10 +159,10 @@ class u extends h {
|
|
|
159
159
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
160
160
|
*/
|
|
161
161
|
getGuideName(e, i) {
|
|
162
|
-
return
|
|
162
|
+
return $({ config: this._config, index: e, orientation: i });
|
|
163
163
|
}
|
|
164
164
|
setGuideName(e, i, s) {
|
|
165
|
-
|
|
165
|
+
I({ name: e, config: this._config, index: i, orientation: s });
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
168
|
* Gets the guide label text.
|