@arcgis/charts-components 5.2.0-next.11 → 5.2.0-next.110
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/{VDKFC44J.js → 2EUPFLNW.js} +2 -2
- package/dist/cdn/{L5DROI2A.js → 2IWBCO6Z.js} +2 -2
- package/dist/cdn/{II2ZPEUZ.js → 2VJWHI5H.js} +2 -2
- package/dist/cdn/{H3EXGCE7.js → 2VUR2GRV.js} +2 -2
- package/dist/cdn/{IHO3OLL3.js → 3DIZRBOJ.js} +2 -2
- package/dist/cdn/3LVNK4EI.js +2 -0
- package/dist/cdn/{2XXW3WF3.js → 3R6MHDQW.js} +2 -2
- package/dist/cdn/{OBPAQN4H.js → 3WARDHOQ.js} +1 -1
- package/dist/cdn/3XY3OEMH.js +2 -0
- package/dist/cdn/{FEKSPYHM.js → 3Z2C6NLH.js} +2 -2
- package/dist/cdn/{ZYOWZCR7.js → 4ABAUNOO.js} +2 -2
- package/dist/cdn/4DGRKLXO.js +2 -0
- package/dist/cdn/4G3OQ5FC.js +2 -0
- package/dist/cdn/{TACQVUBU.js → 4H2QKHO3.js} +2 -2
- package/dist/cdn/4L4ZZUIW.js +2 -0
- package/dist/cdn/{TFPQDMER.js → 4L6FQOVC.js} +2 -2
- package/dist/cdn/{ZBIVDGNH.js → 4RDHGQAL.js} +2 -2
- package/dist/cdn/5AMXSBVD.js +2 -0
- package/dist/cdn/{244ZX2UP.js → 5FBHUYVN.js} +2 -2
- package/dist/cdn/5GZBRQP2.js +2 -0
- package/dist/cdn/5HR252CM.js +2 -0
- package/dist/cdn/5L2GOXND.js +2 -0
- package/dist/cdn/62M4DHW3.js +2 -0
- package/dist/cdn/66O67DDO.js +2 -0
- package/dist/cdn/6KYYHQBS.js +2 -0
- package/dist/cdn/{BJ7Q7LCT.js → 6ZDEWZ4A.js} +2 -2
- package/dist/cdn/{TYUVXRBO.js → 7EUVBNRP.js} +2 -2
- package/dist/cdn/7PAQCBZ7.js +2 -0
- package/dist/cdn/7RRUD4HM.js +2 -0
- package/dist/cdn/{3VMHKSYP.js → 7YROV2MS.js} +1 -1
- package/dist/cdn/{FWAXKDYV.js → AG3BRYP2.js} +2 -2
- package/dist/cdn/{7YXTWBT4.js → AJDNZRJP.js} +4 -4
- package/dist/cdn/AK34H2Z4.js +2 -0
- package/dist/cdn/{4USHOYLT.js → AMIF7IUE.js} +2 -2
- package/dist/cdn/AYS37I6F.js +2 -0
- package/dist/cdn/{ZFJFTDJF.js → B5M3UYOD.js} +2 -2
- package/dist/cdn/{6B7JCDQC.js → B6K3UJ5E.js} +2 -2
- package/dist/cdn/{2OHFSVV5.js → BE3IE4CJ.js} +2 -2
- package/dist/cdn/BGA3UX4U.js +2 -0
- package/dist/cdn/{KX7KGXKQ.js → BIXQAUTT.js} +1 -1
- package/dist/cdn/{IVLVCLDE.js → BK4JKDTR.js} +1 -1
- package/dist/cdn/BPYN2X7Q.js +45 -0
- package/dist/cdn/{KDJ5RVHA.js → BYSF3WH4.js} +2 -2
- package/dist/cdn/C4LXB6MK.js +2 -0
- package/dist/cdn/C4OPIUNW.js +2 -0
- package/dist/cdn/C7IT74BS.js +2 -0
- package/dist/cdn/{J5NHXQLA.js → CAFMZZWU.js} +2 -2
- package/dist/cdn/CHCM5ZNC.js +2 -0
- package/dist/cdn/CKRMPTUO.js +2 -0
- package/dist/cdn/{SERX6V5M.js → CPPCFOXI.js} +2 -2
- package/dist/cdn/{O4HUYRYL.js → D4EPE7SG.js} +2 -2
- package/dist/cdn/{QR2OOC4D.js → DDKQH6CG.js} +2 -2
- package/dist/cdn/{7JIHGRTB.js → DGE5LAEC.js} +2 -2
- package/dist/cdn/{XY4TRZCG.js → DMCP4KFE.js} +2 -2
- package/dist/cdn/DMTY4NTC.js +2 -0
- package/dist/cdn/{NAXNRCMZ.js → DY4LKAXR.js} +2 -2
- package/dist/cdn/{Y6ZCTPJW.js → EEWNYPKP.js} +2 -2
- package/dist/cdn/EJCQJK4X.js +2 -0
- package/dist/cdn/EQLEA5AG.js +2 -0
- package/dist/cdn/EQNW3D27.js +2 -0
- package/dist/cdn/{D3CFPMAR.js → EQUJMGCQ.js} +2 -2
- package/dist/cdn/EUSDSRSD.js +4 -0
- package/dist/cdn/EXQDBBLY.js +2 -0
- package/dist/cdn/F5C2X2NS.js +2 -0
- package/dist/cdn/{OJ5X6I3H.js → FAP35T3M.js} +2 -2
- package/dist/cdn/{MK5ZYSOD.js → FVIQ4YK2.js} +2 -2
- package/dist/cdn/FWVZY2DN.js +2 -0
- package/dist/cdn/FZ4P2E22.js +2 -0
- package/dist/cdn/G5NLV2CS.js +2 -0
- package/dist/cdn/{X2LW7GTR.js → G5NNGGAX.js} +2 -2
- package/dist/cdn/{N4L5KE23.js → GA2SIPMS.js} +2 -2
- package/dist/cdn/GDFKEJO4.js +2 -0
- package/dist/cdn/GFIZPXVK.js +2 -0
- package/dist/cdn/GG7KDNXF.js +2 -0
- package/dist/cdn/{DNTLH5RT.js → GGLXIQWK.js} +2 -2
- package/dist/cdn/GQ6A5FQG.js +2 -0
- package/dist/cdn/{SP2IPHWF.js → GUQ44MLO.js} +1 -1
- package/dist/cdn/{4ZIZEJXS.js → GVBJWBHM.js} +2 -2
- package/dist/cdn/GY72TEIZ.js +2 -0
- package/dist/cdn/H3GVLNRJ.js +2 -0
- package/dist/cdn/{AASL4RKT.js → HHMRE4ZV.js} +2 -2
- package/dist/cdn/{XMPLEHTW.js → HVB5AZOB.js} +2 -2
- package/dist/cdn/{JQKRGUBU.js → HX6ZTJDH.js} +2 -2
- package/dist/cdn/{VT4WJZN6.js → I5WKBYXW.js} +2 -2
- package/dist/cdn/{S3ZSZXYG.js → I6SPDO4B.js} +2 -2
- package/dist/cdn/{BDGHBTPU.js → IH7IBNZZ.js} +2 -2
- package/dist/cdn/IICYSP6T.js +2 -0
- package/dist/cdn/IOG2IVJN.js +2 -0
- package/dist/cdn/{UYXCGSXU.js → IUALCYH2.js} +2 -2
- package/dist/cdn/{ETOGNYFU.js → IWEPAHDN.js} +2 -2
- package/dist/cdn/{BXYNEUQY.js → IXQLYXG3.js} +2 -2
- package/dist/cdn/J22FARAC.js +2 -0
- package/dist/cdn/J5SIGRGU.js +2 -0
- package/dist/cdn/JCGY4PXV.js +2 -0
- package/dist/cdn/JDCNFE5C.js +2 -0
- package/dist/cdn/JFRRNZCG.js +2 -0
- package/dist/cdn/{LUSFGRHV.js → JFVAFJ4H.js} +2 -2
- package/dist/cdn/JGDOGMER.js +2 -0
- package/dist/cdn/JJLZNOU5.js +3 -0
- package/dist/cdn/JKDSYFI5.js +2 -0
- package/dist/cdn/{WAINRCCJ.js → JNPALTZY.js} +2 -2
- package/dist/cdn/{RSNZMJ6I.js → JYBHESZC.js} +2 -2
- package/dist/cdn/K4PGZCDZ.js +2 -0
- package/dist/cdn/K6PMOUYR.js +2 -0
- package/dist/cdn/{PMIWXHTG.js → K7M3AA6L.js} +2 -2
- package/dist/cdn/KSDWPX5N.js +2 -0
- package/dist/cdn/{4OH4NSIW.js → KW37MJXK.js} +2 -2
- package/dist/cdn/{XYKXBWIT.js → KW5VRQR3.js} +2 -2
- package/dist/cdn/{AY6IOQ3H.js → KZ2R4OLR.js} +2 -2
- package/dist/cdn/LBOJGYSL.js +2 -0
- package/dist/cdn/{I5T7JUDH.js → LD7OU6HP.js} +2 -2
- package/dist/cdn/{XG2KN6YJ.js → LF7NQGHA.js} +2 -2
- package/dist/cdn/LJOG5J2V.js +2 -0
- package/dist/cdn/{7QXRWMUN.js → LJYMDBF4.js} +2 -2
- package/dist/cdn/LTZBWR5K.js +2 -0
- package/dist/cdn/{ULWJ57VT.js → MBMJNR7H.js} +2 -2
- package/dist/cdn/{L47EGLUH.js → ME2NTJW5.js} +2 -2
- package/dist/cdn/{I6UPUSLQ.js → NOODYKYT.js} +2 -2
- package/dist/cdn/{OFWEHJDH.js → NQ3QW4ED.js} +2 -2
- package/dist/cdn/NRKA3PVS.js +2 -0
- package/dist/cdn/{OXYJKZEP.js → NS256ILC.js} +2 -2
- package/dist/cdn/{3JYZJUOM.js → NSZKEEMN.js} +2 -2
- package/dist/cdn/NVWHMHFJ.js +2 -0
- package/dist/cdn/O3F4PKL5.js +2 -0
- package/dist/cdn/O522WPHN.js +2 -0
- package/dist/cdn/ORXX53NO.js +2 -0
- package/dist/cdn/{C5K6XOCR.js → OVUN4PSA.js} +2 -2
- package/dist/cdn/P6HJNWKL.js +2 -0
- package/dist/cdn/P7L3ARQ3.js +2 -0
- package/dist/cdn/{CNFBNAPJ.js → PCMTYFOA.js} +2 -2
- package/dist/cdn/{UE5VX2RL.js → POUXDWR6.js} +2 -2
- package/dist/cdn/{VY3KBD6N.js → PQCKQMUH.js} +2 -2
- package/dist/cdn/{7LYAWWOE.js → PUYHEQW6.js} +2 -2
- package/dist/cdn/PVNWEM36.js +2 -0
- package/dist/cdn/{SX6SDBU7.js → QBN2RUK7.js} +2 -2
- package/dist/cdn/{7UQHB6KY.js → QBRPQBRE.js} +2 -2
- package/dist/cdn/{QP5UAIC6.js → QIST2E6D.js} +1 -1
- package/dist/cdn/{CHLE2QGU.js → QKD52Y6W.js} +2 -2
- package/dist/cdn/{ZQDADGLQ.js → QPTOSFND.js} +2 -2
- package/dist/cdn/QQE67EPU.js +2 -0
- package/dist/cdn/QZCSTDPS.js +2 -0
- package/dist/cdn/{YJ6TRXMU.js → R5KXZK6C.js} +2 -2
- package/dist/cdn/{P5AO3V3M.js → RAWFU6UX.js} +2 -2
- package/dist/cdn/{XDMGH7YU.js → RD2GIVHJ.js} +2 -2
- package/dist/cdn/REC66TO6.js +2 -0
- package/dist/cdn/{YKDW7ZW3.js → RP3YFUJH.js} +2 -2
- package/dist/cdn/{N5ZUO6F3.js → RPILNNIB.js} +2 -2
- package/dist/cdn/{77A4T4FJ.js → RRFVH5KA.js} +2 -2
- package/dist/cdn/RT3RIRB5.js +2 -0
- package/dist/cdn/RYSXQJEF.js +2 -0
- package/dist/cdn/{SSQ3VCZ2.js → SCTII7J3.js} +2 -2
- package/dist/cdn/{ANN3O54W.js → SE6FHLO2.js} +2 -2
- package/dist/cdn/{5SIAOUPO.js → SILAGY2P.js} +2 -2
- package/dist/cdn/SMLGQATL.js +2 -0
- package/dist/cdn/SXOHCOAC.js +2 -0
- package/dist/cdn/{FOYOG3G7.js → TCW4HYMN.js} +2 -2
- package/dist/cdn/{VE3GFNNM.js → TI332EPG.js} +2 -2
- package/dist/cdn/{WMPWOPRZ.js → TIKRHNQ7.js} +2 -2
- package/dist/cdn/U4LGTOAJ.js +2 -0
- package/dist/cdn/U4LJEOCU.js +2 -0
- package/dist/cdn/UCS6KWEF.js +2 -0
- package/dist/cdn/{AZOBLYAP.js → UNK7GZT3.js} +2 -2
- package/dist/cdn/UOXDMZSI.js +2 -0
- package/dist/cdn/UPENS2HR.js +3 -0
- package/dist/cdn/{LROW4Y6O.js → UWXENGPT.js} +2 -2
- package/dist/cdn/{L7CMLBHB.js → UZFD4QWD.js} +1 -1
- package/dist/cdn/UZKSCM2S.js +2 -0
- package/dist/cdn/VAWXK4TO.js +2 -0
- package/dist/cdn/{5ZGALYWZ.js → VIKLBNPF.js} +2 -2
- package/dist/cdn/VKEJFHGG.js +2 -0
- package/dist/cdn/VPWZC6PQ.js +2 -0
- package/dist/cdn/{AK7X7SGI.js → VTGIHCBG.js} +2 -2
- package/dist/cdn/{DFKVPDMJ.js → VUWVVCEB.js} +16 -14
- package/dist/cdn/{4C6KWLWN.js → W5VC7K62.js} +2 -2
- package/dist/cdn/WCG6VBHW.js +2 -0
- package/dist/cdn/WZZIHATO.js +2 -0
- package/dist/cdn/X4P4OY6S.js +2 -0
- package/dist/cdn/X6C44FPC.js +2 -0
- package/dist/cdn/XB5AI5AU.js +2 -0
- package/dist/cdn/XETRBEFO.js +2 -0
- package/dist/cdn/XHJGXDGC.js +2 -0
- package/dist/cdn/{IYA7HQMS.js → XI6IYELV.js} +2 -2
- package/dist/cdn/XJEWRYSH.js +2 -0
- package/dist/cdn/{Q7J7EKQW.js → XJWB6DUA.js} +2 -2
- package/dist/cdn/XURXJVLT.js +2 -0
- package/dist/cdn/Y3WE42BQ.js +2 -0
- package/dist/cdn/YCM6O6HX.js +2 -0
- package/dist/cdn/{VRZ2SY6M.js → YHBSS2N2.js} +2 -2
- package/dist/cdn/{DSIFL2DF.js → YHMODCYK.js} +2 -2
- package/dist/cdn/{H2A5GZ55.js → YJW653RP.js} +2 -2
- package/dist/cdn/YKAA3D7I.js +2 -0
- package/dist/cdn/{P2F2O6MH.js → YRPBDTCB.js} +2 -2
- package/dist/cdn/{3TZEMBXR.js → YX7IFYJP.js} +2 -2
- package/dist/cdn/Z2MRSW74.js +2 -0
- package/dist/cdn/{4Z23HWDH.js → Z56TJBFK.js} +2 -2
- package/dist/cdn/ZE4S6J2S.js +2 -0
- package/dist/cdn/ZJIYZYVK.js +2 -0
- package/dist/cdn/ZN7K5ISR.js +2 -0
- package/dist/cdn/{TXB2I2U5.js → ZYCKBTVS.js} +2 -2
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/cdn/model/shared/setup-utils.js +2 -2
- package/dist/chart-rendering/common/interfaces.d.ts +104 -66
- package/dist/chunks/{type-guards3.js → action-bar-utils.js} +38 -46
- package/dist/chunks/axis-lines-symbol.js +8 -8
- package/dist/chunks/axis-model-wrapper.js +1 -1
- package/dist/chunks/bar-chart-model.js +47 -39
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/box-plot-data.js +292 -275
- package/dist/chunks/box-plot-model.js +144 -131
- package/dist/chunks/chart-model.js +66 -57
- package/dist/chunks/chart-object-literals.js +27 -26
- package/dist/chunks/chart-ui-utils.js +149 -67
- package/dist/chunks/chart-ui-utils2.js +69 -150
- package/dist/chunks/class-breaks.js +271 -239
- package/dist/chunks/combo-bar-line-chart-model.js +123 -102
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/data-labels-symbol.js +40 -25
- package/dist/chunks/data-labels-visibility.js +9 -9
- package/dist/chunks/data.js +42 -42
- package/dist/chunks/default.js +7 -7
- package/dist/chunks/gauge-model.js +62 -62
- package/dist/chunks/generate-x-axis-title.js +20 -16
- package/dist/chunks/heat-chart-model.js +96 -67
- package/dist/chunks/histogram-data.js +24 -24
- package/dist/chunks/histogram-model.js +11 -11
- package/dist/chunks/index.js +9349 -1080
- package/dist/chunks/index2.js +852 -8758
- package/dist/chunks/index3.js +1170 -850
- package/dist/chunks/index4.js +412 -252
- package/dist/chunks/index5.js +67 -101
- package/dist/chunks/interfaces.js +10 -10
- package/dist/chunks/line-chart-model.js +41 -25
- package/dist/chunks/model-setter.js +60 -65
- package/dist/chunks/model-types.js +2 -2
- package/dist/chunks/model-with-line-marker-styling.js +73 -48
- package/dist/chunks/model-with-x-guides.js +6 -6
- package/dist/chunks/model-with-y-guides.js +252 -272
- package/dist/chunks/negative-values-stacked-to-baseline.js +123 -72
- package/dist/chunks/pie-chart-data.js +176 -194
- package/dist/chunks/pie-chart-model.js +389 -321
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +414 -47
- package/dist/chunks/resource.js +2 -2
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +11 -11
- package/dist/chunks/rotated-state.js +2 -2
- package/dist/chunks/rounded-corners.js +90 -0
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/scatterplot-model.js +23 -23
- package/dist/chunks/serial-chart-data.js +935 -819
- package/dist/chunks/serial-chart-model.js +146 -124
- package/dist/chunks/series-length.js +18 -18
- package/dist/chunks/series-types.js +23 -19
- package/dist/chunks/series.js +2 -2
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/type-guards.js +50 -24
- package/dist/chunks/type-guards2.js +62 -53
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/utils.js +111 -88
- package/dist/chunks/utils2.js +55 -38
- package/dist/chunks/web-component-utils.js +414 -384
- package/dist/chunks/x-bounds.js +104 -99
- package/dist/components/arcgis-chart/customElement.d.ts +728 -255
- package/dist/components/arcgis-chart/customElement.js +10834 -10589
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +8 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +35 -32
- package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.js +71 -65
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +40 -34
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-bar-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +44 -44
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +55 -54
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +14 -13
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +32 -40
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +16 -16
- package/dist/components/arcgis-charts-config-box-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +49 -50
- 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 +11 -11
- package/dist/components/arcgis-charts-config-category-format/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-color-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-colors/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +245 -231
- package/dist/components/arcgis-charts-config-field-picker/customElement.js +30 -0
- package/dist/components/arcgis-charts-config-font-style/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-format/customElement.js +90 -83
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-general/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-guide/customElement.js +22 -23
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-guides/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +13 -14
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +65 -77
- package/dist/components/arcgis-charts-config-heat-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +56 -56
- package/dist/components/arcgis-charts-config-histogram/customElement.js +28 -24
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +29 -29
- package/dist/components/arcgis-charts-config-histogram-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +28 -28
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +19 -19
- package/dist/components/arcgis-charts-config-line-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +39 -39
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-line-style/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-number-format/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +6 -7
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +57 -64
- package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +55 -54
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +68 -69
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +28 -24
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +16 -16
- package/dist/components/arcgis-charts-config-scatter-plot-data/index.js +1 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +18 -18
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +58 -27
- package/dist/components/arcgis-charts-info-modal/customElement.js +8 -8
- 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 +489 -465
- package/dist/interfaces.d.ts +57 -14
- package/dist/json-schema/index.d.ts +154 -6
- package/dist/loader.js +3 -3
- 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/mixins/model-with-guides.d.ts +1 -1
- 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 +61 -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/setup-utils.js +1 -1
- 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/web-chart.d.ts +34 -4
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +3 -3
- package/dist/utils/chart-config/converter/index.js +369 -350
- 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 +28 -22
- package/dist/utils/data/interfaces.d.ts +4 -3
- package/dist/utils/defaults/index.d.ts +30 -4
- package/dist/utils/defaults/interfaces.d.ts +73 -4
- package/dist/utils/layer/index.d.ts +23 -5
- package/dist/utils/layer/interfaces.d.ts +0 -12
- 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 +22 -5
- package/dist/utils/localization/interfaces.d.ts +9 -1
- package/dist/utils/misc/interfaces.d.ts +1 -0
- 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/24AOJE7B.js +0 -2
- package/dist/cdn/3KRPCKJZ.js +0 -2
- package/dist/cdn/3TBK72EK.js +0 -3
- package/dist/cdn/425PZ2QJ.js +0 -2
- package/dist/cdn/4PHYDOBF.js +0 -2
- package/dist/cdn/547RDEMV.js +0 -2
- package/dist/cdn/567CLBG4.js +0 -2
- package/dist/cdn/5IIF22XN.js +0 -2
- package/dist/cdn/5IN5WK2R.js +0 -2
- package/dist/cdn/5LXX2PUM.js +0 -2
- package/dist/cdn/5NTIKQP4.js +0 -2
- package/dist/cdn/5YEADAVZ.js +0 -2
- package/dist/cdn/6R7VSDDU.js +0 -2
- package/dist/cdn/76MOP26H.js +0 -2
- package/dist/cdn/AHYYQWKY.js +0 -2
- package/dist/cdn/ASI7RDYV.js +0 -2
- package/dist/cdn/AXS3UMQJ.js +0 -2
- package/dist/cdn/BHUFE4DA.js +0 -2
- package/dist/cdn/CEWH3LQO.js +0 -2
- package/dist/cdn/CTBQ5Y4Z.js +0 -2
- package/dist/cdn/CVK7KFEC.js +0 -2
- package/dist/cdn/DJGEQ42V.js +0 -2
- package/dist/cdn/DL43NPDO.js +0 -2
- package/dist/cdn/E2DO2HQ6.js +0 -2
- package/dist/cdn/E4LJWBRC.js +0 -2
- package/dist/cdn/EDSF5KGV.js +0 -233
- package/dist/cdn/EE3KEIAT.js +0 -2
- package/dist/cdn/EJCGZPIV.js +0 -2
- package/dist/cdn/ETSB7KD3.js +0 -2
- package/dist/cdn/EZV7JSQJ.js +0 -2
- package/dist/cdn/F6QRLYSF.js +0 -2
- package/dist/cdn/FBMA7FW4.js +0 -2
- package/dist/cdn/FFS73X36.js +0 -142
- package/dist/cdn/FUAA6IFR.js +0 -4
- package/dist/cdn/FWRMJQXY.js +0 -2
- package/dist/cdn/G5FULTB5.js +0 -2
- package/dist/cdn/GISGGO3Z.js +0 -2
- package/dist/cdn/GQPOEX7B.js +0 -58
- package/dist/cdn/GYXK3DV7.js +0 -2
- package/dist/cdn/H45LPCQ2.js +0 -2
- package/dist/cdn/HW6MJJSX.js +0 -2
- package/dist/cdn/HZFHTWL6.js +0 -2
- package/dist/cdn/I2EERAZ3.js +0 -2
- package/dist/cdn/IE3GLZJZ.js +0 -2
- package/dist/cdn/IL2FG26D.js +0 -2
- package/dist/cdn/JBPYGZPJ.js +0 -2
- package/dist/cdn/JEOBO5JM.js +0 -2
- package/dist/cdn/KPWHYSA5.js +0 -2
- package/dist/cdn/KXUQJ6GE.js +0 -2
- package/dist/cdn/KZQFX7LH.js +0 -2
- package/dist/cdn/LL7NH3VV.js +0 -2
- package/dist/cdn/LUMOL7ZP.js +0 -2
- package/dist/cdn/LYJFZA2M.js +0 -2
- package/dist/cdn/MBSMC77K.js +0 -2
- package/dist/cdn/MVGAATR7.js +0 -2
- package/dist/cdn/NNZCIR7W.js +0 -2
- package/dist/cdn/NZXQ5BWP.js +0 -2
- package/dist/cdn/O4LKWTBY.js +0 -2
- package/dist/cdn/OW2DLJGU.js +0 -2
- package/dist/cdn/P4HSSZRL.js +0 -2
- package/dist/cdn/P4UJJCPG.js +0 -2
- package/dist/cdn/P56ROGSK.js +0 -2
- package/dist/cdn/PAIRUVLU.js +0 -2
- package/dist/cdn/PXIAM4CZ.js +0 -2
- package/dist/cdn/QPSJ6XOX.js +0 -2
- package/dist/cdn/R7HW5WVG.js +0 -2
- package/dist/cdn/RJCJ3F5C.js +0 -2
- package/dist/cdn/RKB6QZNW.js +0 -2
- package/dist/cdn/S6LH7YS6.js +0 -2
- package/dist/cdn/S74GCXXK.js +0 -3
- package/dist/cdn/SA22QZNW.js +0 -2
- package/dist/cdn/SJVVFOAX.js +0 -2
- package/dist/cdn/SOKKWGPA.js +0 -2
- package/dist/cdn/SQYOFBS6.js +0 -2
- package/dist/cdn/SVGAVKBQ.js +0 -2
- package/dist/cdn/THTYR6IL.js +0 -2
- package/dist/cdn/TTBRUBXY.js +0 -2
- package/dist/cdn/U5IM4KAQ.js +0 -2
- package/dist/cdn/U67P6YAZ.js +0 -2
- package/dist/cdn/UIRKQREJ.js +0 -2
- package/dist/cdn/UIY2PSG4.js +0 -2
- package/dist/cdn/UNTIPIBS.js +0 -2
- package/dist/cdn/VIY3BCJZ.js +0 -2
- package/dist/cdn/W7X6L2OB.js +0 -127
- package/dist/cdn/WHJU66P4.js +0 -2
- package/dist/cdn/WJ2VDT6B.js +0 -2
- package/dist/cdn/WNKDEOFZ.js +0 -2
- package/dist/cdn/WPPMMVD5.js +0 -2
- package/dist/cdn/WU3C7BQU.js +0 -2
- package/dist/cdn/WWO326JE.js +0 -2
- package/dist/cdn/XJFVSX2E.js +0 -2
- package/dist/cdn/XNWSVHA3.js +0 -2
- package/dist/cdn/XOM6LSIW.js +0 -2
- package/dist/cdn/XP4S2M7F.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/YALB4GSA.js +0 -2
- package/dist/cdn/YUF4ZSA5.js +0 -2
- package/dist/cdn/ZJHV3UVG.js +0 -2
- package/dist/cdn/ZQ2WG55W.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/components/arcgis-charts-config-field-select/customElement.js +0 -30
- /package/dist/components/{arcgis-charts-config-field-select → arcgis-charts-config-field-picker}/index.js +0 -0
|
@@ -5,8 +5,8 @@ import type SelectionManager from "@arcgis/core/views/SelectionManager.js";
|
|
|
5
5
|
import type FeatureLayerView from "@arcgis/core/views/layers/FeatureLayerView.js";
|
|
6
6
|
import type { DOMContainerAria } from "@arcgis/core/views/DOMContainer.js";
|
|
7
7
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
8
|
-
import type { AxisLabelFormatCallback,
|
|
9
|
-
import type {
|
|
8
|
+
import type { AxisLabelFormatCallback, BarAndLineDataLabelFormatCallback, GaugeInnerLabelFormatCallback, GuideTooltipFormatCallback, HistogramLabelFormatCallback, PieChartLabelFormatCallback, PieChartLegendValueLabelFormatCallback, PreRenderCallback, ScatterplotLabelFormatCallback, TooltipFormatters } from "../../chart-rendering/common/interfaces.js";
|
|
9
|
+
import type { ChartLayerInput, CSVOptions } from "../../interfaces.js";
|
|
10
10
|
import type { ChartModel } from "../../model/chart-model/chart-model.js";
|
|
11
11
|
import type { WebChartTypes, WebChartLegendPositions } from "../../spec/chart-object-literals.js";
|
|
12
12
|
import type { WebChartDataTypes } from "../../spec/data-source.js";
|
|
@@ -22,125 +22,35 @@ import type { ErrorPolicy, LayerFieldsChangePolicy, LayerFilterChangePolicy, Lay
|
|
|
22
22
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
|
-
* The Chart component renders a chart
|
|
25
|
+
* The ArcGIS Chart component renders a chart by setting a [model](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#model) object that defines the chart's configuration and data.
|
|
26
26
|
*
|
|
27
|
-
*
|
|
27
|
+
* You can render a chart either by:
|
|
28
|
+
* - Setting [layerItemId](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#layerItemId) and [chartIndex](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#chartIndex) to load a saved chart from a layer item.
|
|
29
|
+
* - Create a new chart by using the [`createModel()`](/references/charts-components/model/shared/setup-utils/#createModel) function to create a chart model and set it to the [model](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#model) property.
|
|
28
30
|
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
* [Tutorial: Display a chart](https://developers.arcgis.com/javascript/latest/tutorials/display-a-chart/)
|
|
31
|
+
* > [!IMPORTANT]
|
|
32
|
+
* >
|
|
33
|
+
* > See the [Introduction to charts](https://developers.arcgis.com/javascript/latest/charts-components-intro/) guide for detailed examples on how to render a chart using the above patterns.
|
|
33
34
|
*
|
|
34
|
-
*
|
|
35
|
+
* There are 10 supported chart types, each with its own model properties and methods. Refer to the [chart types documentation](https://developers.arcgis.com/javascript/latest/charts/chart-types/) for more information on each chart type.
|
|
36
|
+
*
|
|
37
|
+
* ##### See also:
|
|
38
|
+
* - [Tutorial: Display a chart](https://developers.arcgis.com/javascript/latest/tutorials/display-a-chart/)
|
|
39
|
+
* - [Tutorial: Chart and map interactions](https://developers.arcgis.com/javascript/latest/tutorials/chart-and-map-interactions/)
|
|
40
|
+
*
|
|
41
|
+
* > [!WARNING]
|
|
42
|
+
* > 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.
|
|
43
|
+
*
|
|
44
|
+
* @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
45
|
* @since 4.32
|
|
36
46
|
*/
|
|
37
47
|
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
48
|
/**
|
|
139
49
|
* Localized common strings.
|
|
140
50
|
*
|
|
141
51
|
* @internal
|
|
142
52
|
*/
|
|
143
|
-
protected
|
|
53
|
+
protected _commonStrings: {
|
|
144
54
|
utilsStrings: {
|
|
145
55
|
chartType: {
|
|
146
56
|
chart: string;
|
|
@@ -278,6 +188,10 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
278
188
|
twoTemporalSeriesLineCountCannotExceedLimit: string;
|
|
279
189
|
threePlusTemporalSeriesLineCountCannotExceedLimit: string;
|
|
280
190
|
lineSeriesCountCannotExceedLimit: string;
|
|
191
|
+
uniqueSeriesRadarCountCannotExceedLimit: string;
|
|
192
|
+
twoSeriesRadarCountCannotExceedLimit: string;
|
|
193
|
+
threePlusSeriesRadarCountCannotExceedLimit: string;
|
|
194
|
+
radarSeriesCountCannotExceedLimit: string;
|
|
281
195
|
uniqueSeriesBoxCountCannotExceedLimit: string;
|
|
282
196
|
twoSeriesBoxCountCannotExceedLimit: string;
|
|
283
197
|
threePlusBoxLineCountCannotExceedLimit: string;
|
|
@@ -545,6 +459,10 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
545
459
|
twoTemporalSeriesLineCountCannotExceedLimit: string;
|
|
546
460
|
threePlusTemporalSeriesLineCountCannotExceedLimit: string;
|
|
547
461
|
lineSeriesCountCannotExceedLimit: string;
|
|
462
|
+
uniqueSeriesRadarCountCannotExceedLimit: string;
|
|
463
|
+
twoSeriesRadarCountCannotExceedLimit: string;
|
|
464
|
+
threePlusSeriesRadarCountCannotExceedLimit: string;
|
|
465
|
+
radarSeriesCountCannotExceedLimit: string;
|
|
548
466
|
uniqueSeriesBoxCountCannotExceedLimit: string;
|
|
549
467
|
twoSeriesBoxCountCannotExceedLimit: string;
|
|
550
468
|
threePlusBoxLineCountCannotExceedLimit: string;
|
|
@@ -675,21 +593,158 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
675
593
|
"Invalid date": string;
|
|
676
594
|
};
|
|
677
595
|
}>;
|
|
596
|
+
/** @internal */
|
|
597
|
+
protected _messages: Partial<{ chartNotFoundWarning: string; }> & T9nMeta<{ chartNotFoundWarning: string; }>;
|
|
598
|
+
/**
|
|
599
|
+
* Specifies how user interactions on the chart are handled.
|
|
600
|
+
*
|
|
601
|
+
* - `monoSelection`: Select one data item at a time. Each new selection replaces the previous selection.
|
|
602
|
+
* - `multiSelection`: Select multiple data items. Each new selection is added to the existing selection.
|
|
603
|
+
* - `multiSelectionWithCtrlKey`: Select multiple data items only while holding Ctrl (or Cmd on macOS). Without the key, selection behaves like `monoSelection`.
|
|
604
|
+
* - `zoom`: Zoom into an area of the chart.
|
|
605
|
+
* - `none`: Disable interaction-driven selection and zoom actions.
|
|
606
|
+
*
|
|
607
|
+
* **Note**: Not applicable to gauges.
|
|
608
|
+
*/
|
|
609
|
+
accessor actionMode: ActionModes | undefined;
|
|
610
|
+
/**
|
|
611
|
+
* When `true`, object ID can be used as a numeric field for aggregated charts (for example, `sum` of `objectId`).
|
|
612
|
+
*
|
|
613
|
+
* @default false
|
|
614
|
+
*/
|
|
615
|
+
accessor allowUsingObjectIdStat: boolean;
|
|
616
|
+
/**
|
|
617
|
+
* 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.
|
|
618
|
+
*
|
|
619
|
+
* <video
|
|
620
|
+
* src="https://developers.arcgis.com/javascript/latest/assets/references/components/chart/animationEnabled.webm"
|
|
621
|
+
* aria-label="animationEnabled"
|
|
622
|
+
* width="720"
|
|
623
|
+
* autoPlay
|
|
624
|
+
* loop
|
|
625
|
+
* muted
|
|
626
|
+
* playsInline
|
|
627
|
+
* />
|
|
628
|
+
*
|
|
629
|
+
* @default false
|
|
630
|
+
* @since 5.1
|
|
631
|
+
*/
|
|
632
|
+
accessor animationEnabled: boolean | undefined;
|
|
633
|
+
/**
|
|
634
|
+
* 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).
|
|
635
|
+
*
|
|
636
|
+
* @example
|
|
637
|
+
* ```ts
|
|
638
|
+
* chartElement.aria = {
|
|
639
|
+
* label: "Custom chart label",
|
|
640
|
+
* description: "Custom chart description",
|
|
641
|
+
* };
|
|
642
|
+
* ```
|
|
643
|
+
* @see [ARIA attributes](https://developers.arcgis.com/javascript/latest/accessibility/#aria-attributes)
|
|
644
|
+
* @since 5.0
|
|
645
|
+
*/
|
|
646
|
+
accessor aria: DOMContainerAria | undefined;
|
|
647
|
+
/**
|
|
648
|
+
* When `true`, the component is not destroyed automatically when it is disconnected from the document, which is useful when moving or temporarily hiding it.
|
|
649
|
+
*
|
|
650
|
+
* > [!CAUTION]
|
|
651
|
+
* >
|
|
652
|
+
* > 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.
|
|
653
|
+
*
|
|
654
|
+
* @default false
|
|
655
|
+
* @since 5.0
|
|
656
|
+
*/
|
|
657
|
+
accessor autoDestroyDisabled: boolean;
|
|
658
|
+
/**
|
|
659
|
+
* Auto disposes the chart when a new one is created in the same container.
|
|
660
|
+
*
|
|
661
|
+
* @deprecated since 5.0. Use [autoDestroyDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#autoDestroyDisabled) instead.
|
|
662
|
+
* @default false
|
|
663
|
+
*/
|
|
664
|
+
accessor autoDisposeChart: boolean;
|
|
665
|
+
/**
|
|
666
|
+
* 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.
|
|
667
|
+
*
|
|
668
|
+
* | With `autoInverseDataLabelTextColor` | Without `autoInverseDataLabelTextColor` |
|
|
669
|
+
* | -------- | -------- |
|
|
670
|
+
* |  |  |
|
|
671
|
+
*
|
|
672
|
+
* **Note**: Applicable to heat charts only.
|
|
673
|
+
*
|
|
674
|
+
* @default false
|
|
675
|
+
* @since 4.34
|
|
676
|
+
*/
|
|
677
|
+
accessor autoInverseDataLabelTextColor: boolean;
|
|
678
|
+
/**
|
|
679
|
+
* Specifies the Calcite CSS variables to use when applying a Calcite theme.
|
|
680
|
+
*
|
|
681
|
+
* By default the following variables are used:
|
|
682
|
+
* - background: `--calcite-color-foreground-1`
|
|
683
|
+
* - text: `--calcite-color-text-1`
|
|
684
|
+
* - line: `--calcite-color-border-1`
|
|
685
|
+
* - secondary line: `--calcite-color-text-3`
|
|
686
|
+
* - spinner: `--calcite-color-brand-hover`
|
|
687
|
+
*
|
|
688
|
+
* The chart colors are overridden by those associated to those CSS variables, but only if they have not been customized beforehand.
|
|
689
|
+
*
|
|
690
|
+
* @see [Charts theming with Calcite CSS variables](https://developers.arcgis.com/javascript/latest/charts/features-and-capabilities/styling-and-theming/#theming-with-css-variables)
|
|
691
|
+
* @see [Components theming with Calcite](https://developers.arcgis.com/javascript/latest/building-your-ui/#styling-and-theming-with-calcite)
|
|
692
|
+
* @since 5.1
|
|
693
|
+
*/
|
|
694
|
+
accessor calciteThemingCSSVariables: CalciteThemeCSSVariables;
|
|
695
|
+
/**
|
|
696
|
+
* The index of the chart to be rendered from the layer. Must be used in conjunction with the `layerItemId` or `layer` property.
|
|
697
|
+
*
|
|
698
|
+
* If a `layer` or `layerItemId` is set without `chartIndex`, the first chart in the layer will be rendered.
|
|
699
|
+
*
|
|
700
|
+
* If the `chartIndex` is out of bounds, the first chart in the layer will be rendered and a warning event will be emitted.
|
|
701
|
+
*
|
|
702
|
+
* @example
|
|
703
|
+
* ```html
|
|
704
|
+
* <arcgis-chart layer-item-id="8871626e970a4f3e9d6113ec63a92f2f" chart-index="2"></arcgis-chart>
|
|
705
|
+
* ```
|
|
706
|
+
*/
|
|
707
|
+
accessor chartIndex: number | undefined;
|
|
708
|
+
/**
|
|
709
|
+
* Customize the maximum number of data items allowed on the chart.
|
|
710
|
+
*
|
|
711
|
+
* The chart's behavior once that limit is reached can be adjusted through the `behaviorAfterLimit` nested property, to either reject the creation
|
|
712
|
+
* or update of the chart, or render the elements up to the given limits.
|
|
713
|
+
*
|
|
714
|
+
* **Note**: Not applicable to gauges.
|
|
715
|
+
*
|
|
716
|
+
* @example
|
|
717
|
+
* ```ts
|
|
718
|
+
* chartElement.chartLimits = {
|
|
719
|
+
* behaviorAfterLimit: LimitBehavior.RenderUpToTheLimit,
|
|
720
|
+
* serialChart: { categories: 15 }
|
|
721
|
+
* };
|
|
722
|
+
* ```
|
|
723
|
+
*/
|
|
724
|
+
accessor chartLimits: ChartElementLimit | undefined;
|
|
725
|
+
/**
|
|
726
|
+
* Lifecycle function executed after the data has been processed and before the chart renders.
|
|
727
|
+
* Can be used to alter the model from information extracted from the data.
|
|
728
|
+
*
|
|
729
|
+
* **Note**: Applicable to gauges and pie charts only.
|
|
730
|
+
*/
|
|
731
|
+
accessor chartWillRender: PreRenderCallback | undefined;
|
|
678
732
|
/**
|
|
679
733
|
* Whether to use features uniquely designed for a chart currently being configured by a user via the UI.
|
|
680
|
-
* When true
|
|
681
|
-
* and
|
|
734
|
+
* 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,
|
|
735
|
+
* 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
736
|
*
|
|
683
737
|
* @default false
|
|
738
|
+
* @since 5.1
|
|
684
739
|
*/
|
|
685
740
|
accessor configurationEnabled: boolean;
|
|
686
741
|
/**
|
|
687
|
-
*
|
|
742
|
+
* 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
743
|
*
|
|
689
|
-
* - `multi-axes`: Allows
|
|
690
|
-
* - `x-axis`:
|
|
691
|
-
* - `y-axis`:
|
|
692
|
-
* - `undefined`:
|
|
744
|
+
* - `multi-axes`: Allows drawing a free rectangle across both axes.
|
|
745
|
+
* - `x-axis`: Constrains the rectangle to the x-axis direction.
|
|
746
|
+
* - `y-axis`: Constrains the rectangle to the y-axis direction.
|
|
747
|
+
* - `undefined`: Uses the default behavior for the current chart type and action mode.
|
|
693
748
|
*
|
|
694
749
|
* **Note**: Not applicable to gauges.
|
|
695
750
|
*/
|
|
@@ -697,9 +752,24 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
697
752
|
/**
|
|
698
753
|
* Callback function used to format the data labels. If the returned string contains HTML tags they will be interpreted as such.
|
|
699
754
|
*
|
|
700
|
-
*
|
|
755
|
+
* @example
|
|
756
|
+
* ```ts
|
|
757
|
+
* // Render custom data labels with the stat value and percentage formatted to 2 decimal places.
|
|
758
|
+
* chartElement.dataLabelFormatter = (statValue, percent) => {
|
|
759
|
+
* return `
|
|
760
|
+
* <div>
|
|
761
|
+
* Total listings: <strong>${statValue}</strong><br>
|
|
762
|
+
* Percentage: <strong>${Number(percent).toFixed(2)}%</strong>
|
|
763
|
+
* </div>
|
|
764
|
+
* `;
|
|
765
|
+
* };
|
|
766
|
+
* ```
|
|
767
|
+
*
|
|
768
|
+
* 
|
|
769
|
+
*
|
|
770
|
+
* **Note**: Not applicable to gauges and radar charts.
|
|
701
771
|
*/
|
|
702
|
-
accessor dataLabelFormatter:
|
|
772
|
+
accessor dataLabelFormatter: BarAndLineDataLabelFormatCallback | HistogramLabelFormatCallback | PieChartLabelFormatCallback | ScatterplotLabelFormatCallback | undefined;
|
|
703
773
|
/**
|
|
704
774
|
* Disables all interactions on the chart.
|
|
705
775
|
*
|
|
@@ -712,7 +782,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
712
782
|
*
|
|
713
783
|
* **Note**: Only applicable to multi-series charts.
|
|
714
784
|
*
|
|
715
|
-
* @deprecated since 5.1. Use [
|
|
785
|
+
* @deprecated since 5.1. Use [legendInteractionsDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#legendInteractionsDisabled) instead.
|
|
716
786
|
* @default false
|
|
717
787
|
*/
|
|
718
788
|
accessor disableTogglingLegendItems: boolean;
|
|
@@ -740,7 +810,8 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
740
810
|
*/
|
|
741
811
|
accessor enableResponsiveFeatures: boolean;
|
|
742
812
|
/**
|
|
743
|
-
*
|
|
813
|
+
* When set to `ignore`, the chart fails silently without displaying an error or hiding the chart.
|
|
814
|
+
* 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
815
|
*
|
|
745
816
|
* @default "throw"
|
|
746
817
|
*/
|
|
@@ -761,7 +832,8 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
761
832
|
*/
|
|
762
833
|
accessor filterByExtent: boolean;
|
|
763
834
|
/**
|
|
764
|
-
* When `true`,
|
|
835
|
+
* 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.
|
|
836
|
+
* Axis bounds, time binning intervals will be computed based on the selected elements only.
|
|
765
837
|
*
|
|
766
838
|
* **Note**: Not applicable to gauges or charts configured with imagery layers.
|
|
767
839
|
*
|
|
@@ -769,7 +841,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
769
841
|
*/
|
|
770
842
|
accessor filterBySelection: boolean;
|
|
771
843
|
/**
|
|
772
|
-
* When `true`,
|
|
844
|
+
* 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
845
|
*
|
|
774
846
|
* @default false
|
|
775
847
|
*/
|
|
@@ -777,12 +849,35 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
777
849
|
/**
|
|
778
850
|
* Callback function used to format the gauge inner label. If the returned string contains HTML tags they will be interpreted as such.
|
|
779
851
|
*
|
|
852
|
+
* @example
|
|
853
|
+
* ```ts
|
|
854
|
+
* // Render a centered custom gauge label with the value formatted to 2 decimal places.
|
|
855
|
+
* chartElement.gaugeInnerLabelFormatter = (value) => {
|
|
856
|
+
* return `<div style="text-align: center;"><u>Custom gauge inner label: </u><br /><b>${Number(value).toFixed(2)}</b></div>`;
|
|
857
|
+
* };
|
|
858
|
+
* ```
|
|
859
|
+
*
|
|
860
|
+
* 
|
|
861
|
+
*
|
|
780
862
|
* **Note**: Applicable to gauges only.
|
|
781
863
|
*/
|
|
782
864
|
accessor gaugeInnerLabelFormatter: GaugeInnerLabelFormatCallback | undefined;
|
|
783
865
|
/**
|
|
784
866
|
* Callback function used to format the axes guides tooltip. If the returned string contains HTML tags they will be interpreted as such.
|
|
785
867
|
*
|
|
868
|
+
* @example
|
|
869
|
+
* ```ts
|
|
870
|
+
* // Render a custom tooltip with the guide's start and end values.
|
|
871
|
+
* chartElement.guideTooltipFormatter = (props) => {
|
|
872
|
+
* return `
|
|
873
|
+
* <u>Custom guide tooltip</u><br />
|
|
874
|
+
* Range: <b>${props.start} - ${props.end}</b>
|
|
875
|
+
* `;
|
|
876
|
+
* };
|
|
877
|
+
* ```
|
|
878
|
+
*
|
|
879
|
+
* 
|
|
880
|
+
*
|
|
786
881
|
* **Note**: Not applicable to pie charts.
|
|
787
882
|
*/
|
|
788
883
|
accessor guideTooltipFormatter: GuideTooltipFormatCallback | undefined;
|
|
@@ -804,27 +899,28 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
804
899
|
*/
|
|
805
900
|
accessor hideLicenseWatermark: boolean | undefined;
|
|
806
901
|
/**
|
|
807
|
-
*
|
|
902
|
+
* 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).
|
|
903
|
+
* | When `hideLoaderAnimation` is `true` | When `hideLoaderAnimation` is `false` |
|
|
904
|
+
* | -------- | -------- |
|
|
905
|
+
* | <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
906
|
*
|
|
809
907
|
* @default false
|
|
810
908
|
*/
|
|
811
909
|
accessor hideLoaderAnimation: boolean;
|
|
812
910
|
/**
|
|
813
|
-
*
|
|
911
|
+
* When set to `true`, UI messages are hidden. These messages can be no data warnings, any placeholder messages set or invalid chart configuration.
|
|
912
|
+
* By default, its value is `false`, which displays the messages on the chart.
|
|
814
913
|
*
|
|
815
914
|
* @default false
|
|
816
915
|
* @since 5.1
|
|
817
916
|
*/
|
|
818
917
|
accessor hideUIMessages: boolean;
|
|
819
918
|
/**
|
|
820
|
-
*
|
|
919
|
+
* When `true`, missing categories from a `Count` aggregation are kept as gaps in the chart's data.
|
|
821
920
|
*
|
|
822
|
-
* When data is retrieved from the server,
|
|
921
|
+
* When data is retrieved from the server, features with a count of 0 are excluded from the response, resulting in missing chart entries.
|
|
823
922
|
*
|
|
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.
|
|
923
|
+
* 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
924
|
*
|
|
829
925
|
* @default false
|
|
830
926
|
* @since 5.1
|
|
@@ -846,18 +942,18 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
846
942
|
*/
|
|
847
943
|
accessor ignoreSmoothRenderingLimit: boolean;
|
|
848
944
|
/**
|
|
849
|
-
*
|
|
945
|
+
* When `true`, it signals the queries to ignore the view's extent, whether an additional geometry filter is provided or not.
|
|
850
946
|
*
|
|
851
|
-
*
|
|
852
|
-
* geometry passed through the model (`component.model.dataFilters`) or the runtime filters (`component.runtimeDataFilters`).
|
|
947
|
+
* 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 [`FeatureLayerView`](/references/core/views/layers/FeatureLayerView/).
|
|
853
948
|
*
|
|
854
|
-
*
|
|
949
|
+
* By default the queries made by the chart will consider the view's extent as the unique geometry filter applicable. This implies ignoring any
|
|
950
|
+
* 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
951
|
*
|
|
856
952
|
* @default false
|
|
857
953
|
*/
|
|
858
954
|
accessor ignoreViewExtent: boolean;
|
|
859
955
|
/**
|
|
860
|
-
*
|
|
956
|
+
* 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
957
|
*
|
|
862
958
|
* @default false
|
|
863
959
|
*/
|
|
@@ -866,7 +962,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
866
962
|
* Used to perform queries.
|
|
867
963
|
* If the layer is a `FeatureLayerView` or if the layer and the `view` property are both provided, the queries will be executed client-side.
|
|
868
964
|
*/
|
|
869
|
-
accessor layer:
|
|
965
|
+
accessor layer: ChartLayerInput | FeatureLayerView | undefined;
|
|
870
966
|
/**
|
|
871
967
|
* Allows the chart to update automatically when the layer's `fields` property changes.
|
|
872
968
|
*
|
|
@@ -882,11 +978,12 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
882
978
|
*/
|
|
883
979
|
accessor layerFilterChangePolicy: LayerFilterChangePolicy;
|
|
884
980
|
/**
|
|
885
|
-
* Layer item ID associated with the chart to be rendered. Can be used in conjunction with the `chartIndex` property.
|
|
981
|
+
* 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
982
|
*
|
|
887
|
-
*
|
|
983
|
+
* The layer item ID can be found in the URL of the layer's item page on ArcGIS Online or Enterprise.
|
|
984
|
+
* For example, in the URL `https://www.arcgis.com/home/item.html?id=8871626e970a4f3e9d6113ec63a92f2f`, the layer item ID is `8871626e970a4f3e9d6113ec63a92f2f`.
|
|
888
985
|
*
|
|
889
|
-
* Supported
|
|
986
|
+
* 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
987
|
*
|
|
891
988
|
* @example
|
|
892
989
|
* ```html
|
|
@@ -903,6 +1000,15 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
903
1000
|
* @default "refresh"
|
|
904
1001
|
*/
|
|
905
1002
|
accessor layerRendererChangePolicy: LayerRendererChangePolicy;
|
|
1003
|
+
/**
|
|
1004
|
+
* 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.
|
|
1005
|
+
*
|
|
1006
|
+
* **Note**: Only applicable to charts with multiple series and while the legend is displayed.
|
|
1007
|
+
*
|
|
1008
|
+
* @default false
|
|
1009
|
+
* @since 5.2
|
|
1010
|
+
*/
|
|
1011
|
+
accessor legendInteractionsDisabled: boolean | undefined;
|
|
906
1012
|
/**
|
|
907
1013
|
* Sets the legend's position on the chart.
|
|
908
1014
|
*
|
|
@@ -912,8 +1018,24 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
912
1018
|
*/
|
|
913
1019
|
accessor legendPosition: WebChartLegendPositions | undefined;
|
|
914
1020
|
/**
|
|
915
|
-
*
|
|
916
|
-
*
|
|
1021
|
+
* When the pie chart label contains either a numeric value or a percentage (which can be set through the
|
|
1022
|
+
* [displayNumericValueOnLegendItems](https://developers.arcgis.com/javascript/latest/references/charts-components/model/pie-chart-model/pie-chart-model/#displayNumericValueOnLegendItems) and
|
|
1023
|
+
* [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
|
|
1024
|
+
* can be used to format the numeric value and/or percentage. If the returned string contains HTML tags they will be interpreted as such.
|
|
1025
|
+
*
|
|
1026
|
+
* @example
|
|
1027
|
+
* ```ts
|
|
1028
|
+
* // Set the pie chart model to display both numeric value and percentage.
|
|
1029
|
+
* pieChartModel.displayNumericValueOnLegendItems = true;
|
|
1030
|
+
* pieChartModel.displayPercentageOnLegendItems = true;
|
|
1031
|
+
*
|
|
1032
|
+
* // Render the numeric value and percentage in bold and italic respectively, with 2 decimal places.
|
|
1033
|
+
* chartElement.legendValueLabelFormatter = (value, percentage) => {
|
|
1034
|
+
* return `<strong><u>${Number(value).toFixed(2)}</u></strong> (<em>${Number(percentage).toFixed(2)}%</em>)`;
|
|
1035
|
+
* };
|
|
1036
|
+
* ```
|
|
1037
|
+
*
|
|
1038
|
+
* 
|
|
917
1039
|
*
|
|
918
1040
|
* **Note**: Applicable to pie charts only.
|
|
919
1041
|
*/
|
|
@@ -938,8 +1060,30 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
938
1060
|
* ```
|
|
939
1061
|
*/
|
|
940
1062
|
accessor loaderColors: LoaderColors | undefined;
|
|
941
|
-
/**
|
|
942
|
-
|
|
1063
|
+
/**
|
|
1064
|
+
* Custom messages for translated strings on the chart. If the returned string contains HTML tags they will be interpreted as such.
|
|
1065
|
+
*
|
|
1066
|
+
* The customizable messages can be found thru the [`CommonStringsIdentity`](/references/charts-components/utils/localization/interfaces/#CommonStringsIdentity) variable.
|
|
1067
|
+
*
|
|
1068
|
+
* @example
|
|
1069
|
+
* ```ts
|
|
1070
|
+
* // User sets the xAxisField to a field that doesn't exist in the dataset.
|
|
1071
|
+
* barChartModel.xAxisField = "wrong_field_name";
|
|
1072
|
+
*
|
|
1073
|
+
* // Overrides the default message when there's a query error instead of displaying the default "Failure to read input data." message.
|
|
1074
|
+
* chartElement.messageOverrides = {
|
|
1075
|
+
* errorStrings: {
|
|
1076
|
+
* errors: {
|
|
1077
|
+
* queryError:
|
|
1078
|
+
* "<b><u>The input data provided is invalid, please ensure the xAxisField is correctly specified.</u></b>"
|
|
1079
|
+
* },
|
|
1080
|
+
* },
|
|
1081
|
+
* };
|
|
1082
|
+
* ```
|
|
1083
|
+
*
|
|
1084
|
+
* 
|
|
1085
|
+
*/
|
|
1086
|
+
accessor messageOverrides: {
|
|
943
1087
|
utilsStrings?: {
|
|
944
1088
|
chartType?: {
|
|
945
1089
|
chart?: string | undefined;
|
|
@@ -1077,6 +1221,10 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1077
1221
|
twoTemporalSeriesLineCountCannotExceedLimit?: string | undefined;
|
|
1078
1222
|
threePlusTemporalSeriesLineCountCannotExceedLimit?: string | undefined;
|
|
1079
1223
|
lineSeriesCountCannotExceedLimit?: string | undefined;
|
|
1224
|
+
uniqueSeriesRadarCountCannotExceedLimit?: string | undefined;
|
|
1225
|
+
twoSeriesRadarCountCannotExceedLimit?: string | undefined;
|
|
1226
|
+
threePlusSeriesRadarCountCannotExceedLimit?: string | undefined;
|
|
1227
|
+
radarSeriesCountCannotExceedLimit?: string | undefined;
|
|
1080
1228
|
uniqueSeriesBoxCountCannotExceedLimit?: string | undefined;
|
|
1081
1229
|
twoSeriesBoxCountCannotExceedLimit?: string | undefined;
|
|
1082
1230
|
threePlusBoxLineCountCannotExceedLimit?: string | undefined;
|
|
@@ -1206,25 +1354,42 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1206
1354
|
"Unable to load file: %1"?: string | undefined;
|
|
1207
1355
|
"Invalid date"?: string | undefined;
|
|
1208
1356
|
} | undefined;
|
|
1209
|
-
};
|
|
1357
|
+
} & { chartNotFoundWarning?: string | undefined; };
|
|
1210
1358
|
/**
|
|
1211
1359
|
* Provides an API to interact with the chart's configuration.
|
|
1212
1360
|
*
|
|
1213
|
-
*
|
|
1361
|
+
* `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.
|
|
1362
|
+
* - `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.
|
|
1363
|
+
* - This is the recommended approach as it ensures the chart configuration is valid and compatible with the component.
|
|
1364
|
+
* - `WebChart`: A plain chart configuration object that follows the [WebChart](https://developers.arcgis.com/javascript/latest/references/charts-components/spec/web-chart/#WebChart) specification.
|
|
1365
|
+
*
|
|
1366
|
+
* @see [Create a new chart with charts model](https://developers.arcgis.com/javascript/latest/charts/#create-a-new-chart-with-charts-model)
|
|
1214
1367
|
*/
|
|
1215
1368
|
accessor model: ChartModel | WebChart | undefined;
|
|
1216
1369
|
/**
|
|
1217
|
-
*
|
|
1218
|
-
*
|
|
1219
|
-
*
|
|
1370
|
+
* When `true`, null values are considered as valid.
|
|
1371
|
+
*
|
|
1372
|
+
* By default, when the data contains only null values, the chart dataset is considered empty:
|
|
1373
|
+
* - The [@arcgisBadDataWarningRaise](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisBadDataWarningRaise) event will be sent.
|
|
1374
|
+
* - The "No data available to display" warning message will be displayed in the chart container.
|
|
1220
1375
|
*
|
|
1221
1376
|
* @default false
|
|
1222
1377
|
*/
|
|
1223
1378
|
accessor nullAsValid: boolean;
|
|
1224
|
-
/**
|
|
1379
|
+
/**
|
|
1380
|
+
* Placeholder text displayed in the chart container when no chart is configured.
|
|
1381
|
+
* If the string contains HTML tags they will be interpreted as such.
|
|
1382
|
+
*
|
|
1383
|
+
* @example
|
|
1384
|
+
* ```ts
|
|
1385
|
+
* 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.";
|
|
1386
|
+
* ```
|
|
1387
|
+
*
|
|
1388
|
+
* 
|
|
1389
|
+
*/
|
|
1225
1390
|
accessor placeholder: string | undefined;
|
|
1226
1391
|
/**
|
|
1227
|
-
*
|
|
1392
|
+
* 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
1393
|
*
|
|
1229
1394
|
* @default false
|
|
1230
1395
|
*/
|
|
@@ -1245,12 +1410,13 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1245
1410
|
*/
|
|
1246
1411
|
accessor replaceNoValueCategoryWithZero: boolean | undefined;
|
|
1247
1412
|
/**
|
|
1248
|
-
* When `true`, the
|
|
1413
|
+
* 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)
|
|
1414
|
+
* and [@arcgisSelectionComplete](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisSelectionComplete) events.
|
|
1249
1415
|
* Applies only to:
|
|
1250
1416
|
* - Charts using an aggregation.
|
|
1251
|
-
* - Data
|
|
1417
|
+
* - Data sources using a feature layer compatible with envelope aggregation.
|
|
1252
1418
|
*
|
|
1253
|
-
* The extent
|
|
1419
|
+
* The extent is returned through the [featuresExtentField](https://developers.arcgis.com/javascript/latest/references/charts-components/utils/defaults/index/#featuresExtentField) variable.
|
|
1254
1420
|
*
|
|
1255
1421
|
* **Note**: Not applicable to gauges.
|
|
1256
1422
|
*
|
|
@@ -1258,7 +1424,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1258
1424
|
*/
|
|
1259
1425
|
accessor returnFeaturesExtent: boolean;
|
|
1260
1426
|
/**
|
|
1261
|
-
* When `true`,
|
|
1427
|
+
* When `true`, selection indexes are computed and returned whenever a selection is made on or passed to the chart.
|
|
1262
1428
|
*
|
|
1263
1429
|
* **Note**: Not applicable to gauges.
|
|
1264
1430
|
*
|
|
@@ -1266,10 +1432,10 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1266
1432
|
*/
|
|
1267
1433
|
accessor returnSelectionIndexes: boolean;
|
|
1268
1434
|
/**
|
|
1269
|
-
* When `true`,
|
|
1270
|
-
* Only considered for
|
|
1435
|
+
* When `true`, object ids are computed and returned whenever a selection is made on or passed to the chart.
|
|
1436
|
+
* Only considered for data sources using a [feature layer](/references/core/layers/FeatureLayer).
|
|
1271
1437
|
*
|
|
1272
|
-
* **Note**: Not applicable to gauges or charts configured with imagery layers.
|
|
1438
|
+
* **Note**: Not applicable to gauges or charts configured with imagery layers.
|
|
1273
1439
|
*
|
|
1274
1440
|
* @default false
|
|
1275
1441
|
*/
|
|
@@ -1277,7 +1443,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1277
1443
|
/**
|
|
1278
1444
|
* When `true`, the chart is rotated 90 degrees so that the x-axis becomes vertical and the y-axis becomes horizontal.
|
|
1279
1445
|
*
|
|
1280
|
-
* **Note**: Applicable to bar
|
|
1446
|
+
* **Note**: Applicable to bar charts, box plots, combo bar line charts and line charts.
|
|
1281
1447
|
*
|
|
1282
1448
|
* @default false
|
|
1283
1449
|
*/
|
|
@@ -1292,12 +1458,29 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1292
1458
|
*/
|
|
1293
1459
|
accessor rotation: boolean;
|
|
1294
1460
|
/**
|
|
1295
|
-
* Applies runtime data filters to the chart.
|
|
1461
|
+
* Applies runtime data filters to the chart, features will be filtered based on the provided key value pairs.
|
|
1462
|
+
*
|
|
1463
|
+
* Supported keys are `where`, `objectIds`, `geometry`, `spatialRelationship`, `distance`, `units`, `timeExtent`, and `gdbVersion`.
|
|
1296
1464
|
*
|
|
1297
1465
|
* @example
|
|
1298
1466
|
* ```ts
|
|
1467
|
+
* // 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.
|
|
1468
|
+
* const start = new Date(2005, 8, 23).getTime();
|
|
1469
|
+
* const end = new Date(2005, 8, 28).getTime();
|
|
1470
|
+
*
|
|
1299
1471
|
* chartComponent.runtimeDataFilters = {
|
|
1300
|
-
* where: "
|
|
1472
|
+
* where: "Name = 'Katrina'",
|
|
1473
|
+
* objectIds: [12, 19, 27],
|
|
1474
|
+
* geometry: {
|
|
1475
|
+
* xmin: -130,
|
|
1476
|
+
* ymin: 20,
|
|
1477
|
+
* xmax: -60,
|
|
1478
|
+
* ymax: 55,
|
|
1479
|
+
* },
|
|
1480
|
+
* spatialRelationship: "contains",
|
|
1481
|
+
* distance: 10,
|
|
1482
|
+
* units: "miles",
|
|
1483
|
+
* timeExtent: [start, end]
|
|
1301
1484
|
* };
|
|
1302
1485
|
* ```
|
|
1303
1486
|
*/
|
|
@@ -1305,11 +1488,60 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1305
1488
|
/**
|
|
1306
1489
|
* Callback function used to format the secondary y-axis labels. If the returned string contains HTML tags they will be interpreted as such.
|
|
1307
1490
|
*
|
|
1308
|
-
*
|
|
1491
|
+
* @example
|
|
1492
|
+
* ```ts
|
|
1493
|
+
* // Render a custom secondary y-axis label with the value formatted as a compact currency.
|
|
1494
|
+
* chartElement.secondaryYAxisLabelFormatter = (value) => {
|
|
1495
|
+
* const formattedValue = new Intl.NumberFormat("en-US", {
|
|
1496
|
+
* style: "currency",
|
|
1497
|
+
* currency: "USD",
|
|
1498
|
+
* notation: "compact",
|
|
1499
|
+
* maximumFractionDigits: 1,
|
|
1500
|
+
* }).format(value);
|
|
1501
|
+
* return `<strong>${formattedValue}</strong>`;
|
|
1502
|
+
* };
|
|
1503
|
+
* ```
|
|
1504
|
+
*
|
|
1505
|
+
* 
|
|
1506
|
+
*
|
|
1507
|
+
* **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
1508
|
*/
|
|
1310
1509
|
accessor secondaryYAxisLabelFormatter: AxisLabelFormatCallback | undefined;
|
|
1311
1510
|
/**
|
|
1312
|
-
*
|
|
1511
|
+
* Applies a programmatic selection to the chart. The payload can target chart elements by object IDs (`selectionOIDs`), by indexes (`selectionIndexes`), or by items (`selectionItems`).
|
|
1512
|
+
*
|
|
1513
|
+
* ##### Selection by object IDs
|
|
1514
|
+
* When passing in a `selectionOIDs` array, the chart will match the provided object IDs with the chart's data items and apply the selection.
|
|
1515
|
+
*
|
|
1516
|
+
* @example
|
|
1517
|
+
* ```ts
|
|
1518
|
+
* // This selects the chart data items (`Mid East` and `Great Lakes`) that contains the object IDs "3118" and "6544".
|
|
1519
|
+
* chartElement.selectionData = {
|
|
1520
|
+
* selectionOIDs: [3118, 6544],
|
|
1521
|
+
* };
|
|
1522
|
+
* ```
|
|
1523
|
+
*
|
|
1524
|
+
* 
|
|
1525
|
+
*
|
|
1526
|
+
*
|
|
1527
|
+
* ##### Selection by items
|
|
1528
|
+
* When passing in a `selectionItems` array, the chart will match the provided items with the chart's data items and apply the selection.
|
|
1529
|
+
* @example
|
|
1530
|
+
* ```ts
|
|
1531
|
+
* // This selects the first chart data item with the matching items.
|
|
1532
|
+
* chartElement.selectionData = {
|
|
1533
|
+
* selectionItems: [
|
|
1534
|
+
* {
|
|
1535
|
+
* // The field name and value
|
|
1536
|
+
* neighbourhood_group: "Manhattan",
|
|
1537
|
+
* // The y-series field name and value, 0 indicates the first series.
|
|
1538
|
+
* COUNT_OBJECTID_0: "",
|
|
1539
|
+
* },
|
|
1540
|
+
* ],
|
|
1541
|
+
* };
|
|
1542
|
+
* ```
|
|
1543
|
+
*
|
|
1544
|
+
* 
|
|
1313
1545
|
*
|
|
1314
1546
|
* **Note**: Not applicable to gauges.
|
|
1315
1547
|
*/
|
|
@@ -1322,77 +1554,108 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1322
1554
|
*/
|
|
1323
1555
|
accessor selectionManager: SelectionManager | undefined;
|
|
1324
1556
|
/**
|
|
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.
|
|
1557
|
+
* Customizes the visual style applied to selected and non-selected chart data items (bars, slices, markers, boxes etc.).
|
|
1328
1558
|
*
|
|
1329
|
-
*
|
|
1559
|
+
* - The [`selectedElementsTheme`](/references/charts-components/utils/misc/interfaces/#SelectionTheme-selectedElementsTheme) property controls the appearance of selected elements.
|
|
1560
|
+
* - The [`nonSelectedElementsTheme`](/references/charts-components/utils/misc/interfaces/#SelectionTheme-nonSelectedElementsTheme) property controls the appearance of elements that are not selected.
|
|
1330
1561
|
*
|
|
1331
1562
|
* @example
|
|
1332
1563
|
* ```ts
|
|
1333
|
-
*
|
|
1334
|
-
*
|
|
1335
|
-
*
|
|
1336
|
-
*
|
|
1337
|
-
*
|
|
1564
|
+
* chartElement.selectionTheme = {
|
|
1565
|
+
* // The selected elements will have a magenta outline with a width of 3 pixels and will be scaled up by 10%.
|
|
1566
|
+
* selectedElementsTheme: {
|
|
1567
|
+
* elementOutlineColor: [255, 0, 237, 255],
|
|
1568
|
+
* elementOutlineWidth: 3,
|
|
1569
|
+
* transformation: {
|
|
1570
|
+
* scale: 1.1,
|
|
1571
|
+
* },
|
|
1338
1572
|
* },
|
|
1339
|
-
*
|
|
1340
|
-
*
|
|
1341
|
-
*
|
|
1342
|
-
*
|
|
1343
|
-
*
|
|
1344
|
-
*
|
|
1573
|
+
* // The non-selected elements will be scaled down by 20% and have their opacity reduced to 50%.
|
|
1574
|
+
* nonSelectedElementsTheme: {
|
|
1575
|
+
* transformation: {
|
|
1576
|
+
* scale: 0.8,
|
|
1577
|
+
* opacity: 0.5,
|
|
1578
|
+
* },
|
|
1579
|
+
* },
|
|
1580
|
+
* };
|
|
1345
1581
|
* ```
|
|
1582
|
+
*
|
|
1583
|
+
* 
|
|
1584
|
+
*
|
|
1585
|
+
* **Note**: Not applicable to gauges.
|
|
1346
1586
|
*/
|
|
1347
1587
|
accessor selectionTheme: SelectionTheme | undefined;
|
|
1348
1588
|
/**
|
|
1349
|
-
* When `true`, the
|
|
1589
|
+
* 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
1590
|
*
|
|
1351
|
-
*
|
|
1591
|
+
* 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.
|
|
1592
|
+
*
|
|
1593
|
+
* **Note**: Only applicable to charts with temporal binning enabled (bar chart, combo bar line chart, line chart, radar chart).
|
|
1352
1594
|
*
|
|
1353
1595
|
* @default false
|
|
1354
1596
|
*/
|
|
1355
1597
|
accessor setTimeBinningInfoWhenNotProvided: boolean;
|
|
1356
1598
|
/**
|
|
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).
|
|
1599
|
+
* When `true`, show the series on the chart and legend even if it doesn't contain any data.
|
|
1361
1600
|
*
|
|
1362
|
-
*
|
|
1601
|
+
* By default, the empty series are hidden from the chart and the legend.
|
|
1363
1602
|
*
|
|
1364
1603
|
* @default false
|
|
1604
|
+
* @example
|
|
1605
|
+
* ```ts
|
|
1606
|
+
* // In this example, we first set a data filter to only include features with a room type of "Entire home/apt" or "Private room".
|
|
1607
|
+
* // The "Shared room" series will be empty after applying the data filter.
|
|
1608
|
+
* chartElement.runtimeDataFilters = {
|
|
1609
|
+
* where: "room_type = 'Entire home/apt' OR room_type = 'Private room'",
|
|
1610
|
+
* };
|
|
1611
|
+
*
|
|
1612
|
+
* // With the `showEmptySeries` property set to `true`,
|
|
1613
|
+
* // the "Shared room" series will still be displayed on the chart and in the legend, even though it was filtered out.
|
|
1614
|
+
* chartElement.showEmptySeries = true;
|
|
1615
|
+
* ```
|
|
1616
|
+
*
|
|
1617
|
+
* 
|
|
1618
|
+
*
|
|
1619
|
+
* **Note**: Not applicable to gauges.
|
|
1365
1620
|
* @since 5.1
|
|
1366
1621
|
*/
|
|
1367
1622
|
accessor showEmptySeries: boolean;
|
|
1368
1623
|
/**
|
|
1369
|
-
*
|
|
1624
|
+
* When `true`, the license watermark is displayed on the lower left corner of the chart.
|
|
1370
1625
|
*
|
|
1626
|
+
* @deprecated since 5.2. Won't be replaced.
|
|
1371
1627
|
* @default false
|
|
1372
1628
|
* @since 5.1
|
|
1373
1629
|
*/
|
|
1374
1630
|
accessor showLicenseWatermark: boolean;
|
|
1375
1631
|
/**
|
|
1376
|
-
* Whether to display or hide all UI messages (e.g. no data warnings,
|
|
1632
|
+
* Whether to display or hide all UI messages (e.g. no data warnings, any placeholder messages set or invalid chart configuration).
|
|
1377
1633
|
*
|
|
1378
1634
|
* @deprecated since 5.1. Use [hideUIMessages](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#hideUIMessages) instead.
|
|
1379
1635
|
* @default false
|
|
1380
1636
|
*/
|
|
1381
1637
|
accessor showUIMessages: boolean | undefined;
|
|
1382
1638
|
/**
|
|
1383
|
-
* Whether to skip the chart rendering queue.
|
|
1384
|
-
*
|
|
1385
1639
|
* When `true`, charts will render immediately without waiting for other charts to finish rendering.
|
|
1386
|
-
*
|
|
1640
|
+
* By default, charts are queued so that only one chart renders at a time.
|
|
1387
1641
|
*
|
|
1388
1642
|
* @default false
|
|
1389
1643
|
* @since 5.1
|
|
1390
1644
|
*/
|
|
1391
1645
|
accessor skipChartCreationQueue: boolean;
|
|
1392
1646
|
/**
|
|
1393
|
-
*
|
|
1647
|
+
* When `true`, the selection will be synchronized between charts configured with the same layer.
|
|
1394
1648
|
*
|
|
1395
1649
|
* @default false
|
|
1650
|
+
* @example
|
|
1651
|
+
* ```ts
|
|
1652
|
+
* // Both charts are configured with the same layer.
|
|
1653
|
+
* // The "Private room" slice is selected on the pie chart and the selection is reflected on the bar chart.
|
|
1654
|
+
* chartElement1.syncChartsSelection = true;
|
|
1655
|
+
* chartElement2.syncChartsSelection = true;
|
|
1656
|
+
* ```
|
|
1657
|
+
*
|
|
1658
|
+
* 
|
|
1396
1659
|
* @since 5.1
|
|
1397
1660
|
*/
|
|
1398
1661
|
accessor syncChartsSelection: boolean;
|
|
@@ -1455,33 +1718,41 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1455
1718
|
*/
|
|
1456
1719
|
accessor timeZone: MapView["timeZone"] | undefined;
|
|
1457
1720
|
/**
|
|
1458
|
-
*
|
|
1721
|
+
* 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
1722
|
*
|
|
1460
|
-
* **Note**: Only applicable to
|
|
1723
|
+
* **Note**: Only applicable to charts with multiple series and while the legend is displayed.
|
|
1461
1724
|
*
|
|
1725
|
+
* @deprecated since 5.2. Use [legendInteractionsDisabled](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#legendInteractionsDisabled) instead.
|
|
1462
1726
|
* @default false
|
|
1463
1727
|
*/
|
|
1464
1728
|
accessor togglingLegendItemsDisabled: boolean | undefined;
|
|
1465
1729
|
/**
|
|
1466
|
-
* Callback function used to format the tooltips. If the returned string contains HTML tags they will be interpreted as such.
|
|
1730
|
+
* 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
1731
|
*
|
|
1468
1732
|
* @example
|
|
1469
1733
|
* ```ts
|
|
1470
|
-
*
|
|
1471
|
-
*
|
|
1472
|
-
*
|
|
1734
|
+
* // Render a custom tooltip with the series name, x-value, and stat value.
|
|
1735
|
+
* chartElement.tooltipFormatter = (props) => `
|
|
1736
|
+
* <div>
|
|
1737
|
+
* <div><strong>${props.seriesName}</strong> in <strong>${props.xValue}</strong></div>
|
|
1738
|
+
* <div>Total listings: <strong>${props.statValue}</strong></div>
|
|
1739
|
+
* </div>
|
|
1740
|
+
* `;
|
|
1473
1741
|
* ```
|
|
1474
1742
|
*
|
|
1743
|
+
* 
|
|
1744
|
+
*
|
|
1475
1745
|
* **Note**: Not applicable to gauges.
|
|
1476
1746
|
*/
|
|
1477
|
-
accessor tooltipFormatter:
|
|
1747
|
+
accessor tooltipFormatter: TooltipFormatters | undefined;
|
|
1478
1748
|
/**
|
|
1479
|
-
* Whether to
|
|
1480
|
-
*
|
|
1481
|
-
*
|
|
1482
|
-
*
|
|
1749
|
+
* Whether to automatically add the missing series to cover the split-by values not referenced in the configuration.
|
|
1750
|
+
* - 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.
|
|
1751
|
+
* - When [`addMissingSeries`](/references/charts-components/utils/components/interfaces/#MissingSplitBySeriesProps-addMissingSeries) is set to `true`, the missing series will be added.
|
|
1752
|
+
* - 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.
|
|
1753
|
+
* - 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
1754
|
*
|
|
1484
|
-
* **Note**: Applicable only to bar chart, line chart and
|
|
1755
|
+
* **Note**: Applicable only to bar chart, box plot, line chart and radar chart when a split-by field is used.
|
|
1485
1756
|
*/
|
|
1486
1757
|
accessor updateSplitBySeries: MissingSplitBySeriesProps | undefined;
|
|
1487
1758
|
/**
|
|
@@ -1513,15 +1784,47 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1513
1784
|
/**
|
|
1514
1785
|
* Callback function used to format the x-axis labels. If the returned string contains HTML tags they will be interpreted as such.
|
|
1515
1786
|
*
|
|
1516
|
-
*
|
|
1787
|
+
* @example
|
|
1788
|
+
* ```ts
|
|
1789
|
+
* // Render a custom x-axis label with underlined string and bolded value.
|
|
1790
|
+
* chartElement.xAxisLabelFormatter = (value) => {
|
|
1791
|
+
* return `<u>Neighbourhood Group:</u> <strong>${value}</strong>`;
|
|
1792
|
+
* };
|
|
1793
|
+
* ```
|
|
1794
|
+
*
|
|
1795
|
+
* 
|
|
1796
|
+
*
|
|
1797
|
+
* **Note**: Only applicable to charts with x-axis labels displayed.
|
|
1517
1798
|
*/
|
|
1518
1799
|
accessor xAxisLabelFormatter: AxisLabelFormatCallback | undefined;
|
|
1519
1800
|
/**
|
|
1520
1801
|
* Callback function used to format the y-axis labels. If the returned string contains HTML tags they will be interpreted as such.
|
|
1521
1802
|
*
|
|
1522
|
-
*
|
|
1803
|
+
* @example
|
|
1804
|
+
* ```ts
|
|
1805
|
+
* // Render a custom y-axis label with underlined string and bolded value.
|
|
1806
|
+
* chartElement.yAxisLabelFormatter = (value) => {
|
|
1807
|
+
* return `<u>Rental Listings:</u> <strong>${value}</strong>`;
|
|
1808
|
+
* };
|
|
1809
|
+
* ```
|
|
1810
|
+
*
|
|
1811
|
+
* 
|
|
1812
|
+
*
|
|
1813
|
+
* **Note**: Only applicable to charts with y-axis labels displayed.
|
|
1523
1814
|
*/
|
|
1524
1815
|
accessor yAxisLabelFormatter: AxisLabelFormatCallback | undefined;
|
|
1816
|
+
/**
|
|
1817
|
+
* When `true`, count=0 is considered a valid statistic.
|
|
1818
|
+
*
|
|
1819
|
+
* By default, when the aggregation type is "count" and the data contains only values equal to 0, the chart dataset
|
|
1820
|
+
* is considered empty:
|
|
1821
|
+
* - The [@arcgisBadDataWarningRaise](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisBadDataWarningRaise) event will be sent.
|
|
1822
|
+
* - The "No data available to display" warning message will be displayed in the chart container.
|
|
1823
|
+
*
|
|
1824
|
+
* @default false
|
|
1825
|
+
* @since 5.2
|
|
1826
|
+
*/
|
|
1827
|
+
accessor zeroCountAsValid: boolean;
|
|
1525
1828
|
/**
|
|
1526
1829
|
* Apply the selection from the selection manager to the chart.
|
|
1527
1830
|
*
|
|
@@ -1535,7 +1838,7 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1535
1838
|
*/
|
|
1536
1839
|
clearSelection(): Promise<void>;
|
|
1537
1840
|
/**
|
|
1538
|
-
* Destroys the chart instance
|
|
1841
|
+
* Destroys the chart instance.
|
|
1539
1842
|
*
|
|
1540
1843
|
* @since 5.1
|
|
1541
1844
|
*/
|
|
@@ -1550,110 +1853,280 @@ export abstract class ArcgisChart extends LitElement {
|
|
|
1550
1853
|
/**
|
|
1551
1854
|
* Export the current chart's data as a CSV file.
|
|
1552
1855
|
*
|
|
1553
|
-
* The
|
|
1554
|
-
*
|
|
1555
|
-
*
|
|
1556
|
-
*
|
|
1557
|
-
*
|
|
1558
|
-
*
|
|
1559
|
-
*
|
|
1560
|
-
*
|
|
1561
|
-
*
|
|
1562
|
-
*
|
|
1563
|
-
*
|
|
1564
|
-
*
|
|
1565
|
-
*
|
|
1566
|
-
*
|
|
1567
|
-
*
|
|
1568
|
-
*
|
|
1569
|
-
*
|
|
1570
|
-
*
|
|
1856
|
+
* @param options - The options to customize the exported CSV file.
|
|
1857
|
+
* @example
|
|
1858
|
+
* ```ts
|
|
1859
|
+
* // Export the chart's data as a CSV file with custom options.
|
|
1860
|
+
* await chartElement.exportAsCSV({
|
|
1861
|
+
* columns: ["neighbourhood_group", "room_type", "Count"],
|
|
1862
|
+
* delimiter: "|",
|
|
1863
|
+
* includeHeader: false,
|
|
1864
|
+
* quoteAll: true,
|
|
1865
|
+
* locale: "fr"
|
|
1866
|
+
* });
|
|
1867
|
+
* ```
|
|
1868
|
+
*
|
|
1869
|
+
* ```csv
|
|
1870
|
+
* // The exported CSV file will contain the following data:
|
|
1871
|
+
* sep=|
|
|
1872
|
+
* "Bronx"|"Entire home/apt"|"379"
|
|
1873
|
+
* "Bronx"|"Private room"|"652"
|
|
1874
|
+
* "Bronx"|"Shared room"|"60"
|
|
1875
|
+
* "Brooklyn"|"Entire home/apt"|"9 559"
|
|
1876
|
+
* ...
|
|
1877
|
+
* ```
|
|
1878
|
+
*
|
|
1879
|
+
* **Note**: Not supported for gauges, scatterplots and radar charts.
|
|
1571
1880
|
*/
|
|
1572
1881
|
exportAsCSV(options?: CSVOptions): Promise<void>;
|
|
1573
1882
|
/**
|
|
1574
|
-
* Exports the current chart as an image.
|
|
1575
|
-
* -
|
|
1883
|
+
* Exports and downloads the current chart as an image.
|
|
1884
|
+
* - Supported formats: `png` (default), `jpeg`, `jpg`, `webp`, and `svg`.
|
|
1885
|
+
* - When `webp` format is used on Safari, it will fallback to `png`.
|
|
1576
1886
|
*
|
|
1577
|
-
* @param format
|
|
1887
|
+
* @param format - The image format to export the chart as. Default: `png`.
|
|
1578
1888
|
*/
|
|
1579
1889
|
exportAsImage(format?: DownloadableChartImagesTypes): Promise<void>;
|
|
1580
|
-
/**
|
|
1890
|
+
/**
|
|
1891
|
+
* Returns a promise that resolves when the chart model is fully loaded.
|
|
1892
|
+
*
|
|
1893
|
+
* 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.
|
|
1894
|
+
*
|
|
1895
|
+
* @example
|
|
1896
|
+
* ```html
|
|
1897
|
+
* // Load a chart from a layer item
|
|
1898
|
+
* <arcgis-chart layer-item-id="8871626e970a4f3e9d6113ec63a92f2f" chart-index="2" />
|
|
1899
|
+
* ```
|
|
1900
|
+
* ```ts
|
|
1901
|
+
* // Get a reference to the chart element in the DOM
|
|
1902
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
1903
|
+
*
|
|
1904
|
+
* // Call the method to ensure the model is fully loaded before making changes
|
|
1905
|
+
* await chartElement.loadModel();
|
|
1906
|
+
*
|
|
1907
|
+
* // Once the model is loaded, use the model's properties/methods to customize
|
|
1908
|
+
* chartElement.model.titleText = "New Title";
|
|
1909
|
+
* ```
|
|
1910
|
+
* @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)
|
|
1911
|
+
*/
|
|
1581
1912
|
loadModel(): Promise<void>;
|
|
1582
1913
|
/**
|
|
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.
|
|
1914
|
+
* Passes external messages to the chart component and displays them in the chart's container.
|
|
1915
|
+
* 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
1916
|
*
|
|
1587
|
-
* @param message - The message to display in the chart's
|
|
1588
|
-
* @param heading - The heading to display in the chart's
|
|
1917
|
+
* @param message - The message to display in the chart's container.
|
|
1918
|
+
* @param heading - The heading to display in the chart's container.
|
|
1919
|
+
* @example
|
|
1920
|
+
* ```html
|
|
1921
|
+
* <button id="show-notification" type="button">Show notification</button>
|
|
1922
|
+
* <button id="clear-notification" type="button">Clear notification</button>
|
|
1923
|
+
* ```
|
|
1924
|
+
*
|
|
1925
|
+
* ```ts
|
|
1926
|
+
* // When the "Show notification" button is clicked, the chart's container will display a custom message and heading.
|
|
1927
|
+
* document.querySelector("#show-notification").addEventListener("click", () => {
|
|
1928
|
+
* chartElement.notify(
|
|
1929
|
+
* "This is a notification message.",
|
|
1930
|
+
* "Notification heading",
|
|
1931
|
+
* );
|
|
1932
|
+
* });
|
|
1933
|
+
*
|
|
1934
|
+
* // When the "Clear notification" button is clicked, the chart's container will be cleared and hidden.
|
|
1935
|
+
* document.querySelector("#clear-notification").addEventListener("click", () => {
|
|
1936
|
+
* chartElement.notify();
|
|
1937
|
+
* });
|
|
1938
|
+
* ```
|
|
1589
1939
|
*/
|
|
1590
1940
|
notify(message?: string, heading?: string): Promise<void>;
|
|
1591
1941
|
/**
|
|
1592
1942
|
* Re-render the chart.
|
|
1593
1943
|
*
|
|
1594
|
-
* @param props -
|
|
1944
|
+
* @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
1945
|
*/
|
|
1596
1946
|
refresh(props?: {
|
|
1597
1947
|
updateData?: boolean;
|
|
1598
1948
|
resetAxesBounds?: boolean;
|
|
1599
1949
|
}): Promise<void>;
|
|
1600
1950
|
/**
|
|
1601
|
-
* Resets the chart zoom
|
|
1951
|
+
* Resets the chart's zoom and brings it back to full zoom extent.
|
|
1602
1952
|
*
|
|
1603
|
-
* **Note**:
|
|
1953
|
+
* **Note**: Not applicable to gauges, heat charts, pie charts and radar charts.
|
|
1604
1954
|
*/
|
|
1605
1955
|
resetZoom(): Promise<void>;
|
|
1606
1956
|
/**
|
|
1607
1957
|
* Switches the selection on the chart.
|
|
1608
1958
|
*
|
|
1609
|
-
* **Note**: Not applicable to
|
|
1959
|
+
* **Note**: Not applicable to gauges.
|
|
1610
1960
|
*/
|
|
1611
1961
|
switchSelection(): Promise<void>;
|
|
1612
|
-
/**
|
|
1962
|
+
/**
|
|
1963
|
+
* Emitted when the chart's axes minimum or maximum values are computed.
|
|
1964
|
+
*
|
|
1965
|
+
* @example
|
|
1966
|
+
* ```ts
|
|
1967
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
1968
|
+
* chartElement.addEventListener("arcgisAxesMinMaxChange", (event) => {
|
|
1969
|
+
* const { bounds, model } = event.detail;
|
|
1970
|
+
* // Handle the new bounds and model
|
|
1971
|
+
* });
|
|
1972
|
+
* ```
|
|
1973
|
+
*/
|
|
1613
1974
|
readonly arcgisAxesMinMaxChange: import("@arcgis/lumina").TargetedEvent<this, AxesMinMaxChangePayload>;
|
|
1614
|
-
/**
|
|
1975
|
+
/**
|
|
1976
|
+
* 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.
|
|
1977
|
+
* The event details contain information about the error.
|
|
1978
|
+
*
|
|
1979
|
+
* @example
|
|
1980
|
+
* ```ts
|
|
1981
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
1982
|
+
* chartElement.addEventListener("arcgisBadDataWarningRaise", (event) => {
|
|
1983
|
+
* const { keyword, header, message, params } = event.detail;
|
|
1984
|
+
* // Handle the bad data warning
|
|
1985
|
+
* });
|
|
1986
|
+
* ```
|
|
1987
|
+
*/
|
|
1615
1988
|
readonly arcgisBadDataWarningRaise: import("@arcgis/lumina").TargetedEvent<this, DataWarningObject>;
|
|
1616
|
-
/**
|
|
1989
|
+
/**
|
|
1990
|
+
* 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).
|
|
1991
|
+
*
|
|
1992
|
+
* @example
|
|
1993
|
+
* ```ts
|
|
1994
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
1995
|
+
* chartElement.addEventListener("arcgisChartNotFoundWarning", (event) => {
|
|
1996
|
+
* const warningMessage = event.detail;
|
|
1997
|
+
* // Handle the warning message
|
|
1998
|
+
* });
|
|
1999
|
+
* ```
|
|
2000
|
+
*/
|
|
1617
2001
|
readonly arcgisChartNotFoundWarning: import("@arcgis/lumina").TargetedEvent<this, string>;
|
|
1618
|
-
/**
|
|
2002
|
+
/**
|
|
2003
|
+
* Emitted when the chart configuration is changed.
|
|
2004
|
+
*
|
|
2005
|
+
* @example
|
|
2006
|
+
* ```ts
|
|
2007
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2008
|
+
* chartElement.addEventListener("arcgisConfigChange", (event) => {
|
|
2009
|
+
* const { newConfig, oldConfig, functionCalled } = event.detail;
|
|
2010
|
+
* // Handle the configuration change
|
|
2011
|
+
* });
|
|
2012
|
+
* ```
|
|
2013
|
+
*/
|
|
1619
2014
|
readonly arcgisConfigChange: import("@arcgis/lumina").TargetedEvent<this, {
|
|
1620
2015
|
newConfig: WebChart | undefined;
|
|
1621
2016
|
oldConfig: WebChart | undefined;
|
|
1622
2017
|
functionCalled: string | undefined;
|
|
1623
2018
|
}>;
|
|
1624
2019
|
/**
|
|
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.
|
|
2020
|
+
* 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.
|
|
2021
|
+
* The event details contain the pie chart's data with its ungrouped slices.
|
|
1628
2022
|
*
|
|
1629
2023
|
* **Note**: Applicable to pie charts only.
|
|
1630
2024
|
*/
|
|
1631
2025
|
readonly arcgisDataFetchComplete: import("@arcgis/lumina").TargetedEvent<this, WebChartDataTypes>;
|
|
1632
|
-
/**
|
|
2026
|
+
/**
|
|
2027
|
+
* Emitted once the chart data is updated and any subsequent updates to the chart's data.
|
|
2028
|
+
* The event details contain the chart's data.
|
|
2029
|
+
*
|
|
2030
|
+
* @example
|
|
2031
|
+
* ```ts
|
|
2032
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2033
|
+
* chartElement.addEventListener("arcgisDataProcessComplete", (event) => {
|
|
2034
|
+
* const { chartData, model } = event.detail;
|
|
2035
|
+
* // Handle the processed chart data
|
|
2036
|
+
* });
|
|
2037
|
+
* ```
|
|
2038
|
+
*/
|
|
1633
2039
|
readonly arcgisDataProcessComplete: import("@arcgis/lumina").TargetedEvent<this, DataProcessCompletePayload>;
|
|
1634
|
-
/**
|
|
2040
|
+
/**
|
|
2041
|
+
* Emitted when an error occurred while fetching or processing the data for the chart.
|
|
2042
|
+
*
|
|
2043
|
+
* @example
|
|
2044
|
+
* ```ts
|
|
2045
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2046
|
+
* chartElement.addEventListener("arcgisDataProcessError", () => {
|
|
2047
|
+
* // Handle the data process error
|
|
2048
|
+
* });
|
|
2049
|
+
* ```
|
|
2050
|
+
*/
|
|
1635
2051
|
readonly arcgisDataProcessError: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
1636
2052
|
/**
|
|
1637
|
-
*
|
|
2053
|
+
* Emitted when an invalid configuration is detected.
|
|
1638
2054
|
*
|
|
1639
2055
|
* @deprecated since 5.1. Won't be replaced.
|
|
1640
2056
|
*/
|
|
1641
2057
|
readonly arcgisInvalidConfigWarningRaise: import("@arcgis/lumina").TargetedEvent<this, DataWarningObject>;
|
|
1642
|
-
/**
|
|
2058
|
+
/**
|
|
2059
|
+
* Emitted once a legend item visibility has been changed.
|
|
2060
|
+
* The event details contain the toggled item's visibility and related information (series or slice id).
|
|
2061
|
+
*
|
|
2062
|
+
* @example
|
|
2063
|
+
* ```ts
|
|
2064
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2065
|
+
* chartElement.addEventListener("arcgisLegendItemVisibilityChange", (event) => {
|
|
2066
|
+
* const { legendItemVisibility, model } = event.detail;
|
|
2067
|
+
* // Handle the legend item visibility change
|
|
2068
|
+
* });
|
|
2069
|
+
* ```
|
|
2070
|
+
*/
|
|
1643
2071
|
readonly arcgisLegendItemVisibilityChange: import("@arcgis/lumina").TargetedEvent<this, LegendItemVisibilityChangePayload>;
|
|
1644
|
-
/**
|
|
2072
|
+
/** 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
2073
|
readonly arcgisNoRenderPropChange: import("@arcgis/lumina").TargetedEvent<this, NoRenderPropChangePayload>;
|
|
1646
|
-
/**
|
|
2074
|
+
/**
|
|
2075
|
+
* 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.
|
|
2076
|
+
*
|
|
2077
|
+
* @example
|
|
2078
|
+
* ```ts
|
|
2079
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2080
|
+
* chartElement.addEventListener("arcgisRenderingComplete", () => {
|
|
2081
|
+
* // Handle the rendering complete event
|
|
2082
|
+
* });
|
|
2083
|
+
*/
|
|
1647
2084
|
readonly arcgisRenderingComplete: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
1648
|
-
/**
|
|
2085
|
+
/**
|
|
2086
|
+
* Emitted when an error occurred that prevents the chart from being created or updated.
|
|
2087
|
+
*
|
|
2088
|
+
* @example
|
|
2089
|
+
* ```ts
|
|
2090
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2091
|
+
* chartElement.addEventListener("arcgisRuntimeError", () => {
|
|
2092
|
+
* // Handle the runtime error
|
|
2093
|
+
* });
|
|
2094
|
+
*/
|
|
1649
2095
|
readonly arcgisRuntimeError: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
1650
|
-
/**
|
|
2096
|
+
/**
|
|
2097
|
+
* Emitted when a selection is applied to the chart.
|
|
2098
|
+
* The [`selectionData`](/references/charts-components/utils/misc/interfaces/#SelectionData) event detail contains various information about the selection, including the selected OIDs.
|
|
2099
|
+
*
|
|
2100
|
+
* @example
|
|
2101
|
+
* ```ts
|
|
2102
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2103
|
+
* chartElement.addEventListener("arcgisSelectionComplete", (event) => {
|
|
2104
|
+
* const { selectionData, model } = event.detail;
|
|
2105
|
+
* // Handle the selection complete event
|
|
2106
|
+
* });
|
|
2107
|
+
* ```
|
|
2108
|
+
*/
|
|
1651
2109
|
readonly arcgisSelectionComplete: import("@arcgis/lumina").TargetedEvent<this, SelectionCompletePayload>;
|
|
1652
|
-
/**
|
|
2110
|
+
/** Emitted once one of the chart's series color has been assigned or changed. */
|
|
1653
2111
|
readonly arcgisSeriesColorChange: import("@arcgis/lumina").TargetedEvent<this, SeriesColorChangePayload>;
|
|
1654
|
-
/**
|
|
2112
|
+
/**
|
|
2113
|
+
* Emitted when the chart is created and at every update to confirm the order of the series on the chart.
|
|
2114
|
+
* The event details contain the modified series' indexes and names.
|
|
2115
|
+
*
|
|
2116
|
+
* @example
|
|
2117
|
+
* ```ts
|
|
2118
|
+
* const chartElement = document.querySelector("arcgis-chart");
|
|
2119
|
+
* chartElement.addEventListener("arcgisSeriesOrder", (event) => {
|
|
2120
|
+
* // Handle the series order change
|
|
2121
|
+
* });
|
|
2122
|
+
* ```
|
|
2123
|
+
*/
|
|
1655
2124
|
readonly arcgisSeriesOrder: import("@arcgis/lumina").TargetedEvent<this, string[]>;
|
|
1656
|
-
/**
|
|
2125
|
+
/**
|
|
2126
|
+
* Emitted once the chart is updated.
|
|
2127
|
+
*
|
|
2128
|
+
* @deprecated since 5.2. Use [@arcgisRenderingComplete](https://developers.arcgis.com/javascript/latest/references/charts-components/components/arcgis-chart/#event-arcgisRenderingComplete) instead.
|
|
2129
|
+
*/
|
|
1657
2130
|
readonly arcgisUpdateComplete: import("@arcgis/lumina").TargetedEvent<this, ValidationStatus>;
|
|
1658
2131
|
readonly "@eventTypes": {
|
|
1659
2132
|
arcgisAxesMinMaxChange: ArcgisChart["arcgisAxesMinMaxChange"]["detail"];
|