@arcgis/charts-components 5.2.0-next.12 → 5.2.0-next.121
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/LICENSE.md +4 -2
- package/README.md +2 -2
- package/dist/cdn/{RIM4HLHN.js → 225VUGML.js} +3 -3
- package/dist/cdn/22GEDSID.js +2 -0
- package/dist/cdn/{YJ6TRXMU.js → 24MSASQQ.js} +1 -1
- package/dist/cdn/{XY4TRZCG.js → 25NQZWDJ.js} +1 -1
- package/dist/cdn/{4USHOYLT.js → 2BE3GYK4.js} +1 -1
- package/dist/cdn/2DSJEDV6.js +2 -0
- package/dist/cdn/2IMGLB5P.js +2 -0
- package/dist/cdn/2MG6R4WZ.js +2 -0
- package/dist/cdn/346W6JSX.js +104 -0
- package/dist/cdn/3JFIDJNK.js +2 -0
- package/dist/cdn/{VY3KBD6N.js → 3LEJV2CC.js} +1 -1
- package/dist/cdn/3QIWL4Y6.js +2 -0
- package/dist/cdn/{QR2OOC4D.js → 4AGGUR7V.js} +1 -1
- package/dist/cdn/{YKDW7ZW3.js → 4BU5FKOK.js} +1 -1
- package/dist/cdn/{CHLE2QGU.js → 4DXGXATO.js} +1 -1
- package/dist/cdn/{H3EXGCE7.js → 4EVQDXRQ.js} +1 -1
- package/dist/cdn/{Y6ZCTPJW.js → 4LVRKWF5.js} +1 -1
- package/dist/cdn/4UPY7IZR.js +2 -0
- package/dist/cdn/55HD5ASD.js +2 -0
- package/dist/cdn/{H2A5GZ55.js → 5D2QRMC6.js} +1 -1
- package/dist/cdn/5NGZOXPZ.js +2 -0
- package/dist/cdn/5NRVL7NV.js +2 -0
- package/dist/cdn/5OKYID5L.js +2 -0
- package/dist/cdn/5S5FI5VM.js +2 -0
- package/dist/cdn/5SYHQWPP.js +2 -0
- package/dist/cdn/5VU34FMQ.js +2 -0
- package/dist/cdn/{LUSFGRHV.js → 5WIR3JWC.js} +1 -1
- package/dist/cdn/{VT4WJZN6.js → 64B7ILJI.js} +1 -1
- package/dist/cdn/6BYOOUOD.js +2 -0
- package/dist/cdn/6ESJJXFR.js +2 -0
- package/dist/cdn/6IREEVIJ.js +2 -0
- package/dist/cdn/{7LYAWWOE.js → 6WKTHJQK.js} +1 -1
- package/dist/cdn/72NDGOVB.js +2 -0
- package/dist/cdn/73RZMSJU.js +2 -0
- package/dist/cdn/74GBWUON.js +2 -0
- package/dist/cdn/{II2ZPEUZ.js → 7C2LVFNV.js} +1 -1
- package/dist/cdn/{4Z23HWDH.js → 7COM5REK.js} +1 -1
- package/dist/cdn/7CVC24HH.js +2 -0
- package/dist/cdn/7MZUUBLN.js +2 -0
- package/dist/cdn/{OXYJKZEP.js → 7O6SCTBS.js} +1 -1
- package/dist/cdn/{AQIB3VEP.js → 7TM4LYGN.js} +1 -1
- package/dist/cdn/{ANN3O54W.js → 7X5PS5MV.js} +1 -1
- package/dist/cdn/{IYA7HQMS.js → A45T4SGW.js} +1 -1
- package/dist/cdn/A5JPFNVL.js +4 -0
- package/dist/cdn/AAVHXU5D.js +2 -0
- package/dist/cdn/{OJ5X6I3H.js → ADI63OO7.js} +1 -1
- package/dist/cdn/{3MKY6UCO.js → AOVXHBJK.js} +1 -1
- package/dist/cdn/{ZW4PF3UK.js → AYCQHDDV.js} +1 -1
- package/dist/cdn/{VDKFC44J.js → B2QGEILG.js} +1 -1
- package/dist/cdn/{TXB2I2U5.js → B2SUC7VR.js} +1 -1
- package/dist/cdn/{TACQVUBU.js → BDEDEGCZ.js} +1 -1
- package/dist/cdn/{CNFBNAPJ.js → BK7DHYA7.js} +1 -1
- package/dist/cdn/BPEDCIDB.js +2 -0
- package/dist/cdn/{7QXRWMUN.js → BXBWUGTG.js} +1 -1
- package/dist/cdn/BYSUABOV.js +2 -0
- package/dist/cdn/CBSDCSFV.js +2 -0
- package/dist/cdn/CFMJKZLO.js +2 -0
- package/dist/cdn/{QNT6HTFC.js → CHBL4DXX.js} +1 -1
- package/dist/cdn/CR5FDXHH.js +2 -0
- package/dist/cdn/CSSKK7IZ.js +2 -0
- package/dist/cdn/CXWIF2KU.js +2 -0
- package/dist/cdn/{ZFJFTDJF.js → CYGMXV56.js} +1 -1
- package/dist/cdn/D5DOFLCS.js +2 -0
- package/dist/cdn/{L47EGLUH.js → DEWO6MFE.js} +1 -1
- package/dist/cdn/DFR64RQY.js +2 -0
- package/dist/cdn/{ZBIVDGNH.js → EJZ6NU2N.js} +1 -1
- package/dist/cdn/{4OH4NSIW.js → ELQS5MAK.js} +1 -1
- package/dist/cdn/ELRXUJGD.js +2 -0
- package/dist/cdn/{J5NHXQLA.js → EQZBQP5A.js} +1 -1
- package/dist/cdn/EWRTR7X6.js +2 -0
- package/dist/cdn/F5DTLXOB.js +2 -0
- package/dist/cdn/FUBHLZ4H.js +2 -0
- package/dist/cdn/FZVZ5MJE.js +2 -0
- package/dist/cdn/G5ND4PUZ.js +2 -0
- package/dist/cdn/GSF5JMAE.js +2 -0
- package/dist/cdn/GXCZ6WXB.js +2 -0
- package/dist/cdn/HDPGUTTH.js +2 -0
- package/dist/cdn/{3TZEMBXR.js → HJKWGAQO.js} +1 -1
- package/dist/cdn/{SSQ3VCZ2.js → HMQZNQ5T.js} +1 -1
- package/dist/cdn/{2XXW3WF3.js → HQN32N6X.js} +1 -1
- package/dist/cdn/HQO53B54.js +2 -0
- package/dist/cdn/{3JYZJUOM.js → HT7GYDUR.js} +1 -1
- package/dist/cdn/{AZOBLYAP.js → I2BM5KSH.js} +1 -1
- package/dist/cdn/{RSNZMJ6I.js → I4GFM5GU.js} +1 -1
- package/dist/cdn/{X2LW7GTR.js → ICT3SVPI.js} +1 -1
- package/dist/cdn/{JQKRGUBU.js → IDAOLPMA.js} +1 -1
- package/dist/cdn/{FOYOG3G7.js → IEX5F3HF.js} +1 -1
- package/dist/cdn/IGCN2436.js +2 -0
- package/dist/cdn/{LU5S2VRK.js → IGOJGDYE.js} +1 -1
- package/dist/cdn/INWA5VAO.js +2 -0
- package/dist/cdn/{WAINRCCJ.js → J6I76WI5.js} +1 -1
- package/dist/cdn/{5SIAOUPO.js → JEK42B7A.js} +1 -1
- package/dist/cdn/K3VIGXRU.js +45 -0
- package/dist/cdn/K7OSRGWZ.js +2 -0
- package/dist/cdn/KDIC74D5.js +2 -0
- package/dist/cdn/{SERX6V5M.js → KEL7OP2I.js} +1 -1
- package/dist/cdn/{XYKXBWIT.js → KLIDPT5L.js} +1 -1
- package/dist/cdn/{D3CFPMAR.js → KOY5DWSR.js} +1 -1
- package/dist/cdn/{ULWJ57VT.js → KQVS655Z.js} +1 -1
- package/dist/cdn/KZSCAJDG.js +2 -0
- package/dist/cdn/L5JZ5COY.js +2 -0
- package/dist/cdn/{AY6IOQ3H.js → LAEUROZM.js} +1 -1
- package/dist/cdn/LYOBJZHA.js +2 -0
- package/dist/cdn/MHHVGZZG.js +2 -0
- package/dist/cdn/MKCJDMSH.js +2 -0
- package/dist/cdn/{S7Z4HRW7.js → MQI4ZLAS.js} +1 -1
- package/dist/cdn/MV4GOTGG.js +2 -0
- package/dist/cdn/NE2LIVPM.js +2 -0
- package/dist/cdn/{XG2KN6YJ.js → NKPZCF5U.js} +1 -1
- package/dist/cdn/{VE3GFNNM.js → NRXCKYYY.js} +1 -1
- package/dist/cdn/{4C6KWLWN.js → NWLNHFHJ.js} +1 -1
- package/dist/cdn/O23HS34R.js +2 -0
- package/dist/cdn/{NAXNRCMZ.js → OD2NWPCL.js} +1 -1
- package/dist/cdn/{4ZIZEJXS.js → OISERMTF.js} +1 -1
- package/dist/cdn/{ETOGNYFU.js → OKAZOAYZ.js} +1 -1
- package/dist/cdn/ONW2IT27.js +2 -0
- package/dist/cdn/{VRZ2SY6M.js → OQFM5DBD.js} +1 -1
- package/dist/cdn/{KL33ETQG.js → OVXUFZCS.js} +1 -1
- package/dist/cdn/{C5K6XOCR.js → P37JASN4.js} +1 -1
- package/dist/cdn/{KDJ5RVHA.js → P3AYFJRV.js} +1 -1
- package/dist/cdn/{244ZX2UP.js → P5I5RQTN.js} +1 -1
- package/dist/cdn/{BJ7Q7LCT.js → PIZPF2BH.js} +1 -1
- package/dist/cdn/{XDMGH7YU.js → PN4ODOZS.js} +1 -1
- package/dist/cdn/PQDWXZQQ.js +2 -0
- package/dist/cdn/PWJBGZPW.js +2 -0
- package/dist/cdn/{UYXCGSXU.js → QFNEF7QI.js} +1 -1
- package/dist/cdn/{7UQHB6KY.js → QIG5H6WA.js} +1 -1
- package/dist/cdn/{XMPLEHTW.js → QKZK6MTN.js} +1 -1
- package/dist/cdn/QNW7XSUO.js +2 -0
- package/dist/cdn/QXDNKTZG.js +2 -0
- package/dist/cdn/QYRHZJH3.js +2 -0
- package/dist/cdn/{LROW4Y6O.js → RKBKWWDI.js} +1 -1
- package/dist/cdn/RPUEIRTH.js +2 -0
- package/dist/cdn/S6P4Y54X.js +2 -0
- package/dist/cdn/SAQBQSQJ.js +2 -0
- package/dist/cdn/{DNTLH5RT.js → SSOL6PCL.js} +1 -1
- package/dist/cdn/{TFPQDMER.js → SXSCCW3M.js} +1 -1
- package/dist/cdn/{YBN53S4C.js → SZ5CW7OV.js} +1 -1
- package/dist/cdn/{JHANH4UG.js → SZYIWW3C.js} +1 -1
- package/dist/cdn/T34EUD7U.js +2 -0
- package/dist/cdn/{I6UPUSLQ.js → T6WRXCXQ.js} +1 -1
- package/dist/cdn/T7I3TS7D.js +2 -0
- package/dist/cdn/{ZYOWZCR7.js → TB7JE5XK.js} +1 -1
- package/dist/cdn/{AK7X7SGI.js → TENIFMA5.js} +1 -1
- package/dist/cdn/TOMROR3N.js +2 -0
- package/dist/cdn/{AASL4RKT.js → TOVGPC7A.js} +1 -1
- package/dist/cdn/{WMPWOPRZ.js → TRAVRA3M.js} +1 -1
- package/dist/cdn/{P5AO3V3M.js → UD724V36.js} +1 -1
- package/dist/cdn/{OEOAL6JO.js → UELAD6BI.js} +1 -1
- package/dist/cdn/UGLK7BBG.js +2 -0
- package/dist/cdn/UQ2QHPXB.js +2 -0
- package/dist/cdn/{DSIFL2DF.js → UQSD6YZM.js} +1 -1
- package/dist/cdn/URI7A66F.js +2 -0
- package/dist/cdn/{Q7J7EKQW.js → UUVJGPFG.js} +1 -1
- package/dist/cdn/{MK5ZYSOD.js → UWACYGOL.js} +1 -1
- package/dist/cdn/V7YFMMPW.js +2 -0
- package/dist/cdn/{ZQDADGLQ.js → VLCUXTLC.js} +1 -1
- package/dist/cdn/{A636YSNA.js → VMHDTE3U.js} +1 -1
- package/dist/cdn/VTVZQCHN.js +2 -0
- package/dist/cdn/VWLVU22M.js +2 -0
- package/dist/cdn/{FWAXKDYV.js → W474T3B6.js} +1 -1
- package/dist/cdn/{GHLJNZ27.js → WAZUL35Q.js} +1 -1
- package/dist/cdn/WIIKUAWF.js +3 -0
- package/dist/cdn/WOGALV3T.js +2 -0
- package/dist/cdn/WSU3OSWJ.js +2 -0
- package/dist/cdn/{6B7JCDQC.js → WTF2PFHV.js} +1 -1
- package/dist/cdn/WTMEWLUJ.js +2 -0
- package/dist/cdn/WVOXFKFO.js +2 -0
- package/dist/cdn/{OFWEHJDH.js → WWLSUSF5.js} +1 -1
- package/dist/cdn/X25OSCFT.js +2 -0
- package/dist/cdn/{N5ZUO6F3.js → XCDLEIMO.js} +1 -1
- package/dist/cdn/{S3ZSZXYG.js → XHHOY7RB.js} +1 -1
- package/dist/cdn/{LJDGLKFL.js → XXMGWWQ4.js} +1 -1
- package/dist/cdn/Y5TN6VKQ.js +3 -0
- package/dist/cdn/{N4L5KE23.js → Y6HBSZ2J.js} +1 -1
- package/dist/cdn/Y6NNKV6H.js +2 -0
- package/dist/cdn/Y6UMC7NU.js +2 -0
- package/dist/cdn/Y6WT7UDU.js +2 -0
- package/dist/cdn/{BXYNEUQY.js → YCQLYXH4.js} +1 -1
- package/dist/cdn/{2OHFSVV5.js → YJDCSA4D.js} +1 -1
- package/dist/cdn/YQN5N3XC.js +2 -0
- package/dist/cdn/YWFQXN7J.js +2 -0
- package/dist/cdn/ZDDZVKMH.js +2 -0
- package/dist/cdn/ZDJAMFJK.js +2 -0
- package/dist/cdn/{BDGHBTPU.js → ZISYLA7O.js} +1 -1
- package/dist/cdn/{5ZGALYWZ.js → ZLCRTIQH.js} +1 -1
- package/dist/cdn/ZMS2AX7K.js +2 -0
- package/dist/cdn/ZPZQIWBB.js +2 -0
- package/dist/cdn/ZTVR6KBG.js +2 -0
- package/dist/cdn/ZUVDEUDH.js +2 -0
- package/dist/cdn/{TYUVXRBO.js → ZZHKDFTA.js} +1 -1
- package/dist/cdn/assets/charts-config-general/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/cdn/model/shared/setup-utils.js +1 -1
- package/dist/chart-rendering/common/interfaces.d.ts +105 -68
- package/dist/chunks/action-bar-utils.js +165 -0
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +46 -38
- package/dist/chunks/box-plot-data.js +291 -274
- package/dist/chunks/box-plot-model.js +143 -130
- package/dist/chunks/chart-model.js +65 -56
- package/dist/chunks/chart-object-literals.js +26 -25
- package/dist/chunks/chart-ui-utils.js +148 -66
- package/dist/chunks/chart-ui-utils2.js +68 -149
- package/dist/chunks/class-breaks.js +270 -238
- package/dist/chunks/combo-bar-line-chart-model.js +122 -101
- package/dist/chunks/data-labels-symbol.js +39 -24
- package/dist/chunks/data-labels-visibility.js +10 -10
- package/dist/chunks/data.js +42 -42
- package/dist/chunks/default.js +6 -6
- package/dist/chunks/gauge-model.js +61 -61
- package/dist/chunks/generate-x-axis-title.js +19 -15
- package/dist/chunks/heat-chart-model.js +95 -66
- package/dist/chunks/histogram-data.js +24 -24
- package/dist/chunks/histogram-model.js +10 -10
- package/dist/chunks/index.js +9531 -1079
- package/dist/chunks/index2.js +852 -8759
- package/dist/chunks/index3.js +1169 -849
- package/dist/chunks/index4.js +412 -251
- package/dist/chunks/index5.js +66 -100
- package/dist/chunks/interfaces.js +9 -9
- package/dist/chunks/line-chart-model.js +40 -24
- package/dist/chunks/model-setter.js +59 -64
- package/dist/chunks/model-types.js +1 -1
- package/dist/chunks/model-with-line-marker-styling.js +72 -47
- package/dist/chunks/model-with-x-guides.js +5 -5
- package/dist/chunks/model-with-y-guides.js +251 -271
- package/dist/chunks/negative-values-stacked-to-baseline.js +122 -71
- package/dist/chunks/pie-chart-data.js +169 -193
- package/dist/chunks/pie-chart-model.js +374 -319
- package/dist/chunks/radar-chart-model.js +413 -46
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +10 -10
- package/dist/chunks/rotated-state.js +1 -1
- package/dist/chunks/rounded-corners.js +90 -0
- package/dist/chunks/scatterplot-model.js +18 -18
- package/dist/chunks/serial-chart-data.js +959 -850
- package/dist/chunks/serial-chart-model.js +145 -123
- package/dist/chunks/series-length.js +17 -17
- package/dist/chunks/series-types.js +22 -18
- package/dist/chunks/series.js +1 -1
- package/dist/chunks/type-guards.js +49 -23
- package/dist/chunks/type-guards2.js +61 -52
- package/dist/chunks/utils.js +111 -88
- package/dist/chunks/utils2.js +54 -37
- package/dist/chunks/web-component-utils.js +413 -383
- package/dist/chunks/x-bounds.js +124 -117
- package/dist/components/arcgis-chart/customElement.d.ts +729 -257
- package/dist/components/arcgis-chart/customElement.js +11392 -11011
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +206 -13
- package/dist/components/arcgis-charts-action-bar/customElement.js +79 -64
- package/dist/components/arcgis-charts-config-axis/customElement.js +70 -64
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +39 -33
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +60 -55
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +43 -43
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +54 -53
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +13 -12
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +31 -39
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +16 -13
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +48 -49
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-category-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +5 -5
- 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.js +244 -230
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-font-style/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-format/customElement.js +91 -84
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-general/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-guide/customElement.js +25 -26
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +12 -13
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +64 -76
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +55 -55
- package/dist/components/arcgis-charts-config-histogram/customElement.js +27 -23
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +27 -27
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +44 -42
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +38 -38
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-line-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-number-format/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -6
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +49 -49
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +54 -53
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +67 -68
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +27 -23
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +15 -15
- package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +17 -17
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +61 -29
- package/dist/components/arcgis-charts-info-modal/customElement.js +7 -7
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +491 -463
- package/dist/interfaces.d.ts +72 -14
- package/dist/json-schema/index.d.ts +155 -6
- package/dist/loader.js +5 -5
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -4
- package/dist/model/box-plot-model/box-plot-model.d.ts +11 -5
- package/dist/model/chart-model/chart-model-base.d.ts +10 -0
- package/dist/model/chart-model/chart-model-wrapper.d.ts +24 -0
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +33 -21
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +41 -8
- package/dist/model/interfaces/chart-interfaces.d.ts +2 -2
- package/dist/model/interfaces/common.d.ts +2 -2
- package/dist/model/mixins/model-with-guides.d.ts +3 -3
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +28 -19
- package/dist/model/mixins/model-with-multi-axes.d.ts +69 -106
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +7 -55
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +59 -2
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +26 -0
- package/dist/model/properties/rounded-corners.d.ts +18 -0
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +190 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +27 -1
- package/dist/model/shared/setup-utils.d.ts +3 -3
- package/dist/model/shared/type-guards.d.ts +38 -22
- package/dist/spec/chart-object-literals.d.ts +4 -3
- package/dist/spec/data-source.d.ts +17 -3
- package/dist/spec/rest-js-types.d.ts +10 -2
- package/dist/spec/web-chart.d.ts +34 -4
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +4 -4
- package/dist/utils/chart-config/converter/index.d.ts +2 -3
- package/dist/utils/chart-config/converter/index.js +400 -380
- package/dist/utils/chart-config/utils/index.d.ts +28 -10
- package/dist/utils/chart-config/validator/index.d.ts +1 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +1 -0
- package/dist/utils/components/interfaces.d.ts +2 -0
- package/dist/utils/cursor/interfaces.d.ts +21 -0
- package/dist/utils/data/categorical-data/index.d.ts +18 -2
- package/dist/utils/data/index.d.ts +75 -23
- package/dist/utils/data/interfaces.d.ts +4 -3
- package/dist/utils/defaults/index.d.ts +32 -6
- package/dist/utils/defaults/interfaces.d.ts +73 -4
- package/dist/utils/layer/index.d.ts +24 -7
- package/dist/utils/layer/interfaces.d.ts +2 -15
- package/dist/utils/layer/query-features/index.d.ts +8 -3
- package/dist/utils/layer/query-parser/index.d.ts +10 -6
- package/dist/utils/layer/utils/index.d.ts +26 -9
- package/dist/utils/localization/interfaces.d.ts +9 -1
- package/dist/utils/misc/interfaces.d.ts +8 -7
- package/dist/utils/type-guards/chart-types.d.ts +10 -0
- package/dist/utils/type-guards/series-types.d.ts +9 -2
- package/package.json +8 -9
- package/dist/cdn/26ESJ72L.js +0 -2
- package/dist/cdn/2PFDGKA5.js +0 -2
- package/dist/cdn/3SBYV6BW.js +0 -2
- package/dist/cdn/3T4NYRGX.js +0 -2
- package/dist/cdn/3TBK72EK.js +0 -3
- package/dist/cdn/3UFVHYX5.js +0 -2
- package/dist/cdn/4LQHAOMY.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/5BADQJ64.js +0 -2
- package/dist/cdn/5F5N7ZZ6.js +0 -2
- package/dist/cdn/5PKMZMGG.js +0 -2
- package/dist/cdn/624WBDC3.js +0 -2
- package/dist/cdn/66GCPNDR.js +0 -2
- package/dist/cdn/6VVUN6AX.js +0 -2
- package/dist/cdn/73JQ2I2Q.js +0 -3
- package/dist/cdn/7HUD5SQI.js +0 -2
- package/dist/cdn/AIFWLINL.js +0 -2
- package/dist/cdn/AZY72Q7D.js +0 -2
- package/dist/cdn/BJYCLLJL.js +0 -2
- package/dist/cdn/BXJZ4YYQ.js +0 -2
- package/dist/cdn/CRCAJAFA.js +0 -2
- package/dist/cdn/CTE365PT.js +0 -2
- package/dist/cdn/CVF3NLTS.js +0 -2
- package/dist/cdn/DKRPN24O.js +0 -2
- package/dist/cdn/DL6PRHZT.js +0 -2
- package/dist/cdn/DOVGECFB.js +0 -2
- package/dist/cdn/DYNPQ2KT.js +0 -2
- package/dist/cdn/ECICE4SU.js +0 -2
- package/dist/cdn/EDSF5KGV.js +0 -233
- package/dist/cdn/EEFS6HU7.js +0 -2
- package/dist/cdn/EYF75TH5.js +0 -2
- package/dist/cdn/EYYQKOXI.js +0 -2
- package/dist/cdn/EZV7JSQJ.js +0 -2
- package/dist/cdn/FFS73X36.js +0 -142
- package/dist/cdn/HQONJQEW.js +0 -2
- package/dist/cdn/IBKS2NZ3.js +0 -2
- package/dist/cdn/IDHDU3DJ.js +0 -2
- package/dist/cdn/IHHPUKGG.js +0 -2
- package/dist/cdn/IM5PHXV3.js +0 -2
- package/dist/cdn/ISSVKLHV.js +0 -2
- package/dist/cdn/IYP3GZSC.js +0 -2
- package/dist/cdn/J2HYDDIW.js +0 -2
- package/dist/cdn/J47CNZCT.js +0 -2
- package/dist/cdn/JKTF2L3L.js +0 -58
- package/dist/cdn/JLWDVTJW.js +0 -2
- package/dist/cdn/JQX5EJZV.js +0 -2
- package/dist/cdn/K2P5RSE5.js +0 -2
- package/dist/cdn/KJPXY6NE.js +0 -2
- package/dist/cdn/KUUBYC33.js +0 -2
- package/dist/cdn/KZTGYTHS.js +0 -2
- package/dist/cdn/LA7COTN7.js +0 -2
- package/dist/cdn/LL757OZ7.js +0 -2
- package/dist/cdn/MGMUUWSP.js +0 -2
- package/dist/cdn/MPSRB65O.js +0 -2
- package/dist/cdn/N5ZIF7M4.js +0 -2
- package/dist/cdn/NVEIMJJ7.js +0 -2
- package/dist/cdn/O363DXQ4.js +0 -102
- package/dist/cdn/O533LNDP.js +0 -2
- package/dist/cdn/ODWDODUY.js +0 -2
- package/dist/cdn/P4HSSZRL.js +0 -2
- package/dist/cdn/PAIRUVLU.js +0 -2
- package/dist/cdn/PGHVUDMJ.js +0 -2
- package/dist/cdn/PGWOWXHQ.js +0 -2
- package/dist/cdn/PIONRTCB.js +0 -2
- package/dist/cdn/QSBAOCG4.js +0 -2
- package/dist/cdn/QT3VTHUJ.js +0 -2
- package/dist/cdn/RJSCJBFO.js +0 -2
- package/dist/cdn/RMBD6ZSC.js +0 -2
- package/dist/cdn/RMHGA6AU.js +0 -2
- package/dist/cdn/S5EYODWJ.js +0 -2
- package/dist/cdn/SMCXHMTP.js +0 -2
- package/dist/cdn/SN2GPX3I.js +0 -2
- package/dist/cdn/SNMFJ4CN.js +0 -2
- package/dist/cdn/SOOQD5FC.js +0 -2
- package/dist/cdn/T2SFRF7I.js +0 -2
- package/dist/cdn/TCS4HOSG.js +0 -2
- package/dist/cdn/THTYR6IL.js +0 -2
- package/dist/cdn/U67P6YAZ.js +0 -2
- package/dist/cdn/U7TKKTUC.js +0 -2
- package/dist/cdn/V2UF2WVE.js +0 -2
- package/dist/cdn/VFUFK3UT.js +0 -2
- package/dist/cdn/VP42WLDX.js +0 -2
- package/dist/cdn/W4XQNHSD.js +0 -4
- package/dist/cdn/W55GZOYQ.js +0 -2
- package/dist/cdn/W7X6L2OB.js +0 -127
- package/dist/cdn/WMXNQ5XH.js +0 -2
- package/dist/cdn/WNKDEOFZ.js +0 -2
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/cdn/WVV5DAII.js +0 -2
- package/dist/cdn/X5PNAE7T.js +0 -2
- package/dist/cdn/XJFVSX2E.js +0 -2
- package/dist/cdn/XRLVJJBT.js +0 -2
- package/dist/cdn/XUERYUEG.js +0 -2
- package/dist/cdn/Y3CXVO2M.js +0 -2
- package/dist/cdn/Y7HBWU3M.js +0 -2
- package/dist/cdn/YCJIOFQR.js +0 -2
- package/dist/cdn/Z2UG6CUL.js +0 -2
- package/dist/cdn/ZFK3D55V.js +0 -2
- package/dist/cdn/ZP22BN3G.js +0 -2
- package/dist/chunks/bar-chart-series.js +0 -15
- package/dist/chunks/index6.js +0 -66
- package/dist/chunks/time-zone.js +0 -38
- package/dist/chunks/type-guards3.js +0 -173
- package/dist/components/arcgis-charts-config-field-select/customElement.js +0 -30
- /package/dist/cdn/{IVLVCLDE.js → 7NWEE7T2.js} +0 -0
- /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
import type MapView from "@arcgis/core/views/MapView.js";
|
|
3
3
|
import type SceneView from "@arcgis/core/views/SceneView.js";
|
|
4
4
|
import type SelectionManager from "@arcgis/core/views/SelectionManager.js";
|
|
5
|
-
import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
|
|
6
5
|
import type { DOMContainerAria } from "@arcgis/core/views/DOMContainer.js";
|
|
7
6
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
8
|
-
import type { AxisLabelFormatCallback,
|
|
9
|
-
import type {
|
|
7
|
+
import type { AxisLabelFormatCallback, BarAndLineDataLabelFormatCallback, GaugeInnerLabelFormatCallback, GuideTooltipFormatCallback, HistogramLabelFormatCallback, PieChartLabelFormatCallback, PieChartLegendValueLabelFormatCallback, PreRenderCallback, ScatterplotLabelFormatCallback, TooltipFormatters } from "../../chart-rendering/common/interfaces.js";
|
|
8
|
+
import type { ChartLayerInput, CSVOptions } from "../../interfaces.js";
|
|
10
9
|
import type { ChartModel } from "../../model/chart-model/chart-model.js";
|
|
11
10
|
import type { WebChartTypes, WebChartLegendPositions } from "../../spec/chart-object-literals.js";
|
|
12
11
|
import type { WebChartDataTypes } from "../../spec/data-source.js";
|
|
@@ -22,125 +21,35 @@ import type { ErrorPolicy, LayerFieldsChangePolicy, LayerFilterChangePolicy, Lay
|
|
|
22
21
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
23
22
|
|
|
24
23
|
/**
|
|
25
|
-
* The Chart component renders a chart
|
|
24
|
+
* The ArcGIS Chart component renders a chart by setting a [model](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#model) object that defines the chart's configuration and data.
|
|
26
25
|
*
|
|
27
|
-
*
|
|
26
|
+
* You can render a chart either by:
|
|
27
|
+
* - Setting [layerItemId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layerItemId) and [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex) to load a saved chart from a layer item.
|
|
28
|
+
* - Create a new chart by using the [`createModel()`](/references/charts-components/model/shared/setup-utils/#createModel) function to create a chart model and set it to the [model](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#model) property.
|
|
28
29
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* [Tutorial: Display a chart](https://developers.arcgis.com/javascript/latest/tutorials/display-a-chart/)
|
|
30
|
+
* > [!IMPORTANT]
|
|
31
|
+
* >
|
|
32
|
+
* > See the [Introduction to charts](https://developers.arcgis.com/javascript/latest/charts-components-intro/) guide for detailed examples on how to render a chart using the above patterns.
|
|
33
33
|
*
|
|
34
|
-
*
|
|
34
|
+
* There are 10 supported chart types, each with its own model properties and methods. Refer to the [chart types documentation](https://developers.arcgis.com/javascript/latest/charts/chart-types/) for more information on each chart type.
|
|
35
|
+
*
|
|
36
|
+
* ##### See also:
|
|
37
|
+
* - [Tutorial: Display a chart](https://developers.arcgis.com/javascript/latest/tutorials/display-a-chart/)
|
|
38
|
+
* - [Tutorial: Chart and map interactions](https://developers.arcgis.com/javascript/latest/tutorials/chart-and-map-interactions/)
|
|
39
|
+
*
|
|
40
|
+
* > [!WARNING]
|
|
41
|
+
* > When the chart is rendering while its container is not yet fully sized, a console error about the chart's attribute height may appear. This is a known issue and should not affect the functionality of the chart.
|
|
42
|
+
*
|
|
43
|
+
* @slot [action-bar] - Slot for the [arcgis-charts-action-bar](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/) component or [calcite-action-bar](https://developers.arcgis.com/calcite-design-system/components/action-bar/) component.
|
|
35
44
|
* @since 4.32
|
|
36
45
|
*/
|
|
37
46
|
export abstract class ArcgisChart extends LitElement {
|
|
38
|
-
/** @internal */
|
|
39
|
-
protected _messages: Partial<{ chartNotFoundWarning: string; }> & T9nMeta<{ chartNotFoundWarning: string; }>;
|
|
40
|
-
/**
|
|
41
|
-
* Specifies the user action behavior for the chart.
|
|
42
|
-
*
|
|
43
|
-
* - `monoSelection`: Select a single data point or series, new selection replaces the previous one.
|
|
44
|
-
* - `multiSelection`: Select multiple data points or series, new selection adds to the previous one.
|
|
45
|
-
* - `multiSelectionWithCtrlKey`: Select multiple data points or series while holding the Ctrl key (Cmd on Mac). When the key is held, each new selection is added; otherwise, the selection is replaced.
|
|
46
|
-
* - `none`: No action is performed on user interaction.
|
|
47
|
-
* - `zoom`: Zoom into a specific area of the chart.
|
|
48
|
-
*
|
|
49
|
-
* **Note**: Not applicable to gauges.
|
|
50
|
-
*/
|
|
51
|
-
accessor actionMode: ActionModes | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Whether to allow the object id to be used as a statistic other than `Count`.
|
|
54
|
-
*
|
|
55
|
-
* @default false
|
|
56
|
-
*/
|
|
57
|
-
accessor allowUsingObjectIdStat: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* Enable animation on the chart.
|
|
60
|
-
*
|
|
61
|
-
* @default false
|
|
62
|
-
*/
|
|
63
|
-
accessor animationEnabled: boolean | undefined;
|
|
64
|
-
/**
|
|
65
|
-
* The ARIA attributes for the chart. Provides accessibility information to assistive technologies such as screen readers. Supports the following properties: [\`label\`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label), [\`description\`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-description), [\`describedByElements\`](https://developer.mozilla.org/docs/Web/API/Element/ariaDescribedByElements), and [\`labelledByElements\`](https://developer.mozilla.org/docs/Web/API/Element/ariaLabelledByElements).
|
|
66
|
-
*
|
|
67
|
-
* @since 5.0
|
|
68
|
-
*/
|
|
69
|
-
accessor aria: DOMContainerAria | undefined;
|
|
70
|
-
/**
|
|
71
|
-
* If `true`, the component will not be destroyed automatically when it is disconnected from the document. This is useful when you want to move the component to a different place on the page, or temporarily hide it. If this is set, make sure to call the [destroy()](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#destroy) method when you are done to prevent memory leaks.
|
|
72
|
-
*
|
|
73
|
-
* @default false
|
|
74
|
-
* @since 5.0
|
|
75
|
-
*/
|
|
76
|
-
accessor autoDestroyDisabled: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Auto disposes the chart when a new one is created in the same container.
|
|
79
|
-
*
|
|
80
|
-
* @deprecated since 5.0. Use [autoDestroyDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#autoDestroyDisabled) instead.
|
|
81
|
-
* @default false
|
|
82
|
-
*/
|
|
83
|
-
accessor autoDisposeChart: boolean;
|
|
84
|
-
/**
|
|
85
|
-
* When `true`, the data label text color is automatically adjusted for readability based on its background.
|
|
86
|
-
* If the label is dark and appears over a dark series area, the text color is switched to either the chart background color or white.
|
|
87
|
-
*
|
|
88
|
-
* **Note**: Applicable to heat charts only.
|
|
89
|
-
*
|
|
90
|
-
* @default false
|
|
91
|
-
*/
|
|
92
|
-
accessor autoInverseDataLabelTextColor: boolean;
|
|
93
|
-
/**
|
|
94
|
-
* Allows picking the Calcite CSS variables to use when applying a Calcite theme.
|
|
95
|
-
*
|
|
96
|
-
* By default the following variables are used:
|
|
97
|
-
* - background: `--calcite-color-foreground-1`
|
|
98
|
-
* - text: `--calcite-color-text-1`
|
|
99
|
-
* - line: `--calcite-color-border-1`
|
|
100
|
-
* - secondary line: `--calcite-color-text-3`
|
|
101
|
-
* - spinner: `--calcite-color-brand-hover`
|
|
102
|
-
*
|
|
103
|
-
* The charts colors are overridden by those associated to those CSS variables, but only if they have not been
|
|
104
|
-
* customized beforehand.
|
|
105
|
-
*
|
|
106
|
-
* @since 5.1
|
|
107
|
-
*/
|
|
108
|
-
accessor calciteThemingCSSVariables: CalciteThemeCSSVariables;
|
|
109
|
-
/**
|
|
110
|
-
* The index of the chart to be rendered from the layer. Must be used in conjunction with the `layerItemId` or `layer` property.
|
|
111
|
-
*
|
|
112
|
-
* If a `layer` or `layerItemId` is set without `chartIndex`, the first chart in the layer will be rendered.
|
|
113
|
-
*
|
|
114
|
-
* If the `chartIndex` is out of bounds, the first chart in the layer will be rendered and a warning event will be emitted.
|
|
115
|
-
*
|
|
116
|
-
* @example
|
|
117
|
-
* ```html
|
|
118
|
-
* <arcgis-chart layer-item-id="8871626e970a4f3e9d6113ec63a92f2f" chart-index="2"></arcgis-chart>
|
|
119
|
-
* ```
|
|
120
|
-
*/
|
|
121
|
-
accessor chartIndex: number | undefined;
|
|
122
|
-
/**
|
|
123
|
-
* Customize the maximum number of series allowed on the chart.
|
|
124
|
-
*
|
|
125
|
-
* The chart's behavior once that limit is reached can be adjusted through the `behaviorAfterLimit` nested property, to either reject the creation
|
|
126
|
-
* or update of the chart, or render the elements up to the given limits.
|
|
127
|
-
*
|
|
128
|
-
* **Note**: Not applicable to gauges.
|
|
129
|
-
*/
|
|
130
|
-
accessor chartLimits: ChartElementLimit | undefined;
|
|
131
|
-
/**
|
|
132
|
-
* Lifecycle function executed after the data has been processed and before the chart renders.
|
|
133
|
-
* Can be used to alter the model from information extracted from the data.
|
|
134
|
-
*
|
|
135
|
-
* **Note**: Applicable to gauges and pie charts only.
|
|
136
|
-
*/
|
|
137
|
-
accessor chartWillRender: PreRenderCallback | undefined;
|
|
138
47
|
/**
|
|
139
48
|
* Localized common strings.
|
|
140
49
|
*
|
|
141
50
|
* @internal
|
|
142
51
|
*/
|
|
143
|
-
protected
|
|
52
|
+
protected _commonStrings: {
|
|
144
53
|
utilsStrings: {
|
|
145
54
|
chartType: {
|
|
146
55
|
chart: string;
|
|
@@ -278,6 +187,10 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
278
187
|
twoTemporalSeriesLineCountCannotExceedLimit: string;
|
|
279
188
|
threePlusTemporalSeriesLineCountCannotExceedLimit: string;
|
|
280
189
|
lineSeriesCountCannotExceedLimit: string;
|
|
190
|
+
uniqueSeriesRadarCountCannotExceedLimit: string;
|
|
191
|
+
twoSeriesRadarCountCannotExceedLimit: string;
|
|
192
|
+
threePlusSeriesRadarCountCannotExceedLimit: string;
|
|
193
|
+
radarSeriesCountCannotExceedLimit: string;
|
|
281
194
|
uniqueSeriesBoxCountCannotExceedLimit: string;
|
|
282
195
|
twoSeriesBoxCountCannotExceedLimit: string;
|
|
283
196
|
threePlusBoxLineCountCannotExceedLimit: string;
|
|
@@ -545,6 +458,10 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
545
458
|
twoTemporalSeriesLineCountCannotExceedLimit: string;
|
|
546
459
|
threePlusTemporalSeriesLineCountCannotExceedLimit: string;
|
|
547
460
|
lineSeriesCountCannotExceedLimit: string;
|
|
461
|
+
uniqueSeriesRadarCountCannotExceedLimit: string;
|
|
462
|
+
twoSeriesRadarCountCannotExceedLimit: string;
|
|
463
|
+
threePlusSeriesRadarCountCannotExceedLimit: string;
|
|
464
|
+
radarSeriesCountCannotExceedLimit: string;
|
|
548
465
|
uniqueSeriesBoxCountCannotExceedLimit: string;
|
|
549
466
|
twoSeriesBoxCountCannotExceedLimit: string;
|
|
550
467
|
threePlusBoxLineCountCannotExceedLimit: string;
|
|
@@ -675,21 +592,158 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
675
592
|
"Invalid date": string;
|
|
676
593
|
};
|
|
677
594
|
}>;
|
|
595
|
+
/** @internal */
|
|
596
|
+
protected _messages: Partial<{ chartNotFoundWarning: string; }> & T9nMeta<{ chartNotFoundWarning: string; }>;
|
|
597
|
+
/**
|
|
598
|
+
* Specifies how user interactions on the chart are handled.
|
|
599
|
+
*
|
|
600
|
+
* - `monoSelection`: Select one data item at a time. Each new selection replaces the previous selection.
|
|
601
|
+
* - `multiSelection`: Select multiple data items. Each new selection is added to the existing selection.
|
|
602
|
+
* - `multiSelectionWithCtrlKey`: Select multiple data items only while holding Ctrl (or Cmd on macOS). Without the key, selection behaves like `monoSelection`.
|
|
603
|
+
* - `zoom`: Zoom into an area of the chart.
|
|
604
|
+
* - `none`: Disable interaction-driven selection and zoom actions.
|
|
605
|
+
*
|
|
606
|
+
* **Note**: Not applicable to gauges.
|
|
607
|
+
*/
|
|
608
|
+
accessor actionMode: ActionModes | undefined;
|
|
609
|
+
/**
|
|
610
|
+
* When `true`, object ID can be used as a numeric field for aggregated charts (for example, `sum` of `objectId`).
|
|
611
|
+
*
|
|
612
|
+
* @default false
|
|
613
|
+
*/
|
|
614
|
+
accessor allowUsingObjectIdStat: boolean;
|
|
615
|
+
/**
|
|
616
|
+
* When `true`, elements such as data items, axes, and legends will animate when the chart is first rendered or when the chart's configuration is updated.
|
|
617
|
+
*
|
|
618
|
+
* <video
|
|
619
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/animationEnabled.webm"
|
|
620
|
+
* aria-label="animationEnabled"
|
|
621
|
+
* width="720"
|
|
622
|
+
* autoPlay
|
|
623
|
+
* loop
|
|
624
|
+
* muted
|
|
625
|
+
* playsInline
|
|
626
|
+
* />
|
|
627
|
+
*
|
|
628
|
+
* @default false
|
|
629
|
+
* @since 5.1
|
|
630
|
+
*/
|
|
631
|
+
accessor animationEnabled: boolean | undefined;
|
|
632
|
+
/**
|
|
633
|
+
* The ARIA attributes for the chart component. Provides accessibility information to assistive technologies such as screen readers. Supports the following properties: [\`label\`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-label), [\`description\`](https://developer.mozilla.org/docs/Web/Accessibility/ARIA/Reference/Attributes/aria-description), [\`describedByElements\`](https://developer.mozilla.org/docs/Web/API/Element/ariaDescribedByElements), and [\`labelledByElements\`](https://developer.mozilla.org/docs/Web/API/Element/ariaLabelledByElements).
|
|
634
|
+
*
|
|
635
|
+
* @example
|
|
636
|
+
* ```ts
|
|
637
|
+
* chartElement.aria = {
|
|
638
|
+
* label: "Custom chart label",
|
|
639
|
+
* description: "Custom chart description",
|
|
640
|
+
* };
|
|
641
|
+
* ```
|
|
642
|
+
* @see [ARIA attributes](https://developers.arcgis.com/javascript/latest/accessibility/#aria-attributes)
|
|
643
|
+
* @since 5.0
|
|
644
|
+
*/
|
|
645
|
+
accessor aria: DOMContainerAria | undefined;
|
|
646
|
+
/**
|
|
647
|
+
* When `true`, the component is not destroyed automatically when it is disconnected from the document, which is useful when moving or temporarily hiding it.
|
|
648
|
+
*
|
|
649
|
+
* > [!CAUTION]
|
|
650
|
+
* >
|
|
651
|
+
* > Call the [destroy()](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#destroy) method when you are done to prevent memory leaks.
|
|
652
|
+
*
|
|
653
|
+
* @default false
|
|
654
|
+
* @since 5.0
|
|
655
|
+
*/
|
|
656
|
+
accessor autoDestroyDisabled: boolean;
|
|
657
|
+
/**
|
|
658
|
+
* Auto disposes the chart when a new one is created in the same container.
|
|
659
|
+
*
|
|
660
|
+
* @deprecated since 5.0. Use [autoDestroyDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#autoDestroyDisabled) instead.
|
|
661
|
+
* @default false
|
|
662
|
+
*/
|
|
663
|
+
accessor autoDisposeChart: boolean;
|
|
664
|
+
/**
|
|
665
|
+
* When `true`, the data label text color is automatically adjusted for readability based on its background, switching to either the chart background color or white when the contrast is too low.
|
|
666
|
+
*
|
|
667
|
+
* | With `autoInverseDataLabelTextColor` | Without `autoInverseDataLabelTextColor` |
|
|
668
|
+
* | -------- | -------- |
|
|
669
|
+
* |  |  |
|
|
670
|
+
*
|
|
671
|
+
* **Note**: Applicable to heat charts only.
|
|
672
|
+
*
|
|
673
|
+
* @default false
|
|
674
|
+
* @since 4.34
|
|
675
|
+
*/
|
|
676
|
+
accessor autoInverseDataLabelTextColor: boolean;
|
|
677
|
+
/**
|
|
678
|
+
* Specifies the Calcite CSS variables to use when applying a Calcite theme.
|
|
679
|
+
*
|
|
680
|
+
* By default the following variables are used:
|
|
681
|
+
* - background: `--calcite-color-foreground-1`
|
|
682
|
+
* - text: `--calcite-color-text-1`
|
|
683
|
+
* - line: `--calcite-color-border-1`
|
|
684
|
+
* - secondary line: `--calcite-color-text-3`
|
|
685
|
+
* - spinner: `--calcite-color-brand-hover`
|
|
686
|
+
*
|
|
687
|
+
* The chart colors are overridden by those associated to those CSS variables, but only if they have not been customized beforehand.
|
|
688
|
+
*
|
|
689
|
+
* @see [Charts theming with Calcite CSS variables](https://developers.arcgis.com/javascript/latest/charts/features-and-capabilities/styling-and-theming/#theming-with-css-variables)
|
|
690
|
+
* @see [Components theming with Calcite](https://developers.arcgis.com/javascript/latest/building-your-ui/#styling-and-theming-with-calcite)
|
|
691
|
+
* @since 5.1
|
|
692
|
+
*/
|
|
693
|
+
accessor calciteThemingCSSVariables: CalciteThemeCSSVariables;
|
|
694
|
+
/**
|
|
695
|
+
* The index of the chart to be rendered from the layer. Must be used in conjunction with the `layerItemId` or `layer` property.
|
|
696
|
+
*
|
|
697
|
+
* If a `layer` or `layerItemId` is set without `chartIndex`, the first chart in the layer will be rendered.
|
|
698
|
+
*
|
|
699
|
+
* If the `chartIndex` is out of bounds, the first chart in the layer will be rendered and a warning event will be emitted.
|
|
700
|
+
*
|
|
701
|
+
* @example
|
|
702
|
+
* ```html
|
|
703
|
+
* <arcgis-chart layer-item-id="8871626e970a4f3e9d6113ec63a92f2f" chart-index="2"></arcgis-chart>
|
|
704
|
+
* ```
|
|
705
|
+
*/
|
|
706
|
+
accessor chartIndex: number | undefined;
|
|
707
|
+
/**
|
|
708
|
+
* Customize the maximum number of data items allowed on the chart.
|
|
709
|
+
*
|
|
710
|
+
* The chart's behavior once that limit is reached can be adjusted through the `behaviorAfterLimit` nested property, to either reject the creation
|
|
711
|
+
* or update of the chart, or render the elements up to the given limits.
|
|
712
|
+
*
|
|
713
|
+
* **Note**: Not applicable to gauges.
|
|
714
|
+
*
|
|
715
|
+
* @example
|
|
716
|
+
* ```ts
|
|
717
|
+
* chartElement.chartLimits = {
|
|
718
|
+
* behaviorAfterLimit: LimitBehavior.RenderUpToTheLimit,
|
|
719
|
+
* serialChart: { categories: 15 }
|
|
720
|
+
* };
|
|
721
|
+
* ```
|
|
722
|
+
*/
|
|
723
|
+
accessor chartLimits: ChartElementLimit | undefined;
|
|
724
|
+
/**
|
|
725
|
+
* Lifecycle function executed after the data has been processed and before the chart renders.
|
|
726
|
+
* Can be used to alter the model from information extracted from the data.
|
|
727
|
+
*
|
|
728
|
+
* **Note**: Applicable to gauges and pie charts only.
|
|
729
|
+
*/
|
|
730
|
+
accessor chartWillRender: PreRenderCallback | undefined;
|
|
678
731
|
/**
|
|
679
732
|
* Whether to use features uniquely designed for a chart currently being configured by a user via the UI.
|
|
680
|
-
* When true
|
|
681
|
-
* and
|
|
733
|
+
* When `true` and if the [arcgis-charts-action-bar](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-charts-action-bar/) is slotted in the chart component,
|
|
734
|
+
* the action bar will expose an "Edit chart" action, surface relevant error states, and show a helpful in-container placeholder about the chart’s purpose.
|
|
682
735
|
*
|
|
683
736
|
* @default false
|
|
737
|
+
* @since 5.1
|
|
684
738
|
*/
|
|
685
739
|
accessor configurationEnabled: boolean;
|
|
686
740
|
/**
|
|
687
|
-
*
|
|
741
|
+
* Defines how the cursor selection rectangle is constrained when [actionMode](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#actionMode) is `zoom`, `multiSelection`, or `multiSelectionWithCtrlKey`.
|
|
688
742
|
*
|
|
689
|
-
* - `multi-axes`: Allows
|
|
690
|
-
* - `x-axis`:
|
|
691
|
-
* - `y-axis`:
|
|
692
|
-
* - `undefined`:
|
|
743
|
+
* - `multi-axes`: Allows drawing a free rectangle across both axes.
|
|
744
|
+
* - `x-axis`: Constrains the rectangle to the x-axis direction.
|
|
745
|
+
* - `y-axis`: Constrains the rectangle to the y-axis direction.
|
|
746
|
+
* - `undefined`: Uses the default behavior for the current chart type and action mode.
|
|
693
747
|
*
|
|
694
748
|
* **Note**: Not applicable to gauges.
|
|
695
749
|
*/
|
|
@@ -697,9 +751,24 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
697
751
|
/**
|
|
698
752
|
* Callback function used to format the data labels. If the returned string contains HTML tags they will be interpreted as such.
|
|
699
753
|
*
|
|
700
|
-
*
|
|
754
|
+
* @example
|
|
755
|
+
* ```ts
|
|
756
|
+
* // Render custom data labels with the stat value and percentage formatted to 2 decimal places.
|
|
757
|
+
* chartElement.dataLabelFormatter = (statValue, percent) => {
|
|
758
|
+
* return `
|
|
759
|
+
* <div>
|
|
760
|
+
* Total listings: <strong>${statValue}</strong><br>
|
|
761
|
+
* Percentage: <strong>${Number(percent).toFixed(2)}%</strong>
|
|
762
|
+
* </div>
|
|
763
|
+
* `;
|
|
764
|
+
* };
|
|
765
|
+
* ```
|
|
766
|
+
*
|
|
767
|
+
* 
|
|
768
|
+
*
|
|
769
|
+
* **Note**: Not applicable to gauges and radar charts.
|
|
701
770
|
*/
|
|
702
|
-
accessor dataLabelFormatter:
|
|
771
|
+
accessor dataLabelFormatter: BarAndLineDataLabelFormatCallback | HistogramLabelFormatCallback | PieChartLabelFormatCallback | ScatterplotLabelFormatCallback | undefined;
|
|
703
772
|
/**
|
|
704
773
|
* Disables all interactions on the chart.
|
|
705
774
|
*
|
|
@@ -712,7 +781,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
712
781
|
*
|
|
713
782
|
* **Note**: Only applicable to multi-series charts.
|
|
714
783
|
*
|
|
715
|
-
* @deprecated since 5.1. Use [
|
|
784
|
+
* @deprecated since 5.1. Use [legendInteractionsDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#legendInteractionsDisabled) instead.
|
|
716
785
|
* @default false
|
|
717
786
|
*/
|
|
718
787
|
accessor disableTogglingLegendItems: boolean;
|
|
@@ -740,7 +809,8 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
740
809
|
*/
|
|
741
810
|
accessor enableResponsiveFeatures: boolean;
|
|
742
811
|
/**
|
|
743
|
-
*
|
|
812
|
+
* When set to `ignore`, the chart fails silently without displaying an error or hiding the chart.
|
|
813
|
+
* By default, it is set to `throw`, which displays an error alert and hides the chart when it can't be created or updated.
|
|
744
814
|
*
|
|
745
815
|
* @default "throw"
|
|
746
816
|
*/
|
|
@@ -761,7 +831,8 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
761
831
|
*/
|
|
762
832
|
accessor filterByExtent: boolean;
|
|
763
833
|
/**
|
|
764
|
-
* When `true`,
|
|
834
|
+
* When `true`, the chart uses the current selection as a data filter and renders only selected elements instead of rendering the full dataset with selection styling.
|
|
835
|
+
* Axis bounds, time binning intervals will be computed based on the selected elements only.
|
|
765
836
|
*
|
|
766
837
|
* **Note**: Not applicable to gauges or charts configured with imagery layers.
|
|
767
838
|
*
|
|
@@ -769,7 +840,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
769
840
|
*/
|
|
770
841
|
accessor filterBySelection: boolean;
|
|
771
842
|
/**
|
|
772
|
-
* When `true`,
|
|
843
|
+
* When `true`, chart queries are constrained to the current map view extent. The chart refreshes as the view extent changes, and the axis bounds or other derived values are recalculated from the view extent data.
|
|
773
844
|
*
|
|
774
845
|
* @default false
|
|
775
846
|
*/
|
|
@@ -777,12 +848,35 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
777
848
|
/**
|
|
778
849
|
* Callback function used to format the gauge inner label. If the returned string contains HTML tags they will be interpreted as such.
|
|
779
850
|
*
|
|
851
|
+
* @example
|
|
852
|
+
* ```ts
|
|
853
|
+
* // Render a centered custom gauge label with the value formatted to 2 decimal places.
|
|
854
|
+
* chartElement.gaugeInnerLabelFormatter = (value) => {
|
|
855
|
+
* return `<div style="text-align: center;"><u>Custom gauge inner label: </u><br /><b>${Number(value).toFixed(2)}</b></div>`;
|
|
856
|
+
* };
|
|
857
|
+
* ```
|
|
858
|
+
*
|
|
859
|
+
* 
|
|
860
|
+
*
|
|
780
861
|
* **Note**: Applicable to gauges only.
|
|
781
862
|
*/
|
|
782
863
|
accessor gaugeInnerLabelFormatter: GaugeInnerLabelFormatCallback | undefined;
|
|
783
864
|
/**
|
|
784
865
|
* Callback function used to format the axes guides tooltip. If the returned string contains HTML tags they will be interpreted as such.
|
|
785
866
|
*
|
|
867
|
+
* @example
|
|
868
|
+
* ```ts
|
|
869
|
+
* // Render a custom tooltip with the guide's start and end values.
|
|
870
|
+
* chartElement.guideTooltipFormatter = (props) => {
|
|
871
|
+
* return `
|
|
872
|
+
* <u>Custom guide tooltip</u><br />
|
|
873
|
+
* Range: <b>${props.start} - ${props.end}</b>
|
|
874
|
+
* `;
|
|
875
|
+
* };
|
|
876
|
+
* ```
|
|
877
|
+
*
|
|
878
|
+
* 
|
|
879
|
+
*
|
|
786
880
|
* **Note**: Not applicable to pie charts.
|
|
787
881
|
*/
|
|
788
882
|
accessor guideTooltipFormatter: GuideTooltipFormatCallback | undefined;
|
|
@@ -804,27 +898,28 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
804
898
|
*/
|
|
805
899
|
accessor hideLicenseWatermark: boolean | undefined;
|
|
806
900
|
/**
|
|
807
|
-
*
|
|
901
|
+
* When `true`, the loader animation is hidden when the chart is being created or updated. By default, it is shown at chart creation and each update (if it takes more than 300ms).
|
|
902
|
+
* | When `hideLoaderAnimation` is `true` | When `hideLoaderAnimation` is `false` |
|
|
903
|
+
* | -------- | -------- |
|
|
904
|
+
* | <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/hideLoaderAnimationTrue.webm" aria-label="animationEnabled" width="720" autoPlay loop muted playsInline/> | <video src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/hideLoaderAnimationFalse.webm" aria-label="animationEnabled" width="720" autoPlay loop muted playsInline/>
|
|
808
905
|
*
|
|
809
906
|
* @default false
|
|
810
907
|
*/
|
|
811
908
|
accessor hideLoaderAnimation: boolean;
|
|
812
909
|
/**
|
|
813
|
-
*
|
|
910
|
+
* When set to `true`, UI messages are hidden. These messages can be no data warnings, any placeholder messages set or invalid chart configuration.
|
|
911
|
+
* By default, its value is `false`, which displays the messages on the chart.
|
|
814
912
|
*
|
|
815
913
|
* @default false
|
|
816
914
|
* @since 5.1
|
|
817
915
|
*/
|
|
818
916
|
accessor hideUIMessages: boolean;
|
|
819
917
|
/**
|
|
820
|
-
*
|
|
918
|
+
* When `true`, missing categories from a `Count` aggregation are kept as gaps in the chart's data.
|
|
821
919
|
*
|
|
822
|
-
* When data is retrieved from the server,
|
|
920
|
+
* When data is retrieved from the server, features with a count of 0 are excluded from the response, resulting in missing chart entries.
|
|
823
921
|
*
|
|
824
|
-
*
|
|
825
|
-
*
|
|
826
|
-
* When left to `false`, the chart's dataItems associated with empty (no value) categories (from only a `Count` aggregation)
|
|
827
|
-
* will be populated with 0s.
|
|
922
|
+
* By default, the chart's [WebChartGenericDataItem](https://developers.arcgis.com/javascript/latest/references/charts-components/spec/data-source/#WebChartGenericDataItem-dataItems) associated with empty categories (from only a `Count` aggregation) are populated with 0s.
|
|
828
923
|
*
|
|
829
924
|
* @default false
|
|
830
925
|
* @since 5.1
|
|
@@ -846,27 +941,27 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
846
941
|
*/
|
|
847
942
|
accessor ignoreSmoothRenderingLimit: boolean;
|
|
848
943
|
/**
|
|
849
|
-
*
|
|
944
|
+
* When `true`, it signals the queries to ignore the view's extent, whether an additional geometry filter is provided or not.
|
|
850
945
|
*
|
|
851
|
-
*
|
|
852
|
-
* geometry passed through the model (`component.model.dataFilters`) or the runtime filters (`component.runtimeDataFilters`).
|
|
946
|
+
* This property will be effective when the component's [view](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#view) property is provided or when the [layer](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layer) property is set to [ChartLayerView](https://developers.arcgis.com/javascript/latest/references/charts-components/interfaces/#ChartLayerView).
|
|
853
947
|
*
|
|
854
|
-
*
|
|
948
|
+
* By default the queries made by the chart will consider the view's extent as the unique geometry filter applicable. This implies ignoring any
|
|
949
|
+
* geometry filters passed through the [model](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#model) or the [runtimeDataFilters](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#runtimeDataFilters) properties.
|
|
855
950
|
*
|
|
856
951
|
* @default false
|
|
857
952
|
*/
|
|
858
953
|
accessor ignoreViewExtent: boolean;
|
|
859
954
|
/**
|
|
860
|
-
*
|
|
955
|
+
* When `true`, all interactions such as zooming and selection are disabled on the chart. The chart will be rendered in a read-only state.
|
|
861
956
|
*
|
|
862
957
|
* @default false
|
|
863
958
|
*/
|
|
864
959
|
accessor interactionsDisabled: boolean;
|
|
865
960
|
/**
|
|
866
961
|
* Used to perform queries.
|
|
867
|
-
* If the layer is a `
|
|
962
|
+
* If the layer is a `ChartLayerView` or if the layer and the `view` property are both provided, the queries will be executed client-side.
|
|
868
963
|
*/
|
|
869
|
-
accessor layer:
|
|
964
|
+
accessor layer: ChartLayerInput | undefined;
|
|
870
965
|
/**
|
|
871
966
|
* Allows the chart to update automatically when the layer's `fields` property changes.
|
|
872
967
|
*
|
|
@@ -882,11 +977,12 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
882
977
|
*/
|
|
883
978
|
accessor layerFilterChangePolicy: LayerFilterChangePolicy;
|
|
884
979
|
/**
|
|
885
|
-
* Layer item ID associated with the chart to be rendered. Can be used in conjunction with the `chartIndex` property.
|
|
980
|
+
* Layer item ID associated with the chart to be rendered. Can be used in conjunction with the `chartIndex` property. If `layerItemId` is set without `chartIndex`, the first chart in the layer will be rendered.
|
|
886
981
|
*
|
|
887
|
-
*
|
|
982
|
+
* The layer item ID can be found in the URL of the layer's item page on ArcGIS Online or Enterprise.
|
|
983
|
+
* For example, in the URL `https://www.arcgis.com/home/item.html?id=8871626e970a4f3e9d6113ec63a92f2f`, the layer item ID is `8871626e970a4f3e9d6113ec63a92f2f`.
|
|
888
984
|
*
|
|
889
|
-
* Supported
|
|
985
|
+
* Supported layer types include: [`FeatureLayer`](/references/core/layers/FeatureLayer), [`SubtypeSublayer`](/references/core/layers/support/SubtypeSublayer), [`ImageryLayer`](/references/core/layers/ImageryLayer), [`ImageryTileLayer`](/references/core/layers/ImageryTileLayer) and [`WCSLayer`](/references/core/layers/WCSLayer).
|
|
890
986
|
*
|
|
891
987
|
* @example
|
|
892
988
|
* ```html
|
|
@@ -903,6 +999,15 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
903
999
|
* @default "refresh"
|
|
904
1000
|
*/
|
|
905
1001
|
accessor layerRendererChangePolicy: LayerRendererChangePolicy;
|
|
1002
|
+
/**
|
|
1003
|
+
* When `true`, disables the toggling of series or slices from the legend items. Clicking on the legend items will not hide or show the corresponding elements on the chart.
|
|
1004
|
+
*
|
|
1005
|
+
* **Note**: Only applicable to charts with multiple series and while the legend is displayed.
|
|
1006
|
+
*
|
|
1007
|
+
* @default false
|
|
1008
|
+
* @since 5.2
|
|
1009
|
+
*/
|
|
1010
|
+
accessor legendInteractionsDisabled: boolean | undefined;
|
|
906
1011
|
/**
|
|
907
1012
|
* Sets the legend's position on the chart.
|
|
908
1013
|
*
|
|
@@ -912,8 +1017,24 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
912
1017
|
*/
|
|
913
1018
|
accessor legendPosition: WebChartLegendPositions | undefined;
|
|
914
1019
|
/**
|
|
915
|
-
*
|
|
916
|
-
*
|
|
1020
|
+
* When the pie chart label contains either a numeric value or a percentage (which can be set through the
|
|
1021
|
+
* [displayNumericValueOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayNumericValueOnLegendItems) and
|
|
1022
|
+
* [displayPercentageOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayPercentageOnLegendItems) properties from the pie chart model), this property
|
|
1023
|
+
* can be used to format the numeric value and/or percentage. If the returned string contains HTML tags they will be interpreted as such.
|
|
1024
|
+
*
|
|
1025
|
+
* @example
|
|
1026
|
+
* ```ts
|
|
1027
|
+
* // Set the pie chart model to display both numeric value and percentage.
|
|
1028
|
+
* pieChartModel.displayNumericValueOnLegendItems = true;
|
|
1029
|
+
* pieChartModel.displayPercentageOnLegendItems = true;
|
|
1030
|
+
*
|
|
1031
|
+
* // Render the numeric value and percentage in bold and italic respectively, with 2 decimal places.
|
|
1032
|
+
* chartElement.legendValueLabelFormatter = (value, percentage) => {
|
|
1033
|
+
* return `<strong><u>${Number(value).toFixed(2)}</u></strong> (<em>${Number(percentage).toFixed(2)}%</em>)`;
|
|
1034
|
+
* };
|
|
1035
|
+
* ```
|
|
1036
|
+
*
|
|
1037
|
+
* 
|
|
917
1038
|
*
|
|
918
1039
|
* **Note**: Applicable to pie charts only.
|
|
919
1040
|
*/
|
|
@@ -938,8 +1059,30 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
938
1059
|
* ```
|
|
939
1060
|
*/
|
|
940
1061
|
accessor loaderColors: LoaderColors | undefined;
|
|
941
|
-
/**
|
|
942
|
-
|
|
1062
|
+
/**
|
|
1063
|
+
* Custom messages for translated strings on the chart. If the returned string contains HTML tags they will be interpreted as such.
|
|
1064
|
+
*
|
|
1065
|
+
* The customizable messages can be found thru the [`CommonStringsIdentity`](/references/charts-components/utils/localization/interfaces/#CommonStringsIdentity) variable.
|
|
1066
|
+
*
|
|
1067
|
+
* @example
|
|
1068
|
+
* ```ts
|
|
1069
|
+
* // User sets the xAxisField to a field that doesn't exist in the dataset.
|
|
1070
|
+
* barChartModel.xAxisField = "wrong_field_name";
|
|
1071
|
+
*
|
|
1072
|
+
* // Overrides the default message when there's a query error instead of displaying the default "Failure to read input data." message.
|
|
1073
|
+
* chartElement.messageOverrides = {
|
|
1074
|
+
* errorStrings: {
|
|
1075
|
+
* errors: {
|
|
1076
|
+
* queryError:
|
|
1077
|
+
* "<b><u>The input data provided is invalid, please ensure the xAxisField is correctly specified.</u></b>"
|
|
1078
|
+
* },
|
|
1079
|
+
* },
|
|
1080
|
+
* };
|
|
1081
|
+
* ```
|
|
1082
|
+
*
|
|
1083
|
+
* 
|
|
1084
|
+
*/
|
|
1085
|
+
accessor messageOverrides: {
|
|
943
1086
|
utilsStrings?: {
|
|
944
1087
|
chartType?: {
|
|
945
1088
|
chart?: string | undefined;
|
|
@@ -1077,6 +1220,10 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1077
1220
|
twoTemporalSeriesLineCountCannotExceedLimit?: string | undefined;
|
|
1078
1221
|
threePlusTemporalSeriesLineCountCannotExceedLimit?: string | undefined;
|
|
1079
1222
|
lineSeriesCountCannotExceedLimit?: string | undefined;
|
|
1223
|
+
uniqueSeriesRadarCountCannotExceedLimit?: string | undefined;
|
|
1224
|
+
twoSeriesRadarCountCannotExceedLimit?: string | undefined;
|
|
1225
|
+
threePlusSeriesRadarCountCannotExceedLimit?: string | undefined;
|
|
1226
|
+
radarSeriesCountCannotExceedLimit?: string | undefined;
|
|
1080
1227
|
uniqueSeriesBoxCountCannotExceedLimit?: string | undefined;
|
|
1081
1228
|
twoSeriesBoxCountCannotExceedLimit?: string | undefined;
|
|
1082
1229
|
threePlusBoxLineCountCannotExceedLimit?: string | undefined;
|
|
@@ -1206,25 +1353,42 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1206
1353
|
"Unable to load file: %1"?: string | undefined;
|
|
1207
1354
|
"Invalid date"?: string | undefined;
|
|
1208
1355
|
} | undefined;
|
|
1209
|
-
};
|
|
1356
|
+
} & { chartNotFoundWarning?: string | undefined; };
|
|
1210
1357
|
/**
|
|
1211
1358
|
* Provides an API to interact with the chart's configuration.
|
|
1212
1359
|
*
|
|
1213
|
-
*
|
|
1360
|
+
* `model` accepts either a [ChartModel](https://developers.arcgis.com/javascript/latest/references/charts-components/model/chart-model/chart-model/) instance or a [WebChart](https://developers.arcgis.com/javascript/latest/references/charts-components/spec/web-chart/#WebChart) object.
|
|
1361
|
+
* - `ChartModel`: A chart model class instance, which can be created using the [createModel](https://developers.arcgis.com/javascript/latest/references/charts-components/model/shared/setup-utils/#createModel) function.
|
|
1362
|
+
* - This is the recommended approach as it ensures the chart configuration is valid and compatible with the component.
|
|
1363
|
+
* - `WebChart`: A plain chart configuration object that follows the [WebChart](https://developers.arcgis.com/javascript/latest/references/charts-components/spec/web-chart/#WebChart) specification.
|
|
1364
|
+
*
|
|
1365
|
+
* @see [Create a new chart with charts model](https://developers.arcgis.com/javascript/latest/charts/#create-a-new-chart-with-charts-model)
|
|
1214
1366
|
*/
|
|
1215
1367
|
accessor model: ChartModel | WebChart | undefined;
|
|
1216
1368
|
/**
|
|
1217
|
-
*
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1369
|
+
* When `true`, null values are considered as valid.
|
|
1370
|
+
*
|
|
1371
|
+
* By default, when the data contains only null values, the chart dataset is considered empty:
|
|
1372
|
+
* - The [@arcgisBadDataWarningRaise](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisBadDataWarningRaise) event will be sent.
|
|
1373
|
+
* - The "No data available to display" warning message will be displayed in the chart container.
|
|
1220
1374
|
*
|
|
1221
1375
|
* @default false
|
|
1222
1376
|
*/
|
|
1223
1377
|
accessor nullAsValid: boolean;
|
|
1224
|
-
/**
|
|
1378
|
+
/**
|
|
1379
|
+
* Placeholder text displayed in the chart container when no chart is configured.
|
|
1380
|
+
* If the string contains HTML tags they will be interpreted as such.
|
|
1381
|
+
*
|
|
1382
|
+
* @example
|
|
1383
|
+
* ```ts
|
|
1384
|
+
* chartElement.placeholder = "<strong>Welcome!</strong><br/>Read the <a href=\"https://developers.arcgis.com/javascript/latest/charts/charts-intro/\">charts introduction page</a> to get started.";
|
|
1385
|
+
* ```
|
|
1386
|
+
*
|
|
1387
|
+
* 
|
|
1388
|
+
*/
|
|
1225
1389
|
accessor placeholder: string | undefined;
|
|
1226
1390
|
/**
|
|
1227
|
-
*
|
|
1391
|
+
* When `true`, field aliases from layer's [popupTemplate](/references/core/layers/FeatureLayer/#popupTemplate) are used to render field names in tooltips, axes and legend on the chart.
|
|
1228
1392
|
*
|
|
1229
1393
|
* @default false
|
|
1230
1394
|
*/
|
|
@@ -1245,12 +1409,13 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1245
1409
|
*/
|
|
1246
1410
|
accessor replaceNoValueCategoryWithZero: boolean | undefined;
|
|
1247
1411
|
/**
|
|
1248
|
-
* When `true`, the
|
|
1412
|
+
* When `true`, the feature extent is returned in the payload of [@arcgisDataProcessComplete](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisDataProcessComplete)
|
|
1413
|
+
* and [@arcgisSelectionComplete](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisSelectionComplete) events.
|
|
1249
1414
|
* Applies only to:
|
|
1250
1415
|
* - Charts using an aggregation.
|
|
1251
|
-
* - Data
|
|
1416
|
+
* - Data sources using a feature layer compatible with envelope aggregation.
|
|
1252
1417
|
*
|
|
1253
|
-
* The extent
|
|
1418
|
+
* The extent is returned through the [featuresExtentField](https://developers.arcgis.com/javascript/latest/references/charts-components/utils/defaults/index/#featuresExtentField) variable.
|
|
1254
1419
|
*
|
|
1255
1420
|
* **Note**: Not applicable to gauges.
|
|
1256
1421
|
*
|
|
@@ -1258,7 +1423,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1258
1423
|
*/
|
|
1259
1424
|
accessor returnFeaturesExtent: boolean;
|
|
1260
1425
|
/**
|
|
1261
|
-
* When `true`,
|
|
1426
|
+
* When `true`, selection indexes are computed and returned whenever a selection is made on or passed to the chart.
|
|
1262
1427
|
*
|
|
1263
1428
|
* **Note**: Not applicable to gauges.
|
|
1264
1429
|
*
|
|
@@ -1266,10 +1431,10 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1266
1431
|
*/
|
|
1267
1432
|
accessor returnSelectionIndexes: boolean;
|
|
1268
1433
|
/**
|
|
1269
|
-
* When `true`,
|
|
1270
|
-
* Only considered for
|
|
1434
|
+
* When `true`, object ids are computed and returned whenever a selection is made on or passed to the chart.
|
|
1435
|
+
* Only considered for data sources using a [feature layer](/references/core/layers/FeatureLayer).
|
|
1271
1436
|
*
|
|
1272
|
-
* **Note**: Not applicable to gauges or charts configured with imagery layers.
|
|
1437
|
+
* **Note**: Not applicable to gauges or charts configured with imagery layers.
|
|
1273
1438
|
*
|
|
1274
1439
|
* @default false
|
|
1275
1440
|
*/
|
|
@@ -1277,7 +1442,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1277
1442
|
/**
|
|
1278
1443
|
* When `true`, the chart is rotated 90 degrees so that the x-axis becomes vertical and the y-axis becomes horizontal.
|
|
1279
1444
|
*
|
|
1280
|
-
* **Note**: Applicable to bar
|
|
1445
|
+
* **Note**: Applicable to bar charts, box plots, combo bar line charts and line charts.
|
|
1281
1446
|
*
|
|
1282
1447
|
* @default false
|
|
1283
1448
|
*/
|
|
@@ -1292,12 +1457,29 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1292
1457
|
*/
|
|
1293
1458
|
accessor rotation: boolean;
|
|
1294
1459
|
/**
|
|
1295
|
-
* Applies runtime data filters to the chart.
|
|
1460
|
+
* Applies runtime data filters to the chart, features will be filtered based on the provided key value pairs.
|
|
1461
|
+
*
|
|
1462
|
+
* Supported keys are `where`, `objectIds`, `geometry`, `spatialRelationship`, `distance`, `units`, `timeExtent`, and `gdbVersion`.
|
|
1296
1463
|
*
|
|
1297
1464
|
* @example
|
|
1298
1465
|
* ```ts
|
|
1466
|
+
* // This example filters the chart to show only features with the name "Katrina", object IDs 12, 19, and 27, within a specified geometry, within 10 miles and a specific time extent.
|
|
1467
|
+
* const start = new Date(2005, 8, 23).getTime();
|
|
1468
|
+
* const end = new Date(2005, 8, 28).getTime();
|
|
1469
|
+
*
|
|
1299
1470
|
* chartComponent.runtimeDataFilters = {
|
|
1300
|
-
* where: "
|
|
1471
|
+
* where: "Name = 'Katrina'",
|
|
1472
|
+
* objectIds: [12, 19, 27],
|
|
1473
|
+
* geometry: {
|
|
1474
|
+
* xmin: -130,
|
|
1475
|
+
* ymin: 20,
|
|
1476
|
+
* xmax: -60,
|
|
1477
|
+
* ymax: 55,
|
|
1478
|
+
* },
|
|
1479
|
+
* spatialRelationship: "contains",
|
|
1480
|
+
* distance: 10,
|
|
1481
|
+
* units: "miles",
|
|
1482
|
+
* timeExtent: [start, end]
|
|
1301
1483
|
* };
|
|
1302
1484
|
* ```
|
|
1303
1485
|
*/
|
|
@@ -1305,11 +1487,60 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1305
1487
|
/**
|
|
1306
1488
|
* Callback function used to format the secondary y-axis labels. If the returned string contains HTML tags they will be interpreted as such.
|
|
1307
1489
|
*
|
|
1308
|
-
*
|
|
1490
|
+
* @example
|
|
1491
|
+
* ```ts
|
|
1492
|
+
* // Render a custom secondary y-axis label with the value formatted as a compact currency.
|
|
1493
|
+
* chartElement.secondaryYAxisLabelFormatter = (value) => {
|
|
1494
|
+
* const formattedValue = new Intl.NumberFormat("en-US", {
|
|
1495
|
+
* style: "currency",
|
|
1496
|
+
* currency: "USD",
|
|
1497
|
+
* notation: "compact",
|
|
1498
|
+
* maximumFractionDigits: 1,
|
|
1499
|
+
* }).format(value);
|
|
1500
|
+
* return `<strong>${formattedValue}</strong>`;
|
|
1501
|
+
* };
|
|
1502
|
+
* ```
|
|
1503
|
+
*
|
|
1504
|
+
* 
|
|
1505
|
+
*
|
|
1506
|
+
* **Note**: Applicable to bar, line, and combo bar line charts configured with dual axes through the [setSeriesToSecondaryYAxis](https://developers.arcgis.com/javascript/latest/references/charts-components/model/bar-chart-model/bar-chart-model/#setSeriesToSecondaryYAxis) method.
|
|
1309
1507
|
*/
|
|
1310
1508
|
accessor secondaryYAxisLabelFormatter: AxisLabelFormatCallback | undefined;
|
|
1311
1509
|
/**
|
|
1312
|
-
*
|
|
1510
|
+
* Applies a programmatic selection to the chart. The payload can target chart elements by object IDs (`selectionOIDs`), by indexes (`selectionIndexes`), or by items (`selectionItems`).
|
|
1511
|
+
*
|
|
1512
|
+
* ##### Selection by object IDs
|
|
1513
|
+
* When passing in a `selectionOIDs` array, the chart will match the provided object IDs with the chart's data items and apply the selection.
|
|
1514
|
+
*
|
|
1515
|
+
* @example
|
|
1516
|
+
* ```ts
|
|
1517
|
+
* // This selects the chart data items (`Mid East` and `Great Lakes`) that contains the object IDs "3118" and "6544".
|
|
1518
|
+
* chartElement.selectionData = {
|
|
1519
|
+
* selectionOIDs: [3118, 6544],
|
|
1520
|
+
* };
|
|
1521
|
+
* ```
|
|
1522
|
+
*
|
|
1523
|
+
* 
|
|
1524
|
+
*
|
|
1525
|
+
*
|
|
1526
|
+
* ##### Selection by items
|
|
1527
|
+
* When passing in a `selectionItems` array, the chart will match the provided items with the chart's data items and apply the selection.
|
|
1528
|
+
* @example
|
|
1529
|
+
* ```ts
|
|
1530
|
+
* // This selects the first chart data item with the matching items.
|
|
1531
|
+
* chartElement.selectionData = {
|
|
1532
|
+
* selectionItems: [
|
|
1533
|
+
* {
|
|
1534
|
+
* // The field name and value
|
|
1535
|
+
* neighbourhood_group: "Manhattan",
|
|
1536
|
+
* // The y-series field name and value, 0 indicates the first series.
|
|
1537
|
+
* COUNT_OBJECTID_0: "",
|
|
1538
|
+
* },
|
|
1539
|
+
* ],
|
|
1540
|
+
* };
|
|
1541
|
+
* ```
|
|
1542
|
+
*
|
|
1543
|
+
* 
|
|
1313
1544
|
*
|
|
1314
1545
|
* **Note**: Not applicable to gauges.
|
|
1315
1546
|
*/
|
|
@@ -1322,77 +1553,108 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1322
1553
|
*/
|
|
1323
1554
|
accessor selectionManager: SelectionManager | undefined;
|
|
1324
1555
|
/**
|
|
1325
|
-
*
|
|
1326
|
-
* - If no style is provided for the selected elements, a default selection is applied.
|
|
1327
|
-
* - If no style is provided for the non selected elements, the chart's style is applied.
|
|
1556
|
+
* Customizes the visual style applied to selected and non-selected chart data items (bars, slices, markers, boxes etc.).
|
|
1328
1557
|
*
|
|
1329
|
-
*
|
|
1558
|
+
* - The [`selectedElementsTheme`](/references/charts-components/utils/misc/interfaces/#SelectionTheme-selectedElementsTheme) property controls the appearance of selected elements.
|
|
1559
|
+
* - The [`nonSelectedElementsTheme`](/references/charts-components/utils/misc/interfaces/#SelectionTheme-nonSelectedElementsTheme) property controls the appearance of elements that are not selected.
|
|
1330
1560
|
*
|
|
1331
1561
|
* @example
|
|
1332
1562
|
* ```ts
|
|
1333
|
-
*
|
|
1334
|
-
*
|
|
1335
|
-
*
|
|
1336
|
-
*
|
|
1337
|
-
*
|
|
1563
|
+
* chartElement.selectionTheme = {
|
|
1564
|
+
* // The selected elements will have a magenta outline with a width of 3 pixels and will be scaled up by 10%.
|
|
1565
|
+
* selectedElementsTheme: {
|
|
1566
|
+
* elementOutlineColor: [255, 0, 237, 255],
|
|
1567
|
+
* elementOutlineWidth: 3,
|
|
1568
|
+
* transformation: {
|
|
1569
|
+
* scale: 1.1,
|
|
1570
|
+
* },
|
|
1338
1571
|
* },
|
|
1339
|
-
*
|
|
1340
|
-
*
|
|
1341
|
-
*
|
|
1342
|
-
*
|
|
1343
|
-
*
|
|
1344
|
-
*
|
|
1572
|
+
* // The non-selected elements will be scaled down by 20% and have their opacity reduced to 50%.
|
|
1573
|
+
* nonSelectedElementsTheme: {
|
|
1574
|
+
* transformation: {
|
|
1575
|
+
* scale: 0.8,
|
|
1576
|
+
* opacity: 0.5,
|
|
1577
|
+
* },
|
|
1578
|
+
* },
|
|
1579
|
+
* };
|
|
1345
1580
|
* ```
|
|
1581
|
+
*
|
|
1582
|
+
* 
|
|
1583
|
+
*
|
|
1584
|
+
* **Note**: Not applicable to gauges.
|
|
1346
1585
|
*/
|
|
1347
1586
|
accessor selectionTheme: SelectionTheme | undefined;
|
|
1348
1587
|
/**
|
|
1349
|
-
* When `true`, the
|
|
1588
|
+
* When `true`, the time binning unit and size is automatically set when not provided via the [`temporalBinningSize`](/references/charts-components/model/bar-chart-model/bar-chart-model/#temporalBinningSize) or [`temporalBinningUnit`](/references/charts-components/model/line-chart-model/line-chart-model/#temporalBinningUnit) properties of the chart model.
|
|
1350
1589
|
*
|
|
1351
|
-
*
|
|
1590
|
+
* The time binning unit and size information for the chart will be derived from the dataset's date minimum and maximum values to compute an interval that best fits the date range.
|
|
1591
|
+
*
|
|
1592
|
+
* **Note**: Only applicable to charts with temporal binning enabled (bar chart, combo bar line chart, line chart, radar chart).
|
|
1352
1593
|
*
|
|
1353
1594
|
* @default false
|
|
1354
1595
|
*/
|
|
1355
1596
|
accessor setTimeBinningInfoWhenNotProvided: boolean;
|
|
1356
1597
|
/**
|
|
1357
|
-
*
|
|
1358
|
-
*
|
|
1359
|
-
* When `false`, the empty series are completely hidden from the chart and the legend.
|
|
1360
|
-
* For example a series can be empty after applying a data filter, filter by attribute or geometry (as when using the filter by view extent).
|
|
1598
|
+
* When `true`, show the series on the chart and legend even if it doesn't contain any data.
|
|
1361
1599
|
*
|
|
1362
|
-
*
|
|
1600
|
+
* By default, the empty series are hidden from the chart and the legend.
|
|
1363
1601
|
*
|
|
1364
1602
|
* @default false
|
|
1603
|
+
* @example
|
|
1604
|
+
* ```ts
|
|
1605
|
+
* // In this example, we first set a data filter to only include features with a room type of "Entire home/apt" or "Private room".
|
|
1606
|
+
* // The "Shared room" series will be empty after applying the data filter.
|
|
1607
|
+
* chartElement.runtimeDataFilters = {
|
|
1608
|
+
* where: "room_type = 'Entire home/apt' OR room_type = 'Private room'",
|
|
1609
|
+
* };
|
|
1610
|
+
*
|
|
1611
|
+
* // With the `showEmptySeries` property set to `true`,
|
|
1612
|
+
* // the "Shared room" series will still be displayed on the chart and in the legend, even though it was filtered out.
|
|
1613
|
+
* chartElement.showEmptySeries = true;
|
|
1614
|
+
* ```
|
|
1615
|
+
*
|
|
1616
|
+
* 
|
|
1617
|
+
*
|
|
1618
|
+
* **Note**: Not applicable to gauges.
|
|
1365
1619
|
* @since 5.1
|
|
1366
1620
|
*/
|
|
1367
1621
|
accessor showEmptySeries: boolean;
|
|
1368
1622
|
/**
|
|
1369
|
-
*
|
|
1623
|
+
* When `true`, the license watermark is displayed on the lower left corner of the chart.
|
|
1370
1624
|
*
|
|
1625
|
+
* @deprecated since 5.2. Won't be replaced.
|
|
1371
1626
|
* @default false
|
|
1372
1627
|
* @since 5.1
|
|
1373
1628
|
*/
|
|
1374
1629
|
accessor showLicenseWatermark: boolean;
|
|
1375
1630
|
/**
|
|
1376
|
-
* Whether to display or hide all UI messages (e.g. no data warnings,
|
|
1631
|
+
* Whether to display or hide all UI messages (e.g. no data warnings, any placeholder messages set or invalid chart configuration).
|
|
1377
1632
|
*
|
|
1378
1633
|
* @deprecated since 5.1. Use [hideUIMessages](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#hideUIMessages) instead.
|
|
1379
1634
|
* @default false
|
|
1380
1635
|
*/
|
|
1381
1636
|
accessor showUIMessages: boolean | undefined;
|
|
1382
1637
|
/**
|
|
1383
|
-
* Whether to skip the chart rendering queue.
|
|
1384
|
-
*
|
|
1385
1638
|
* When `true`, charts will render immediately without waiting for other charts to finish rendering.
|
|
1386
|
-
*
|
|
1639
|
+
* By default, charts are queued so that only one chart renders at a time.
|
|
1387
1640
|
*
|
|
1388
1641
|
* @default false
|
|
1389
1642
|
* @since 5.1
|
|
1390
1643
|
*/
|
|
1391
1644
|
accessor skipChartCreationQueue: boolean;
|
|
1392
1645
|
/**
|
|
1393
|
-
*
|
|
1646
|
+
* When `true`, the selection will be synchronized between charts configured with the same layer.
|
|
1394
1647
|
*
|
|
1395
1648
|
* @default false
|
|
1649
|
+
* @example
|
|
1650
|
+
* ```ts
|
|
1651
|
+
* // Both charts are configured with the same layer.
|
|
1652
|
+
* // The "Private room" slice is selected on the pie chart and the selection is reflected on the bar chart.
|
|
1653
|
+
* chartElement1.syncChartsSelection = true;
|
|
1654
|
+
* chartElement2.syncChartsSelection = true;
|
|
1655
|
+
* ```
|
|
1656
|
+
*
|
|
1657
|
+
* 
|
|
1396
1658
|
* @since 5.1
|
|
1397
1659
|
*/
|
|
1398
1660
|
accessor syncChartsSelection: boolean;
|
|
@@ -1455,33 +1717,41 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1455
1717
|
*/
|
|
1456
1718
|
accessor timeZone: MapView["timeZone"] | undefined;
|
|
1457
1719
|
/**
|
|
1458
|
-
*
|
|
1720
|
+
* When `true`, disables the toggling of series or slices from the legend items. Clicking on the legend items will not hide or show the corresponding elements on the chart.
|
|
1459
1721
|
*
|
|
1460
|
-
* **Note**: Only applicable to
|
|
1722
|
+
* **Note**: Only applicable to charts with multiple series and while the legend is displayed.
|
|
1461
1723
|
*
|
|
1724
|
+
* @deprecated since 5.2. Use [legendInteractionsDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#legendInteractionsDisabled) instead.
|
|
1462
1725
|
* @default false
|
|
1463
1726
|
*/
|
|
1464
1727
|
accessor togglingLegendItemsDisabled: boolean | undefined;
|
|
1465
1728
|
/**
|
|
1466
|
-
* Callback function used to format the tooltips. If the returned string contains HTML tags they will be interpreted as such.
|
|
1729
|
+
* Callback function used to format the tooltips when hovering over a chart element. If the returned string contains HTML tags they will be interpreted as such.
|
|
1467
1730
|
*
|
|
1468
1731
|
* @example
|
|
1469
1732
|
* ```ts
|
|
1470
|
-
*
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1733
|
+
* // Render a custom tooltip with the series name, x-value, and stat value.
|
|
1734
|
+
* chartElement.tooltipFormatter = (props) => `
|
|
1735
|
+
* <div>
|
|
1736
|
+
* <div><strong>${props.seriesName}</strong> in <strong>${props.xValue}</strong></div>
|
|
1737
|
+
* <div>Total listings: <strong>${props.statValue}</strong></div>
|
|
1738
|
+
* </div>
|
|
1739
|
+
* `;
|
|
1473
1740
|
* ```
|
|
1474
1741
|
*
|
|
1742
|
+
* 
|
|
1743
|
+
*
|
|
1475
1744
|
* **Note**: Not applicable to gauges.
|
|
1476
1745
|
*/
|
|
1477
|
-
accessor tooltipFormatter:
|
|
1746
|
+
accessor tooltipFormatter: TooltipFormatters | undefined;
|
|
1478
1747
|
/**
|
|
1479
|
-
* Whether to
|
|
1480
|
-
*
|
|
1481
|
-
*
|
|
1482
|
-
*
|
|
1748
|
+
* Whether to automatically add the missing series to cover the split-by values not referenced in the configuration.
|
|
1749
|
+
* - This property only applies to plain chart configuration object that's constructed following the [WebChart](https://developers.arcgis.com/javascript/latest/references/charts-components/spec/web-chart/#WebChart) specification.
|
|
1750
|
+
* - When [`addMissingSeries`](/references/charts-components/utils/components/interfaces/#MissingSplitBySeriesProps-addMissingSeries) is set to `true`, the missing series will be added.
|
|
1751
|
+
* - When [`seriesTemplate`](/references/charts-components/utils/components/interfaces/#MissingSplitBySeriesProps-seriesTemplate) is omitted, the first existing series from the configuration will be copied to be used as a model for the missing ones. The chart won't render if the series template is not set and there's no series in the configuration.
|
|
1752
|
+
* - If a chart is configured using a chart model, this property is not necessary as the split-by series will be updated automatically when the model's properties are changed.
|
|
1483
1753
|
*
|
|
1484
|
-
* **Note**: Applicable only to bar chart, line chart and
|
|
1754
|
+
* **Note**: Applicable only to bar chart, box plot, line chart and radar chart when a split-by field is used.
|
|
1485
1755
|
*/
|
|
1486
1756
|
accessor updateSplitBySeries: MissingSplitBySeriesProps | undefined;
|
|
1487
1757
|
/**
|
|
@@ -1513,15 +1783,47 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1513
1783
|
/**
|
|
1514
1784
|
* Callback function used to format the x-axis labels. If the returned string contains HTML tags they will be interpreted as such.
|
|
1515
1785
|
*
|
|
1516
|
-
*
|
|
1786
|
+
* @example
|
|
1787
|
+
* ```ts
|
|
1788
|
+
* // Render a custom x-axis label with underlined string and bolded value.
|
|
1789
|
+
* chartElement.xAxisLabelFormatter = (value) => {
|
|
1790
|
+
* return `<u>Neighbourhood Group:</u> <strong>${value}</strong>`;
|
|
1791
|
+
* };
|
|
1792
|
+
* ```
|
|
1793
|
+
*
|
|
1794
|
+
* 
|
|
1795
|
+
*
|
|
1796
|
+
* **Note**: Only applicable to charts with x-axis labels displayed.
|
|
1517
1797
|
*/
|
|
1518
1798
|
accessor xAxisLabelFormatter: AxisLabelFormatCallback | undefined;
|
|
1519
1799
|
/**
|
|
1520
1800
|
* Callback function used to format the y-axis labels. If the returned string contains HTML tags they will be interpreted as such.
|
|
1521
1801
|
*
|
|
1522
|
-
*
|
|
1802
|
+
* @example
|
|
1803
|
+
* ```ts
|
|
1804
|
+
* // Render a custom y-axis label with underlined string and bolded value.
|
|
1805
|
+
* chartElement.yAxisLabelFormatter = (value) => {
|
|
1806
|
+
* return `<u>Rental Listings:</u> <strong>${value}</strong>`;
|
|
1807
|
+
* };
|
|
1808
|
+
* ```
|
|
1809
|
+
*
|
|
1810
|
+
* 
|
|
1811
|
+
*
|
|
1812
|
+
* **Note**: Only applicable to charts with y-axis labels displayed.
|
|
1523
1813
|
*/
|
|
1524
1814
|
accessor yAxisLabelFormatter: AxisLabelFormatCallback | undefined;
|
|
1815
|
+
/**
|
|
1816
|
+
* When `true`, count=0 is considered a valid statistic.
|
|
1817
|
+
*
|
|
1818
|
+
* By default, when the aggregation type is "count" and the data contains only values equal to 0, the chart dataset
|
|
1819
|
+
* is considered empty:
|
|
1820
|
+
* - The [@arcgisBadDataWarningRaise](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisBadDataWarningRaise) event will be sent.
|
|
1821
|
+
* - The "No data available to display" warning message will be displayed in the chart container.
|
|
1822
|
+
*
|
|
1823
|
+
* @default false
|
|
1824
|
+
* @since 5.2
|
|
1825
|
+
*/
|
|
1826
|
+
accessor zeroCountAsValid: boolean;
|
|
1525
1827
|
/**
|
|
1526
1828
|
* Apply the selection from the selection manager to the chart.
|
|
1527
1829
|
*
|
|
@@ -1535,7 +1837,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1535
1837
|
*/
|
|
1536
1838
|
clearSelection(): Promise<void>;
|
|
1537
1839
|
/**
|
|
1538
|
-
* Destroys the chart instance
|
|
1840
|
+
* Destroys the chart instance.
|
|
1539
1841
|
*
|
|
1540
1842
|
* @since 5.1
|
|
1541
1843
|
*/
|
|
@@ -1550,110 +1852,280 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1550
1852
|
/**
|
|
1551
1853
|
* Export the current chart's data as a CSV file.
|
|
1552
1854
|
*
|
|
1553
|
-
* The
|
|
1554
|
-
*
|
|
1555
|
-
*
|
|
1556
|
-
*
|
|
1557
|
-
*
|
|
1558
|
-
*
|
|
1559
|
-
*
|
|
1560
|
-
*
|
|
1561
|
-
*
|
|
1562
|
-
*
|
|
1563
|
-
*
|
|
1564
|
-
*
|
|
1565
|
-
*
|
|
1566
|
-
*
|
|
1567
|
-
*
|
|
1568
|
-
*
|
|
1569
|
-
*
|
|
1570
|
-
*
|
|
1855
|
+
* @param options - The options to customize the exported CSV file.
|
|
1856
|
+
* @example
|
|
1857
|
+
* ```ts
|
|
1858
|
+
* // Export the chart's data as a CSV file with custom options.
|
|
1859
|
+
* await chartElement.exportAsCSV({
|
|
1860
|
+
* columns: ["neighbourhood_group", "room_type", "Count"],
|
|
1861
|
+
* delimiter: "|",
|
|
1862
|
+
* includeHeader: false,
|
|
1863
|
+
* quoteAll: true,
|
|
1864
|
+
* locale: "fr"
|
|
1865
|
+
* });
|
|
1866
|
+
* ```
|
|
1867
|
+
*
|
|
1868
|
+
* ```csv
|
|
1869
|
+
* // The exported CSV file will contain the following data:
|
|
1870
|
+
* sep=|
|
|
1871
|
+
* "Bronx"|"Entire home/apt"|"379"
|
|
1872
|
+
* "Bronx"|"Private room"|"652"
|
|
1873
|
+
* "Bronx"|"Shared room"|"60"
|
|
1874
|
+
* "Brooklyn"|"Entire home/apt"|"9 559"
|
|
1875
|
+
* ...
|
|
1876
|
+
* ```
|
|
1877
|
+
*
|
|
1878
|
+
* **Note**: Not supported for gauges, scatterplots and radar charts.
|
|
1571
1879
|
*/
|
|
1572
1880
|
exportAsCSV(options?: CSVOptions): Promise<void>;
|
|
1573
1881
|
/**
|
|
1574
|
-
* Exports the current chart as an image.
|
|
1575
|
-
* -
|
|
1882
|
+
* Exports and downloads the current chart as an image.
|
|
1883
|
+
* - Supported formats: `png` (default), `jpeg`, `jpg`, `webp`, and `svg`.
|
|
1884
|
+
* - When `webp` format is used on Safari, it will fallback to `png`.
|
|
1576
1885
|
*
|
|
1577
|
-
* @param format
|
|
1886
|
+
* @param format - The image format to export the chart as. Default: `png`.
|
|
1578
1887
|
*/
|
|
1579
1888
|
exportAsImage(format?: DownloadableChartImagesTypes): Promise<void>;
|
|
1580
|
-
/**
|
|
1889
|
+
/**
|
|
1890
|
+
* Returns a promise that resolves when the chart model is fully loaded.
|
|
1891
|
+
*
|
|
1892
|
+
* This method should be used when loading a chart with [layerItemId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layerItemId) and [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex), and further customization of the chart model is needed.
|
|
1893
|
+
*
|
|
1894
|
+
* @example
|
|
1895
|
+
* ```html
|
|
1896
|
+
* // Load a chart from a layer item
|
|
1897
|
+
* <arcgis-chart layer-item-id="8871626e970a4f3e9d6113ec63a92f2f" chart-index="2" />
|
|
1898
|
+
* ```
|
|
1899
|
+
* ```ts
|
|
1900
|
+
* // Get a reference to the chart element in the DOM
|
|
1901
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
1902
|
+
*
|
|
1903
|
+
* // Call the method to ensure the model is fully loaded before making changes
|
|
1904
|
+
* await chartElement.loadModel();
|
|
1905
|
+
*
|
|
1906
|
+
* // Once the model is loaded, use the model's properties/methods to customize
|
|
1907
|
+
* chartElement.model.titleText = "New Title";
|
|
1908
|
+
* ```
|
|
1909
|
+
* @see [Load from layer item and customize with charts model](https://developers.arcgis.com/javascript/latest/charts/#load-from-layer-item-and-customize-with-charts-model)
|
|
1910
|
+
*/
|
|
1581
1911
|
loadModel(): Promise<void>;
|
|
1582
1912
|
/**
|
|
1583
|
-
*
|
|
1584
|
-
*
|
|
1585
|
-
* In a situation where a model update is overriding the notification modal, consider waiting for the [@arcgisUpdateComplete](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisUpdateComplete) event.
|
|
1913
|
+
* Passes external messages to the chart component and displays them in the chart's container.
|
|
1914
|
+
* When a model update is overriding the notification modal, consider waiting for the [@arcgisRenderingComplete](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisRenderingComplete) event.
|
|
1586
1915
|
*
|
|
1587
|
-
* @param message - The message to display in the chart's
|
|
1588
|
-
* @param heading - The heading to display in the chart's
|
|
1916
|
+
* @param message - The message to display in the chart's container.
|
|
1917
|
+
* @param heading - The heading to display in the chart's container.
|
|
1918
|
+
* @example
|
|
1919
|
+
* ```html
|
|
1920
|
+
* <button id="show-notification" type="button">Show notification</button>
|
|
1921
|
+
* <button id="clear-notification" type="button">Clear notification</button>
|
|
1922
|
+
* ```
|
|
1923
|
+
*
|
|
1924
|
+
* ```ts
|
|
1925
|
+
* // When the "Show notification" button is clicked, the chart's container will display a custom message and heading.
|
|
1926
|
+
* document.querySelector("#show-notification").addEventListener("click", () => {
|
|
1927
|
+
* chartElement.notify(
|
|
1928
|
+
* "This is a notification message.",
|
|
1929
|
+
* "Notification heading",
|
|
1930
|
+
* );
|
|
1931
|
+
* });
|
|
1932
|
+
*
|
|
1933
|
+
* // When the "Clear notification" button is clicked, the chart's container will be cleared and hidden.
|
|
1934
|
+
* document.querySelector("#clear-notification").addEventListener("click", () => {
|
|
1935
|
+
* chartElement.notify();
|
|
1936
|
+
* });
|
|
1937
|
+
* ```
|
|
1589
1938
|
*/
|
|
1590
1939
|
notify(message?: string, heading?: string): Promise<void>;
|
|
1591
1940
|
/**
|
|
1592
1941
|
* Re-render the chart.
|
|
1593
1942
|
*
|
|
1594
|
-
* @param props -
|
|
1943
|
+
* @param props - Properties to control the refresh behavior: `updateData` indicates whether to fetch new data (default: `true`), and `resetAxesBounds` indicates whether to reset the axes bounds along with the refresh (default: `false`).
|
|
1595
1944
|
*/
|
|
1596
1945
|
refresh(props?: {
|
|
1597
1946
|
updateData?: boolean;
|
|
1598
1947
|
resetAxesBounds?: boolean;
|
|
1599
1948
|
}): Promise<void>;
|
|
1600
1949
|
/**
|
|
1601
|
-
* Resets the chart zoom
|
|
1950
|
+
* Resets the chart's zoom and brings it back to full zoom extent.
|
|
1602
1951
|
*
|
|
1603
|
-
* **Note**:
|
|
1952
|
+
* **Note**: Not applicable to gauges, heat charts, pie charts and radar charts.
|
|
1604
1953
|
*/
|
|
1605
1954
|
resetZoom(): Promise<void>;
|
|
1606
1955
|
/**
|
|
1607
1956
|
* Switches the selection on the chart.
|
|
1608
1957
|
*
|
|
1609
|
-
* **Note**: Not applicable to
|
|
1958
|
+
* **Note**: Not applicable to gauges.
|
|
1610
1959
|
*/
|
|
1611
1960
|
switchSelection(): Promise<void>;
|
|
1612
|
-
/**
|
|
1961
|
+
/**
|
|
1962
|
+
* Emitted when the chart's axes minimum or maximum values are computed.
|
|
1963
|
+
*
|
|
1964
|
+
* @example
|
|
1965
|
+
* ```ts
|
|
1966
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
1967
|
+
* chartElement.addEventListener("arcgisAxesMinMaxChange", (event) => {
|
|
1968
|
+
* const { bounds, model } = event.detail;
|
|
1969
|
+
* // Handle the new bounds and model
|
|
1970
|
+
* });
|
|
1971
|
+
* ```
|
|
1972
|
+
*/
|
|
1613
1973
|
readonly arcgisAxesMinMaxChange: import("@arcgis/lumina").TargetedEvent<this, AxesMinMaxChangePayload>;
|
|
1614
|
-
/**
|
|
1974
|
+
/**
|
|
1975
|
+
* Emitted when the chart's data is incompatible with its model. Bad data such as empty dataset, axis logarithmic scale being incompatible with the data will trigger this event.
|
|
1976
|
+
* The event details contain information about the error.
|
|
1977
|
+
*
|
|
1978
|
+
* @example
|
|
1979
|
+
* ```ts
|
|
1980
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
1981
|
+
* chartElement.addEventListener("arcgisBadDataWarningRaise", (event) => {
|
|
1982
|
+
* const { keyword, header, message, params } = event.detail;
|
|
1983
|
+
* // Handle the bad data warning
|
|
1984
|
+
* });
|
|
1985
|
+
* ```
|
|
1986
|
+
*/
|
|
1615
1987
|
readonly arcgisBadDataWarningRaise: import("@arcgis/lumina").TargetedEvent<this, DataWarningObject>;
|
|
1616
|
-
/**
|
|
1988
|
+
/**
|
|
1989
|
+
* Emitted when the chart is not found for the given [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex) property with a valid [layerItemId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layerItemId).
|
|
1990
|
+
*
|
|
1991
|
+
* @example
|
|
1992
|
+
* ```ts
|
|
1993
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
1994
|
+
* chartElement.addEventListener("arcgisChartNotFoundWarning", (event) => {
|
|
1995
|
+
* const warningMessage = event.detail;
|
|
1996
|
+
* // Handle the warning message
|
|
1997
|
+
* });
|
|
1998
|
+
* ```
|
|
1999
|
+
*/
|
|
1617
2000
|
readonly arcgisChartNotFoundWarning: import("@arcgis/lumina").TargetedEvent<this, string>;
|
|
1618
|
-
/**
|
|
2001
|
+
/**
|
|
2002
|
+
* Emitted when the chart configuration is changed.
|
|
2003
|
+
*
|
|
2004
|
+
* @example
|
|
2005
|
+
* ```ts
|
|
2006
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2007
|
+
* chartElement.addEventListener("arcgisConfigChange", (event) => {
|
|
2008
|
+
* const { newConfig, oldConfig, functionCalled } = event.detail;
|
|
2009
|
+
* // Handle the configuration change
|
|
2010
|
+
* });
|
|
2011
|
+
* ```
|
|
2012
|
+
*/
|
|
1619
2013
|
readonly arcgisConfigChange: import("@arcgis/lumina").TargetedEvent<this, {
|
|
1620
2014
|
newConfig: WebChart | undefined;
|
|
1621
2015
|
oldConfig: WebChart | undefined;
|
|
1622
2016
|
functionCalled: string | undefined;
|
|
1623
2017
|
}>;
|
|
1624
2018
|
/**
|
|
1625
|
-
*
|
|
1626
|
-
*
|
|
1627
|
-
* For instance it can be useful to see all the slices before they get grouped into an 'other' slice during the post-processing step.
|
|
2019
|
+
* Emitted once the chart data has been fetched but not yet fully processed. This event can be used to see all the slices before they get grouped into the 'other' slice during the post-processing step for pie charts.
|
|
2020
|
+
* The event details contain the pie chart's data with its ungrouped slices.
|
|
1628
2021
|
*
|
|
1629
2022
|
* **Note**: Applicable to pie charts only.
|
|
1630
2023
|
*/
|
|
1631
2024
|
readonly arcgisDataFetchComplete: import("@arcgis/lumina").TargetedEvent<this, WebChartDataTypes>;
|
|
1632
|
-
/**
|
|
2025
|
+
/**
|
|
2026
|
+
* Emitted once the chart data is updated and any subsequent updates to the chart's data.
|
|
2027
|
+
* The event details contain the chart's data.
|
|
2028
|
+
*
|
|
2029
|
+
* @example
|
|
2030
|
+
* ```ts
|
|
2031
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2032
|
+
* chartElement.addEventListener("arcgisDataProcessComplete", (event) => {
|
|
2033
|
+
* const { chartData, model } = event.detail;
|
|
2034
|
+
* // Handle the processed chart data
|
|
2035
|
+
* });
|
|
2036
|
+
* ```
|
|
2037
|
+
*/
|
|
1633
2038
|
readonly arcgisDataProcessComplete: import("@arcgis/lumina").TargetedEvent<this, DataProcessCompletePayload>;
|
|
1634
|
-
/**
|
|
2039
|
+
/**
|
|
2040
|
+
* Emitted when an error occurred while fetching or processing the data for the chart.
|
|
2041
|
+
*
|
|
2042
|
+
* @example
|
|
2043
|
+
* ```ts
|
|
2044
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2045
|
+
* chartElement.addEventListener("arcgisDataProcessError", () => {
|
|
2046
|
+
* // Handle the data process error
|
|
2047
|
+
* });
|
|
2048
|
+
* ```
|
|
2049
|
+
*/
|
|
1635
2050
|
readonly arcgisDataProcessError: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
1636
2051
|
/**
|
|
1637
|
-
*
|
|
2052
|
+
* Emitted when an invalid configuration is detected.
|
|
1638
2053
|
*
|
|
1639
2054
|
* @deprecated since 5.1. Won't be replaced.
|
|
1640
2055
|
*/
|
|
1641
2056
|
readonly arcgisInvalidConfigWarningRaise: import("@arcgis/lumina").TargetedEvent<this, DataWarningObject>;
|
|
1642
|
-
/**
|
|
2057
|
+
/**
|
|
2058
|
+
* Emitted once a legend item visibility has been changed.
|
|
2059
|
+
* The event details contain the toggled item's visibility and related information (series or slice id).
|
|
2060
|
+
*
|
|
2061
|
+
* @example
|
|
2062
|
+
* ```ts
|
|
2063
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2064
|
+
* chartElement.addEventListener("arcgisLegendItemVisibilityChange", (event) => {
|
|
2065
|
+
* const { legendItemVisibility, model } = event.detail;
|
|
2066
|
+
* // Handle the legend item visibility change
|
|
2067
|
+
* });
|
|
2068
|
+
* ```
|
|
2069
|
+
*/
|
|
1643
2070
|
readonly arcgisLegendItemVisibilityChange: import("@arcgis/lumina").TargetedEvent<this, LegendItemVisibilityChangePayload>;
|
|
1644
|
-
/**
|
|
2071
|
+
/** Emitted when a no-render property ([rotated](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#rotated), [legendPosition](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#legendPosition), [legendVisibility](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#legendVisibility), [view](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#view) and [featureIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#featureIndex)) is changed. */
|
|
1645
2072
|
readonly arcgisNoRenderPropChange: import("@arcgis/lumina").TargetedEvent<this, NoRenderPropChangePayload>;
|
|
1646
|
-
/**
|
|
2073
|
+
/**
|
|
2074
|
+
* Emitted once the chart is created and the rendering is complete. This event also emits with any subsequent chart updates, including when the chart is refreshed or when the configuration is changed.
|
|
2075
|
+
*
|
|
2076
|
+
* @example
|
|
2077
|
+
* ```ts
|
|
2078
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2079
|
+
* chartElement.addEventListener("arcgisRenderingComplete", () => {
|
|
2080
|
+
* // Handle the rendering complete event
|
|
2081
|
+
* });
|
|
2082
|
+
*/
|
|
1647
2083
|
readonly arcgisRenderingComplete: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
1648
|
-
/**
|
|
2084
|
+
/**
|
|
2085
|
+
* Emitted when an error occurred that prevents the chart from being created or updated.
|
|
2086
|
+
*
|
|
2087
|
+
* @example
|
|
2088
|
+
* ```ts
|
|
2089
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2090
|
+
* chartElement.addEventListener("arcgisRuntimeError", () => {
|
|
2091
|
+
* // Handle the runtime error
|
|
2092
|
+
* });
|
|
2093
|
+
*/
|
|
1649
2094
|
readonly arcgisRuntimeError: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
1650
|
-
/**
|
|
2095
|
+
/**
|
|
2096
|
+
* Emitted when a selection is applied to the chart.
|
|
2097
|
+
* The [`selectionData`](/references/charts-components/utils/misc/interfaces/#SelectionData) event detail contains various information about the selection, including the selected OIDs.
|
|
2098
|
+
*
|
|
2099
|
+
* @example
|
|
2100
|
+
* ```ts
|
|
2101
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2102
|
+
* chartElement.addEventListener("arcgisSelectionComplete", (event) => {
|
|
2103
|
+
* const { selectionData, model } = event.detail;
|
|
2104
|
+
* // Handle the selection complete event
|
|
2105
|
+
* });
|
|
2106
|
+
* ```
|
|
2107
|
+
*/
|
|
1651
2108
|
readonly arcgisSelectionComplete: import("@arcgis/lumina").TargetedEvent<this, SelectionCompletePayload>;
|
|
1652
|
-
/**
|
|
2109
|
+
/** Emitted once one of the chart's series color has been assigned or changed. */
|
|
1653
2110
|
readonly arcgisSeriesColorChange: import("@arcgis/lumina").TargetedEvent<this, SeriesColorChangePayload>;
|
|
1654
|
-
/**
|
|
2111
|
+
/**
|
|
2112
|
+
* Emitted when the chart is created and at every update to confirm the order of the series on the chart.
|
|
2113
|
+
* The event details contain the modified series' indexes and names.
|
|
2114
|
+
*
|
|
2115
|
+
* @example
|
|
2116
|
+
* ```ts
|
|
2117
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2118
|
+
* chartElement.addEventListener("arcgisSeriesOrder", (event) => {
|
|
2119
|
+
* // Handle the series order change
|
|
2120
|
+
* });
|
|
2121
|
+
* ```
|
|
2122
|
+
*/
|
|
1655
2123
|
readonly arcgisSeriesOrder: import("@arcgis/lumina").TargetedEvent<this, string[]>;
|
|
1656
|
-
/**
|
|
2124
|
+
/**
|
|
2125
|
+
* Emitted once the chart is updated.
|
|
2126
|
+
*
|
|
2127
|
+
* @deprecated since 5.2. Use [@arcgisRenderingComplete](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisRenderingComplete) instead.
|
|
2128
|
+
*/
|
|
1657
2129
|
readonly arcgisUpdateComplete: import("@arcgis/lumina").TargetedEvent<this, ValidationStatus>;
|
|
1658
2130
|
readonly "@eventTypes": {
|
|
1659
2131
|
arcgisAxesMinMaxChange: ArcgisChart["arcgisAxesMinMaxChange"]["detail"];
|