@arcgis/charts-components 4.34.0-next.4 → 4.34.0-next.40
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/{UBN7MD3B.js → 25E6JJBM.js} +2 -2
- package/dist/cdn/25YMGJ3M.js +57 -0
- package/dist/cdn/{TBT75AOV.js → 26ESFQAK.js} +2 -2
- package/dist/cdn/{DMSOVN6U.js → 2DTFCWAR.js} +2 -2
- package/dist/cdn/{2INWBFHJ.js → 2EFNIIDX.js} +2 -2
- package/dist/cdn/{DKRUC2SA.js → 2GIHIHAW.js} +2 -2
- package/dist/cdn/2LUBMJUM.js +4 -0
- package/dist/cdn/{IBMJMHD6.js → 2Q3CLCNB.js} +2 -2
- package/dist/cdn/2R62AYQE.js +4 -0
- package/dist/cdn/{B24PX7PF.js → 2VCLQ7MT.js} +2 -2
- package/dist/cdn/{YRPPHMWG.js → 342BJCKE.js} +2 -2
- package/dist/cdn/{W354PJ22.js → 37TL2RFT.js} +2 -2
- package/dist/cdn/{DFNVRPFB.js → 3LBH3SVV.js} +2 -2
- package/dist/cdn/{TGU7EDI7.js → 3LQICKP7.js} +2 -2
- package/dist/cdn/{7F6BTYF3.js → 3QCZZRCK.js} +2 -2
- package/dist/cdn/{FUW5YPRH.js → 3SD4YWG3.js} +2 -2
- package/dist/cdn/{6I2FYZ6I.js → 3X4CGPZL.js} +2 -2
- package/dist/cdn/4C6TWTSN.js +4 -0
- package/dist/cdn/{WR75S4AN.js → 4GWQF5XF.js} +2 -2
- package/dist/cdn/4JIMSFOB.js +4 -0
- package/dist/cdn/{PEJQ7F4X.js → 4NYFGZRX.js} +2 -2
- package/dist/cdn/{BWBCKVL4.js → 4OAHUUHO.js} +2 -2
- package/dist/cdn/4OXQF3TU.js +4 -0
- package/dist/cdn/{7HEIZ4UE.js → 4ZX5B6CM.js} +2 -2
- package/dist/cdn/{MLCDVA7D.js → 56B7QMP7.js} +2 -2
- package/dist/cdn/{CXCO3H2D.js → 5FTOSA4Z.js} +2 -2
- package/dist/cdn/{W7MQ4GNU.js → 5HKTRLQ7.js} +2 -2
- package/dist/cdn/5QNE23K7.js +4 -0
- package/dist/cdn/{MVIUWNFG.js → 5ROQHOHC.js} +2 -2
- package/dist/cdn/{7GARIB5O.js → 5SOS7UWF.js} +2 -2
- package/dist/cdn/{FMQDUOCC.js → 5VY3ADPT.js} +2 -2
- package/dist/cdn/5WJ2KLXV.js +4 -0
- package/dist/cdn/{YS6WR2E3.js → 63WOFY5K.js} +2 -2
- package/dist/cdn/{26AUDETT.js → 64QCKE5N.js} +2 -2
- package/dist/cdn/{OPN3KQDX.js → 6ATAFRCF.js} +2 -2
- package/dist/cdn/{MP3CJGNW.js → 6CXRUCA2.js} +2 -2
- package/dist/cdn/{QRFZLAUW.js → 6IODFGWT.js} +2 -2
- package/dist/cdn/6KASKOGQ.js +4 -0
- package/dist/cdn/6L3JWAE5.js +4 -0
- package/dist/cdn/{LFIL7SWN.js → 6MA6W7QZ.js} +2 -2
- package/dist/cdn/{MPNBJXOJ.js → 6OXG367N.js} +2 -2
- package/dist/cdn/6T7MBLXZ.js +4 -0
- package/dist/cdn/{NNANN6P6.js → 6TKHWWRA.js} +2 -2
- package/dist/cdn/{4COX7STJ.js → 6TQ7VQUI.js} +2 -2
- package/dist/cdn/6VLSP4K5.js +4 -0
- package/dist/cdn/{PJQSIZQZ.js → 6VM3EQVQ.js} +2 -2
- package/dist/cdn/6WM5LALS.js +4 -0
- package/dist/cdn/{GOPMFNLA.js → 6YAFWHOH.js} +2 -2
- package/dist/cdn/{HCJYVZUF.js → 73NW2OH5.js} +2 -2
- package/dist/cdn/{LWZLS77G.js → 7A2GCD67.js} +2 -2
- package/dist/cdn/{6BX6H2TJ.js → 7FBS33CG.js} +2 -2
- package/dist/cdn/{TZYHKNKE.js → 7G2W6WZG.js} +2 -2
- package/dist/cdn/7G4TFS5F.js +4 -0
- package/dist/cdn/{JD66MQE3.js → 7LAFF4K2.js} +2 -2
- package/dist/cdn/{RB7XNP5C.js → 7RD7LBRA.js} +1 -1
- package/dist/cdn/{XND5H4MH.js → 7UDOU2VR.js} +2 -2
- package/dist/cdn/{KP4JTFM7.js → 7UOPAM3W.js} +2 -2
- package/dist/cdn/{SMFVQ2PI.js → 7WHH45EH.js} +2 -2
- package/dist/cdn/{LF5QJ466.js → 7WRVX7TF.js} +2 -2
- package/dist/cdn/{MHVQSTXZ.js → A4OIRX6C.js} +2 -2
- package/dist/cdn/{QC4NHQIP.js → A72NJHR6.js} +2 -2
- package/dist/cdn/{CQI2UOX6.js → A7JB2WM2.js} +2 -2
- package/dist/cdn/AEQ67WJY.js +4 -0
- package/dist/cdn/{DUQWYHTN.js → AISODEDN.js} +2 -2
- package/dist/cdn/{7EA26FFS.js → AL4LGZSO.js} +2 -2
- package/dist/cdn/{4N5IYRM7.js → ALB6KTIZ.js} +2 -2
- package/dist/cdn/{M4XYLD6K.js → ALW7LXYX.js} +2 -2
- package/dist/cdn/AMP6ZNDF.js +4 -0
- package/dist/cdn/{JNQN7YVN.js → AMRMOTAF.js} +2 -2
- package/dist/cdn/{Z3BJOJ3T.js → AOKD5GTK.js} +2 -2
- package/dist/cdn/{62XSD5UF.js → AZ5LMQF7.js} +2 -2
- package/dist/cdn/{ZH5KT5ST.js → B2CYM53Z.js} +2 -2
- package/dist/cdn/BEZDLWJ4.js +4 -0
- package/dist/cdn/BKFQMTOV.js +4 -0
- package/dist/cdn/{V7OUHJOI.js → BMBD5QKO.js} +2 -2
- package/dist/cdn/{YLRJJZ7C.js → BR4VDGII.js} +2 -2
- package/dist/cdn/{ULRJ6FFO.js → BSXRB77C.js} +2 -2
- package/dist/cdn/{462SS5FE.js → BYCD4UEW.js} +2 -2
- package/dist/cdn/{EXFRYFSP.js → BYGVKBOS.js} +2 -2
- package/dist/cdn/{R4OT5CJY.js → C3DBUGQA.js} +2 -2
- package/dist/cdn/C4CQVPR3.js +4 -0
- package/dist/cdn/{33BHIQZL.js → C4H46O5D.js} +2 -2
- package/dist/cdn/{VTUIO2AA.js → C6D6O75B.js} +2 -2
- package/dist/cdn/{L6XZPPQQ.js → CB54ZBIT.js} +2 -2
- package/dist/cdn/{6Z2HRXIQ.js → CDXL52UW.js} +2 -2
- package/dist/cdn/CEM5VAWP.js +4 -0
- package/dist/cdn/{EW45SJ3Q.js → CFNPYJ7S.js} +2 -2
- package/dist/cdn/{67KWRCPP.js → CHYQRQ6X.js} +2 -2
- package/dist/cdn/{SLQ34772.js → CIRO53IU.js} +2 -2
- package/dist/cdn/{EOG6FXR5.js → CLZCCR5D.js} +2 -2
- package/dist/cdn/{Q6NYXBF3.js → CMPPPY3W.js} +2 -2
- package/dist/cdn/COQZKYJG.js +4 -0
- package/dist/cdn/{R5F6ZC5A.js → CRLAXGVN.js} +2 -2
- package/dist/cdn/{OTP5CELW.js → CWE7XGY7.js} +2 -2
- package/dist/cdn/{OBJODNWX.js → DEDLRK6N.js} +2 -2
- package/dist/cdn/{OCWABC2E.js → DHMMTOXC.js} +2 -2
- package/dist/cdn/{XCP6N4T4.js → DHNJ7ISO.js} +2 -2
- package/dist/cdn/{CNPZR43G.js → DJUKX2YV.js} +2 -2
- package/dist/cdn/{3D6EFUR4.js → DL22HCUL.js} +23 -21
- package/dist/cdn/DLANBH6Q.js +4 -0
- package/dist/cdn/{OUZMCPKP.js → DP432XNF.js} +2 -2
- package/dist/cdn/{BDLPTDFS.js → DSRPPDUZ.js} +2 -2
- package/dist/cdn/{HZI5DMPO.js → DT4OXZJJ.js} +2 -2
- package/dist/cdn/{O35LCWHW.js → DU3KV7X2.js} +2 -2
- package/dist/cdn/{X7H4IQUZ.js → E7PH5HEN.js} +2 -2
- package/dist/cdn/{QLK6HEQH.js → EI2N6TI7.js} +2 -2
- package/dist/cdn/{5HXKZ7X4.js → ELMVVJRT.js} +2 -2
- package/dist/cdn/{ZXVOJXW7.js → ERPATTQT.js} +2 -2
- package/dist/cdn/{3QCP67HJ.js → EUQFJGXY.js} +2 -2
- package/dist/cdn/{DEGYMYGT.js → EXQXSCXA.js} +2 -2
- package/dist/cdn/{2E5VUPP5.js → EZRIM6R4.js} +2 -2
- package/dist/cdn/{XDAWGU4T.js → F4NVIPNX.js} +2 -2
- package/dist/cdn/{F65SRSD4.js → FDNY75XV.js} +2 -2
- package/dist/cdn/FK77GFGL.js +4 -0
- package/dist/cdn/{AULX4CLQ.js → FKSE3PM3.js} +2 -2
- package/dist/cdn/{GUY6VWEX.js → FQEN52MF.js} +2 -2
- package/dist/cdn/FRN5VZQW.js +4 -0
- package/dist/cdn/{PR5ZCIAM.js → FUHANXC2.js} +2 -2
- package/dist/cdn/FUPHB4QT.js +4 -0
- package/dist/cdn/{PHA5Z4DV.js → G6A25PZ3.js} +2 -2
- package/dist/cdn/{OK77EVSE.js → G7KMZARE.js} +2 -2
- package/dist/cdn/{WQY4FD7I.js → GGQWUGWR.js} +2 -2
- package/dist/cdn/GXNP3OXT.js +4 -0
- package/dist/cdn/{QRYHSO36.js → HEN6S7HL.js} +2 -2
- package/dist/cdn/{PHGIN3CK.js → HEOCSXEL.js} +2 -2
- package/dist/cdn/{GAWPAYBW.js → HF7GC2YX.js} +2 -2
- package/dist/cdn/{SCKXRQ3S.js → HRECUX4O.js} +2 -2
- package/dist/cdn/{XZNI22ZS.js → HTDDPZET.js} +2 -2
- package/dist/cdn/{WXH2ZNCT.js → HYTG2ONS.js} +2 -2
- package/dist/cdn/{BCXLNQVH.js → I3WJ4MUB.js} +2 -2
- package/dist/cdn/{N72YNSR4.js → IBWPEZAO.js} +2 -2
- package/dist/cdn/{VHLEMSAC.js → ICXG7JLL.js} +2 -2
- package/dist/cdn/{2WHP65YY.js → IDW4EMRG.js} +2 -2
- package/dist/cdn/{BDCUWPEM.js → IKYC522V.js} +2 -2
- package/dist/cdn/{TF4EXQEC.js → ILOBF2D7.js} +2 -2
- package/dist/cdn/{BAB5C55G.js → IOJWCIZX.js} +2 -2
- package/dist/cdn/{EBDAQ57H.js → IPWXX4TO.js} +2 -2
- package/dist/cdn/{VGMXIYF3.js → IWMUEOS4.js} +2 -2
- package/dist/cdn/{DGUQC5PS.js → IWQSUKYT.js} +2 -2
- package/dist/cdn/{ENV2BV4I.js → J3QLRGTS.js} +2 -2
- package/dist/cdn/{D3TSWBMV.js → J6D2UAPU.js} +2 -2
- package/dist/cdn/{A4Z3L6KW.js → J6K3ISG6.js} +2 -2
- package/dist/cdn/{ZVQZODYU.js → JFQPX343.js} +2 -2
- package/dist/cdn/{6A5BE2AD.js → JKCRCOPA.js} +2 -2
- package/dist/cdn/{DYAXXRBC.js → JOF3QOXG.js} +2 -2
- package/dist/cdn/{VOCVLVHU.js → JOZFKRO5.js} +2 -2
- package/dist/cdn/{OX7XEFHC.js → JPYPAVUH.js} +2 -2
- package/dist/cdn/{USGYXFPF.js → JQDTARXJ.js} +2 -2
- package/dist/cdn/JUD4U25I.js +4 -0
- package/dist/cdn/{EWLM7N2H.js → JWCGYIQE.js} +2 -2
- package/dist/cdn/{AXUTQTBB.js → JWUC6FYE.js} +2 -2
- package/dist/cdn/{2USRBDFE.js → JXQ3D25H.js} +2 -2
- package/dist/cdn/{XJMB3EQE.js → JZ32ZBUZ.js} +2 -2
- package/dist/cdn/{I4BUCHR7.js → K26UBXU2.js} +2 -2
- package/dist/cdn/{GFFI7LCK.js → K2QFOUUO.js} +2 -2
- package/dist/cdn/{CX5OWKAO.js → K4JVEADF.js} +2 -2
- package/dist/cdn/{EZIOYILX.js → K6R2KXKE.js} +2 -2
- package/dist/cdn/{GI7IAKWE.js → K72IITWM.js} +2 -2
- package/dist/cdn/{P5EWILTR.js → K7HOPYUA.js} +2 -2
- package/dist/cdn/{LZZJG6D4.js → KE6VSGN7.js} +2 -2
- package/dist/cdn/KM5WPWFF.js +4 -0
- package/dist/cdn/{52BPCCRI.js → KOAIVIWH.js} +2 -2
- package/dist/cdn/{XPGRMAA5.js → KRFFXMBT.js} +2 -2
- package/dist/cdn/{WR6BEFLU.js → KRNMIF5R.js} +2 -2
- package/dist/cdn/{FQLPTWWU.js → KUIFFZP4.js} +2 -2
- package/dist/cdn/KZVYGXND.js +4 -0
- package/dist/cdn/L2PHAWNE.js +4 -0
- package/dist/cdn/{LXEKD2OM.js → L3VBUQP2.js} +2 -2
- package/dist/cdn/{GH2TZE6Q.js → L5BEXF73.js} +2 -2
- package/dist/cdn/{GLEFFFI7.js → L722P6ZX.js} +2 -2
- package/dist/cdn/{3426WZTI.js → L7GITWSA.js} +2 -2
- package/dist/cdn/{EDEKWGRH.js → L7H7E2FT.js} +2 -2
- package/dist/cdn/{XKBBRMAK.js → LTTGSKYA.js} +2 -2
- package/dist/cdn/{LKSHEY7R.js → LZW43GZD.js} +2 -2
- package/dist/cdn/{RW3VYHUB.js → M4FZUBO4.js} +2 -2
- package/dist/cdn/{A5DT4F2N.js → M6JMAFQJ.js} +2 -2
- package/dist/cdn/{R4LKVX3L.js → MA4W3223.js} +2 -2
- package/dist/cdn/{XI3EZCIW.js → MBHU3FCN.js} +2 -2
- package/dist/cdn/{BTP247QX.js → MBZ5BDHI.js} +2 -2
- package/dist/cdn/MHVOW2Y5.js +5 -0
- package/dist/cdn/{DWJUNYGT.js → MJ6YN6WC.js} +2 -2
- package/dist/cdn/{YCYXIZW2.js → MLFO237H.js} +2 -2
- package/dist/cdn/{MWFHXD56.js → MT72GKDS.js} +2 -2
- package/dist/cdn/{JNRSTXYS.js → MTUQAUIV.js} +2 -2
- package/dist/cdn/{CGIRU3DE.js → MWWI2UOE.js} +2 -2
- package/dist/cdn/{2T4GILMM.js → MXLIOAT4.js} +2 -2
- package/dist/cdn/{EEGO3THK.js → NFSH7IRC.js} +2 -2
- package/dist/cdn/{ODVYZIPY.js → NGALIANR.js} +2 -2
- package/dist/cdn/{FJLX5ZFP.js → NKQ5MUOA.js} +2 -2
- package/dist/cdn/{7KJYZ26G.js → NLR5UB4T.js} +1 -1
- package/dist/cdn/{IO6E6CQW.js → NPVBYAB2.js} +2 -2
- package/dist/cdn/{Q4AXGWT6.js → NUO4LS5K.js} +1 -1
- package/dist/cdn/{WYBVGL3D.js → NWYXODWP.js} +2 -2
- package/dist/cdn/{DHMRVAZU.js → NXXEMANU.js} +2 -2
- package/dist/cdn/O5UYCHWJ.js +6 -0
- package/dist/cdn/{FLUZZL6F.js → O7EA6G3V.js} +2 -2
- package/dist/cdn/{WKMDKSQB.js → OBGO4RCU.js} +2 -2
- package/dist/cdn/{YZJLUB2A.js → OGGXHLLF.js} +2 -2
- package/dist/cdn/{ST4B3XJO.js → OLKGDTNI.js} +2 -2
- package/dist/cdn/{R5RIZ3UC.js → OOJ3HDEL.js} +2 -2
- package/dist/cdn/{5KHSVWPJ.js → ORVXTVFB.js} +2 -2
- package/dist/cdn/{AXY4Z6HP.js → OY52ADIX.js} +2 -2
- package/dist/cdn/{LS5OF5YY.js → PACRYCGY.js} +2 -2
- package/dist/cdn/{OGMDGLUV.js → PCCTRIJC.js} +2 -2
- package/dist/cdn/{SV2IHFYW.js → PIFFTUYM.js} +2 -2
- package/dist/cdn/{NVX5XTIR.js → PQMEXAX7.js} +2 -2
- package/dist/cdn/{TQ5IWB6D.js → PYBC36XR.js} +2 -2
- package/dist/cdn/{2PU636AF.js → QCEFUR5C.js} +2 -2
- package/dist/cdn/{ZD5BZPE7.js → QDPANE4Q.js} +2 -2
- package/dist/cdn/{NRQ4QUOP.js → QFJ6ZO2X.js} +2 -2
- package/dist/cdn/{AULXGTF3.js → QPYBGHM7.js} +2 -2
- package/dist/cdn/QQHZCRTA.js +4 -0
- package/dist/cdn/{3Z4FDE5V.js → QXMD52RA.js} +2 -2
- package/dist/cdn/R5YHAL4H.js +4 -0
- package/dist/cdn/{3YD4SXPM.js → RLTMPG4F.js} +2 -2
- package/dist/cdn/{ZADRKFRO.js → RNMPCP55.js} +2 -2
- package/dist/cdn/{3STHTVFD.js → RU7L4HZ7.js} +2 -2
- package/dist/cdn/{5HV3VKLY.js → RZPXZDZH.js} +2 -2
- package/dist/cdn/{PRILCHPS.js → SB3FRDKL.js} +2 -2
- package/dist/cdn/{FHY7YZOH.js → SCEPFC5W.js} +2 -2
- package/dist/cdn/{TUTSXF2J.js → SGXFLQY3.js} +2 -2
- package/dist/cdn/{7CNICBQY.js → SJMDF6XH.js} +2 -2
- package/dist/cdn/{24Y2JOYJ.js → SN66LRL5.js} +2 -2
- package/dist/cdn/SOV5QCW3.js +4 -0
- package/dist/cdn/{2VTPL3LC.js → SRAZ2ZHW.js} +2 -2
- package/dist/cdn/{ZALIT6VK.js → SWK47SY6.js} +2 -2
- package/dist/cdn/{RHOJDDM5.js → SWPK4YKU.js} +2 -2
- package/dist/cdn/{MOX6X5OF.js → T3G7KF6L.js} +2 -2
- package/dist/cdn/{HEIK4B5Z.js → T4X742UI.js} +2 -2
- package/dist/cdn/{I44DOGMA.js → T5XLFCJZ.js} +2 -2
- package/dist/cdn/{NDDLEUV7.js → T7IWFSWK.js} +2 -2
- package/dist/cdn/{HS7P4MPE.js → TI6Y7TGK.js} +1 -1
- package/dist/cdn/{N7XS35HN.js → TJ7TPYTY.js} +2 -2
- package/dist/cdn/TLQH6UGP.js +4 -0
- package/dist/cdn/{E6UMDFSU.js → TLRWQD6K.js} +2 -2
- package/dist/cdn/{LDN7CKKL.js → TNYRPAJS.js} +2 -2
- package/dist/cdn/{XOOY4II2.js → TTWZBBRQ.js} +2 -2
- package/dist/cdn/{ISGMYAOS.js → TXTEFFZA.js} +1 -1
- package/dist/cdn/{4WKEAQCE.js → TZRPIGB3.js} +2 -2
- package/dist/cdn/{4JDPKBH7.js → UA3HARSC.js} +2 -2
- package/dist/cdn/{RFIWDPXS.js → UAF7KWNO.js} +2 -2
- package/dist/cdn/{D3KRFGTP.js → UAWUAW7D.js} +2 -2
- package/dist/cdn/{IP4MHPXU.js → UEFEEGLK.js} +2 -2
- package/dist/cdn/UF5A377A.js +4 -0
- package/dist/cdn/{54XOHFLT.js → UFQJC3X5.js} +2 -2
- package/dist/cdn/UHQMCI53.js +4 -0
- package/dist/cdn/{H45WT2CM.js → ULPPOHJH.js} +2 -2
- package/dist/cdn/{T6GZRXMU.js → UM3KVC6F.js} +2 -2
- package/dist/cdn/{OCDJNMWA.js → UNWXU4LH.js} +2 -2
- package/dist/cdn/{UK3CKCJT.js → UQJSB3TE.js} +2 -2
- package/dist/cdn/{ANPRY23W.js → URYXCLRZ.js} +2 -2
- package/dist/cdn/{IUQF7CHC.js → UYNEDNU3.js} +2 -2
- package/dist/cdn/{CNSGM4E6.js → V2Y4AU76.js} +2 -2
- package/dist/cdn/{N3ZYXZ6B.js → V5ZDMEXI.js} +2 -2
- package/dist/cdn/{7JRAOEWG.js → V7EDUJV4.js} +2 -2
- package/dist/cdn/{352DPMW7.js → VA64SFF4.js} +2 -2
- package/dist/cdn/{QQEGUPZV.js → VBSWDOFY.js} +1 -1
- package/dist/cdn/{GHZQN2X3.js → VFW4GYP4.js} +2 -2
- package/dist/cdn/{FX245JSH.js → VHDQZX3H.js} +2 -2
- package/dist/cdn/{3MKE6PYX.js → VLAATK3J.js} +2 -2
- package/dist/cdn/{J5LO4NTH.js → VMN5FZYN.js} +2 -2
- package/dist/cdn/{VHOH2PJK.js → VMPCJCQ6.js} +2 -2
- package/dist/cdn/{VAL6TGQI.js → VO7W7PA3.js} +2 -2
- package/dist/cdn/{XAB73KMU.js → VOFVOOBW.js} +2 -2
- package/dist/cdn/{VFSPHNK5.js → VQCJQGHX.js} +2 -2
- package/dist/cdn/{XCDQERX2.js → VQFJG45O.js} +2 -2
- package/dist/cdn/{G5HGJ76G.js → VVGQYDQN.js} +2 -2
- package/dist/cdn/VZ5TAP2O.js +4 -0
- package/dist/cdn/{5KYFCZZN.js → W4SMGKXE.js} +2 -2
- package/dist/cdn/{H3BOQRL5.js → WB33AFNH.js} +2 -2
- package/dist/cdn/{JEAAKN6Z.js → WBJGDMZ2.js} +2 -2
- package/dist/cdn/{AAVZ7DZX.js → WGQBTUNE.js} +2 -2
- package/dist/cdn/{K3PBE6MZ.js → WKQLEAHP.js} +2 -2
- package/dist/cdn/{PREDVJJN.js → WOB2FFP2.js} +2 -2
- package/dist/cdn/WPTRGJG3.js +4 -0
- package/dist/cdn/{7SNEWO4F.js → WRFTDY33.js} +2 -2
- package/dist/cdn/{W3G43WU6.js → WVGOMAGZ.js} +2 -2
- package/dist/cdn/{BIJ6XFIF.js → WYV4H3ID.js} +2 -2
- package/dist/cdn/{D3QMQKDE.js → WZOVHD7S.js} +2 -2
- package/dist/cdn/{SC2AGSYR.js → X4T3AMXQ.js} +2 -2
- package/dist/cdn/{MB5QTTZG.js → XLYUZOLI.js} +2 -2
- package/dist/cdn/{5DETECWD.js → XNJ7SLHX.js} +2 -2
- package/dist/cdn/{6DMADTGZ.js → XPI4GYSI.js} +2 -2
- package/dist/cdn/XTYX6NGM.js +4 -0
- package/dist/cdn/Y2AAZU64.js +4 -0
- package/dist/cdn/{6T53AFZN.js → Y7STSK5E.js} +2 -2
- package/dist/cdn/{SONZWLSU.js → YERORSFG.js} +2 -2
- package/dist/cdn/{JDDR627K.js → YI7JY7RG.js} +2 -2
- package/dist/cdn/{2ZHBA5KD.js → YNR727SV.js} +2 -2
- package/dist/cdn/{R7MUBH7E.js → YOWFOKWS.js} +2 -2
- package/dist/cdn/YU6376AS.js +4 -0
- package/dist/cdn/{BNPOOLW4.js → ZAWRWPGJ.js} +2 -2
- package/dist/cdn/{V3D6WM6S.js → ZAX42MLK.js} +2 -2
- package/dist/cdn/{L7NPWH56.js → ZFCVQ2HN.js} +2 -2
- package/dist/cdn/{FMMLNNQK.js → ZGDDG2DS.js} +2 -2
- package/dist/cdn/{LEGIIEAQ.js → ZH6CXJNP.js} +2 -2
- package/dist/cdn/{OFFYXMNV.js → ZIAKKQI5.js} +2 -2
- package/dist/cdn/{KLXFF7KK.js → ZQF32J3J.js} +2 -2
- package/dist/cdn/ZSA3DHRW.js +4 -0
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/model.js +2 -2
- package/dist/chart-rendering/common/data/histogram/index.d.ts +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/time-binning/index.d.ts +3 -1
- package/dist/chart-rendering/next/chart-library-elements/axes/histogram/index.d.ts +1 -1
- package/dist/chart-rendering/next/chart-library-elements/axes/utils/axis-renderer/index.d.ts +6 -0
- package/dist/chart-rendering/next/chart-library-elements/labels/axis-label/index.d.ts +1 -1
- package/dist/chart-rendering/next/chart-library-elements/tooltips/utils/index.d.ts +3 -8
- package/dist/chart-rendering/next/utils/chart-modal/index.d.ts +1 -1
- package/dist/chart-rendering/next/utils/memory-storage/interfaces.d.ts +2 -1
- package/dist/chart-rendering/stable/chart-library-elements/line-fill-marker/index.d.ts +0 -1
- package/dist/chart-rendering/stable/chart-library-elements/symbols/index.d.ts +5 -5
- package/dist/chart-rendering/stable/index.d.ts +1 -1
- package/dist/chunks/action-bar-utils.js +7 -5
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +2 -2
- package/dist/chunks/bar-chart-series.js +1 -1
- package/dist/chunks/baseline-stacking.js +2 -2
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/bg_BG2.js +1 -1
- package/dist/chunks/box-plot-data.js +445 -0
- package/dist/chunks/box-plot-model.js +89 -482
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/data.js +900 -0
- package/dist/chunks/default.js +1 -1
- package/dist/chunks/gauge-model.js +6 -5
- package/dist/chunks/histogram-data.js +96 -0
- package/dist/chunks/histogram-model.js +57 -108
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/index2.js +1 -1
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/index4.js +5 -5
- package/dist/chunks/interfaces.js +1338 -1330
- package/dist/chunks/interfaces2.js +1 -1
- package/dist/chunks/line-chart-model.js +3 -2
- package/dist/chunks/messages.ar.js +1 -1
- package/dist/chunks/messages.ar2.js +1 -1
- package/dist/chunks/messages.ar3.js +9 -72
- package/dist/chunks/messages.ar4.js +72 -9
- package/dist/chunks/messages.bg.js +1 -1
- package/dist/chunks/messages.bg2.js +1 -1
- package/dist/chunks/messages.bg3.js +9 -72
- package/dist/chunks/messages.bg4.js +72 -9
- package/dist/chunks/messages.bs.js +1 -1
- package/dist/chunks/messages.bs2.js +1 -1
- package/dist/chunks/messages.bs3.js +9 -72
- package/dist/chunks/messages.bs4.js +72 -9
- package/dist/chunks/messages.ca.js +1 -1
- package/dist/chunks/messages.ca2.js +1 -1
- package/dist/chunks/messages.ca3.js +9 -72
- package/dist/chunks/messages.ca4.js +72 -9
- package/dist/chunks/messages.cs.js +1 -1
- package/dist/chunks/messages.cs2.js +1 -1
- package/dist/chunks/messages.cs3.js +9 -72
- package/dist/chunks/messages.cs4.js +72 -9
- package/dist/chunks/messages.da.js +1 -1
- package/dist/chunks/messages.da2.js +1 -1
- package/dist/chunks/messages.da3.js +1 -1
- package/dist/chunks/messages.de.js +1 -1
- package/dist/chunks/messages.de2.js +1 -1
- package/dist/chunks/messages.de3.js +9 -72
- package/dist/chunks/messages.de4.js +72 -9
- package/dist/chunks/messages.el.js +1 -1
- package/dist/chunks/messages.el2.js +1 -1
- package/dist/chunks/messages.el3.js +9 -72
- package/dist/chunks/messages.el4.js +72 -9
- package/dist/chunks/messages.en-US.js +1 -1
- package/dist/chunks/messages.en-US2.js +1 -1
- package/dist/chunks/messages.en-US3.js +9 -72
- package/dist/chunks/messages.en-US4.js +72 -9
- package/dist/chunks/messages.en.js +1 -1
- package/dist/chunks/messages.en2.js +1 -1
- package/dist/chunks/messages.en3.js +1 -1
- package/dist/chunks/messages.es.js +1 -1
- package/dist/chunks/messages.es2.js +1 -1
- package/dist/chunks/messages.es3.js +9 -72
- package/dist/chunks/messages.es4.js +72 -9
- package/dist/chunks/messages.et.js +1 -1
- package/dist/chunks/messages.et2.js +1 -1
- package/dist/chunks/messages.et3.js +9 -72
- package/dist/chunks/messages.et4.js +72 -9
- package/dist/chunks/messages.fi.js +1 -1
- package/dist/chunks/messages.fi2.js +1 -1
- package/dist/chunks/messages.fi3.js +9 -72
- package/dist/chunks/messages.fi4.js +72 -9
- package/dist/chunks/messages.fr.js +1 -1
- package/dist/chunks/messages.fr2.js +1 -1
- package/dist/chunks/messages.fr3.js +9 -72
- package/dist/chunks/messages.fr4.js +72 -9
- package/dist/chunks/messages.he.js +1 -1
- package/dist/chunks/messages.he2.js +1 -1
- package/dist/chunks/messages.he3.js +9 -72
- package/dist/chunks/messages.he4.js +72 -9
- package/dist/chunks/messages.hr.js +1 -1
- package/dist/chunks/messages.hr2.js +1 -1
- package/dist/chunks/messages.hr3.js +9 -72
- package/dist/chunks/messages.hr4.js +72 -9
- package/dist/chunks/messages.hu.js +1 -1
- package/dist/chunks/messages.hu2.js +1 -1
- package/dist/chunks/messages.hu3.js +9 -72
- package/dist/chunks/messages.hu4.js +72 -9
- package/dist/chunks/messages.id.js +1 -1
- package/dist/chunks/messages.id2.js +1 -1
- package/dist/chunks/messages.id3.js +9 -72
- package/dist/chunks/messages.id4.js +72 -9
- package/dist/chunks/messages.it.js +1 -1
- package/dist/chunks/messages.it2.js +1 -1
- package/dist/chunks/messages.it3.js +9 -72
- package/dist/chunks/messages.it4.js +72 -9
- package/dist/chunks/messages.ja.js +1 -1
- package/dist/chunks/messages.ja2.js +1 -1
- package/dist/chunks/messages.ja3.js +9 -72
- package/dist/chunks/messages.ja4.js +72 -9
- package/dist/chunks/messages.ko.js +1 -1
- package/dist/chunks/messages.ko2.js +1 -1
- package/dist/chunks/messages.ko3.js +9 -72
- package/dist/chunks/messages.ko4.js +72 -9
- package/dist/chunks/messages.lt.js +1 -1
- package/dist/chunks/messages.lt2.js +1 -1
- package/dist/chunks/messages.lt3.js +9 -72
- package/dist/chunks/messages.lt4.js +72 -9
- package/dist/chunks/messages.lv.js +1 -1
- package/dist/chunks/messages.lv2.js +1 -1
- package/dist/chunks/messages.lv3.js +9 -72
- package/dist/chunks/messages.lv4.js +72 -9
- package/dist/chunks/messages.nl.js +1 -1
- package/dist/chunks/messages.nl2.js +1 -1
- package/dist/chunks/messages.nl3.js +9 -72
- package/dist/chunks/messages.nl4.js +72 -9
- package/dist/chunks/messages.no.js +1 -1
- package/dist/chunks/messages.no2.js +1 -1
- package/dist/chunks/messages.no3.js +1 -1
- package/dist/chunks/messages.pl.js +1 -1
- package/dist/chunks/messages.pl2.js +1 -1
- package/dist/chunks/messages.pl3.js +9 -72
- package/dist/chunks/messages.pl4.js +72 -9
- package/dist/chunks/messages.pt-BR.js +1 -1
- package/dist/chunks/messages.pt-BR2.js +1 -1
- package/dist/chunks/messages.pt-BR3.js +9 -72
- package/dist/chunks/messages.pt-BR4.js +72 -9
- package/dist/chunks/messages.pt-PT.js +1 -1
- package/dist/chunks/messages.pt-PT2.js +1 -1
- package/dist/chunks/messages.pt-PT3.js +9 -72
- package/dist/chunks/messages.pt-PT4.js +72 -9
- package/dist/chunks/messages.ro.js +1 -1
- package/dist/chunks/messages.ro2.js +1 -1
- package/dist/chunks/messages.ro3.js +9 -72
- package/dist/chunks/messages.ro4.js +72 -9
- package/dist/chunks/messages.ru.js +1 -1
- package/dist/chunks/messages.ru2.js +1 -1
- package/dist/chunks/messages.ru3.js +9 -72
- package/dist/chunks/messages.ru4.js +72 -9
- package/dist/chunks/messages.sk.js +1 -1
- package/dist/chunks/messages.sk2.js +1 -1
- package/dist/chunks/messages.sk3.js +9 -72
- package/dist/chunks/messages.sk4.js +72 -9
- package/dist/chunks/messages.sl.js +1 -1
- package/dist/chunks/messages.sl2.js +1 -1
- package/dist/chunks/messages.sl3.js +9 -72
- package/dist/chunks/messages.sl4.js +72 -9
- package/dist/chunks/messages.sr.js +1 -1
- package/dist/chunks/messages.sr2.js +1 -1
- package/dist/chunks/messages.sr3.js +9 -72
- package/dist/chunks/messages.sr4.js +72 -9
- package/dist/chunks/messages.sv.js +1 -1
- package/dist/chunks/messages.sv2.js +1 -1
- package/dist/chunks/messages.sv3.js +9 -72
- package/dist/chunks/messages.sv4.js +72 -9
- package/dist/chunks/messages.th.js +1 -1
- package/dist/chunks/messages.th2.js +1 -1
- package/dist/chunks/messages.th3.js +9 -72
- package/dist/chunks/messages.th4.js +72 -9
- package/dist/chunks/messages.tr.js +1 -1
- package/dist/chunks/messages.tr2.js +1 -1
- package/dist/chunks/messages.tr3.js +1 -1
- package/dist/chunks/messages.uk.js +1 -1
- package/dist/chunks/messages.uk2.js +1 -1
- package/dist/chunks/messages.uk3.js +9 -72
- package/dist/chunks/messages.uk4.js +72 -9
- package/dist/chunks/messages.vi.js +1 -1
- package/dist/chunks/messages.vi2.js +1 -1
- package/dist/chunks/messages.vi3.js +9 -72
- package/dist/chunks/messages.vi4.js +72 -9
- package/dist/chunks/messages.zh-CN.js +1 -1
- package/dist/chunks/messages.zh-CN2.js +1 -1
- package/dist/chunks/messages.zh-CN3.js +9 -72
- package/dist/chunks/messages.zh-CN4.js +72 -9
- package/dist/chunks/messages.zh-HK.js +1 -1
- package/dist/chunks/messages.zh-HK2.js +1 -1
- package/dist/chunks/messages.zh-HK3.js +9 -72
- package/dist/chunks/messages.zh-HK4.js +72 -9
- package/dist/chunks/messages.zh-TW.js +1 -1
- package/dist/chunks/messages.zh-TW2.js +1 -1
- package/dist/chunks/messages.zh-TW3.js +9 -72
- package/dist/chunks/messages.zh-TW4.js +72 -9
- package/dist/chunks/model-with-baseline-stacking.js +2 -2
- package/dist/chunks/model-with-data-labels.js +2 -2
- package/dist/chunks/model-with-rotation.js +2 -2
- package/dist/chunks/model-with-y-guides.js +1428 -0
- package/dist/chunks/pie-chart-data.js +233 -0
- package/dist/chunks/pie-chart-model.js +174 -370
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +3 -2
- package/dist/chunks/resource.js +2 -2
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/{scatter-plot-model.js → scatterplot-model.js} +18 -17
- package/dist/chunks/serial-chart-model.js +44 -43
- package/dist/chunks/series-types.js +1 -1
- package/dist/chunks/series.js +3 -3
- package/dist/chunks/setup-utils.js +7 -7
- package/dist/chunks/sk_SK.js +1 -1
- package/dist/chunks/sk_SK2.js +1 -1
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/type-guards.js +31 -27
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/web-component-utils.js +389 -3964
- package/dist/components/arcgis-chart/customElement.d.ts +19 -2
- package/dist/components/arcgis-chart/customElement.js +8548 -8425
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +6 -1
- package/dist/components/arcgis-charts-action-bar/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +30 -31
- package/dist/components/arcgis-charts-config-axis/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +92 -79
- package/dist/components/arcgis-charts-config-bar-chart-data/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +1 -1
- 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 +64 -51
- package/dist/components/arcgis-charts-config-box-plot-data/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-category-format/customElement.js +3 -4
- package/dist/components/arcgis-charts-config-category-format/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.d.ts +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +147 -148
- package/dist/components/arcgis-charts-config-create-flow/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-format/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-general/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.d.ts +1 -1
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +59 -54
- package/dist/components/arcgis-charts-config-histogram-data/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +22 -26
- package/dist/components/arcgis-charts-config-histogram-popover/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-invalid-input-message/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 +3 -4
- package/dist/components/arcgis-charts-config-line-chart-data/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-number-format/customElement.js +17 -18
- package/dist/components/arcgis-charts-config-number-format/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +21 -22
- package/dist/components/arcgis-charts-config-pie-chart-data/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-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-data/customElement.js +4 -5
- package/dist/components/arcgis-charts-config-scatter-plot-data/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +11 -13
- package/dist/components/arcgis-charts-config-select-chart-type-popover/resource.d.ts +0 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.d.ts +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +2 -2
- package/dist/demo-chart-rendering/common/index.d.ts +1 -0
- package/dist/docs/api.json +10 -10
- package/dist/docs/docs.json +11 -11
- package/dist/docs/vscode.html-custom-data.json +3 -3
- package/dist/docs/web-types.json +5 -5
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/model/chart-model/utils/data.d.ts +6 -0
- package/dist/model/index.d.ts +1 -1
- package/dist/model/interfaces/common.d.ts +1 -2
- package/dist/model/shared/data.d.ts +28 -1
- package/dist/model/shared/type-guards.d.ts +7 -1
- package/dist/model.js +15 -14
- package/dist/utils/components/web-component-utils.d.ts +61 -4
- package/dist/utils/defaults/index.d.ts +1 -1
- package/dist/utils/layer/query-parser/index.d.ts +1 -1
- package/dist/utils/type-guards/index.d.ts +4 -4
- package/package.json +7 -6
- package/dist/cdn/34MLW42V.js +0 -4
- package/dist/cdn/4AS3G5VD.js +0 -4
- package/dist/cdn/4D4X6Q62.js +0 -4
- package/dist/cdn/4FCX3IHQ.js +0 -4
- package/dist/cdn/5GOX6HML.js +0 -4
- package/dist/cdn/66CERKHA.js +0 -4
- package/dist/cdn/6BARFJBK.js +0 -4
- package/dist/cdn/AEOEMPUY.js +0 -4
- package/dist/cdn/ARWHNFIR.js +0 -4
- package/dist/cdn/AYI4EZAH.js +0 -4
- package/dist/cdn/CESBYO4U.js +0 -4
- package/dist/cdn/DFCCHEQX.js +0 -4
- package/dist/cdn/EFHCNUO7.js +0 -4
- package/dist/cdn/F6GNOPAL.js +0 -4
- package/dist/cdn/HGMIIOTX.js +0 -4
- package/dist/cdn/HRZZ7M6X.js +0 -4
- package/dist/cdn/HTLBIYLU.js +0 -24
- package/dist/cdn/I7LVCV3I.js +0 -4
- package/dist/cdn/JO7ORF2H.js +0 -4
- package/dist/cdn/JQ6D3ALS.js +0 -4
- package/dist/cdn/KJWGVHKK.js +0 -4
- package/dist/cdn/MAGMH5GK.js +0 -4
- package/dist/cdn/MV6Z2YN7.js +0 -4
- package/dist/cdn/NDNN2DX7.js +0 -4
- package/dist/cdn/OIKVC3F7.js +0 -4
- package/dist/cdn/OJUGCDDK.js +0 -6
- package/dist/cdn/OVBXGF7A.js +0 -4
- package/dist/cdn/OZ2TTZMV.js +0 -4
- package/dist/cdn/RFPXQH4I.js +0 -57
- package/dist/cdn/RMFMT5IN.js +0 -4
- package/dist/cdn/S4HG4P6T.js +0 -4
- package/dist/cdn/S4QFOMUS.js +0 -4
- package/dist/cdn/S5JG7GTG.js +0 -4
- package/dist/cdn/TGQUX3S4.js +0 -4
- package/dist/cdn/ULB4UNGJ.js +0 -4
- package/dist/cdn/UYAHRQOT.js +0 -4
- package/dist/cdn/V7WYZ4GS.js +0 -4
- package/dist/cdn/XBNTQ7PJ.js +0 -4
- package/dist/cdn/XNRWRBQX.js +0 -4
- package/dist/cdn/YNKOHHCB.js +0 -4
- package/dist/chunks/serial-chart-data.js +0 -2254
- /package/dist/model/{scatter-plot-model/scatter-plot-model.d.ts → scatterplot-model/scatterplot-model.d.ts} +0 -0
- /package/dist/model/{scatter-plot-model/utils/scatter-plot-data.d.ts → scatterplot-model/utils/scatterplot-data.d.ts} +0 -0
|
@@ -1,2254 +0,0 @@
|
|
|
1
|
-
import { WebChartStackedKinds as Ze, WebChartStatisticType as v, WebChartTypes as A, WebChartSortOrderKinds as I, WebChartLabelBehavior as Ae, RESTSymbolType as H, WebChartTemporalBinningTypes as $, WebChartOrderDataByTypes as k, RESTFieldType as Fe, WebChartNullPolicyTypes as Se, defaultBarLineFromFieldsName as Z, WebChartCalendarBinningUnits as Je, WebChartFixedDateBinningUnits as Qe, defaultBarLineFromFieldsValue as et } from "@arcgis/charts-spec";
|
|
2
|
-
import { cloneDeep as z, memoize as ve, isEmpty as tt } from "lodash-es";
|
|
3
|
-
import "d3-array";
|
|
4
|
-
import { a2 as _, a0 as L, aV as b, ci as it, k as W, h as ne, g as st, a_ as at, bS as rt, c0 as u, a4 as oe, al as ot, c5 as nt, aL as Le, c9 as E, bR as q, a3 as Be, b5 as lt, bt as _e, b6 as le, b7 as ce, cd as ct, cr as dt, _ as de, a1 as ut, d as gt, m as X, cs as j, b4 as yt, a5 as ft, a6 as mt, i as ht, ao as pt, ap as bt, ar as xt, b3 as Ce } from "./interfaces.js";
|
|
5
|
-
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
6
|
-
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
7
|
-
import "@arcgis/core/rest/support/Query.js";
|
|
8
|
-
import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
9
|
-
import "@arcgis/core/time/TimeExtent.js";
|
|
10
|
-
import "@arcgis/core/core/promiseUtils.js";
|
|
11
|
-
import "@arcgis/core/request.js";
|
|
12
|
-
import { c as St } from "./index.js";
|
|
13
|
-
import { g as ue } from "./series-types.js";
|
|
14
|
-
import { q as Ct, c as Tt, b as At, l as D, n as Ft, o as vt, j as V, k as U } from "./index4.js";
|
|
15
|
-
import { G as R, S as x } from "./common.js";
|
|
16
|
-
import { u as we } from "./index3.js";
|
|
17
|
-
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
18
|
-
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
19
|
-
v4.34.0-next.4 */
|
|
20
|
-
const Lt = (t, e) => {
|
|
21
|
-
e.series.forEach((i) => {
|
|
22
|
-
i.query && (i.query.fetchNullValues = t);
|
|
23
|
-
});
|
|
24
|
-
}, Bt = (t) => t.series.some((e) => e.query?.fetchNullValues), ge = (t) => t.title?.content.text ?? "", _t = (t, e) => {
|
|
25
|
-
e.title !== void 0 ? e.title.content.text = t : e.title === void 0 && t !== void 0 && (e.title = _({
|
|
26
|
-
text: t,
|
|
27
|
-
visible: !0,
|
|
28
|
-
font: L(b.ChartTitle)
|
|
29
|
-
}));
|
|
30
|
-
}, wt = (t) => t.subtitle?.content.text ?? "", Vt = (t, e) => {
|
|
31
|
-
e.subtitle !== void 0 ? e.subtitle.content.text = t : e.subtitle === void 0 && t !== void 0 && (e.subtitle = _({
|
|
32
|
-
text: t,
|
|
33
|
-
visible: !0,
|
|
34
|
-
font: L(b.ChartSubtitle)
|
|
35
|
-
}));
|
|
36
|
-
}, Ve = (t) => t.footer?.content.text ?? "", Ut = (t, e) => {
|
|
37
|
-
e.footer !== void 0 ? e.footer.content.text = t : e.footer === void 0 && t !== void 0 && (e.footer = _({
|
|
38
|
-
text: t,
|
|
39
|
-
visible: !0,
|
|
40
|
-
font: L(b.DescriptionText)
|
|
41
|
-
}));
|
|
42
|
-
}, kt = (t) => t.title ? t.title.visible ?? !0 : !1, Dt = (t, e) => {
|
|
43
|
-
e.title !== void 0 ? e.title.visible = t : e.title === void 0 && (e.title = _({
|
|
44
|
-
text: "",
|
|
45
|
-
visible: t,
|
|
46
|
-
font: L(b.ChartTitle)
|
|
47
|
-
}));
|
|
48
|
-
}, Nt = (t) => t.subtitle ? t.subtitle.visible ?? !0 : !1, Gt = (t, e) => {
|
|
49
|
-
e.subtitle !== void 0 ? e.subtitle.visible = t : e.subtitle === void 0 && (e.subtitle = _({
|
|
50
|
-
text: "",
|
|
51
|
-
visible: t,
|
|
52
|
-
font: L(b.ChartSubtitle)
|
|
53
|
-
}));
|
|
54
|
-
}, Ue = (t) => t.footer?.visible ?? !1, It = (t, e) => {
|
|
55
|
-
e.footer !== void 0 ? e.footer.visible = t : e.footer === void 0 && t !== Ue(e) && (e.footer = _({
|
|
56
|
-
text: "",
|
|
57
|
-
visible: !0,
|
|
58
|
-
font: L(b.DescriptionText)
|
|
59
|
-
}));
|
|
60
|
-
}, Ot = (t) => t.chartRenderer, Xt = (t, e) => {
|
|
61
|
-
e.chartRenderer = t;
|
|
62
|
-
}, Yt = (t) => t.title?.content, qt = (t, e) => {
|
|
63
|
-
if (t) {
|
|
64
|
-
const i = ge(e);
|
|
65
|
-
e.title === void 0 && (e.title = _({
|
|
66
|
-
text: "",
|
|
67
|
-
visible: !0,
|
|
68
|
-
font: L(b.ChartTitle),
|
|
69
|
-
type: b.ChartTitle
|
|
70
|
-
})), e.title.content = t, e.title.content.text = i;
|
|
71
|
-
}
|
|
72
|
-
}, Mt = (t) => t.subtitle?.content, Et = (t, e) => {
|
|
73
|
-
if (t) {
|
|
74
|
-
const i = ge(e);
|
|
75
|
-
e.subtitle === void 0 && (e.subtitle = _({
|
|
76
|
-
text: "",
|
|
77
|
-
visible: !0,
|
|
78
|
-
font: L(b.ChartSubtitle),
|
|
79
|
-
type: b.ChartSubtitle
|
|
80
|
-
})), e.subtitle.content = t, e.subtitle.content.text = i;
|
|
81
|
-
}
|
|
82
|
-
}, Rt = (t) => t.footer?.content, zt = (t, e) => {
|
|
83
|
-
if (t) {
|
|
84
|
-
const i = Ve(e);
|
|
85
|
-
e.footer === void 0 && (e.footer = _({
|
|
86
|
-
text: "",
|
|
87
|
-
visible: !0,
|
|
88
|
-
font: L(b.DescriptionText),
|
|
89
|
-
type: b.DescriptionText
|
|
90
|
-
})), e.footer.content = t, e.footer.content.text = i;
|
|
91
|
-
}
|
|
92
|
-
}, jt = (t) => t.background, Pt = (t, e) => {
|
|
93
|
-
e.background = t;
|
|
94
|
-
}, $t = (t, e) => e.series[t]?.id, Wt = (t, e) => e.series.findIndex((i) => i.id === t), Kt = (t) => t.series.length ?? 0, Ht = (t, e) => e.series[t].visible ?? !0;
|
|
95
|
-
class ke extends EventTarget {
|
|
96
|
-
constructor() {
|
|
97
|
-
super(...arguments), this.dataStore = {}, this.setupFinished = new Promise((e) => {
|
|
98
|
-
this.resolveSetup = e;
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Checks if the current chart model is for the same chart as another chart model.
|
|
103
|
-
* @param {ChartModel | undefined} otherModel The other chart model to compare to.
|
|
104
|
-
* @returns {boolean}
|
|
105
|
-
*/
|
|
106
|
-
isSameChartAs(e) {
|
|
107
|
-
const i = e?.getLayer();
|
|
108
|
-
return i !== void 0 && this._config.id === e?.getChartId() && this.layerInfo?.layer.id === i.id;
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Gets the current chart configuration object.
|
|
112
|
-
* @returns {ChartConfig}
|
|
113
|
-
*/
|
|
114
|
-
getConfig() {
|
|
115
|
-
return this._config;
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Sets the chart configuration object.
|
|
119
|
-
* @param {ChartConfig} config The configuration object.
|
|
120
|
-
*/
|
|
121
|
-
setConfig(e) {
|
|
122
|
-
this._config = e, this.emitConfigUpdate("setConfig");
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Gets the chart type.
|
|
126
|
-
* @returns {ChartTypes}
|
|
127
|
-
*/
|
|
128
|
-
getChartType() {
|
|
129
|
-
return this._chartType;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Gets the associated layer.
|
|
133
|
-
* @returns {SupportedLayer | undefined}
|
|
134
|
-
*/
|
|
135
|
-
getLayer() {
|
|
136
|
-
return this.layerInfo?.layer;
|
|
137
|
-
}
|
|
138
|
-
/**
|
|
139
|
-
* Gets the chart id.
|
|
140
|
-
* @returns {string | undefined}
|
|
141
|
-
*/
|
|
142
|
-
getChartId() {
|
|
143
|
-
return this._config.id;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Sets the chart id.
|
|
147
|
-
* @param {string} id
|
|
148
|
-
*/
|
|
149
|
-
setChartId(e) {
|
|
150
|
-
this._config.id = e;
|
|
151
|
-
}
|
|
152
|
-
// ---------------------------------------------------------------------------------------------
|
|
153
|
-
// General Methods
|
|
154
|
-
// ---------------------------------------------------------------------------------------------
|
|
155
|
-
/**
|
|
156
|
-
* Gets the version of the chart configuration.
|
|
157
|
-
* @returns {string}
|
|
158
|
-
*/
|
|
159
|
-
getVersion() {
|
|
160
|
-
return this.getVersion();
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Gets the chart title text.
|
|
164
|
-
* @returns {string}
|
|
165
|
-
*/
|
|
166
|
-
getTitleText() {
|
|
167
|
-
return ge(this._config);
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Sets the chart title text.
|
|
171
|
-
* @param {string} title The title text.
|
|
172
|
-
*/
|
|
173
|
-
setTitleText(e) {
|
|
174
|
-
_t(e, this._config), this.emitConfigUpdate("setTitleText");
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Gets the chart subtitle text.
|
|
178
|
-
* @returns {string}
|
|
179
|
-
*/
|
|
180
|
-
getSubtitleText() {
|
|
181
|
-
return wt(this._config);
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Sets the chart subtitle text.
|
|
185
|
-
* @param {string} subtitle The subtitle text.
|
|
186
|
-
*/
|
|
187
|
-
setSubtitleText(e) {
|
|
188
|
-
Vt(e, this._config), this.emitConfigUpdate("setSubtitleText");
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Gets the chart description text.
|
|
192
|
-
* @returns {string}
|
|
193
|
-
*/
|
|
194
|
-
getDescriptionText() {
|
|
195
|
-
return Ve(this._config);
|
|
196
|
-
}
|
|
197
|
-
/**
|
|
198
|
-
* Sets the chart description text.
|
|
199
|
-
* @param {string} description The description text.
|
|
200
|
-
*/
|
|
201
|
-
setDescriptionText(e) {
|
|
202
|
-
Ut(e, this._config), this.emitConfigUpdate("setDescriptionText");
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Gets whether or not the chart title is visible.
|
|
206
|
-
*
|
|
207
|
-
* `true`: Chart title is visible.
|
|
208
|
-
*
|
|
209
|
-
* `false`: Chart title is hidden.
|
|
210
|
-
*
|
|
211
|
-
* @returns {boolean}
|
|
212
|
-
*
|
|
213
|
-
* **Note: Even if the title is visible, it may not be displayed if the title text is empty.**
|
|
214
|
-
*/
|
|
215
|
-
getChartTitleVisibility() {
|
|
216
|
-
return kt(this._config);
|
|
217
|
-
}
|
|
218
|
-
/**
|
|
219
|
-
* Sets whether or not the chart title is visible.
|
|
220
|
-
*
|
|
221
|
-
* `true`: Show chart title.
|
|
222
|
-
*
|
|
223
|
-
* `false`: Hide chart title.
|
|
224
|
-
*
|
|
225
|
-
* @param {boolean} visibility The visibility state of the chart title.
|
|
226
|
-
*
|
|
227
|
-
* **Note: Even if the title is visible, it may not be displayed if the title text is empty.**
|
|
228
|
-
*/
|
|
229
|
-
setChartTitleVisibility(e) {
|
|
230
|
-
Dt(e, this._config), this.emitConfigUpdate("setChartTitleVisibility");
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Gets whether or not the chart subtitle is visible.
|
|
234
|
-
*
|
|
235
|
-
* `true`: Chart subtitle is visible.
|
|
236
|
-
*
|
|
237
|
-
* `false`: Chart subtitle is hidden.
|
|
238
|
-
*
|
|
239
|
-
* @returns {boolean}
|
|
240
|
-
*
|
|
241
|
-
* **Note: Even if the subtitle is visible, it may not be displayed if the subtitle text is empty.**
|
|
242
|
-
*/
|
|
243
|
-
getChartSubtitleVisibility() {
|
|
244
|
-
return Nt(this._config);
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Sets whether or not the chart subtitle is visible.
|
|
248
|
-
*
|
|
249
|
-
* `true`: Show chart subtitle.
|
|
250
|
-
*
|
|
251
|
-
* `false`: Hide chart subtitle.
|
|
252
|
-
*
|
|
253
|
-
* @param {boolean} visibility The visibility state of the chart subtitle.
|
|
254
|
-
*
|
|
255
|
-
* **Note: Even if the subtitle is visible, it may not be displayed if the subtitle text is empty.**
|
|
256
|
-
*/
|
|
257
|
-
setChartSubtitleVisibility(e) {
|
|
258
|
-
Gt(e, this._config), this.emitConfigUpdate("setChartSubtitleVisibility");
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* Gets whether or not the chart description is visible.
|
|
262
|
-
*
|
|
263
|
-
* `true`: Description is visible.
|
|
264
|
-
*
|
|
265
|
-
* `false`: Description is hidden.
|
|
266
|
-
*
|
|
267
|
-
* @returns {boolean}
|
|
268
|
-
*
|
|
269
|
-
* **Note: Even if the description is visible, it may not be displayed if the description text is empty.**
|
|
270
|
-
*/
|
|
271
|
-
getDescriptionVisibility() {
|
|
272
|
-
return Ue(this._config);
|
|
273
|
-
}
|
|
274
|
-
/**
|
|
275
|
-
* Sets whether or not the chart description is visible.
|
|
276
|
-
*
|
|
277
|
-
* `true`: Show description.
|
|
278
|
-
*
|
|
279
|
-
* `false`: Hide description.
|
|
280
|
-
*
|
|
281
|
-
* @param {boolean} visibility The visibility state of the description.
|
|
282
|
-
*
|
|
283
|
-
* **Note: Even if the description is visible, it may not be displayed if the description text is empty.**
|
|
284
|
-
*/
|
|
285
|
-
setDescriptionVisibility(e) {
|
|
286
|
-
It(e, this._config), this.emitConfigUpdate("setDescriptionVisibility");
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* Gets the chart renderer.
|
|
290
|
-
* @returns {IDrawingInfo["renderer"] | undefined} The chart renderer if defined, otherwise undefined.
|
|
291
|
-
*/
|
|
292
|
-
getChartRenderer() {
|
|
293
|
-
return Ot(this._config);
|
|
294
|
-
}
|
|
295
|
-
/**
|
|
296
|
-
* Sets the chart renderer.
|
|
297
|
-
* @param renderer The chart renderer to set.
|
|
298
|
-
*/
|
|
299
|
-
setChartRenderer(e) {
|
|
300
|
-
Xt(e, this._config), this.emitConfigUpdate("setChartRenderer");
|
|
301
|
-
}
|
|
302
|
-
// ---------------------------------------------------------------------------------------------
|
|
303
|
-
// Format Methods
|
|
304
|
-
// ---------------------------------------------------------------------------------------------
|
|
305
|
-
/**
|
|
306
|
-
* Gets the title text symbol. Contains styling information such as font, color, and symbol style.
|
|
307
|
-
* @returns {WebChartTextSymbol | undefined}
|
|
308
|
-
*/
|
|
309
|
-
getTitleSymbol() {
|
|
310
|
-
return Yt(this._config);
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* Sets the title text symbol. Contains styling information such as font, color, and symbol style.
|
|
314
|
-
* @param {WebChartTextSymbol | undefined} titleSymbol The title symbol.
|
|
315
|
-
*/
|
|
316
|
-
setTitleSymbol(e) {
|
|
317
|
-
qt(e, this._config), this.emitConfigUpdate("setTitleSymbol");
|
|
318
|
-
}
|
|
319
|
-
/**
|
|
320
|
-
* Gets the subtitle text symbol. Contains styling information such as font, color, and symbol style.
|
|
321
|
-
* @returns {WebChartTextSymbol | undefined}
|
|
322
|
-
*/
|
|
323
|
-
getSubtitleSymbol() {
|
|
324
|
-
return Mt(this._config);
|
|
325
|
-
}
|
|
326
|
-
/**
|
|
327
|
-
* Sets the subtitle text symbol. Contains styling information such as font, color, and symbol style.
|
|
328
|
-
* @param {WebChartTextSymbol | undefined} subtitleSymbol The title symbol.
|
|
329
|
-
*/
|
|
330
|
-
setSubtitleSymbol(e) {
|
|
331
|
-
Et(e, this._config), this.emitConfigUpdate("setSubtitleSymbol");
|
|
332
|
-
}
|
|
333
|
-
/**
|
|
334
|
-
* Gets the description text symbol. Contains styling information such as font, color, and symbol style.
|
|
335
|
-
* @returns {WebChartTextSymbol | undefined}
|
|
336
|
-
*/
|
|
337
|
-
getDescriptionSymbol() {
|
|
338
|
-
return Rt(this._config);
|
|
339
|
-
}
|
|
340
|
-
/**
|
|
341
|
-
* Sets the description text symbol. Contains styling information such as font, color, and symbol style.
|
|
342
|
-
* @param {WebChartTextSymbol | undefined} descriptionSymbol The description symbol.
|
|
343
|
-
*/
|
|
344
|
-
setDescriptionSymbol(e) {
|
|
345
|
-
zt(e, this._config), this.emitConfigUpdate("setDescriptionSymbol");
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* Gets the background color of the chart.
|
|
349
|
-
* @returns {Color | undefined}
|
|
350
|
-
*/
|
|
351
|
-
getBackgroundColor() {
|
|
352
|
-
return jt(this._config);
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* Sets the background color of the chart.
|
|
356
|
-
* @param {Color | undefined} backgroundColor The background color.
|
|
357
|
-
*/
|
|
358
|
-
setBackgroundColor(e) {
|
|
359
|
-
Pt(e, this._config), this.emitConfigUpdate("setBackgroundColor");
|
|
360
|
-
}
|
|
361
|
-
// ---------------------------------------------------------------------------------------------
|
|
362
|
-
// Series Methods
|
|
363
|
-
// ---------------------------------------------------------------------------------------------
|
|
364
|
-
/**
|
|
365
|
-
* Gets the visibility of a series.
|
|
366
|
-
* @param seriesIndex The series index
|
|
367
|
-
* @returns {boolean}
|
|
368
|
-
*/
|
|
369
|
-
getSeriesVisibility(e) {
|
|
370
|
-
return Ht(e, this._config);
|
|
371
|
-
}
|
|
372
|
-
/**
|
|
373
|
-
* Sets the visibility of a series.
|
|
374
|
-
* @param {boolean} props.visible
|
|
375
|
-
* @param {string} props.seriesId
|
|
376
|
-
* @param {OverlayTerms} props.overlayType
|
|
377
|
-
* @param {string} props.sliceId
|
|
378
|
-
* @param {WebChartDataItem} props.sliceData
|
|
379
|
-
*/
|
|
380
|
-
setSeriesVisibility(e) {
|
|
381
|
-
it({ detail: e }, this._config), this.emitConfigUpdate("setSeriesVisibility");
|
|
382
|
-
}
|
|
383
|
-
/**
|
|
384
|
-
* Gets the series ID for a given series index.
|
|
385
|
-
*
|
|
386
|
-
* If the series index is out of bounds, this function will return `undefined`.
|
|
387
|
-
*
|
|
388
|
-
* @param {number} seriesIndex The index of the series.
|
|
389
|
-
* @returns {string | undefined}
|
|
390
|
-
*/
|
|
391
|
-
getSeriesId(e) {
|
|
392
|
-
return $t(e, this._config);
|
|
393
|
-
}
|
|
394
|
-
/**
|
|
395
|
-
* Gets the series index for a given series ID.
|
|
396
|
-
*
|
|
397
|
-
* If the series ID is not found, this function will return `undefined`.
|
|
398
|
-
*
|
|
399
|
-
* @param {string} seriesId
|
|
400
|
-
* @returns {number | undefined}
|
|
401
|
-
*/
|
|
402
|
-
getSeriesIndex(e) {
|
|
403
|
-
return Wt(e, this._config);
|
|
404
|
-
}
|
|
405
|
-
/**
|
|
406
|
-
* Gets the length of the series array.
|
|
407
|
-
* @returns {number}
|
|
408
|
-
*/
|
|
409
|
-
getSeriesLength() {
|
|
410
|
-
return Kt(this._config);
|
|
411
|
-
}
|
|
412
|
-
/**
|
|
413
|
-
* Gets the chart sub type of the series.
|
|
414
|
-
* @returns {ChartSubType}
|
|
415
|
-
*/
|
|
416
|
-
getChartSubType() {
|
|
417
|
-
return W(this._config.series);
|
|
418
|
-
}
|
|
419
|
-
// ---------------------------------------------------------------------------------------------
|
|
420
|
-
// Data Methods
|
|
421
|
-
// ---------------------------------------------------------------------------------------------
|
|
422
|
-
/**
|
|
423
|
-
* Sets whether to fetch `null` values for them to be counted or displayed as categories on the chart.
|
|
424
|
-
*
|
|
425
|
-
* @param fetchNULLValues Whether to fetch `null` values.
|
|
426
|
-
*/
|
|
427
|
-
setFetchNULLValues(e) {
|
|
428
|
-
Lt(e, this._config), this.emitConfigUpdate("setFetchNULLValues");
|
|
429
|
-
}
|
|
430
|
-
/**
|
|
431
|
-
* Gets whether to fetch `null` values for them to be counted or displayed as categories on the chart.
|
|
432
|
-
*
|
|
433
|
-
* @returns {boolean} Boolean value indicates whether NULL values will be fetched.
|
|
434
|
-
*/
|
|
435
|
-
getFetchNULLValues() {
|
|
436
|
-
return Bt(this._config);
|
|
437
|
-
}
|
|
438
|
-
/**
|
|
439
|
-
* Gets the split-by values for the chart.
|
|
440
|
-
* @returns {string[]}
|
|
441
|
-
*/
|
|
442
|
-
getSplitByValues() {
|
|
443
|
-
return this._config.series.map((e) => String(ne({ where: e.query?.where }))).filter((e) => e !== void 0 && e.trim() !== "");
|
|
444
|
-
}
|
|
445
|
-
// ---------------------------------------------------------------------------------------------
|
|
446
|
-
// Protected Methods
|
|
447
|
-
// ---------------------------------------------------------------------------------------------
|
|
448
|
-
/**
|
|
449
|
-
* Emits a config update event.
|
|
450
|
-
* @category Protected
|
|
451
|
-
*/
|
|
452
|
-
emitConfigUpdate(e) {
|
|
453
|
-
this.dispatchEvent(
|
|
454
|
-
new CustomEvent("arcgisChartsModelConfigChange", {
|
|
455
|
-
detail: { config: this._config, functionCalled: e }
|
|
456
|
-
})
|
|
457
|
-
);
|
|
458
|
-
}
|
|
459
|
-
/**
|
|
460
|
-
* A function that loads the config based on the provided props.
|
|
461
|
-
* @category Protected
|
|
462
|
-
* @param params.layer The layer to be used as the data source for the chart.
|
|
463
|
-
* @param params.iLayer The layer description to use if the layer is not provided
|
|
464
|
-
* @param params.config The config object to be loaded.
|
|
465
|
-
*/
|
|
466
|
-
async loadConfigFromLayer(e) {
|
|
467
|
-
const { layer: i, iLayer: s, config: a } = e;
|
|
468
|
-
let r = i;
|
|
469
|
-
if (!r && s && (r = await st(s)), r) {
|
|
470
|
-
const n = await at(r, !0), { objectIdField: o } = r;
|
|
471
|
-
this.layerInfo = {
|
|
472
|
-
layer: r,
|
|
473
|
-
layerFieldsInfo: n,
|
|
474
|
-
objectIdField: o
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
this._config = a !== void 0 ? await St(a) : await this.generateDefaultConfig(), s && (this._config.iLayer = s);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
async function ye(t = rt().locale) {
|
|
481
|
-
let e = await import("./messages.en3.js");
|
|
482
|
-
switch (t) {
|
|
483
|
-
case u.Arabic:
|
|
484
|
-
e = await import("./messages.ar4.js");
|
|
485
|
-
break;
|
|
486
|
-
case u.Bosnian:
|
|
487
|
-
e = await import("./messages.bs4.js");
|
|
488
|
-
break;
|
|
489
|
-
case u.Bulgarian:
|
|
490
|
-
e = await import("./messages.bg4.js");
|
|
491
|
-
break;
|
|
492
|
-
case u.Catalan:
|
|
493
|
-
e = await import("./messages.ca4.js");
|
|
494
|
-
break;
|
|
495
|
-
case u.Czech:
|
|
496
|
-
e = await import("./messages.cs4.js");
|
|
497
|
-
break;
|
|
498
|
-
case u.Danish:
|
|
499
|
-
e = await import("./messages.da3.js");
|
|
500
|
-
break;
|
|
501
|
-
case u.German:
|
|
502
|
-
e = await import("./messages.de4.js");
|
|
503
|
-
break;
|
|
504
|
-
case u.Greek:
|
|
505
|
-
e = await import("./messages.el4.js");
|
|
506
|
-
break;
|
|
507
|
-
case u.EnglishUSA:
|
|
508
|
-
e = await import("./messages.en-US4.js");
|
|
509
|
-
break;
|
|
510
|
-
case u.Spanish:
|
|
511
|
-
e = await import("./messages.es4.js");
|
|
512
|
-
break;
|
|
513
|
-
case u.Estonian:
|
|
514
|
-
e = await import("./messages.et4.js");
|
|
515
|
-
break;
|
|
516
|
-
case u.French:
|
|
517
|
-
e = await import("./messages.fr4.js");
|
|
518
|
-
break;
|
|
519
|
-
case u.Finnish:
|
|
520
|
-
e = await import("./messages.fi4.js");
|
|
521
|
-
break;
|
|
522
|
-
case u.Hebrew:
|
|
523
|
-
e = await import("./messages.he4.js");
|
|
524
|
-
break;
|
|
525
|
-
case u.Croatian:
|
|
526
|
-
e = await import("./messages.hr4.js");
|
|
527
|
-
break;
|
|
528
|
-
case u.Hungarian:
|
|
529
|
-
e = await import("./messages.hu4.js");
|
|
530
|
-
break;
|
|
531
|
-
case u.Indonesian:
|
|
532
|
-
e = await import("./messages.id4.js");
|
|
533
|
-
break;
|
|
534
|
-
case u.Italian:
|
|
535
|
-
e = await import("./messages.it4.js");
|
|
536
|
-
break;
|
|
537
|
-
case u.Japanese:
|
|
538
|
-
e = await import("./messages.ja4.js");
|
|
539
|
-
break;
|
|
540
|
-
case u.Korean:
|
|
541
|
-
e = await import("./messages.ko4.js");
|
|
542
|
-
break;
|
|
543
|
-
case u.Lithuanian:
|
|
544
|
-
e = await import("./messages.lt4.js");
|
|
545
|
-
break;
|
|
546
|
-
case u.Latvian:
|
|
547
|
-
e = await import("./messages.lv4.js");
|
|
548
|
-
break;
|
|
549
|
-
case u.NorwegianBokml:
|
|
550
|
-
e = await import("./messages.no3.js");
|
|
551
|
-
break;
|
|
552
|
-
case u.Dutch:
|
|
553
|
-
e = await import("./messages.nl4.js");
|
|
554
|
-
break;
|
|
555
|
-
case u.Polish:
|
|
556
|
-
e = await import("./messages.pl4.js");
|
|
557
|
-
break;
|
|
558
|
-
case u.PortugueseBrazil:
|
|
559
|
-
e = await import("./messages.pt-BR4.js");
|
|
560
|
-
break;
|
|
561
|
-
case u.PortuguesePortugal:
|
|
562
|
-
e = await import("./messages.pt-PT4.js");
|
|
563
|
-
break;
|
|
564
|
-
case u.Romanian:
|
|
565
|
-
e = await import("./messages.ro4.js");
|
|
566
|
-
break;
|
|
567
|
-
case u.Russian:
|
|
568
|
-
e = await import("./messages.ru4.js");
|
|
569
|
-
break;
|
|
570
|
-
case u.Serbian:
|
|
571
|
-
e = await import("./messages.sr4.js");
|
|
572
|
-
break;
|
|
573
|
-
case u.Slovak:
|
|
574
|
-
e = await import("./messages.sk4.js");
|
|
575
|
-
break;
|
|
576
|
-
case u.Slovenian:
|
|
577
|
-
e = await import("./messages.sl4.js");
|
|
578
|
-
break;
|
|
579
|
-
case u.Swedish:
|
|
580
|
-
e = await import("./messages.sv4.js");
|
|
581
|
-
break;
|
|
582
|
-
case u.Thai:
|
|
583
|
-
e = await import("./messages.th4.js");
|
|
584
|
-
break;
|
|
585
|
-
case u.Turkish:
|
|
586
|
-
e = await import("./messages.tr3.js");
|
|
587
|
-
break;
|
|
588
|
-
case u.Ukrainian:
|
|
589
|
-
e = await import("./messages.uk4.js");
|
|
590
|
-
break;
|
|
591
|
-
case u.Vietnamese:
|
|
592
|
-
e = await import("./messages.vi4.js");
|
|
593
|
-
break;
|
|
594
|
-
case u.ChineseChina:
|
|
595
|
-
e = await import("./messages.zh-CN4.js");
|
|
596
|
-
break;
|
|
597
|
-
case u.ChineseHongKong:
|
|
598
|
-
e = await import("./messages.zh-HK4.js");
|
|
599
|
-
break;
|
|
600
|
-
case u.ChineseTaiwan:
|
|
601
|
-
e = await import("./messages.zh-TW4.js");
|
|
602
|
-
break;
|
|
603
|
-
case u.English:
|
|
604
|
-
}
|
|
605
|
-
return e;
|
|
606
|
-
}
|
|
607
|
-
function J(t, e, i) {
|
|
608
|
-
const s = t?.axes?.[e];
|
|
609
|
-
s?.title !== void 0 ? s.title.content.text = i : s !== void 0 && (s.title = _({
|
|
610
|
-
text: i,
|
|
611
|
-
visible: !0,
|
|
612
|
-
font: L(b.AxisTitle)
|
|
613
|
-
}));
|
|
614
|
-
}
|
|
615
|
-
async function ee(t) {
|
|
616
|
-
const { config: e, layerInfo: i, numericFields: s, aggregationType: a } = t;
|
|
617
|
-
let r = "";
|
|
618
|
-
if (e) {
|
|
619
|
-
const n = nt(e) === Ze.Stacked100, o = await ye();
|
|
620
|
-
if (n)
|
|
621
|
-
r = o.axisLabels.percent;
|
|
622
|
-
else {
|
|
623
|
-
const l = await Le(a);
|
|
624
|
-
if (s.length === 1) {
|
|
625
|
-
const f = E(i.layerFieldsInfo, s[0]);
|
|
626
|
-
a === v.NoAggregation ? r = f : a === v.Count && s[0] === i.objectIdField ? r = o.axisLabels.count : r = q(o.axisLabels.aggregationOfFieldName, {
|
|
627
|
-
aggregation: l,
|
|
628
|
-
fieldName: f
|
|
629
|
-
});
|
|
630
|
-
} else s.length > 1 && (a === v.NoAggregation ? r = o.axisLabels.values : r = q(o.axisLabels.aggregationOfValues, {
|
|
631
|
-
aggregation: l
|
|
632
|
-
}));
|
|
633
|
-
}
|
|
634
|
-
}
|
|
635
|
-
return r;
|
|
636
|
-
}
|
|
637
|
-
const De = async (t, e) => t.axes?.[e] ?? (await ot(t.type))[e], Ne = (t, e, i) => {
|
|
638
|
-
t.axes !== void 0 && (t.axes[i] = e);
|
|
639
|
-
}, te = (t, e, i) => {
|
|
640
|
-
let s = Number.NaN;
|
|
641
|
-
return i ? s = t.axes?.[e]?.maximum : s = t.axes?.[e]?.minimum, s ?? Number.NaN;
|
|
642
|
-
}, ie = async (t, e, i, s) => {
|
|
643
|
-
const a = t?.axes?.[i];
|
|
644
|
-
s && a !== void 0 ? a.maximum = e : !s && a !== void 0 && (a.minimum = e);
|
|
645
|
-
}, Zt = (t) => te(t, 1, !0), N = async (t, e) => {
|
|
646
|
-
await ie(t, e, 1, !0);
|
|
647
|
-
}, Jt = (t) => te(t, 1, !1), G = async (t, e) => {
|
|
648
|
-
await ie(t, e, 1, !1);
|
|
649
|
-
}, Qt = (t) => te(t, 0, !0), fe = async (t, e) => {
|
|
650
|
-
await ie(t, e, 0, !0);
|
|
651
|
-
}, ei = (t) => te(t, 0, !1), me = async (t, e) => {
|
|
652
|
-
await ie(t, e, 0, !1);
|
|
653
|
-
}, Ge = (t) => t.axes?.[0]?.valueFormat ?? oe(), Ie = async (t, e) => {
|
|
654
|
-
const i = await De(t, 0);
|
|
655
|
-
if (i !== void 0 && e !== void 0) {
|
|
656
|
-
const s = {
|
|
657
|
-
...i,
|
|
658
|
-
valueFormat: e
|
|
659
|
-
};
|
|
660
|
-
Ne(t, s, 0);
|
|
661
|
-
}
|
|
662
|
-
}, ti = (t) => {
|
|
663
|
-
let e;
|
|
664
|
-
return Ct(t.axes?.[1]?.valueFormat) && (e = t.axes?.[1]?.valueFormat), e;
|
|
665
|
-
}, ii = async (t, e) => {
|
|
666
|
-
const i = await De(t, 1);
|
|
667
|
-
if (i !== void 0 && e !== void 0) {
|
|
668
|
-
const s = {
|
|
669
|
-
...i,
|
|
670
|
-
valueFormat: e
|
|
671
|
-
};
|
|
672
|
-
Ne(t, s, 1);
|
|
673
|
-
}
|
|
674
|
-
}, Te = (t, e, i) => {
|
|
675
|
-
const s = t.axes?.[e];
|
|
676
|
-
s !== void 0 && (s.integerOnlyValues = i);
|
|
677
|
-
}, Oe = (t, e) => {
|
|
678
|
-
const i = e.title?.content.text;
|
|
679
|
-
(e.title === void 0 || t === void 0) && (e.title = _({
|
|
680
|
-
text: "",
|
|
681
|
-
visible: !0,
|
|
682
|
-
font: L(b.AxisTitle),
|
|
683
|
-
type: b.AxisTitle
|
|
684
|
-
})), t !== void 0 && (e.title.content = t), e.title.content.text = i;
|
|
685
|
-
}, si = (t) => t.axes?.[0]?.title?.content, ai = (t, e) => {
|
|
686
|
-
e.axes?.[0] !== void 0 && Oe(t, e.axes[0]);
|
|
687
|
-
}, ri = (t) => t.axes?.[1]?.title?.content, oi = (t, e) => {
|
|
688
|
-
e.axes?.[1] !== void 0 && Oe(t, e.axes[1]);
|
|
689
|
-
}, ni = (t) => {
|
|
690
|
-
for (const e of t.axes ?? [])
|
|
691
|
-
if (e?.labels !== void 0)
|
|
692
|
-
return e.labels.content;
|
|
693
|
-
}, li = (t, e) => {
|
|
694
|
-
for (const i of e.axes ?? [])
|
|
695
|
-
if (i !== void 0) {
|
|
696
|
-
const s = i.labels?.content.text;
|
|
697
|
-
t === void 0 ? i.labels = _({
|
|
698
|
-
text: "",
|
|
699
|
-
visible: !0,
|
|
700
|
-
font: L(b.AxisLabels),
|
|
701
|
-
type: b.AxisLabels
|
|
702
|
-
}) : i.labels.content = z(t), i.labels.content.text = s;
|
|
703
|
-
}
|
|
704
|
-
}, ci = (t) => {
|
|
705
|
-
for (const e of t.axes ?? [])
|
|
706
|
-
if (e?.lineSymbol !== void 0)
|
|
707
|
-
return e.lineSymbol;
|
|
708
|
-
}, di = (t, e) => {
|
|
709
|
-
for (const i of e.axes ?? [])
|
|
710
|
-
i !== void 0 && (i.lineSymbol = z(t) ?? Be());
|
|
711
|
-
}, ui = (t) => {
|
|
712
|
-
for (const e of t.axes ?? [])
|
|
713
|
-
if (e?.grid !== void 0)
|
|
714
|
-
return e.grid;
|
|
715
|
-
}, gi = (t, e) => {
|
|
716
|
-
const i = e.axes;
|
|
717
|
-
switch (ue(e.series)) {
|
|
718
|
-
// set y-axis grid line for charts -Bar chart/Line chart, Histogram and Box plot
|
|
719
|
-
case A.BarSeries:
|
|
720
|
-
case A.LineSeries:
|
|
721
|
-
case A.ComboLineAndBarSeries:
|
|
722
|
-
case A.HistogramSeries:
|
|
723
|
-
case A.BoxPlotSeries:
|
|
724
|
-
case A.RadarSeries: {
|
|
725
|
-
i?.[1] !== void 0 && (i[1].grid = z(t));
|
|
726
|
-
break;
|
|
727
|
-
}
|
|
728
|
-
// set both x and y-axis grid lines for charts - Scatter chart
|
|
729
|
-
case A.ScatterSeries: {
|
|
730
|
-
e.axes?.forEach((a) => {
|
|
731
|
-
a !== void 0 && (a.grid = z(t));
|
|
732
|
-
});
|
|
733
|
-
break;
|
|
734
|
-
}
|
|
735
|
-
case A.PieSeries:
|
|
736
|
-
}
|
|
737
|
-
}, he = (t, e) => e.axes?.[t]?.title?.content.text ?? "", Xe = (t, e, i) => {
|
|
738
|
-
const s = i.axes?.[e];
|
|
739
|
-
s?.title !== void 0 ? s.title.content.text = t : s !== void 0 && s?.title === void 0 && (s.title = _({
|
|
740
|
-
text: t,
|
|
741
|
-
visible: !0,
|
|
742
|
-
font: L(b.AxisTitle)
|
|
743
|
-
}));
|
|
744
|
-
}, Ye = (t, e) => e.axes?.[t]?.title?.visible ?? !1, qe = (t, e, i) => {
|
|
745
|
-
const s = i.axes?.[e];
|
|
746
|
-
s?.title !== void 0 ? s.title.visible = t : s !== void 0 && s?.title === void 0 && (s.title = _({
|
|
747
|
-
text: he(e, i),
|
|
748
|
-
visible: t,
|
|
749
|
-
font: L(b.AxisTitle)
|
|
750
|
-
}));
|
|
751
|
-
}, yi = (t) => t.axes?.[0].isLogarithmic ?? !1, fi = async (t, e) => {
|
|
752
|
-
t.axes?.[0] !== void 0 && (t.axes[0].isLogarithmic = e, await fe(t, null), await me(t, null));
|
|
753
|
-
}, mi = (t) => t.axes?.[1]?.isLogarithmic ?? !1, hi = async (t, e) => {
|
|
754
|
-
t.axes?.[1] !== void 0 && (t.axes[1].isLogarithmic = e, await N(t, null), await G(t, null));
|
|
755
|
-
}, pi = (t) => t.axes?.[0]?.scrollbar, bi = (t, e) => {
|
|
756
|
-
t.axes?.[0] !== void 0 && (t.axes[0].scrollbar = e);
|
|
757
|
-
}, xi = (t) => t.axes?.[1]?.scrollbar, Si = (t, e) => {
|
|
758
|
-
t.axes?.[1] !== void 0 && (t.axes[1].scrollbar = e);
|
|
759
|
-
}, Ci = (t, e) => t.axes?.[e]?.displayZeroLine ?? !1, Ti = (t, e, i) => {
|
|
760
|
-
t.axes?.[i] !== void 0 && (t.axes[i].displayZeroLine = e);
|
|
761
|
-
}, Ai = (t, e) => t.axes?.[e]?.displayCursorTooltip ?? !1, Fi = (t, e, i) => {
|
|
762
|
-
t.axes?.[i] !== void 0 && (t.axes[i].displayCursorTooltip = e);
|
|
763
|
-
}, vi = (t, e) => t.axes?.[e]?.buffer ?? !1, Li = (t, e, i) => {
|
|
764
|
-
const s = t.axes?.[i];
|
|
765
|
-
s !== void 0 && (s.buffer = e);
|
|
766
|
-
}, Bi = (t, e) => t.axes?.[e]?.tickSpacing, _i = (t, e, i) => {
|
|
767
|
-
t.axes?.[i] !== void 0 && (t.axes[i].tickSpacing = e);
|
|
768
|
-
}, wi = (t, e) => t.axes?.[e]?.integerOnlyValues ?? !1, Vi = (t, e, i) => {
|
|
769
|
-
t.axes?.[i] !== void 0 && (t.axes[i].integerOnlyValues = e);
|
|
770
|
-
};
|
|
771
|
-
class Me extends ke {
|
|
772
|
-
/**
|
|
773
|
-
* Gets the x-axis title text.
|
|
774
|
-
* @returns {string}
|
|
775
|
-
*/
|
|
776
|
-
getXAxisTitleText() {
|
|
777
|
-
return he(0, this._config);
|
|
778
|
-
}
|
|
779
|
-
/**
|
|
780
|
-
* Sets the x-axis title text.
|
|
781
|
-
* @param {string} newXAxisTitleText - The new x-axis title text.
|
|
782
|
-
*/
|
|
783
|
-
setXAxisTitleText(e) {
|
|
784
|
-
Xe(e, 0, this._config), this.emitConfigUpdate("setXAxisTitleText");
|
|
785
|
-
}
|
|
786
|
-
/**
|
|
787
|
-
* Gets whether the x-axis title is visible or not.
|
|
788
|
-
*
|
|
789
|
-
* `true`: X-axis title is visible.
|
|
790
|
-
*
|
|
791
|
-
* `false`: X-axis title is hidden.
|
|
792
|
-
*
|
|
793
|
-
* @returns {boolean}
|
|
794
|
-
*/
|
|
795
|
-
getXAxisTitleVisibility() {
|
|
796
|
-
return Ye(0, this._config);
|
|
797
|
-
}
|
|
798
|
-
/**
|
|
799
|
-
* Sets the visibility of the x-axis title.
|
|
800
|
-
*
|
|
801
|
-
* `true`: X-axis title is visible.
|
|
802
|
-
*
|
|
803
|
-
* `false`: X-axis title is hidden.
|
|
804
|
-
*
|
|
805
|
-
* @param {boolean} newXAxisTitleVisibility - Whether the x-axis title is visible or not.
|
|
806
|
-
*/
|
|
807
|
-
setXAxisTitleVisibility(e) {
|
|
808
|
-
qe(e, 0, this._config), this.emitConfigUpdate("setXAxisTitleVisibility");
|
|
809
|
-
}
|
|
810
|
-
/**
|
|
811
|
-
* Gets the maximum bound that is currently set for the x-axis.
|
|
812
|
-
* @returns {number | null}
|
|
813
|
-
*/
|
|
814
|
-
getMaxXBound() {
|
|
815
|
-
return Qt(this._config);
|
|
816
|
-
}
|
|
817
|
-
/**
|
|
818
|
-
* Sets the maximum bound for the x-axis.
|
|
819
|
-
* @param {number | null} newMaxXBound - The new maximum bound for the x-axis.
|
|
820
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
821
|
-
*/
|
|
822
|
-
async setMaxXBound(e) {
|
|
823
|
-
await fe(this._config, e), this.emitConfigUpdate("setMaxXBound");
|
|
824
|
-
}
|
|
825
|
-
/**
|
|
826
|
-
* Gets the minimum bound that is currently set for the x-axis.
|
|
827
|
-
* @returns {number | null}
|
|
828
|
-
*/
|
|
829
|
-
getMinXBound() {
|
|
830
|
-
return ei(this._config);
|
|
831
|
-
}
|
|
832
|
-
/**
|
|
833
|
-
* Sets the minimum bound for the x-axis.
|
|
834
|
-
* @param {number | null} newMinXBound - The new minimum bound for the x-axis.
|
|
835
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
836
|
-
*/
|
|
837
|
-
async setMinXBound(e) {
|
|
838
|
-
await me(this._config, e), this.emitConfigUpdate("setMinXBound");
|
|
839
|
-
}
|
|
840
|
-
/**
|
|
841
|
-
* Gets the x-axis title text symbol. Contains styling information such as font, color, and symbol style.
|
|
842
|
-
* @returns {WebChartTextSymbol | undefined}
|
|
843
|
-
*/
|
|
844
|
-
getXAxisTitleSymbol() {
|
|
845
|
-
return si(this._config);
|
|
846
|
-
}
|
|
847
|
-
/**
|
|
848
|
-
* Sets the x-axis title text symbol. Contains styling information such as font, color, and symbol style.
|
|
849
|
-
* @param {WebChartTextSymbol | undefined} newXAxisTitle - The new x-axis title text symbol.
|
|
850
|
-
*/
|
|
851
|
-
setXAxisTitleSymbol(e) {
|
|
852
|
-
ai(e, this._config), this.emitConfigUpdate("setXAxisTitleSymbol");
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
* Gets the axis labels text symbol. Contains styling information such as font, color, and symbol style.
|
|
856
|
-
* @returns {WebChartTextSymbol | undefined}
|
|
857
|
-
*/
|
|
858
|
-
getAxisLabelsSymbol() {
|
|
859
|
-
return ni(this._config);
|
|
860
|
-
}
|
|
861
|
-
/**
|
|
862
|
-
* Sets the axis labels text symbol. Contains styling information such as font, color, and symbol style.
|
|
863
|
-
* @param {WebChartTextSymbol | undefined} newAxisLabelsSymbol - The new axis labels text symbol.
|
|
864
|
-
*/
|
|
865
|
-
setAxisLabelsSymbol(e) {
|
|
866
|
-
li(e, this._config), this.emitConfigUpdate("setAxisLabelsSymbol");
|
|
867
|
-
}
|
|
868
|
-
/**
|
|
869
|
-
* Gets the axis lines symbol. Contains styling information such as line width, line style, and line color.
|
|
870
|
-
* @returns {ISimpleLineSymbol | undefined}
|
|
871
|
-
*/
|
|
872
|
-
getAxisLinesSymbol() {
|
|
873
|
-
return ci(this._config);
|
|
874
|
-
}
|
|
875
|
-
/**
|
|
876
|
-
* Sets the axis lines symbol. Contains styling information such as line width, line style, and line color.
|
|
877
|
-
* @param {ISimpleLineSymbol | undefined} newAxisLinesSymbol - The new axis lines symbol.
|
|
878
|
-
*/
|
|
879
|
-
setAxisLinesSymbol(e) {
|
|
880
|
-
di(e, this._config), this.emitConfigUpdate("setAxisLinesSymbol");
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
async function Ui(t) {
|
|
884
|
-
const {
|
|
885
|
-
config: e,
|
|
886
|
-
layer: i,
|
|
887
|
-
xAxisField: s,
|
|
888
|
-
splitByField: a,
|
|
889
|
-
layerFieldsInfo: r,
|
|
890
|
-
aggregationFields: n,
|
|
891
|
-
aggregationType: o,
|
|
892
|
-
fetchNullValues: l
|
|
893
|
-
} = t, d = r.filter((p) => p.name === a)[0]?.type, c = l !== !0 ? `${a} IS NOT NULL` : "", S = s && l !== !0 ? `${s} IS NOT NULL` : "", { where: m } = e?.dataFilters ?? {}, g = {
|
|
894
|
-
where: _e([m, c, S]),
|
|
895
|
-
// excluding the null values from the list
|
|
896
|
-
orderByFields: ct(a) ? [] : [`${a} ${I.Ascending}`],
|
|
897
|
-
// default sorting ascending for split-by field
|
|
898
|
-
geometry: e?.dataFilters?.geometry
|
|
899
|
-
}, C = i;
|
|
900
|
-
let y = "";
|
|
901
|
-
n.length === 0 ? y = C?.objectIdField ?? "" : [y] = n;
|
|
902
|
-
const h = o !== void 0 ? `${o}_${y}` : "";
|
|
903
|
-
let T = await we({
|
|
904
|
-
queryObject: C,
|
|
905
|
-
category: e?.series[0].x ?? "",
|
|
906
|
-
splitByField: a,
|
|
907
|
-
queryConfig: g
|
|
908
|
-
});
|
|
909
|
-
if (e) {
|
|
910
|
-
const p = e?.series.map((B) => ne({ where: B.query?.where })?.toString() ?? "").filter((B) => B !== void 0 && B !== "");
|
|
911
|
-
T = dt({
|
|
912
|
-
arrayA: T,
|
|
913
|
-
arrayB: p,
|
|
914
|
-
getKey: (B) => B.toString()
|
|
915
|
-
});
|
|
916
|
-
}
|
|
917
|
-
return { categoriesArray: T, fieldName: h, splitByFieldType: d, numericalField: y };
|
|
918
|
-
}
|
|
919
|
-
function Ms(t, e) {
|
|
920
|
-
let i = e === "";
|
|
921
|
-
for (const s of t)
|
|
922
|
-
if (e === s.name) {
|
|
923
|
-
i = !0;
|
|
924
|
-
break;
|
|
925
|
-
}
|
|
926
|
-
return i;
|
|
927
|
-
}
|
|
928
|
-
function Es(t, e) {
|
|
929
|
-
const i = lt(t);
|
|
930
|
-
let s = e.length === 0, a = 0;
|
|
931
|
-
for (const r of e) {
|
|
932
|
-
for (const n of i)
|
|
933
|
-
if (r === n && (a += 1), a === e.length) {
|
|
934
|
-
s = !0;
|
|
935
|
-
break;
|
|
936
|
-
}
|
|
937
|
-
if (s)
|
|
938
|
-
break;
|
|
939
|
-
}
|
|
940
|
-
return s;
|
|
941
|
-
}
|
|
942
|
-
function pe(t, e) {
|
|
943
|
-
e.forEach((i) => {
|
|
944
|
-
Object.getOwnPropertyNames(i.prototype).forEach((s) => {
|
|
945
|
-
Object.defineProperty(
|
|
946
|
-
t.prototype,
|
|
947
|
-
s,
|
|
948
|
-
Object.getOwnPropertyDescriptor(i.prototype, s) || /* @__PURE__ */ Object.create(null)
|
|
949
|
-
);
|
|
950
|
-
});
|
|
951
|
-
});
|
|
952
|
-
}
|
|
953
|
-
async function ki(t) {
|
|
954
|
-
const { layerInfo: e, config: i, category: s } = t, { layer: a } = e, { where: r } = i?.dataFilters ?? {}, { fetchNullValues: n } = i?.series?.[0]?.query ?? {}, o = n !== !0 ? `${s} IS NOT NULL` : "", l = {
|
|
955
|
-
where: _e([r, o]),
|
|
956
|
-
// excluding the null values from the list
|
|
957
|
-
orderByFields: [],
|
|
958
|
-
geometry: i?.dataFilters?.geometry
|
|
959
|
-
}, f = le(a);
|
|
960
|
-
return (
|
|
961
|
-
// fetch unique category values asynchronously
|
|
962
|
-
(await we({ queryObject: a, category: s, queryConfig: l })).map((c) => {
|
|
963
|
-
const S = String(c);
|
|
964
|
-
return ce({
|
|
965
|
-
fieldName: s,
|
|
966
|
-
fieldValueToMatch: S,
|
|
967
|
-
subtypeInfo: f,
|
|
968
|
-
// use the retrieved subtype information
|
|
969
|
-
fieldList: e.layerFieldsInfo
|
|
970
|
-
// list of field information from the layer
|
|
971
|
-
}) ?? S;
|
|
972
|
-
})
|
|
973
|
-
);
|
|
974
|
-
}
|
|
975
|
-
const Di = (t) => t.horizontalAxisLabelsBehavior ?? Ae.Rotate, Ni = (t, e) => {
|
|
976
|
-
e.horizontalAxisLabelsBehavior = t;
|
|
977
|
-
}, Gi = (t) => t.verticalAxisLabelsBehavior ?? Ae.Wrap, Ii = (t, e) => {
|
|
978
|
-
e.verticalAxisLabelsBehavior = t;
|
|
979
|
-
}, Oi = (t) => t.cursorCrosshair?.horizontalLineVisible ?? !1, Xi = (t, e) => {
|
|
980
|
-
e.cursorCrosshair === void 0 && (e.cursorCrosshair = de()), e.cursorCrosshair.horizontalLineVisible = t;
|
|
981
|
-
}, Yi = (t) => t.cursorCrosshair?.verticalLineVisible ?? !1, qi = (t, e) => {
|
|
982
|
-
e.cursorCrosshair === void 0 && (e.cursorCrosshair = de()), e.cursorCrosshair.verticalLineVisible = t;
|
|
983
|
-
}, Mi = (t) => t.cursorCrosshair?.style, Ei = (t, e) => {
|
|
984
|
-
e.cursorCrosshair === void 0 && (e.cursorCrosshair = de()), e.cursorCrosshair.style = t;
|
|
985
|
-
}, Ri = (t) => t.cursorCrosshair, zi = (t, e) => {
|
|
986
|
-
e.cursorCrosshair = t;
|
|
987
|
-
};
|
|
988
|
-
class ji extends Me {
|
|
989
|
-
/**
|
|
990
|
-
* Gets the Y-axis title text.
|
|
991
|
-
* @returns {string}
|
|
992
|
-
*/
|
|
993
|
-
getYAxisTitleText() {
|
|
994
|
-
return he(1, this._config);
|
|
995
|
-
}
|
|
996
|
-
/**
|
|
997
|
-
* Sets the Y-axis title text.
|
|
998
|
-
* @param {string} titleText The Y-axis title text.
|
|
999
|
-
*/
|
|
1000
|
-
setYAxisTitleText(e) {
|
|
1001
|
-
Xe(e, 1, this._config), this.emitConfigUpdate("setYAxisTitleText");
|
|
1002
|
-
}
|
|
1003
|
-
/**
|
|
1004
|
-
* Gets the visibility of the Y-axis title.
|
|
1005
|
-
*
|
|
1006
|
-
* `true`: The Y-axis title is visible.
|
|
1007
|
-
*
|
|
1008
|
-
* `false`: The Y-axis title is hidden.
|
|
1009
|
-
*
|
|
1010
|
-
* @returns {boolean}
|
|
1011
|
-
*/
|
|
1012
|
-
getYAxisTitleVisibility() {
|
|
1013
|
-
return Ye(1, this._config);
|
|
1014
|
-
}
|
|
1015
|
-
/**
|
|
1016
|
-
* Sets the visibility of the Y-axis title.
|
|
1017
|
-
*
|
|
1018
|
-
* `true`: Show the Y-axis title.
|
|
1019
|
-
*
|
|
1020
|
-
* `false`: Hide the Y-axis title.
|
|
1021
|
-
*
|
|
1022
|
-
* @param {boolean} visibility The visibility state of the Y-axis title.
|
|
1023
|
-
*/
|
|
1024
|
-
setYAxisTitleVisibility(e) {
|
|
1025
|
-
qe(e, 1, this._config), this.emitConfigUpdate("setYAxisTitleVisibility");
|
|
1026
|
-
}
|
|
1027
|
-
/**
|
|
1028
|
-
* Gets the maximum bound for the y-axis.
|
|
1029
|
-
* @returns {number | null}
|
|
1030
|
-
*/
|
|
1031
|
-
getMaxYBound() {
|
|
1032
|
-
return Zt(this._config);
|
|
1033
|
-
}
|
|
1034
|
-
/**
|
|
1035
|
-
* Sets the maximum bound for the y-axis.
|
|
1036
|
-
* @param {number | null} maxBound The maximum bound for the y-axis. If `null`, the maximum bound is automatically calculated.
|
|
1037
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
1038
|
-
*/
|
|
1039
|
-
async setMaxYBound(e) {
|
|
1040
|
-
await N(this._config, e), this.emitConfigUpdate("setMaxYBound");
|
|
1041
|
-
}
|
|
1042
|
-
/**
|
|
1043
|
-
* Gets the minimum bound for the y-axis.
|
|
1044
|
-
* @returns {number | null}
|
|
1045
|
-
*/
|
|
1046
|
-
getMinYBound() {
|
|
1047
|
-
return Jt(this._config);
|
|
1048
|
-
}
|
|
1049
|
-
/**
|
|
1050
|
-
* Sets the minimum bound for the y-axis.
|
|
1051
|
-
* @param {number | null} minBound The minimum bound for the y-axis. If `null`, the minimum bound is automatically calculated.
|
|
1052
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
1053
|
-
*/
|
|
1054
|
-
async setMinYBound(e) {
|
|
1055
|
-
await G(this._config, e), this.emitConfigUpdate("setMinYBound");
|
|
1056
|
-
}
|
|
1057
|
-
/**
|
|
1058
|
-
* Gets the value format options for the x-axis.
|
|
1059
|
-
* @returns {CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined}
|
|
1060
|
-
*/
|
|
1061
|
-
getXAxisValueFormat() {
|
|
1062
|
-
return Ge(this._config);
|
|
1063
|
-
}
|
|
1064
|
-
/**
|
|
1065
|
-
* Sets the value format options for the x-axis.
|
|
1066
|
-
* @param {CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined} valueFormat The value format options for the x-axis.
|
|
1067
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
1068
|
-
*/
|
|
1069
|
-
async setXAxisValueFormat(e) {
|
|
1070
|
-
await Ie(this._config, e), this.emitConfigUpdate("setXAxisValueFormat");
|
|
1071
|
-
}
|
|
1072
|
-
/**
|
|
1073
|
-
* Gets the value format options for the y-axis.
|
|
1074
|
-
* @returns {NumberFormatOptions | undefined}
|
|
1075
|
-
*/
|
|
1076
|
-
getYAxisValueFormat() {
|
|
1077
|
-
return ti(this._config);
|
|
1078
|
-
}
|
|
1079
|
-
/**
|
|
1080
|
-
* Sets the value format options for the y-axis.
|
|
1081
|
-
* @param {NumberFormatOptions | undefined} valueFormat The value format options for the y-axis.
|
|
1082
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
1083
|
-
*/
|
|
1084
|
-
async setYAxisValueFormat(e) {
|
|
1085
|
-
await ii(this._config, e), this.emitConfigUpdate("setYAxisValueFormat");
|
|
1086
|
-
}
|
|
1087
|
-
/**
|
|
1088
|
-
* Gets whether logarithmic scale is enabled for the x-axis.
|
|
1089
|
-
*
|
|
1090
|
-
* `true`: Logarithmic scale is enabled for the x-axis.
|
|
1091
|
-
*
|
|
1092
|
-
* `false`: Logarithmic scale is disabled for the x-axis.
|
|
1093
|
-
*
|
|
1094
|
-
* @returns {boolean}
|
|
1095
|
-
*/
|
|
1096
|
-
getXLogarithmic() {
|
|
1097
|
-
return yi(this._config);
|
|
1098
|
-
}
|
|
1099
|
-
/**
|
|
1100
|
-
* Sets whether logarithmic scale is enabled for the x-axis.
|
|
1101
|
-
*
|
|
1102
|
-
* `true`: Enable logarithmic scale for the x-axis.
|
|
1103
|
-
*
|
|
1104
|
-
* `false`: Disable logarithmic scale for the x-axis.
|
|
1105
|
-
*
|
|
1106
|
-
* @param {boolean} logarithmicState The state of the logarithmic scale for the x-axis.
|
|
1107
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
1108
|
-
*/
|
|
1109
|
-
async setXLogarithmic(e) {
|
|
1110
|
-
await fi(this._config, e), this.emitConfigUpdate("setXLogarithmic");
|
|
1111
|
-
}
|
|
1112
|
-
/**
|
|
1113
|
-
* Gets whether logarithmic scale is enabled for the y-axis.
|
|
1114
|
-
*
|
|
1115
|
-
* `true`: Logarithmic scale is enabled for the y-axis.
|
|
1116
|
-
*
|
|
1117
|
-
* `false`: Logarithmic scale is disabled for the y-axis.
|
|
1118
|
-
*
|
|
1119
|
-
* @returns {boolean}
|
|
1120
|
-
*/
|
|
1121
|
-
getYLogarithmic() {
|
|
1122
|
-
return mi(this._config);
|
|
1123
|
-
}
|
|
1124
|
-
/**
|
|
1125
|
-
* Sets whether logarithmic scale is enabled for the y-axis.
|
|
1126
|
-
*
|
|
1127
|
-
* `true`: Enable logarithmic scale for the y-axis.
|
|
1128
|
-
*
|
|
1129
|
-
* `false`: Disable logarithmic scale for the y-axis.
|
|
1130
|
-
*
|
|
1131
|
-
* @param {boolean} logarithmicState The state of the logarithmic scale for the y-axis.
|
|
1132
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
1133
|
-
*/
|
|
1134
|
-
async setYLogarithmic(e) {
|
|
1135
|
-
await hi(this._config, e), this.emitConfigUpdate("setYLogarithmic");
|
|
1136
|
-
}
|
|
1137
|
-
/**
|
|
1138
|
-
* Gets the x-axis scrollbar configuration.
|
|
1139
|
-
* @returns {WebChartAxisScrollBar | undefined}
|
|
1140
|
-
*/
|
|
1141
|
-
getXAxisScrollbar() {
|
|
1142
|
-
return pi(this._config);
|
|
1143
|
-
}
|
|
1144
|
-
/**
|
|
1145
|
-
* Sets the x-axis scrollbar configuration.
|
|
1146
|
-
* @param {WebChartAxisScrollBar} scrollbar The x-axis scrollbar configuration.
|
|
1147
|
-
*/
|
|
1148
|
-
setXAxisScrollbar(e) {
|
|
1149
|
-
bi(this._config, e), this.emitConfigUpdate("setXAxisScrollbar");
|
|
1150
|
-
}
|
|
1151
|
-
/**
|
|
1152
|
-
* Gets the y-axis scrollbar configuration.
|
|
1153
|
-
* @returns {WebChartAxisScrollBar | undefined}
|
|
1154
|
-
*/
|
|
1155
|
-
getYAxisScrollbar() {
|
|
1156
|
-
return xi(this._config);
|
|
1157
|
-
}
|
|
1158
|
-
/**
|
|
1159
|
-
* Sets the y-axis scrollbar configuration.
|
|
1160
|
-
* @param {WebChartAxisScrollBar} scrollbar The y-axis scrollbar configuration.
|
|
1161
|
-
*/
|
|
1162
|
-
setYAxisScrollbar(e) {
|
|
1163
|
-
Si(this._config, e), this.emitConfigUpdate("setYAxisScrollbar");
|
|
1164
|
-
}
|
|
1165
|
-
/**
|
|
1166
|
-
* Gets the y-axis title text symbol. Contains styling information such as font, color, and symbol style.
|
|
1167
|
-
* @returns {WebChartTextSymbol | undefined}
|
|
1168
|
-
*/
|
|
1169
|
-
getYAxisTitleSymbol() {
|
|
1170
|
-
return ri(this._config);
|
|
1171
|
-
}
|
|
1172
|
-
/**
|
|
1173
|
-
* Sets the y-axis title text symbol. Contains styling information such as font, color, and symbol style.
|
|
1174
|
-
* @param {WebChartTextSymbol | undefined} titleSymbol The y-axis title text symbol.
|
|
1175
|
-
*/
|
|
1176
|
-
setYAxisTitleSymbol(e) {
|
|
1177
|
-
oi(e, this._config), this.emitConfigUpdate("setYAxisTitleSymbol");
|
|
1178
|
-
}
|
|
1179
|
-
/**
|
|
1180
|
-
* Gets the horizontal axis labels behavior for the chart.
|
|
1181
|
-
* @returns {WebChartLabelBehavior}
|
|
1182
|
-
*/
|
|
1183
|
-
getHorizontalAxisLabelsBehavior() {
|
|
1184
|
-
return Di(this._config);
|
|
1185
|
-
}
|
|
1186
|
-
/**
|
|
1187
|
-
* Sets the horizontal axis labels behavior for the chart.
|
|
1188
|
-
* @param horizontalBehavior The behavior for the horizontal axis labels.
|
|
1189
|
-
*/
|
|
1190
|
-
setHorizontalAxisLabelsBehavior(e) {
|
|
1191
|
-
Ni(e, this._config), this.emitConfigUpdate("setHorizontalAxisLabelsBehavior");
|
|
1192
|
-
}
|
|
1193
|
-
/**
|
|
1194
|
-
* Gets the vertical axis labels behavior for the chart.
|
|
1195
|
-
* @returns {WebChartLabelBehavior}
|
|
1196
|
-
*/
|
|
1197
|
-
getVerticalAxisLabelsBehavior() {
|
|
1198
|
-
return Gi(this._config);
|
|
1199
|
-
}
|
|
1200
|
-
/**
|
|
1201
|
-
* Sets the vertical axis labels behavior for the chart.
|
|
1202
|
-
* @param verticalBehavior The behavior for the vertical axis labels.
|
|
1203
|
-
*/
|
|
1204
|
-
setVerticalAxisLabelsBehavior(e) {
|
|
1205
|
-
Ii(e, this._config), this.emitConfigUpdate("setVerticalAxisLabelsBehavior");
|
|
1206
|
-
}
|
|
1207
|
-
/**
|
|
1208
|
-
* Gets the grid lines symbol. Contains styling information such as line width, line style, and line color.
|
|
1209
|
-
* @returns {ISimpleLineSymbol | undefined}
|
|
1210
|
-
*/
|
|
1211
|
-
getGridLinesSymbol() {
|
|
1212
|
-
return ui(this._config);
|
|
1213
|
-
}
|
|
1214
|
-
/**
|
|
1215
|
-
* Sets the grid lines symbol. Contains styling information such as line width, line style, and line color.
|
|
1216
|
-
* @param {ISimpleLineSymbol | undefined} linesSymbol The grid lines symbol.
|
|
1217
|
-
*/
|
|
1218
|
-
setGridLinesSymbol(e) {
|
|
1219
|
-
gi(e, this._config), this.emitConfigUpdate("setGridLinesSymbol");
|
|
1220
|
-
}
|
|
1221
|
-
/**
|
|
1222
|
-
* Gets the display zero line setting for the specified axis.
|
|
1223
|
-
* @param axisIndex The index of the axis to get the display zero line for.
|
|
1224
|
-
* @returns {boolean}
|
|
1225
|
-
* @remarks
|
|
1226
|
-
* a. This setting is only applicable to the axis of type ValueAxis.
|
|
1227
|
-
* b. To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1228
|
-
* c. If the displayZeroLine is not set on the axis, the default value of `false` will be returned.
|
|
1229
|
-
*/
|
|
1230
|
-
getDisplayZeroLine(e) {
|
|
1231
|
-
return Ci(this._config, e);
|
|
1232
|
-
}
|
|
1233
|
-
/**
|
|
1234
|
-
* Sets the display zero line setting for the specified axis.
|
|
1235
|
-
* @param displayZeroLine The display zero line setting for the axis.
|
|
1236
|
-
* @param axisIndex The index of the axis to set the display zero line for.
|
|
1237
|
-
* @remarks
|
|
1238
|
-
* a. This setting is only applicable to the axis of type ValueAxis.
|
|
1239
|
-
* b. To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1240
|
-
*/
|
|
1241
|
-
setDisplayZeroLine(e, i) {
|
|
1242
|
-
Ti(this._config, e, i), this.emitConfigUpdate("setDisplayZeroLine");
|
|
1243
|
-
}
|
|
1244
|
-
/**
|
|
1245
|
-
* Gets the display cursor tooltip setting for the specified axis.
|
|
1246
|
-
* @param axisIndex The index of the axis to get the display cursor tooltip for.
|
|
1247
|
-
* @returns {boolean}
|
|
1248
|
-
* @remarks
|
|
1249
|
-
* a. To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1250
|
-
* b. If the displayCursorTooltip is not set on the axis, the default value of `false` will be returned.
|
|
1251
|
-
*/
|
|
1252
|
-
getDisplayCursorTooltip(e) {
|
|
1253
|
-
return Ai(this._config, e);
|
|
1254
|
-
}
|
|
1255
|
-
/**
|
|
1256
|
-
* Sets the display cursor tooltip setting for the specified axis.
|
|
1257
|
-
* @param displayCursorTooltip The display cursor tooltip setting for the axis.
|
|
1258
|
-
* @param axisIndex The index of the axis to set the display cursor tooltip for.
|
|
1259
|
-
* @remarks
|
|
1260
|
-
* a. To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1261
|
-
*/
|
|
1262
|
-
setDisplayCursorTooltip(e, i) {
|
|
1263
|
-
Fi(this._config, e, i), this.emitConfigUpdate("setDisplayCursorTooltip");
|
|
1264
|
-
}
|
|
1265
|
-
/**
|
|
1266
|
-
* Gets the buffer setting for the specified axis.
|
|
1267
|
-
* @param axisIndex The index of the axis
|
|
1268
|
-
* @returns {boolean}
|
|
1269
|
-
* @remarks
|
|
1270
|
-
* a. This setting is only applicable to the axis of type ValueAxis.
|
|
1271
|
-
* b. To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1272
|
-
* c. If the `buffer` is not set on the axis, the default value of `false` will be returned.
|
|
1273
|
-
*/
|
|
1274
|
-
getBuffer(e) {
|
|
1275
|
-
return vi(this._config, e);
|
|
1276
|
-
}
|
|
1277
|
-
/**
|
|
1278
|
-
* Sets the buffer for the specified axis.
|
|
1279
|
-
* @param buffer The setting for the buffer
|
|
1280
|
-
* @param axisIndex The index of the axis
|
|
1281
|
-
* @remarks
|
|
1282
|
-
* a. This setting is only applicable to the axis of type ValueAxis.
|
|
1283
|
-
* b. To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1284
|
-
*/
|
|
1285
|
-
setBuffer(e, i) {
|
|
1286
|
-
Li(this._config, e, i), this.emitConfigUpdate("setBuffer");
|
|
1287
|
-
}
|
|
1288
|
-
/**
|
|
1289
|
-
* Gets the tick spacing setting for the specified axis.
|
|
1290
|
-
* @param axisIndex The index of the axis
|
|
1291
|
-
* @returns {number}
|
|
1292
|
-
* @remarks
|
|
1293
|
-
* a. To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1294
|
-
*/
|
|
1295
|
-
getTickSpacing(e) {
|
|
1296
|
-
return Bi(this._config, e);
|
|
1297
|
-
}
|
|
1298
|
-
/**
|
|
1299
|
-
* Sets the tick spacing for the specified axis.
|
|
1300
|
-
* @param tickSpacing The value to set for the tick spacing
|
|
1301
|
-
* @param axisIndex The index of the axis
|
|
1302
|
-
* @remarks
|
|
1303
|
-
* a. To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1304
|
-
*/
|
|
1305
|
-
setTickSpacing(e, i) {
|
|
1306
|
-
_i(this._config, e, i), this.emitConfigUpdate("setTickSpacing");
|
|
1307
|
-
}
|
|
1308
|
-
/**
|
|
1309
|
-
* Gets the integer only values setting for the specified axis.
|
|
1310
|
-
* @param axisIndex The index of the axis
|
|
1311
|
-
* @returns {boolean}
|
|
1312
|
-
* @remarks
|
|
1313
|
-
* a. This setting is only applicable to the axis of type ValueAxis.
|
|
1314
|
-
* b. To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1315
|
-
* c. If the `integerOnlyValues` is not set on the axis, the default value of `false` will be returned.
|
|
1316
|
-
*/
|
|
1317
|
-
getIntegerOnlyValues(e) {
|
|
1318
|
-
return wi(this._config, e);
|
|
1319
|
-
}
|
|
1320
|
-
/**
|
|
1321
|
-
* Sets the integer only values setting for the specified axis.
|
|
1322
|
-
* @param integerOnlyValues The boolean value to set for the integer only values setting
|
|
1323
|
-
* @param axisIndex The index of the axis
|
|
1324
|
-
* @remarks
|
|
1325
|
-
* a. This setting is only applicable to the axis of type ValueAxis.
|
|
1326
|
-
* b. To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1327
|
-
*/
|
|
1328
|
-
setIntegerOnlyValues(e, i) {
|
|
1329
|
-
Vi(this._config, e, i), this.emitConfigUpdate("setIntegerOnlyValues");
|
|
1330
|
-
}
|
|
1331
|
-
/**
|
|
1332
|
-
* Gets the visibility of the horizontal line of the cursor's crosshair.
|
|
1333
|
-
* @returns {boolean}
|
|
1334
|
-
* @remarks if the cursor crosshair or its horizontal line visibility is not set, the default value of `false` will be returned.
|
|
1335
|
-
*/
|
|
1336
|
-
getCursorCrosshairHorizontalLineVisibility() {
|
|
1337
|
-
return Oi(this._config);
|
|
1338
|
-
}
|
|
1339
|
-
/**
|
|
1340
|
-
* Sets the visibility of the horizontal line of the cursor's crosshair.
|
|
1341
|
-
* @param visibility The visibility to set for the cursor's crosshair horizontal line
|
|
1342
|
-
* @remarks if the cursor crosshair is not set, it will be created with the default values.
|
|
1343
|
-
*/
|
|
1344
|
-
setCursorCrosshairHorizontalLineVisibility(e) {
|
|
1345
|
-
Xi(e, this._config), this.emitConfigUpdate("setCursorCrosshairHorizontalLineVisibility");
|
|
1346
|
-
}
|
|
1347
|
-
/**
|
|
1348
|
-
* Gets the visibility of the vertical line of the cursor's crosshair.
|
|
1349
|
-
* @returns {boolean}
|
|
1350
|
-
* @remarks if the cursor crosshair or its vertical line visibility is not set, the default value of `false` will be returned.
|
|
1351
|
-
*/
|
|
1352
|
-
getCursorCrosshairVerticalLineVisibility() {
|
|
1353
|
-
return Yi(this._config);
|
|
1354
|
-
}
|
|
1355
|
-
/**
|
|
1356
|
-
* Sets the visibility of the vertical line of the cursor's crosshair.
|
|
1357
|
-
* @param visibility The visibility to set for the cursor's crosshair vertical line
|
|
1358
|
-
* @remarks if the cursor crosshair is not set, it will be created with the default values.
|
|
1359
|
-
*/
|
|
1360
|
-
setCursorCrosshairVerticalLineVisibility(e) {
|
|
1361
|
-
qi(e, this._config), this.emitConfigUpdate("setCursorCrosshairVerticalLineVisibility");
|
|
1362
|
-
}
|
|
1363
|
-
/**
|
|
1364
|
-
* Gets the style of the cursor's crosshair from the chart config.
|
|
1365
|
-
* @param config The chart configuration
|
|
1366
|
-
* @returns {boolean}
|
|
1367
|
-
*/
|
|
1368
|
-
getCursorCrosshairStyle() {
|
|
1369
|
-
return Mi(this._config);
|
|
1370
|
-
}
|
|
1371
|
-
/**
|
|
1372
|
-
* Sets the style of the cursor's crosshair in the chart config.
|
|
1373
|
-
* @param style The style to set for the cursor's crosshair
|
|
1374
|
-
* @param config The chart configuration
|
|
1375
|
-
*/
|
|
1376
|
-
setCursorCrosshairStyle(e) {
|
|
1377
|
-
Ei(e, this._config), this.emitConfigUpdate("setCursorCrosshairStyle");
|
|
1378
|
-
}
|
|
1379
|
-
/**
|
|
1380
|
-
* Gets the cursor crosshair from the chart config.
|
|
1381
|
-
* @param config The chart configuration object
|
|
1382
|
-
* @returns {WebChartCursorCrosshair | undefined}
|
|
1383
|
-
*/
|
|
1384
|
-
getCursorCrosshair() {
|
|
1385
|
-
return Ri(this._config);
|
|
1386
|
-
}
|
|
1387
|
-
/**
|
|
1388
|
-
* Sets the cursor crosshair in the chart config.
|
|
1389
|
-
* @param cursorCrosshair The cursor crosshair to set
|
|
1390
|
-
* @param config The chart configuration object
|
|
1391
|
-
*/
|
|
1392
|
-
setCursorCrosshair(e) {
|
|
1393
|
-
zi(e, this._config), this.emitConfigUpdate("setCursorCrosshair");
|
|
1394
|
-
}
|
|
1395
|
-
}
|
|
1396
|
-
pe(ji, [Me]);
|
|
1397
|
-
const Pi = (t) => {
|
|
1398
|
-
for (const e of t.axes ?? [])
|
|
1399
|
-
for (const i of e?.guides ?? [])
|
|
1400
|
-
if (i.label !== void 0)
|
|
1401
|
-
return i.label;
|
|
1402
|
-
}, $i = (t, e) => {
|
|
1403
|
-
for (const i of e.axes ?? [])
|
|
1404
|
-
for (const s of i?.guides ?? []) {
|
|
1405
|
-
const a = s.label?.text ?? "";
|
|
1406
|
-
s.label = z(t), s.label !== void 0 && (s.label.text = a);
|
|
1407
|
-
}
|
|
1408
|
-
};
|
|
1409
|
-
function F(t) {
|
|
1410
|
-
return {
|
|
1411
|
-
...t,
|
|
1412
|
-
axis: t.orientation === R.X ? t.config.axes?.[0] : t.config.axes?.[1],
|
|
1413
|
-
index: t.index ?? 0,
|
|
1414
|
-
orientation: t.orientation ?? R.Y
|
|
1415
|
-
};
|
|
1416
|
-
}
|
|
1417
|
-
const Wi = (t) => {
|
|
1418
|
-
const { axis: e, index: i } = F(t);
|
|
1419
|
-
return e?.guides?.[i]?.visible ?? !0;
|
|
1420
|
-
}, Ki = (t) => {
|
|
1421
|
-
const { visible: e, axis: i, index: s } = F(t);
|
|
1422
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].visible = e);
|
|
1423
|
-
}, Ee = (t) => {
|
|
1424
|
-
const e = gt(t.start, t.end);
|
|
1425
|
-
Tt(t.style) && e === H.SFS ? t.style = { type: H.SFS, color: t.style.color } : At(t.style) && e === H.SLS && (t.style = { type: H.SLS, color: t.style.color });
|
|
1426
|
-
}, Hi = (t) => {
|
|
1427
|
-
const { axis: e, index: i } = F(t);
|
|
1428
|
-
return e?.guides?.[i]?.start ?? null;
|
|
1429
|
-
}, Zi = (t) => {
|
|
1430
|
-
const { start: e, axis: i, index: s } = F(t);
|
|
1431
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].start = e, Ee(i.guides[s]));
|
|
1432
|
-
}, Ji = (t) => {
|
|
1433
|
-
const { axis: e, index: i } = F(t);
|
|
1434
|
-
return e?.guides?.[i]?.end;
|
|
1435
|
-
}, Qi = (t) => {
|
|
1436
|
-
const { end: e, axis: i, index: s } = F(t);
|
|
1437
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].end = e, Ee(i.guides[s]));
|
|
1438
|
-
}, es = (t) => {
|
|
1439
|
-
const { axis: e, index: i } = F(t);
|
|
1440
|
-
return e?.guides?.[i]?.name;
|
|
1441
|
-
}, ts = (t) => {
|
|
1442
|
-
const { name: e, axis: i, index: s } = F(t);
|
|
1443
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].name = e);
|
|
1444
|
-
}, is = (t) => {
|
|
1445
|
-
const { axis: e, index: i } = F(t);
|
|
1446
|
-
return e?.guides?.[i]?.label?.text;
|
|
1447
|
-
}, ss = (t) => {
|
|
1448
|
-
const { labelText: e, axis: i, index: s } = F(t), a = i?.guides?.[s]?.label ?? ut(e, L(b.GuideLabel), b.GuideLabel);
|
|
1449
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].label = { ...a, text: e });
|
|
1450
|
-
}, as = (t) => {
|
|
1451
|
-
const { axis: e, index: i } = F(t);
|
|
1452
|
-
return e?.guides?.[i]?.above ?? !1;
|
|
1453
|
-
}, rs = (t) => {
|
|
1454
|
-
const { above: e, axis: i, index: s } = F(t);
|
|
1455
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].above = e);
|
|
1456
|
-
}, os = (t) => {
|
|
1457
|
-
const { axis: e, index: i } = F(t);
|
|
1458
|
-
return e?.guides?.[i]?.style;
|
|
1459
|
-
}, ns = (t) => {
|
|
1460
|
-
const { style: e, axis: i, index: s } = F(t);
|
|
1461
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].style = e);
|
|
1462
|
-
}, Re = (t) => {
|
|
1463
|
-
const { config: e, name: i, index: s, orientation: a } = t, r = a === R.X ? e.axes?.[0] : e.axes?.[1];
|
|
1464
|
-
if (r !== void 0) {
|
|
1465
|
-
r.guides = r.guides ?? [];
|
|
1466
|
-
const n = {
|
|
1467
|
-
type: A.Guide,
|
|
1468
|
-
name: i,
|
|
1469
|
-
start: r.valueFormat.type === A.DateAxisFormat ? "" : 0,
|
|
1470
|
-
style: Be()
|
|
1471
|
-
};
|
|
1472
|
-
s !== void 0 && s < r.guides.length ? r.guides.splice(s, 0, n) : r.guides.push(n);
|
|
1473
|
-
}
|
|
1474
|
-
}, ze = (t) => {
|
|
1475
|
-
const { config: e, index: i, orientation: s } = t, a = s === R.X ? e.axes?.[0] : e.axes?.[1];
|
|
1476
|
-
a?.guides !== void 0 && (i !== void 0 && i < a.guides.length ? a.guides.splice(i, 1) : a.guides.pop());
|
|
1477
|
-
}, ls = (t) => {
|
|
1478
|
-
const { axis: e, index: i } = F(t);
|
|
1479
|
-
return e?.guides?.[i]?.tooltipReverseColor ?? !1;
|
|
1480
|
-
}, cs = (t) => {
|
|
1481
|
-
const { reverseColor: e, axis: i, index: s } = F(t);
|
|
1482
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].tooltipReverseColor = e);
|
|
1483
|
-
};
|
|
1484
|
-
class se extends ke {
|
|
1485
|
-
/**
|
|
1486
|
-
* Gets the guide labels text symbol. Contains styling information such as font, color, and symbol style.
|
|
1487
|
-
* @returns {WebChartTextSymbol | undefined}
|
|
1488
|
-
*/
|
|
1489
|
-
getGuideLabelsSymbol() {
|
|
1490
|
-
return Pi(this._config);
|
|
1491
|
-
}
|
|
1492
|
-
/**
|
|
1493
|
-
* Sets the guide labels text symbol. Contains styling information such as font, color, and symbol style.
|
|
1494
|
-
* @param {WebChartTextSymbol | undefined} newGuideLabelsSymbol
|
|
1495
|
-
*/
|
|
1496
|
-
setGuideLabelsSymbol(e) {
|
|
1497
|
-
$i(e, this._config), this.emitConfigUpdate("setGuideLabels");
|
|
1498
|
-
}
|
|
1499
|
-
/**
|
|
1500
|
-
* Gets whether a guide is visible.
|
|
1501
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1502
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1503
|
-
* @returns {boolean}
|
|
1504
|
-
*/
|
|
1505
|
-
getGuideVisibility(e, i) {
|
|
1506
|
-
return Wi({ config: this._config, index: e, orientation: i });
|
|
1507
|
-
}
|
|
1508
|
-
/**
|
|
1509
|
-
* Sets whether a guide is visible
|
|
1510
|
-
* @param {boolean} visible New visibility to set.
|
|
1511
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1512
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1513
|
-
*/
|
|
1514
|
-
setGuideVisibility(e, i, s) {
|
|
1515
|
-
Ki({ visible: e, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideVisibility");
|
|
1516
|
-
}
|
|
1517
|
-
/**
|
|
1518
|
-
* Gets the start value of a guide.
|
|
1519
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1520
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1521
|
-
* @returns {Date | number | string | null}
|
|
1522
|
-
*/
|
|
1523
|
-
getGuideStart(e, i) {
|
|
1524
|
-
return Hi({ config: this._config, index: e, orientation: i });
|
|
1525
|
-
}
|
|
1526
|
-
/**
|
|
1527
|
-
* Sets the start value of a guide.
|
|
1528
|
-
* @param {Date | number | string | null} start New start value to set.
|
|
1529
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1530
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1531
|
-
*/
|
|
1532
|
-
setGuideStart(e, i, s) {
|
|
1533
|
-
Zi({ start: e, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideStart");
|
|
1534
|
-
}
|
|
1535
|
-
/**
|
|
1536
|
-
* Gets the end value of a guide.
|
|
1537
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1538
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1539
|
-
* @returns {Date | number | string | null}
|
|
1540
|
-
*/
|
|
1541
|
-
getGuideEnd(e, i) {
|
|
1542
|
-
return Ji({ config: this._config, index: e, orientation: i });
|
|
1543
|
-
}
|
|
1544
|
-
/**
|
|
1545
|
-
* Sets the end value of a guide.
|
|
1546
|
-
* @param {Date | number | string | null | undefined} end New end value to set.
|
|
1547
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1548
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1549
|
-
*/
|
|
1550
|
-
setGuideEnd(e, i, s) {
|
|
1551
|
-
Qi({ end: e, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideEnd");
|
|
1552
|
-
}
|
|
1553
|
-
/**
|
|
1554
|
-
* Gets the name of a guide.
|
|
1555
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1556
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1557
|
-
* @returns {string | undefined}
|
|
1558
|
-
*/
|
|
1559
|
-
getGuideName(e, i) {
|
|
1560
|
-
return es({ config: this._config, index: e, orientation: i });
|
|
1561
|
-
}
|
|
1562
|
-
/**
|
|
1563
|
-
* Sets the name of a guide.
|
|
1564
|
-
* @param {string} name New name to set.
|
|
1565
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1566
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1567
|
-
*/
|
|
1568
|
-
setGuideName(e, i, s) {
|
|
1569
|
-
ts({ name: e, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideName");
|
|
1570
|
-
}
|
|
1571
|
-
/**
|
|
1572
|
-
* Gets the guide label text.
|
|
1573
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1574
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1575
|
-
* @returns {string | undefined}
|
|
1576
|
-
*/
|
|
1577
|
-
getGuideLabelText(e, i) {
|
|
1578
|
-
return is({ config: this._config, index: e, orientation: i });
|
|
1579
|
-
}
|
|
1580
|
-
/**
|
|
1581
|
-
* Sets the guide label text.
|
|
1582
|
-
* @param {string} labelText New label text to set.
|
|
1583
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1584
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1585
|
-
*/
|
|
1586
|
-
setGuideLabelText(e, i, s) {
|
|
1587
|
-
ss({ labelText: e, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideLabelText");
|
|
1588
|
-
}
|
|
1589
|
-
/**
|
|
1590
|
-
* Gets whether the guide should be rendered above the other chart elements.
|
|
1591
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1592
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1593
|
-
* @returns {boolean}
|
|
1594
|
-
*/
|
|
1595
|
-
getGuideAbove(e, i) {
|
|
1596
|
-
return as({ config: this._config, index: e, orientation: i });
|
|
1597
|
-
}
|
|
1598
|
-
/**
|
|
1599
|
-
* Sets whether the guide should be rendered above the other chart elements.
|
|
1600
|
-
* @param {boolean} above New above boolean to set.
|
|
1601
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1602
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1603
|
-
*/
|
|
1604
|
-
setGuideAbove(e, i, s) {
|
|
1605
|
-
rs({ above: e, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideAbove");
|
|
1606
|
-
}
|
|
1607
|
-
/**
|
|
1608
|
-
* Gets the guide style.
|
|
1609
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1610
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1611
|
-
* @returns {ISimpleFillSymbol | ISimpleLineSymbol | undefined}
|
|
1612
|
-
*/
|
|
1613
|
-
getGuideStyle(e, i) {
|
|
1614
|
-
return os({ config: this._config, index: e, orientation: i });
|
|
1615
|
-
}
|
|
1616
|
-
/**
|
|
1617
|
-
* Sets the guide style.
|
|
1618
|
-
* @param {ISimpleFillSymbol | ISimpleLineSymbol} style New style to set.
|
|
1619
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1620
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1621
|
-
*/
|
|
1622
|
-
setGuideStyle(e, i, s) {
|
|
1623
|
-
ns({ style: e, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideStyle");
|
|
1624
|
-
}
|
|
1625
|
-
/**
|
|
1626
|
-
* Gets whether the tooltip text color should be reversed for a guide.
|
|
1627
|
-
* @param index - The index of the guide in the list of guides for the given axis orientation.
|
|
1628
|
-
* @param orientation - The axis orientation of the guide.
|
|
1629
|
-
* @returns {boolean}
|
|
1630
|
-
*/
|
|
1631
|
-
getTooltipReverseColor(e, i) {
|
|
1632
|
-
return ls({ config: this._config, index: e, orientation: i });
|
|
1633
|
-
}
|
|
1634
|
-
/**
|
|
1635
|
-
* Sets whether the tooltip text color should be reversed for a guide.
|
|
1636
|
-
* @param reverseColor - New reverseColor boolean to set.
|
|
1637
|
-
* @param index - The index of the guide in the list of guides for the given axis orientation.
|
|
1638
|
-
* @param orientation - The axis orientation of the guide.
|
|
1639
|
-
*/
|
|
1640
|
-
setTooltipReverseColor(e, i, s) {
|
|
1641
|
-
cs({ reverseColor: e, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setTooltipReverseColor");
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
class ds extends se {
|
|
1645
|
-
// ---------------------------------------------------------------------------------------------
|
|
1646
|
-
// Guides Methods
|
|
1647
|
-
// ---------------------------------------------------------------------------------------------
|
|
1648
|
-
/**
|
|
1649
|
-
* Gets the number guides in the X-axis guides list.
|
|
1650
|
-
* @returns {number | undefined} The number of X-axis guides.
|
|
1651
|
-
*/
|
|
1652
|
-
getXGuidesLength() {
|
|
1653
|
-
return this._config.axes?.[0]?.guides?.length;
|
|
1654
|
-
}
|
|
1655
|
-
/**
|
|
1656
|
-
* Adds an X-axis guide.
|
|
1657
|
-
* @param {string} name The name of the guide.
|
|
1658
|
-
* @param {number} [index] The index to insert the new guide in the list of X-axis guides. If left `undefined`, the guide is appended to the end of the list.
|
|
1659
|
-
*/
|
|
1660
|
-
addXAxisGuide(e, i) {
|
|
1661
|
-
Re({
|
|
1662
|
-
config: this._config,
|
|
1663
|
-
name: e,
|
|
1664
|
-
index: i,
|
|
1665
|
-
orientation: R.X
|
|
1666
|
-
}), this.emitConfigUpdate("addXAxisGuide");
|
|
1667
|
-
}
|
|
1668
|
-
/**
|
|
1669
|
-
* Deletes an X-axis guide.
|
|
1670
|
-
* @param {number} [index] The index of the guide to delete in the list of X-axis guides. If left `undefined`, the last guide in the list is deleted.
|
|
1671
|
-
*/
|
|
1672
|
-
deleteXAxisGuide(e) {
|
|
1673
|
-
ze({
|
|
1674
|
-
config: this._config,
|
|
1675
|
-
index: e,
|
|
1676
|
-
orientation: R.X
|
|
1677
|
-
}), this.emitConfigUpdate("deleteXAxisGuide");
|
|
1678
|
-
}
|
|
1679
|
-
}
|
|
1680
|
-
pe(ds, [se]);
|
|
1681
|
-
class us extends se {
|
|
1682
|
-
/**
|
|
1683
|
-
* Gets the number guides in the Y-axis guides list.
|
|
1684
|
-
* @returns {number | undefined} The number of Y-axis guides.
|
|
1685
|
-
*/
|
|
1686
|
-
getYGuidesLength() {
|
|
1687
|
-
return this._config.axes?.[1]?.guides?.length;
|
|
1688
|
-
}
|
|
1689
|
-
/**
|
|
1690
|
-
* Adds a Y-axis guide.
|
|
1691
|
-
* @param {string} name The name of the guide.
|
|
1692
|
-
* @param {number} [index] The index to insert the new guide in the list of Y-axis guides. If left `undefined`, the guide is appended to the end of the list.
|
|
1693
|
-
*/
|
|
1694
|
-
addYAxisGuide(e, i) {
|
|
1695
|
-
Re({
|
|
1696
|
-
config: this._config,
|
|
1697
|
-
name: e,
|
|
1698
|
-
index: i,
|
|
1699
|
-
orientation: R.Y
|
|
1700
|
-
}), this.emitConfigUpdate("addYAxisGuide");
|
|
1701
|
-
}
|
|
1702
|
-
/**
|
|
1703
|
-
* Deletes a Y-axis guide.
|
|
1704
|
-
* @param {number} [index] The index of the guide to delete in the list of Y-axis guides. If left `undefined`, the last guide in the list is deleted.
|
|
1705
|
-
*/
|
|
1706
|
-
deleteYAxisGuide(e) {
|
|
1707
|
-
ze({
|
|
1708
|
-
config: this._config,
|
|
1709
|
-
index: e,
|
|
1710
|
-
orientation: R.Y
|
|
1711
|
-
}), this.emitConfigUpdate("deleteYAxisGuide");
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1714
|
-
pe(us, [se]);
|
|
1715
|
-
const gs = (t) => {
|
|
1716
|
-
let e;
|
|
1717
|
-
const i = t.series[0];
|
|
1718
|
-
return X(i) && (e = i.temporalBinning?.size), e;
|
|
1719
|
-
}, ys = (t) => {
|
|
1720
|
-
let e;
|
|
1721
|
-
const i = t.series[0];
|
|
1722
|
-
return X(i) && (e = i.temporalBinning?.unit), e;
|
|
1723
|
-
}, fs = (t) => {
|
|
1724
|
-
let e;
|
|
1725
|
-
const i = t.series[0];
|
|
1726
|
-
return X(i) && (e = i.temporalBinning?.timeAggregationType), e;
|
|
1727
|
-
}, ms = (t) => {
|
|
1728
|
-
let e;
|
|
1729
|
-
const i = t.series[0];
|
|
1730
|
-
return X(i) && (e = i.temporalBinning?.trimIncompleteTimeInterval), e;
|
|
1731
|
-
}, hs = (t) => {
|
|
1732
|
-
let e;
|
|
1733
|
-
const i = t.series[0];
|
|
1734
|
-
return X(i) && (e = i.temporalBinning?.nullPolicy), e;
|
|
1735
|
-
}, je = (t, e) => {
|
|
1736
|
-
e?.series?.forEach((i) => {
|
|
1737
|
-
X(i) && (i.temporalBinning ??= { type: $.FixedDateBased }, i.temporalBinning.size = t);
|
|
1738
|
-
}), G(e, null), N(e, null);
|
|
1739
|
-
}, ps = (t, e) => {
|
|
1740
|
-
e?.series?.forEach((i) => {
|
|
1741
|
-
X(i) && (i.temporalBinning ??= { type: $.FixedDateBased }, i.temporalBinning.nullPolicy = t);
|
|
1742
|
-
}), G(e, null), N(e, null);
|
|
1743
|
-
}, Rs = (t, e) => {
|
|
1744
|
-
e.series?.forEach((i) => {
|
|
1745
|
-
X(i) && (i.temporalBinning ??= { type: $.FixedDateBased }, i.temporalBinning.unit = t);
|
|
1746
|
-
}), G(e, null), N(e, null);
|
|
1747
|
-
}, zs = (t, e) => {
|
|
1748
|
-
e.series?.forEach((i) => {
|
|
1749
|
-
X(i) && (i.temporalBinning ??= { type: $.FixedDateBased }, i.temporalBinning.timeAggregationType = t);
|
|
1750
|
-
}), G(e, null), N(e, null);
|
|
1751
|
-
}, js = (t, e) => {
|
|
1752
|
-
e.series?.forEach((i) => {
|
|
1753
|
-
X(i) && (i.temporalBinning ??= { type: $.FixedDateBased }, i.temporalBinning.trimIncompleteTimeInterval = t);
|
|
1754
|
-
}), G(e, null), N(e, null);
|
|
1755
|
-
}, Ps = (t) => {
|
|
1756
|
-
je(0, t);
|
|
1757
|
-
}, bs = (t) => {
|
|
1758
|
-
let e = x.xAxisAsc;
|
|
1759
|
-
const i = t.orderOptions?.data?.orderType ?? k.Category, s = t.orderOptions?.data?.orderBy ?? I.Ascending;
|
|
1760
|
-
return i === k.Category && Array.isArray(s) ? e = x.customSort : i === k.Category ? s === I.Ascending ? e = x.xAxisAsc : e = x.xAxisDesc : s === I.Ascending ? e = x.yAxisAsc : e = x.yAxisDesc, e;
|
|
1761
|
-
}, xs = (t) => {
|
|
1762
|
-
const e = ue(t.series);
|
|
1763
|
-
let i = !1;
|
|
1764
|
-
return (e === A.BarSeries || e === A.LineSeries) && (i = bs(t) === x.customSort), i;
|
|
1765
|
-
}, $s = (t) => {
|
|
1766
|
-
let e = [];
|
|
1767
|
-
const i = t.orderOptions?.data?.orderType;
|
|
1768
|
-
return xs(t) && i === k.Category && (e = t.orderOptions?.data?.orderBy), e;
|
|
1769
|
-
}, Ws = (t, e, i) => {
|
|
1770
|
-
let s = k.Category, a = I.Ascending;
|
|
1771
|
-
const r = ue(e.series);
|
|
1772
|
-
e.orderOptions ??= {}, t === x.customSort && i !== void 0 ? (a = [...i], e.orderOptions.data = {
|
|
1773
|
-
orderType: s,
|
|
1774
|
-
orderBy: a
|
|
1775
|
-
}) : (r === A.BarSeries || r === A.LineSeries) && (s = t === x.xAxisAsc || t === x.xAxisDesc ? k.Category : k.YValue, a = t === x.xAxisAsc || t === x.yAxisAsc ? I.Ascending : I.Descending, e.orderOptions.data = {
|
|
1776
|
-
orderType: s,
|
|
1777
|
-
orderBy: a
|
|
1778
|
-
});
|
|
1779
|
-
}, K = (t) => t?.series?.[0]?.x ?? "";
|
|
1780
|
-
async function Q(t) {
|
|
1781
|
-
const { seriesIndex: e, config: i, layerInfo: s } = t, { objectIdField: a } = s ?? {};
|
|
1782
|
-
let r;
|
|
1783
|
-
const n = i.series[e ?? 0];
|
|
1784
|
-
let o = !1, l = !1;
|
|
1785
|
-
if (n === void 0) {
|
|
1786
|
-
const m = i.series;
|
|
1787
|
-
o = m.slice(0, e).every((g) => V(g)), l = m.slice(0, e).every((g) => U(g));
|
|
1788
|
-
} else
|
|
1789
|
-
o = V(n), l = U(n);
|
|
1790
|
-
o ? r = await pt({
|
|
1791
|
-
seriesIndex: e,
|
|
1792
|
-
objectIDField: a
|
|
1793
|
-
}) : l ? r = await bt({
|
|
1794
|
-
seriesIndex: e,
|
|
1795
|
-
objectIDField: a
|
|
1796
|
-
}) : r = await xt({
|
|
1797
|
-
seriesIndex: e,
|
|
1798
|
-
objectIDField: a
|
|
1799
|
-
});
|
|
1800
|
-
const f = K(i), d = i.series[0]?.dataLabels?.visible ?? !1, c = {
|
|
1801
|
-
...r,
|
|
1802
|
-
x: f,
|
|
1803
|
-
y: "",
|
|
1804
|
-
dataLabels: {
|
|
1805
|
-
...r.dataLabels,
|
|
1806
|
-
type: r.dataLabels?.type ?? A.Text,
|
|
1807
|
-
content: r.dataLabels?.content ?? { type: H.TS },
|
|
1808
|
-
visible: d
|
|
1809
|
-
}
|
|
1810
|
-
}, S = M(i);
|
|
1811
|
-
if (c.query = {
|
|
1812
|
-
groupByFieldsForStatistics: [f]
|
|
1813
|
-
}, S !== v.NoAggregation && a !== void 0) {
|
|
1814
|
-
const m = `${S}_${a}_0`.toUpperCase();
|
|
1815
|
-
c.y = m, c.query.outStatistics = [
|
|
1816
|
-
{
|
|
1817
|
-
statisticType: S,
|
|
1818
|
-
onStatisticField: a,
|
|
1819
|
-
outStatisticFieldName: m
|
|
1820
|
-
}
|
|
1821
|
-
];
|
|
1822
|
-
}
|
|
1823
|
-
if (V(c) || U(c)) {
|
|
1824
|
-
let m;
|
|
1825
|
-
if (i?.series?.[0] !== void 0 && (m = W(i.series)), m !== j.BarAndLineNoAggregation && m !== j.BarAndLineSplitByNoAggregation) {
|
|
1826
|
-
let g = ys(i);
|
|
1827
|
-
g === Je.Quarter && (g = Qe.Month), c.temporalBinning = {
|
|
1828
|
-
type: $.FixedDateBased,
|
|
1829
|
-
size: gs(i),
|
|
1830
|
-
unit: g,
|
|
1831
|
-
timeAggregationType: fs(i),
|
|
1832
|
-
trimIncompleteTimeInterval: ms(i),
|
|
1833
|
-
nullPolicy: hs(i)
|
|
1834
|
-
};
|
|
1835
|
-
}
|
|
1836
|
-
}
|
|
1837
|
-
return z(c);
|
|
1838
|
-
}
|
|
1839
|
-
async function ae(t, e) {
|
|
1840
|
-
const { layerFieldsInfo: i, objectIdField: s } = e, a = K(t), r = W(t.series), n = O(t), o = M(t), l = P(t), f = n.length === 0 || n.includes(s), d = await Le(o), c = f ? "" : n.map((p) => E(i ?? [], p)).join(", "), S = E(i ?? [], a), m = E(i ?? [], l), g = t.series.some((p) => D(p)), C = g ? "category" : "xAxisField", y = S;
|
|
1841
|
-
let h = "";
|
|
1842
|
-
const T = await ye();
|
|
1843
|
-
if (r === j.BarAndLineFromFields)
|
|
1844
|
-
h = q(T.titleLabels.aggrTypeOfAggrFields, {
|
|
1845
|
-
aggregationType: d,
|
|
1846
|
-
aggregationFields: c
|
|
1847
|
-
});
|
|
1848
|
-
else if (o === v.NoAggregation) {
|
|
1849
|
-
const p = f ? s : c;
|
|
1850
|
-
if (l === "") {
|
|
1851
|
-
const B = g ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
1852
|
-
h = q(T.titleLabels[B], {
|
|
1853
|
-
aggregationType: p,
|
|
1854
|
-
[C]: y
|
|
1855
|
-
});
|
|
1856
|
-
} else {
|
|
1857
|
-
const B = g ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
1858
|
-
h = q(T.titleLabels[B], {
|
|
1859
|
-
aggregationType: p,
|
|
1860
|
-
[C]: y,
|
|
1861
|
-
splitByField: m
|
|
1862
|
-
});
|
|
1863
|
-
}
|
|
1864
|
-
} else if (o === v.Count)
|
|
1865
|
-
if (l === "") {
|
|
1866
|
-
const p = g ? "aggrTypeCategory" : "aggrTypeXAxisField";
|
|
1867
|
-
h = q(T.titleLabels[p], {
|
|
1868
|
-
aggregationType: d,
|
|
1869
|
-
[C]: y
|
|
1870
|
-
});
|
|
1871
|
-
} else {
|
|
1872
|
-
const p = g ? "aggrTypeCategoryBySplitBy" : "aggrTypeXAxisFieldBySplitBy";
|
|
1873
|
-
h = q(T.titleLabels[p], {
|
|
1874
|
-
aggregationType: d,
|
|
1875
|
-
[C]: y,
|
|
1876
|
-
splitByField: m
|
|
1877
|
-
});
|
|
1878
|
-
}
|
|
1879
|
-
else if (l !== "") {
|
|
1880
|
-
const p = g ? "aggrTypeOfAggrFieldByCategoryBySplitByField" : "aggrTypeOfAggrFieldByXAxisFieldBySplitByField";
|
|
1881
|
-
h = q(T.titleLabels[p], {
|
|
1882
|
-
aggregationType: d,
|
|
1883
|
-
aggregationField: c,
|
|
1884
|
-
[C]: y,
|
|
1885
|
-
splitByField: m
|
|
1886
|
-
});
|
|
1887
|
-
} else if (n.length > 0) {
|
|
1888
|
-
const p = g ? "aggrTypeOfAggrFieldsByCategory" : "aggrTypeOfAggrFieldsByXAxisField";
|
|
1889
|
-
h = q(T.titleLabels[p], {
|
|
1890
|
-
aggregationType: d,
|
|
1891
|
-
aggregationFields: c,
|
|
1892
|
-
[C]: y
|
|
1893
|
-
});
|
|
1894
|
-
}
|
|
1895
|
-
return h;
|
|
1896
|
-
}
|
|
1897
|
-
const Pe = (t) => ne({
|
|
1898
|
-
where: t.query?.where,
|
|
1899
|
-
normalize: !1,
|
|
1900
|
-
escape: !1
|
|
1901
|
-
}) ?? "", M = (t) => t?.series?.[0]?.query?.outStatistics?.[0]?.statisticType ?? v.NoAggregation, Ks = async (t, e, i) => {
|
|
1902
|
-
const s = O(e), a = P(e);
|
|
1903
|
-
await xe({
|
|
1904
|
-
splitByField: a,
|
|
1905
|
-
numericFields: s,
|
|
1906
|
-
aggregationType: t,
|
|
1907
|
-
config: e,
|
|
1908
|
-
layerInfo: i
|
|
1909
|
-
});
|
|
1910
|
-
const r = await ee({
|
|
1911
|
-
config: e,
|
|
1912
|
-
layerInfo: i,
|
|
1913
|
-
numericFields: O(e),
|
|
1914
|
-
aggregationType: M(e)
|
|
1915
|
-
});
|
|
1916
|
-
J(e, 1, r), e.title && (e.title.content.text = await ae(e, i)), await G(e, null), await N(e, null), be(e, i);
|
|
1917
|
-
}, P = ve(
|
|
1918
|
-
(t) => {
|
|
1919
|
-
const e = t?.series?.[0]?.query?.where?.split("=")[0].trim() ?? "";
|
|
1920
|
-
return ht(t?.series?.[0]?.query?.where) ? "" : e;
|
|
1921
|
-
},
|
|
1922
|
-
(t) => t?.series?.[0]?.query?.where
|
|
1923
|
-
), Hs = async (t, e, i) => {
|
|
1924
|
-
const s = O(e), a = M(e);
|
|
1925
|
-
await xe({
|
|
1926
|
-
splitByField: t,
|
|
1927
|
-
numericFields: s,
|
|
1928
|
-
aggregationType: a,
|
|
1929
|
-
config: e,
|
|
1930
|
-
layerInfo: i
|
|
1931
|
-
});
|
|
1932
|
-
const r = await ee({
|
|
1933
|
-
config: e,
|
|
1934
|
-
layerInfo: i,
|
|
1935
|
-
numericFields: O(e),
|
|
1936
|
-
aggregationType: M(e)
|
|
1937
|
-
});
|
|
1938
|
-
J(e, 1, r), e.title && (e.title.content.text = await ae(e, i)), await G(e, null), await N(e, null);
|
|
1939
|
-
}, O = ve(
|
|
1940
|
-
// without memoizing, the worst case efficiency is O(series.length), best case is O(1)
|
|
1941
|
-
// with memoizing, the worst case efficiency for repeated calls becomes O(1)
|
|
1942
|
-
(t) => {
|
|
1943
|
-
let e = [];
|
|
1944
|
-
if (P(t) === "")
|
|
1945
|
-
e = t?.series.map((i) => {
|
|
1946
|
-
const s = i.query?.outStatistics?.map((a) => a.onStatisticField) ?? [];
|
|
1947
|
-
return s?.length > 0 ? s : i.y;
|
|
1948
|
-
}).flat() ?? [];
|
|
1949
|
-
else {
|
|
1950
|
-
const i = t?.series?.[0], s = i?.query?.outStatistics?.[0]?.onStatisticField ?? [i?.y].flat()[0];
|
|
1951
|
-
e = s !== void 0 ? [s] : [];
|
|
1952
|
-
}
|
|
1953
|
-
return [...new Set(e.filter((i) => i !== ""))];
|
|
1954
|
-
},
|
|
1955
|
-
// using series array address as key, since a change to the numeric fields will always rebuild a fresh series array
|
|
1956
|
-
(t) => t?.series
|
|
1957
|
-
), Ss = async (t, e, i) => {
|
|
1958
|
-
const { objectIdField: s } = i;
|
|
1959
|
-
let a = M(e);
|
|
1960
|
-
t.length === 0 ? (t.push(s), a = v.Count) : a === v.Count && t.length >= 1 && !t.includes(s) && (a = v.Sum);
|
|
1961
|
-
const r = P(e);
|
|
1962
|
-
await xe({
|
|
1963
|
-
splitByField: r,
|
|
1964
|
-
numericFields: t,
|
|
1965
|
-
aggregationType: a,
|
|
1966
|
-
config: e,
|
|
1967
|
-
layerInfo: i
|
|
1968
|
-
});
|
|
1969
|
-
const n = await ee({
|
|
1970
|
-
config: e,
|
|
1971
|
-
layerInfo: i,
|
|
1972
|
-
numericFields: O(e),
|
|
1973
|
-
aggregationType: M(e)
|
|
1974
|
-
});
|
|
1975
|
-
J(e, 1, n), e.title && (e.title.content.text = await ae(e, i)), await G(e, null), await N(e, null), be(e, i);
|
|
1976
|
-
}, Zs = async (t, e, i) => {
|
|
1977
|
-
const { layerFieldsInfo: s } = i ?? {}, a = e?.series?.length ?? 0, r = K(e);
|
|
1978
|
-
let n;
|
|
1979
|
-
const o = e.series.some((c) => D(c)), l = Ft(e.series), f = vt(e.series);
|
|
1980
|
-
if (s !== void 0) {
|
|
1981
|
-
const c = yt(s);
|
|
1982
|
-
!c.includes(r) && c.includes(t) ? n = ft() : c.includes(r) && !c.includes(t) && (o ? n = oe() : n = mt()), s.find((m) => m.name === t)?.type === Fe.String && (n = oe()), n !== void 0 && await Ie(e, n);
|
|
1983
|
-
}
|
|
1984
|
-
a === 0 && (e.series = [await Q({ config: e, layerInfo: i })]), e.series.forEach((c) => {
|
|
1985
|
-
c.x = t, c.query !== void 0 && (c.query.groupByFieldsForStatistics = [t]);
|
|
1986
|
-
});
|
|
1987
|
-
const d = E(s, t);
|
|
1988
|
-
if (J(e, 0, d), i !== void 0) {
|
|
1989
|
-
const c = await ee({
|
|
1990
|
-
config: e,
|
|
1991
|
-
layerInfo: i,
|
|
1992
|
-
numericFields: O(e),
|
|
1993
|
-
aggregationType: M(e)
|
|
1994
|
-
});
|
|
1995
|
-
J(e, 1, c), e.title && (e.title.content.text = await ae(e, i)), be(e, i);
|
|
1996
|
-
const S = O(e);
|
|
1997
|
-
await Ss(S, e, i);
|
|
1998
|
-
}
|
|
1999
|
-
if (await G(e, null), await N(e, null), l || f) {
|
|
2000
|
-
await me(e, null), await fe(e, null), je(0, e);
|
|
2001
|
-
const c = n?.type === A.DateAxisFormat ? Se.Null : Se.Interpolate;
|
|
2002
|
-
ps(c, e);
|
|
2003
|
-
}
|
|
2004
|
-
};
|
|
2005
|
-
function be(t, e) {
|
|
2006
|
-
let i = !1;
|
|
2007
|
-
const s = M(t), a = O(t);
|
|
2008
|
-
s === v.Count ? i = !0 : s === v.NoAggregation && (i = a.every((o) => {
|
|
2009
|
-
const l = e.layerFieldsInfo.find((f) => f.name === o);
|
|
2010
|
-
return l !== void 0 ? Ce(l) : !1;
|
|
2011
|
-
})), Te(t, 1, i);
|
|
2012
|
-
const r = t.series.some((o) => V(o)), n = t.series.some((o) => U(o));
|
|
2013
|
-
if (r || n) {
|
|
2014
|
-
const o = K(t), l = e.layerFieldsInfo.find((d) => d.name === o), f = l !== void 0 && Ce(l);
|
|
2015
|
-
Te(t, 0, f);
|
|
2016
|
-
}
|
|
2017
|
-
}
|
|
2018
|
-
const Cs = (t) => {
|
|
2019
|
-
let e = x.xAxisAsc;
|
|
2020
|
-
const i = t.orderOptions?.data?.orderType ?? k.Category, s = t.orderOptions?.data?.orderBy ?? I.Ascending;
|
|
2021
|
-
return i === k.Category && Array.isArray(s) ? e = x.customSort : i === k.Category ? s === I.Ascending ? e = x.xAxisAsc : e = x.xAxisDesc : s === I.Ascending ? e = x.yAxisAsc : e = x.yAxisDesc, e;
|
|
2022
|
-
};
|
|
2023
|
-
async function Ts(t) {
|
|
2024
|
-
const { numericFields: e, aggregationType: i, config: s, layerInfo: a } = t;
|
|
2025
|
-
let r = !1;
|
|
2026
|
-
const n = await Q({
|
|
2027
|
-
config: s,
|
|
2028
|
-
layerInfo: a,
|
|
2029
|
-
seriesIndex: 0
|
|
2030
|
-
}), o = await ye(), l = {
|
|
2031
|
-
...n,
|
|
2032
|
-
id: `series_${Date.now()}`,
|
|
2033
|
-
name: o.axisLabels.values,
|
|
2034
|
-
x: Z,
|
|
2035
|
-
y: et
|
|
2036
|
-
}, f = [];
|
|
2037
|
-
for (const c of e)
|
|
2038
|
-
f.push({
|
|
2039
|
-
onStatisticField: c,
|
|
2040
|
-
outStatisticFieldName: `${c}_0`.toUpperCase(),
|
|
2041
|
-
statisticType: i
|
|
2042
|
-
});
|
|
2043
|
-
l.query = { outStatistics: f };
|
|
2044
|
-
const d = s.series[0];
|
|
2045
|
-
return d !== void 0 && (l.id = d.id, s.colorMatch || (D(d) && D(l) ? l.fillSymbol = d.fillSymbol : (V(l) && V(d) || U(l) && U(d)) && (l.lineSymbol = d.lineSymbol, l.markerSymbol = d.markerSymbol), r = !0), l.id = d.id, d.name !== n.name && (l.name = d.name)), s.series.length === 1 && !s.colorMatch && (D(l) ? l.fillSymbol = s.series[0].fillSymbol : (V(l) || U(l)) && (l.lineSymbol = s.series[0].lineSymbol, l.markerSymbol = s.series[0].markerSymbol), r = !0), s.colorMatch = !r, [l];
|
|
2046
|
-
}
|
|
2047
|
-
async function $e(t) {
|
|
2048
|
-
const { numericFields: e, aggregationType: i, config: s, layerInfo: a } = t, { layerFieldsInfo: r, objectIdField: n } = a, o = [];
|
|
2049
|
-
let l = !1;
|
|
2050
|
-
const f = e.map((d, c) => `${i}_${d}_${c}`.toUpperCase());
|
|
2051
|
-
for (let d = 0; d < e.length; d += 1) {
|
|
2052
|
-
const c = await Q({
|
|
2053
|
-
config: s,
|
|
2054
|
-
layerInfo: a,
|
|
2055
|
-
seriesIndex: d
|
|
2056
|
-
}), S = f[d].toUpperCase(), m = e[d];
|
|
2057
|
-
let g = {
|
|
2058
|
-
...c,
|
|
2059
|
-
query: {
|
|
2060
|
-
...c.query
|
|
2061
|
-
}
|
|
2062
|
-
};
|
|
2063
|
-
m !== n && (g = {
|
|
2064
|
-
...g,
|
|
2065
|
-
id: m,
|
|
2066
|
-
name: E(r, m)
|
|
2067
|
-
});
|
|
2068
|
-
let C = m;
|
|
2069
|
-
g.query !== void 0 && (i !== v.NoAggregation ? (C = S, g.query.outStatistics = [
|
|
2070
|
-
{
|
|
2071
|
-
...c.query?.outStatistics?.[0] ?? {},
|
|
2072
|
-
onStatisticField: m,
|
|
2073
|
-
outStatisticFieldName: S,
|
|
2074
|
-
statisticType: i
|
|
2075
|
-
}
|
|
2076
|
-
]) : delete g.query.outStatistics), g.y = C;
|
|
2077
|
-
const y = s.series.find(
|
|
2078
|
-
(h) => h.query?.outStatistics?.[0]?.onStatisticField === m && h.query.where === void 0
|
|
2079
|
-
);
|
|
2080
|
-
if (y !== void 0 && typeof y.y == "string" && y.y.trim() !== "") {
|
|
2081
|
-
s.colorMatch || (D(g) && D(y) ? g.fillSymbol = y.fillSymbol : (V(g) && V(y) || U(g) && U(y)) && (g.lineSymbol = y.lineSymbol, g.markerSymbol = y.markerSymbol), l = !0);
|
|
2082
|
-
const h = await Q({
|
|
2083
|
-
config: s,
|
|
2084
|
-
layerInfo: a,
|
|
2085
|
-
seriesIndex: d
|
|
2086
|
-
});
|
|
2087
|
-
g.id = y.id, y.id !== h.id && y.name !== h.name && (g.id = y.id, g.name = y.name);
|
|
2088
|
-
}
|
|
2089
|
-
o.push(g);
|
|
2090
|
-
}
|
|
2091
|
-
return s.series.length === 1 && o.length === 1 && !s.colorMatch && (D(s.series[0]) && D(o[0]) ? o[0].fillSymbol = s.series[0].fillSymbol : (V(s.series[0]) && V(o[0]) || U(s.series[0]) && U(o[0])) && (o[0].lineSymbol = s.series[0].lineSymbol, o[0].markerSymbol = s.series[0].markerSymbol), l = !0), s.colorMatch = !l, o;
|
|
2092
|
-
}
|
|
2093
|
-
async function As(t) {
|
|
2094
|
-
const { splitByField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r } = t, { layer: n, layerFieldsInfo: o } = r, { fetchNullValues: l } = a?.series?.[0]?.query ?? {}, f = K(a), d = f !== Z ? f : void 0, { categoriesArray: c, fieldName: S, splitByFieldType: m, numericalField: g } = await Ui({
|
|
2095
|
-
config: a,
|
|
2096
|
-
layer: n,
|
|
2097
|
-
layerFieldsInfo: o,
|
|
2098
|
-
xAxisField: d,
|
|
2099
|
-
aggregationFields: i,
|
|
2100
|
-
aggregationType: s,
|
|
2101
|
-
splitByField: e,
|
|
2102
|
-
fetchNullValues: l
|
|
2103
|
-
});
|
|
2104
|
-
let C = [], y = !1;
|
|
2105
|
-
if (c.length === 0) {
|
|
2106
|
-
C = await $e({
|
|
2107
|
-
numericFields: i,
|
|
2108
|
-
aggregationType: s,
|
|
2109
|
-
config: a,
|
|
2110
|
-
layerInfo: r
|
|
2111
|
-
});
|
|
2112
|
-
for (const h of C)
|
|
2113
|
-
h.query && (h.query.where = `${e}=''`);
|
|
2114
|
-
} else
|
|
2115
|
-
for (let h = 0; h < c.length; h += 1) {
|
|
2116
|
-
const T = c[h], p = `${S}_${h}`.toUpperCase(), B = await Q({
|
|
2117
|
-
config: a,
|
|
2118
|
-
layerInfo: r,
|
|
2119
|
-
seriesIndex: h
|
|
2120
|
-
}), We = {
|
|
2121
|
-
fieldName: e,
|
|
2122
|
-
fieldValueToMatch: T ?? "",
|
|
2123
|
-
subtypeInfo: le(r.layer),
|
|
2124
|
-
fieldList: r.layerFieldsInfo
|
|
2125
|
-
}, Ke = ce(We), re = `${T}`, w = {
|
|
2126
|
-
...B,
|
|
2127
|
-
id: re,
|
|
2128
|
-
name: Ke ?? re,
|
|
2129
|
-
y: p,
|
|
2130
|
-
query: {
|
|
2131
|
-
...B.query,
|
|
2132
|
-
where: `${e}=${m === Fe.String && T !== null ? `'${T}'` : T}`,
|
|
2133
|
-
outStatistics: s !== v.NoAggregation ? [
|
|
2134
|
-
{
|
|
2135
|
-
...B.query?.outStatistics?.[0] ?? {},
|
|
2136
|
-
onStatisticField: g,
|
|
2137
|
-
outStatisticFieldName: p,
|
|
2138
|
-
statisticType: s
|
|
2139
|
-
}
|
|
2140
|
-
] : void 0
|
|
2141
|
-
}
|
|
2142
|
-
};
|
|
2143
|
-
s === v.NoAggregation && (w.query !== void 0 && (delete w.query.outStatistics, delete w.query.groupByFieldsForStatistics), w.y = g);
|
|
2144
|
-
const Y = a.series.find(
|
|
2145
|
-
(He) => String(Pe(He)).trim().replace(/'/gu, "") === re
|
|
2146
|
-
);
|
|
2147
|
-
Y !== void 0 && (a.colorMatch || (D(w) && D(Y) ? w.fillSymbol = Y.fillSymbol : (V(w) && V(Y) || U(w) && U(Y)) && (w.lineSymbol = Y.lineSymbol, w.markerSymbol = Y.markerSymbol), y = !0), w.id = Y.id, w.name = Y.name), C.push(w);
|
|
2148
|
-
}
|
|
2149
|
-
return a.colorMatch = !y, C;
|
|
2150
|
-
}
|
|
2151
|
-
const xe = async (t) => {
|
|
2152
|
-
const { splitByField: e, numericFields: i, aggregationType: s, config: a, layerInfo: r } = t, { x: n } = a.series[0], o = W(a.series);
|
|
2153
|
-
e === "" || i.length > 1 ? n === Z || n === void 0 || n.trim() === "" || o === j.BarAndLineFromFields ? a.series = await Ts({
|
|
2154
|
-
config: a,
|
|
2155
|
-
layerInfo: r,
|
|
2156
|
-
numericFields: i,
|
|
2157
|
-
aggregationType: s
|
|
2158
|
-
}) : a.series = await $e({
|
|
2159
|
-
config: a,
|
|
2160
|
-
layerInfo: r,
|
|
2161
|
-
numericFields: i,
|
|
2162
|
-
aggregationType: s
|
|
2163
|
-
}) : a.series = await As({
|
|
2164
|
-
config: a,
|
|
2165
|
-
layerInfo: r,
|
|
2166
|
-
splitByField: e,
|
|
2167
|
-
numericFields: i,
|
|
2168
|
-
aggregationType: s
|
|
2169
|
-
});
|
|
2170
|
-
}, Js = (t) => {
|
|
2171
|
-
const { config: e, seriesIndex: i, layerInfo: s, commonStrings: a } = t, r = e.series?.[i], n = P(e);
|
|
2172
|
-
let o;
|
|
2173
|
-
if (W(e.series) === j.BarAndLineFromFields)
|
|
2174
|
-
o = a.axisLabels.values;
|
|
2175
|
-
else if (tt(n)) {
|
|
2176
|
-
const d = r.query?.outStatistics?.[0]?.onStatisticField;
|
|
2177
|
-
d !== void 0 && d !== s.objectIdField && (o = E(s.layerFieldsInfo, d));
|
|
2178
|
-
} else
|
|
2179
|
-
o = String(Pe(r)).trim().replace(/'/gu, "");
|
|
2180
|
-
const f = {
|
|
2181
|
-
fieldName: P(e),
|
|
2182
|
-
fieldValueToMatch: o ?? "",
|
|
2183
|
-
subtypeInfo: le(s.layer),
|
|
2184
|
-
fieldList: s.layerFieldsInfo
|
|
2185
|
-
};
|
|
2186
|
-
return o = ce(f), o ?? r.id;
|
|
2187
|
-
}, Qs = (t, e) => {
|
|
2188
|
-
e.orderOptions ??= {};
|
|
2189
|
-
const i = e.orderOptions?.data?.orderType;
|
|
2190
|
-
Cs(e) === x.customSort && i === k.Category && (e.orderOptions.data = {
|
|
2191
|
-
orderType: k.Category,
|
|
2192
|
-
orderBy: [...t]
|
|
2193
|
-
});
|
|
2194
|
-
}, ea = (t) => t.dataFilters, ta = (t, e) => {
|
|
2195
|
-
t !== void 0 ? e.dataFilters = t : delete e.dataFilters;
|
|
2196
|
-
}, ia = async (t, e) => {
|
|
2197
|
-
const i = K(t), s = Ge(t)?.type, a = O(t), r = W(t.series);
|
|
2198
|
-
let n = [];
|
|
2199
|
-
return s === A.CategoryAxisFormat && (r === j.BarAndLineFromFields || i === Z ? n = a.map((o) => E(e?.layerFieldsInfo, o)) : i.trim() !== "" && i !== Z && e !== void 0 && (n = await ki({
|
|
2200
|
-
layerInfo: e,
|
|
2201
|
-
config: t,
|
|
2202
|
-
category: i
|
|
2203
|
-
}))), n;
|
|
2204
|
-
};
|
|
2205
|
-
export {
|
|
2206
|
-
Zs as A,
|
|
2207
|
-
Ss as B,
|
|
2208
|
-
ke as C,
|
|
2209
|
-
Ks as D,
|
|
2210
|
-
P as E,
|
|
2211
|
-
Ms as F,
|
|
2212
|
-
Hs as G,
|
|
2213
|
-
Es as H,
|
|
2214
|
-
ea as I,
|
|
2215
|
-
ta as J,
|
|
2216
|
-
Cs as K,
|
|
2217
|
-
ia as L,
|
|
2218
|
-
ji as M,
|
|
2219
|
-
Ws as N,
|
|
2220
|
-
$s as O,
|
|
2221
|
-
Qs as P,
|
|
2222
|
-
xe as Q,
|
|
2223
|
-
Ie as R,
|
|
2224
|
-
Ge as S,
|
|
2225
|
-
ki as T,
|
|
2226
|
-
Ui as U,
|
|
2227
|
-
Me as V,
|
|
2228
|
-
pe as a,
|
|
2229
|
-
fe as b,
|
|
2230
|
-
G as c,
|
|
2231
|
-
N as d,
|
|
2232
|
-
us as e,
|
|
2233
|
-
ye as f,
|
|
2234
|
-
Js as g,
|
|
2235
|
-
Te as h,
|
|
2236
|
-
ds as i,
|
|
2237
|
-
gs as j,
|
|
2238
|
-
je as k,
|
|
2239
|
-
ys as l,
|
|
2240
|
-
Rs as m,
|
|
2241
|
-
fs as n,
|
|
2242
|
-
zs as o,
|
|
2243
|
-
ms as p,
|
|
2244
|
-
js as q,
|
|
2245
|
-
hs as r,
|
|
2246
|
-
me as s,
|
|
2247
|
-
ps as t,
|
|
2248
|
-
J as u,
|
|
2249
|
-
Ps as v,
|
|
2250
|
-
ee as w,
|
|
2251
|
-
M as x,
|
|
2252
|
-
O as y,
|
|
2253
|
-
K as z
|
|
2254
|
-
};
|