@arcgis/charts-components 5.1.0-next.8 → 5.1.0-next.80
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/README.md +2 -2
- package/dist/cdn/2EFFPZSB.js +2 -0
- package/dist/cdn/{SM4LQF5M.js → 2NN5AE5D.js} +1 -1
- package/dist/cdn/3AIE3FUA.js +2 -0
- package/dist/cdn/3LYW7DPP.js +2 -0
- package/dist/cdn/3MHB5VAM.js +37 -0
- package/dist/cdn/3VEQ7HMG.js +2 -0
- package/dist/cdn/{VFP7AKUR.js → 45P5JEKC.js} +1 -1
- package/dist/cdn/{Q5N6IPFC.js → 47WDNO2P.js} +1 -1
- package/dist/cdn/4GCUO37L.js +2 -0
- package/dist/cdn/4IYPGSMC.js +2 -0
- package/dist/cdn/{6WQPKBUS.js → 4LH6RELA.js} +1 -1
- package/dist/cdn/4YZHTVL7.js +2 -0
- package/dist/cdn/52XNA2DH.js +2 -0
- package/dist/cdn/57CR5SOU.js +2 -0
- package/dist/cdn/5ZYCFKFX.js +2 -0
- package/dist/cdn/66KEM4LG.js +2 -0
- package/dist/cdn/6DGQQ4V4.js +2 -0
- package/dist/cdn/6FB455E4.js +2 -0
- package/dist/cdn/6P6HFKV2.js +2 -0
- package/dist/cdn/7BDNLABD.js +2 -0
- package/dist/cdn/7GWVJEAI.js +2 -0
- package/dist/cdn/7I2D5SVD.js +2 -0
- package/dist/cdn/7ICRLJ5R.js +2 -0
- package/dist/cdn/7K2V6YNA.js +2 -0
- package/dist/cdn/7X23S5SF.js +2 -0
- package/dist/cdn/A4FCRGKH.js +2 -0
- package/dist/cdn/ALMGT4ZN.js +2 -0
- package/dist/cdn/BBBLK7RI.js +2 -0
- package/dist/cdn/BCPVUKSF.js +2 -0
- package/dist/cdn/CXSNVG3M.js +2 -0
- package/dist/cdn/DYQRIA4G.js +2 -0
- package/dist/cdn/E5P3LY6E.js +2 -0
- package/dist/cdn/E6S67HXA.js +2 -0
- package/dist/cdn/{HAJ2VWEU.js → EEBD6KKN.js} +1 -1
- package/dist/cdn/{KACPA2Q3.js → EEBFNI6X.js} +1 -1
- package/dist/cdn/{6DSWJCEU.js → FOYNQPWL.js} +1 -1
- package/dist/cdn/G2EWR4OS.js +2 -0
- package/dist/cdn/GDTHQBCP.js +2 -0
- package/dist/cdn/GPXGV2W3.js +2 -0
- package/dist/cdn/H32MCV7J.js +2 -0
- package/dist/cdn/HESIIJTB.js +2 -0
- package/dist/cdn/HNRWEWFM.js +2 -0
- package/dist/cdn/HWJIFGRR.js +2 -0
- package/dist/cdn/ICCNKIGD.js +2 -0
- package/dist/cdn/IKRCUXIB.js +2 -0
- package/dist/cdn/IO7TJZDW.js +2 -0
- package/dist/cdn/{BHWSEWHV.js → IVWZLS7W.js} +1 -1
- package/dist/cdn/IXGXDRYR.js +2 -0
- package/dist/cdn/{EVWSDR7F.js → IZCUAYGW.js} +1 -1
- package/dist/cdn/JB527BEY.js +2 -0
- package/dist/cdn/JLFVNF5U.js +2 -0
- package/dist/cdn/JM6E3U5J.js +2 -0
- package/dist/cdn/JZPDA4LD.js +2 -0
- package/dist/cdn/{INXFZ3KK.js → KBDOBMB5.js} +7 -7
- package/dist/cdn/KC5H5WGK.js +2 -0
- package/dist/cdn/KFBMPA6U.js +2 -0
- package/dist/cdn/KFIYYH54.js +2 -0
- package/dist/cdn/KQD5PSPV.js +2 -0
- package/dist/cdn/KRGZLJM5.js +2 -0
- package/dist/cdn/KUO2EPUE.js +2 -0
- package/dist/cdn/LD2K2FUM.js +2 -0
- package/dist/cdn/LHNPAXRS.js +2 -0
- package/dist/cdn/LNTDBU7W.js +2 -0
- package/dist/cdn/LPGL66XP.js +2 -0
- package/dist/cdn/LT4HKSXR.js +2 -0
- package/dist/cdn/LX5QI6J3.js +2 -0
- package/dist/cdn/{KZ37E2J3.js → LZNL4CV3.js} +7 -7
- package/dist/cdn/{SBHIJW76.js → MBC2KQUK.js} +1 -1
- package/dist/cdn/MFIKF7RC.js +2 -0
- package/dist/cdn/{K4VD72SG.js → MGIPPTHG.js} +1 -1
- package/dist/cdn/NFBNUOS2.js +2 -0
- package/dist/cdn/NHN6CQRE.js +2 -0
- package/dist/cdn/OQLV6YYT.js +2 -0
- package/dist/cdn/P2MVLEZ7.js +2 -0
- package/dist/cdn/{VPTDXGKU.js → PDXLVDA2.js} +1 -1
- package/dist/cdn/PV4ROV2W.js +2 -0
- package/dist/cdn/Q3YDW4V6.js +2 -0
- package/dist/cdn/QGLWCPMB.js +2 -0
- package/dist/cdn/QJKJNE7A.js +2 -0
- package/dist/cdn/QVD6LHQ2.js +2 -0
- package/dist/cdn/RI65IJRW.js +2 -0
- package/dist/cdn/SJWEUS4D.js +2 -0
- package/dist/cdn/SLB3Y7Q2.js +2 -0
- package/dist/cdn/SUUMGHCO.js +2 -0
- package/dist/cdn/SYV4I4MD.js +4 -0
- package/dist/cdn/T47JP5N6.js +2 -0
- package/dist/cdn/T5RPAQYI.js +2 -0
- package/dist/cdn/TJ3ALCTV.js +2 -0
- package/dist/cdn/TWLIURYH.js +2 -0
- package/dist/cdn/TZG37HE4.js +2 -0
- package/dist/cdn/U7L3L6IV.js +2 -0
- package/dist/cdn/UM7JZ2DY.js +2 -0
- package/dist/cdn/V45SCYTC.js +2 -0
- package/dist/cdn/{TS3WIN62.js → VOR2H3D7.js} +1 -1
- package/dist/cdn/VPLVBL2P.js +2 -0
- package/dist/cdn/WTQDFRE7.js +2 -0
- package/dist/cdn/X234G7PD.js +2 -0
- package/dist/cdn/X7FQPP5T.js +2 -0
- package/dist/cdn/XJFKEIB4.js +2 -0
- package/dist/cdn/XLHQQCTU.js +2 -0
- package/dist/cdn/XSH2YEV4.js +2 -0
- package/dist/cdn/Y3E4HJZ6.js +2 -0
- package/dist/cdn/Y5KIJ6GX.js +120 -0
- package/dist/cdn/Y7IQV44J.js +2 -0
- package/dist/cdn/{ZXIRDWJW.js → YAVQSNZ6.js} +1 -1
- package/dist/cdn/YKJO6KSB.js +2 -0
- package/dist/cdn/YSZU65DU.js +2 -0
- package/dist/cdn/{PKWXSPJL.js → ZEQ6Q5SM.js} +1 -1
- package/dist/cdn/ZMVYIIG4.js +2 -0
- package/dist/cdn/ZRULG7VV.js +4 -0
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/charts-config-pie-chart-slices/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/common/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +8 -0
- package/dist/chart-rendering/common/interfaces.d.ts +76 -79
- package/dist/chunks/action-bar-utils.js +60 -43
- package/dist/chunks/axis-lines-symbol.js +7 -7
- package/dist/chunks/bar-chart-model.js +35 -25
- package/dist/chunks/bar-chart-series.js +22 -13
- package/dist/chunks/box-plot-data.js +166 -163
- package/dist/chunks/box-plot-model.js +35 -36
- package/dist/chunks/chart-model.js +92 -54
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/chart-ui-utils2.js +66 -57
- package/dist/chunks/class-breaks.js +250 -132
- package/dist/chunks/combo-bar-line-chart-model.js +39 -32
- package/dist/chunks/common.js +2 -2
- package/dist/chunks/data-labels-symbol.js +1 -1
- package/dist/chunks/data.js +98 -74
- package/dist/chunks/default.js +4 -4
- package/dist/chunks/gauge-model.js +63 -37
- package/dist/chunks/generate-x-axis-title.js +41 -33
- package/dist/chunks/heat-chart-model.js +168 -101
- package/dist/chunks/histogram-data.js +58 -50
- package/dist/chunks/histogram-model.js +39 -28
- package/dist/chunks/index.js +9918 -8233
- package/dist/chunks/index2.js +149 -156
- package/dist/chunks/index3.js +12 -13
- package/dist/chunks/index4.js +63 -95
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/line-chart-model.js +3 -3
- package/dist/chunks/model-setter.js +37 -28
- package/dist/chunks/model-with-guides.js +61 -42
- package/dist/chunks/model-with-tooltips.js +64 -66
- package/dist/chunks/model-with-y-guides.js +33 -25
- package/dist/chunks/negative-values-stacked-to-baseline.js +64 -57
- package/dist/chunks/pie-chart-data.js +83 -75
- package/dist/chunks/pie-chart-model.js +67 -52
- package/dist/chunks/radar-chart-model.js +23 -15
- package/dist/chunks/resources.js +15 -0
- package/dist/chunks/rest-js-object-literals.js +11 -10
- package/dist/chunks/rotated-state.js +22 -14
- package/dist/chunks/scatterplot-model.js +52 -44
- package/dist/chunks/serial-chart-data.js +636 -527
- package/dist/chunks/serial-chart-model.js +243 -225
- package/dist/chunks/series-length.js +33 -25
- package/dist/chunks/series-types.js +32 -23
- package/dist/chunks/series.js +19 -11
- package/dist/chunks/setup-utils.js +1 -1
- package/dist/chunks/store.js +25 -16
- package/dist/chunks/type-guards.js +87 -83
- package/dist/chunks/utils.js +151 -144
- package/dist/chunks/utils2.js +36 -28
- package/dist/chunks/web-component-utils.js +201 -206
- package/dist/components/arcgis-chart/customElement.d.ts +84 -45
- package/dist/components/arcgis-chart/customElement.js +16419 -17087
- package/dist/components/arcgis-charts-action-bar/customElement.d.ts +6 -0
- package/dist/components/arcgis-charts-action-bar/customElement.js +24 -24
- package/dist/components/arcgis-charts-config-axis/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +35 -28
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +40 -24
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +45 -37
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +18 -10
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +22 -14
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +21 -14
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +14 -6
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +37 -29
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +13 -5
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +25 -17
- package/dist/components/arcgis-charts-config-category-format/customElement.js +4 -4
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +22 -14
- package/dist/components/arcgis-charts-config-color-style/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +133 -126
- package/dist/components/arcgis-charts-config-font-style/customElement.js +25 -17
- package/dist/components/arcgis-charts-config-format/customElement.js +55 -45
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +16 -8
- package/dist/components/arcgis-charts-config-general/customElement.js +16 -8
- package/dist/components/arcgis-charts-config-guide/customElement.js +43 -29
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +22 -14
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +15 -7
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +32 -25
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +210 -238
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +18 -10
- package/dist/components/arcgis-charts-config-histogram/customElement.js +40 -33
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +38 -30
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +30 -22
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +31 -24
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +17 -9
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +35 -27
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +13 -5
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +15 -7
- package/dist/components/arcgis-charts-config-line-style/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-number-format/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +19 -12
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +19 -11
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +30 -22
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +17 -9
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +18 -10
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +29 -21
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +15 -7
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +22 -14
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +37 -25
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +23 -14
- package/dist/components/arcgis-charts-info-modal/customElement.js +35 -20
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +440 -393
- package/dist/interfaces.d.ts +11 -5
- package/dist/json-schema/index.d.ts +220 -219
- package/dist/loader.js +7 -7
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +6 -5
- package/dist/model/box-plot-model/box-plot-model.d.ts +19 -10
- package/dist/model/chart-model/chart-model-base.d.ts +0 -1
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +18 -11
- package/dist/model/gauge-model/gauge-model.d.ts +29 -8
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +109 -38
- package/dist/model/histogram-model/histogram-model.d.ts +18 -4
- package/dist/model/interfaces/chart-interfaces.d.ts +4 -4
- package/dist/model/interfaces/common.d.ts +5 -2
- package/dist/model/line-chart-model/line-chart-model.d.ts +0 -1
- package/dist/model/mixins/model-with-guides.d.ts +11 -0
- package/dist/model/mixins/model-with-legend.d.ts +3 -15
- package/dist/model/mixins/model-with-temporal-binning.d.ts +7 -7
- package/dist/model/mixins/model-with-tooltips.d.ts +5 -5
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +6 -6
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +13 -5
- package/dist/model/properties/axes/x-axis/max-x-bound.d.ts +5 -1
- package/dist/model/properties/axes/x-axis/min-x-bound.d.ts +5 -1
- package/dist/model/properties/axes/x-axis/x-axis-title-visibility.d.ts +2 -2
- package/dist/model/properties/chart-renderer.d.ts +44 -1
- package/dist/model/properties/color-match.d.ts +0 -1
- package/dist/model/properties/data-labels/data-labels-visibility.d.ts +1 -4
- package/dist/model/properties/description/description-visibility.d.ts +0 -4
- package/dist/model/properties/layer.d.ts +2 -2
- package/dist/model/properties/subtitle/subtitle-visibility.d.ts +0 -4
- package/dist/model/properties/title/title-visibility.d.ts +0 -4
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +0 -1
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +3 -4
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +9 -13
- package/dist/model/shared/setup-utils.d.ts +13 -6
- package/dist/model/shared/type-guards.d.ts +8 -0
- package/dist/model.js +9 -8
- package/dist/spec/data-source.d.ts +26 -18
- package/dist/spec/events.d.ts +2 -5
- package/dist/spec/rest-js-object-literals.d.ts +1 -0
- package/dist/spec/rest-js-types.d.ts +44 -11
- package/dist/spec/web-chart.d.ts +281 -245
- 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 +1 -1
- package/dist/utils/chart-config/converter/index.d.ts +9 -9
- package/dist/utils/chart-config/utils/index.d.ts +41 -8
- package/dist/utils/chart-config/validator/index.d.ts +8 -6
- package/dist/utils/components/event-payloads.d.ts +3 -3
- package/dist/utils/data/categorical-data/index.d.ts +1 -1
- package/dist/utils/data/index.d.ts +126 -5
- package/dist/utils/data/interfaces.d.ts +0 -1
- package/dist/utils/data/pie-chart/index.d.ts +31 -0
- package/dist/utils/defaults/index.d.ts +23 -1
- package/dist/utils/defaults/interfaces.d.ts +2 -0
- package/dist/utils/errors/index.d.ts +5 -5
- package/dist/utils/errors/interfaces.d.ts +1 -0
- package/dist/utils/layer/index.d.ts +84 -49
- package/dist/utils/layer/inline-conversion/index.d.ts +7 -8
- package/dist/utils/layer/interfaces.d.ts +10 -45
- package/dist/utils/layer/query-features/index.d.ts +6 -4
- package/dist/utils/layer/query-features/interfaces.d.ts +1 -1
- package/dist/utils/layer/query-parser/index.d.ts +17 -12
- package/dist/utils/layer/utils/index.d.ts +89 -21
- package/dist/utils/localization/index.d.ts +3 -19
- package/dist/utils/localization/interfaces.d.ts +7 -0
- package/dist/utils/misc/index.d.ts +30 -9
- package/dist/utils/misc/interfaces.d.ts +9 -6
- package/dist/utils/type-guards/index.d.ts +17 -10
- package/dist/utils/types/index.d.ts +17 -17
- package/dist/utils/ui/popover-ui-utils.d.ts +1 -1
- package/package.json +8 -9
- package/dist/cdn/2LIJ6LL6.js +0 -2
- package/dist/cdn/2OGUU3CF.js +0 -2
- package/dist/cdn/2XUJZES7.js +0 -2
- package/dist/cdn/3FSLSUSK.js +0 -2
- package/dist/cdn/3IKX7JF5.js +0 -2
- package/dist/cdn/3LSZZLGN.js +0 -2
- package/dist/cdn/3RGDIFXM.js +0 -2
- package/dist/cdn/3XL7ZAYC.js +0 -2
- package/dist/cdn/4JKSKAIM.js +0 -2
- package/dist/cdn/4XC2ZKSZ.js +0 -2
- package/dist/cdn/5AGSNJFG.js +0 -2
- package/dist/cdn/5J43WZSR.js +0 -2
- package/dist/cdn/5JLPD2NR.js +0 -2
- package/dist/cdn/5SE3ZDX2.js +0 -2
- package/dist/cdn/6HU6FAC6.js +0 -2
- package/dist/cdn/6JS63XSI.js +0 -2
- package/dist/cdn/7BFETEN2.js +0 -2
- package/dist/cdn/7EP32GQJ.js +0 -2
- package/dist/cdn/7WH6VBY6.js +0 -2
- package/dist/cdn/A6FLP7SG.js +0 -2
- package/dist/cdn/ACHYJXNP.js +0 -2
- package/dist/cdn/ANOLEK36.js +0 -2
- package/dist/cdn/ATIYLNFB.js +0 -2
- package/dist/cdn/ATYJIBQA.js +0 -2
- package/dist/cdn/B33AB3RQ.js +0 -2
- package/dist/cdn/BJPCRXMJ.js +0 -2
- package/dist/cdn/BTMNCXKX.js +0 -2
- package/dist/cdn/BTOKHA76.js +0 -2
- package/dist/cdn/CTXREB7E.js +0 -2
- package/dist/cdn/D5XDNKEV.js +0 -2
- package/dist/cdn/DAQJEXZA.js +0 -2
- package/dist/cdn/DGTF5KBL.js +0 -2
- package/dist/cdn/DSRT3QGU.js +0 -2
- package/dist/cdn/E3KNK2QL.js +0 -2
- package/dist/cdn/EAMOK76F.js +0 -2
- package/dist/cdn/ENHEXARD.js +0 -2
- package/dist/cdn/ERWSXC2D.js +0 -2
- package/dist/cdn/FYJRJVSR.js +0 -2
- package/dist/cdn/GUD54AQJ.js +0 -2
- package/dist/cdn/H7ZDNA7W.js +0 -2
- package/dist/cdn/HOVLVPQH.js +0 -2
- package/dist/cdn/HYAXYKZG.js +0 -2
- package/dist/cdn/I7WRC44V.js +0 -2
- package/dist/cdn/IASONEII.js +0 -2
- package/dist/cdn/IEY3ZHXM.js +0 -2
- package/dist/cdn/JAKJRZFS.js +0 -2
- package/dist/cdn/JCW7HW3E.js +0 -58
- package/dist/cdn/JGB4OLU5.js +0 -2
- package/dist/cdn/JTA6HTV5.js +0 -2
- package/dist/cdn/KFJXMRC6.js +0 -2
- package/dist/cdn/KIMKCXB6.js +0 -2
- package/dist/cdn/KKGG37KV.js +0 -2
- package/dist/cdn/KPYFZSB5.js +0 -2
- package/dist/cdn/KSYKVAYS.js +0 -2
- package/dist/cdn/KZ7WEJMS.js +0 -2
- package/dist/cdn/LRRTUMQS.js +0 -2
- package/dist/cdn/M7ZR4HR7.js +0 -2
- package/dist/cdn/MDLYTSBA.js +0 -2
- package/dist/cdn/MIH3XFE3.js +0 -2
- package/dist/cdn/MLDP5OXE.js +0 -2
- package/dist/cdn/MMZFC2VM.js +0 -2
- package/dist/cdn/N2UJIZEU.js +0 -2
- package/dist/cdn/OEJ6ZA3E.js +0 -2
- package/dist/cdn/OFRMMDZQ.js +0 -2
- package/dist/cdn/OJGWQ3IH.js +0 -2
- package/dist/cdn/PUCPVH4M.js +0 -2
- package/dist/cdn/QCF56OBO.js +0 -2
- package/dist/cdn/R5CKMPU7.js +0 -2
- package/dist/cdn/RF7C6WVN.js +0 -2
- package/dist/cdn/RFHASMHJ.js +0 -2
- package/dist/cdn/RUUYSZO3.js +0 -2
- package/dist/cdn/SPAXIJWK.js +0 -2
- package/dist/cdn/TGNJ76AH.js +0 -32
- package/dist/cdn/THBEEC5Q.js +0 -2
- package/dist/cdn/TLSTPQNA.js +0 -2
- package/dist/cdn/U2TWW4FY.js +0 -2
- package/dist/cdn/UJ2JV7FV.js +0 -2
- package/dist/cdn/VBOUUUVO.js +0 -2
- package/dist/cdn/VDXJP4RT.js +0 -2
- package/dist/cdn/VKLPG37D.js +0 -2
- package/dist/cdn/W7KYGPSP.js +0 -2
- package/dist/cdn/WYPEKQH6.js +0 -4
- package/dist/cdn/XHXTKPL6.js +0 -2
- package/dist/cdn/XJSBB5KR.js +0 -2
- package/dist/cdn/XPM5OZBN.js +0 -2
- package/dist/cdn/XQ26L3RE.js +0 -4
- package/dist/cdn/YFEYEBAA.js +0 -2
- package/dist/cdn/YUFKLXMQ.js +0 -2
- package/dist/cdn/YXWXHEUY.js +0 -2
- package/dist/cdn/Z3EGNO5M.js +0 -2
- package/dist/cdn/ZVVQECSL.js +0 -2
- package/dist/cdn/ZYEUKPGT.js +0 -2
- package/dist/cdn/ZYMJEZKL.js +0 -2
- package/dist/chunks/index5.js +0 -66
- /package/dist/cdn/{T73O5OD5.js → 3OGKV4KZ.js} +0 -0
- /package/dist/cdn/{DB6PUP7Y.js → 3VMIFF7C.js} +0 -0
- /package/dist/cdn/{PHPEGJKB.js → 47EOUNYO.js} +0 -0
- /package/dist/cdn/{WNLCIQAX.js → 5TOYNVTW.js} +0 -0
- /package/dist/cdn/{5IAOT56I.js → 6HUDF5Q2.js} +0 -0
- /package/dist/cdn/{QBFKFCAR.js → ALRIN5E5.js} +0 -0
- /package/dist/cdn/{RBFLURN4.js → AVU2CHAB.js} +0 -0
- /package/dist/cdn/{J3EUXZ6G.js → B4ULOSFG.js} +0 -0
- /package/dist/cdn/{V3OHZN3J.js → BQOMKKBK.js} +0 -0
- /package/dist/cdn/{W236VLPQ.js → BUCYRXMT.js} +0 -0
- /package/dist/cdn/{QXCTWH2Z.js → BY77PBZ2.js} +0 -0
- /package/dist/cdn/{VWM7AVM6.js → COQ55XOW.js} +0 -0
- /package/dist/cdn/{MUUD74AD.js → DNSUOJXJ.js} +0 -0
- /package/dist/cdn/{JXQXA2KV.js → EIIQ2CSC.js} +0 -0
- /package/dist/cdn/{CAFCD23J.js → EVHJVY4I.js} +0 -0
- /package/dist/cdn/{HBUMNQ3P.js → F57IRWBF.js} +0 -0
- /package/dist/cdn/{NLCFSYMX.js → FLSUJTUZ.js} +0 -0
- /package/dist/cdn/{7XPFSBJR.js → FSNQ3YXX.js} +0 -0
- /package/dist/cdn/{4OQCJUCA.js → G2L5FYWK.js} +0 -0
- /package/dist/cdn/{HGLFNVUQ.js → GR4BZF3L.js} +0 -0
- /package/dist/cdn/{TW4GANOP.js → GWPFABGL.js} +0 -0
- /package/dist/cdn/{NWX4MEZT.js → HJW6UNEH.js} +0 -0
- /package/dist/cdn/{MRPQHHAR.js → I3BNBZ4D.js} +0 -0
- /package/dist/cdn/{S5OM65RV.js → J6TUXYMO.js} +0 -0
- /package/dist/cdn/{YB66QEEP.js → LOX7MXL4.js} +0 -0
- /package/dist/cdn/{UBAJJGZQ.js → MS6EYP4R.js} +0 -0
- /package/dist/cdn/{UAAZT4XK.js → NGLXQHZ2.js} +0 -0
- /package/dist/cdn/{4KKFIMTJ.js → NPVXLEZW.js} +0 -0
- /package/dist/cdn/{OAX6BSTV.js → NSRIVIOH.js} +0 -0
- /package/dist/cdn/{NRAJ4BK2.js → RHGKKMJG.js} +0 -0
- /package/dist/cdn/{GPLZLU72.js → S5EI7T2D.js} +0 -0
- /package/dist/cdn/{GRDFMG2M.js → SOIF6AMX.js} +0 -0
- /package/dist/cdn/{DO4HZTZB.js → THJTENN5.js} +0 -0
- /package/dist/cdn/{7BO3HV6A.js → TX2SYGTH.js} +0 -0
- /package/dist/cdn/{L2OPHSDM.js → YQJLA77R.js} +0 -0
- /package/dist/cdn/{FOOU5K3C.js → ZL5EGDOW.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SupportedLayer } from "../../interfaces.js";
|
|
1
|
+
import type { SupportedLayer, SupportedRasterLayer } from "../../interfaces.js";
|
|
2
2
|
import type { WebChartTypes } from "../../spec/chart-object-literals.js";
|
|
3
3
|
import type { IField } from "../../spec/rest-js-types.js";
|
|
4
4
|
import type { WebChartBarChartSeries, WebChartBoxPlotSeries, WebChartGaugeSeries, WebChartHeatChartSeries, WebChartHistogramSeries, WebChartLineChartSeries, WebChartPieChartSeries, WebChartRadarChartSeries, WebChartScatterplotSeries } from "../../spec/web-chart.js";
|
|
@@ -140,7 +140,7 @@ export interface PieSeriesDisplayOptions {
|
|
|
140
140
|
|
|
141
141
|
export interface LayerInfo {
|
|
142
142
|
/** Layer used for this bar chart. */
|
|
143
|
-
layer: SupportedLayer;
|
|
143
|
+
layer: SupportedLayer | SupportedRasterLayer;
|
|
144
144
|
/** Fields information for the layer. */
|
|
145
145
|
layerFieldsInfo: IField[];
|
|
146
146
|
/** Object ID field name for the layer. */
|
|
@@ -162,8 +162,11 @@ export const ModelTypes: {
|
|
|
162
162
|
|
|
163
163
|
export type ModelTypes = (typeof ModelTypes)[keyof typeof ModelTypes];
|
|
164
164
|
|
|
165
|
+
/** @internal */
|
|
165
166
|
export type ModelTypeToSeriesType<T extends ModelTypes> = T extends typeof ModelTypes.BarChart ? WebChartBarChartSeries : T extends typeof ModelTypes.LineChart ? WebChartLineChartSeries : T extends typeof ModelTypes.ComboBarLineChart ? WebChartBarChartSeries | WebChartLineChartSeries : T extends typeof ModelTypes.BoxPlot ? WebChartBoxPlotSeries | WebChartLineChartSeries : T extends typeof ModelTypes.PieChart ? WebChartPieChartSeries : T extends typeof ModelTypes.Scatterplot ? WebChartScatterplotSeries : T extends typeof ModelTypes.Histogram ? WebChartHistogramSeries : T extends typeof ModelTypes.Gauge ? WebChartGaugeSeries : T extends typeof ModelTypes.RadarChart ? WebChartRadarChartSeries : T extends typeof ModelTypes.HeatChart ? WebChartHeatChartSeries : SupportedChartSeries;
|
|
166
167
|
|
|
168
|
+
/** @internal */
|
|
167
169
|
export type SeriesTypeToChartType<T extends SupportedChartSeries> = T extends WebChartBarChartSeries ? typeof WebChartTypes.BarSeries : T extends WebChartLineChartSeries ? typeof WebChartTypes.LineSeries : T extends WebChartBoxPlotSeries ? typeof WebChartTypes.BoxPlotSeries : T extends WebChartPieChartSeries ? typeof WebChartTypes.PieSeries : T extends WebChartScatterplotSeries ? typeof WebChartTypes.ScatterSeries : T extends WebChartHistogramSeries ? typeof WebChartTypes.HistogramSeries : T extends WebChartGaugeSeries ? typeof WebChartTypes.GaugeSeries : T extends WebChartRadarChartSeries ? typeof WebChartTypes.RadarSeries : T extends WebChartHeatChartSeries ? typeof WebChartTypes.HeatSeries : never;
|
|
168
170
|
|
|
171
|
+
/** @internal */
|
|
169
172
|
export type ModelOfType<T> = T extends typeof ModelTypes.BoxPlot ? BoxPlotModel : T extends typeof ModelTypes.LineChart ? LineChartModel : T extends typeof ModelTypes.ComboBarLineChart ? ComboBarLineChartModel : T extends typeof ModelTypes.PieChart ? PieChartModel : T extends typeof ModelTypes.Scatterplot ? ScatterplotModel : T extends typeof ModelTypes.Histogram ? HistogramModel : T extends typeof ModelTypes.Gauge ? GaugeModel : T extends typeof ModelTypes.RadarChart ? RadarChartModel : T extends typeof ModelTypes.HeatChart ? never : BarChartModel;
|
|
@@ -14,7 +14,6 @@ export class LineChartModel extends LineChartModelSuperclass {
|
|
|
14
14
|
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
15
15
|
*
|
|
16
16
|
* @param params
|
|
17
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
18
17
|
*/
|
|
19
18
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.LineChart>>): Promise<void>;
|
|
20
19
|
}
|
|
@@ -108,6 +108,17 @@ export abstract class ModelWithGuides extends ChartModel {
|
|
|
108
108
|
* @param style - New style to set.
|
|
109
109
|
* @param index - Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
110
110
|
* @param orientation - Default `y`. The axis orientation of the guide.
|
|
111
|
+
* @example
|
|
112
|
+
* ```ts
|
|
113
|
+
* chartModel.setGuideStyle(
|
|
114
|
+
* {
|
|
115
|
+
* type: "esriSLS",
|
|
116
|
+
* color: [0, 200, 0, 255],
|
|
117
|
+
* width: 2,
|
|
118
|
+
* },
|
|
119
|
+
* 1,
|
|
120
|
+
* );
|
|
121
|
+
* ```
|
|
111
122
|
*/
|
|
112
123
|
setGuideStyle(style: ISimpleFillSymbol | ISimpleLineSymbol, index?: number, orientation?: GuideOrientation): void;
|
|
113
124
|
/**
|
|
@@ -5,7 +5,7 @@ import type { WebChartTextSymbol } from "../../spec/web-chart.js";
|
|
|
5
5
|
export abstract class ModelWithLegend extends ChartModel {
|
|
6
6
|
/** Maximum legend height. */
|
|
7
7
|
accessor legendMaxHeight: number | undefined;
|
|
8
|
-
/** Legend position: top
|
|
8
|
+
/** Legend position: `top`, `bottom`, `left`, or `right`. */
|
|
9
9
|
accessor legendPosition: WebChartLegendPositions;
|
|
10
10
|
/** Whether legend markers are rounded. */
|
|
11
11
|
accessor legendRoundMarker: boolean;
|
|
@@ -15,20 +15,8 @@ export abstract class ModelWithLegend extends ChartModel {
|
|
|
15
15
|
accessor legendTitleSymbol: WebChartTextSymbol | undefined;
|
|
16
16
|
/** The legend title text. */
|
|
17
17
|
accessor legendTitleText: string;
|
|
18
|
-
/**
|
|
19
|
-
* Whether the legend title is visible.
|
|
20
|
-
*
|
|
21
|
-
* `true`: Legend title is visible.
|
|
22
|
-
*
|
|
23
|
-
* `false`: Legend title is hidden.
|
|
24
|
-
*/
|
|
18
|
+
/** Whether the legend title is visible. */
|
|
25
19
|
accessor legendTitleVisibility: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Whether the legend title is visible.
|
|
28
|
-
*
|
|
29
|
-
* `true`: Legend title is visible.
|
|
30
|
-
*
|
|
31
|
-
* `false`: Legend title is hidden.
|
|
32
|
-
*/
|
|
20
|
+
/** Whether the legend title is visible. */
|
|
33
21
|
accessor legendVisibility: boolean;
|
|
34
22
|
}
|
|
@@ -6,19 +6,19 @@ export abstract class ModelWithTemporalBinning extends ChartModel {
|
|
|
6
6
|
* Policy which tells the chart how to handle null values.
|
|
7
7
|
*
|
|
8
8
|
* `null`: Break the bar where null values are present.
|
|
9
|
-
*
|
|
10
9
|
* `zero`: Treats null values as zero.
|
|
11
|
-
*
|
|
12
|
-
*
|
|
10
|
+
* `interpolate`:
|
|
11
|
+
* - Bar series: same effect as `null`
|
|
12
|
+
* - Line series: connects the lines across null values.
|
|
13
13
|
*/
|
|
14
14
|
accessor nullPolicy: WebChartNullPolicyTypes | undefined;
|
|
15
|
-
/** Time interval size for a temporal bar
|
|
15
|
+
/** Time interval size for a temporal bar chart or line chart. */
|
|
16
16
|
accessor temporalBinningSize: number | undefined;
|
|
17
|
-
/** Time interval units for a temporal bar
|
|
17
|
+
/** Time interval units for a temporal bar chart or line chart. */
|
|
18
18
|
accessor temporalBinningUnit: WebChartTemporalBinningUnits | undefined;
|
|
19
|
-
/** Time aggregation type for a temporal bar
|
|
19
|
+
/** Time aggregation type for a temporal bar chart or line chart. */
|
|
20
20
|
accessor timeAggregationType: WebChartTimeAggregationTypes | undefined;
|
|
21
|
-
/** Whether to trim incomplete time intervals for a temporal bar
|
|
21
|
+
/** Whether to trim incomplete time intervals for a temporal bar chart or line chart. */
|
|
22
22
|
accessor trimIncompleteTimeInterval: boolean | undefined;
|
|
23
23
|
/** Resets the time interval to default for a temporal line chart. */
|
|
24
24
|
resetTimeInterval(): void;
|
|
@@ -3,15 +3,15 @@ import type { ChartModel } from "../chart-model/chart-model.js";
|
|
|
3
3
|
export abstract class ModelWithTooltips extends ChartModel {
|
|
4
4
|
/**
|
|
5
5
|
* Gets the setting of the `dataTooltipReverseColor` property.
|
|
6
|
-
* - If the seriesIndex is provided, the dataTooltipReverseColor for that series will be returned. Otherwise, the same property of the first series will be returned.
|
|
7
|
-
* - If the dataTooltipReverseColor is not set on the series, the default value of `false` will be returned.
|
|
6
|
+
* - If the `seriesIndex` is provided, the `dataTooltipReverseColor` for that series will be returned. Otherwise, the same property of the first series will be returned.
|
|
7
|
+
* - If the `dataTooltipReverseColor` is not set on the series, the default value of `false` will be returned.
|
|
8
8
|
*
|
|
9
9
|
* @param seriesIndex - The index of the series.
|
|
10
10
|
*/
|
|
11
11
|
getDataTooltipReverseColor(seriesIndex?: number): boolean;
|
|
12
12
|
/**
|
|
13
13
|
* Gets the visibility of the data tooltips.
|
|
14
|
-
* - If the seriesIndex is provided, the visibility for that series will be returned. Otherwise, the visibility of the first series will be returned.
|
|
14
|
+
* - If the `seriesIndex` is provided, the visibility for that series will be returned. Otherwise, the visibility of the first series will be returned.
|
|
15
15
|
* - If the visibility is not set on the series, the default value of `true` will be returned.
|
|
16
16
|
*
|
|
17
17
|
* @param seriesIndex - The index of the series.
|
|
@@ -19,7 +19,7 @@ export abstract class ModelWithTooltips extends ChartModel {
|
|
|
19
19
|
getDataTooltipVisibility(seriesIndex?: number): boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Sets the setting of the `dataTooltipReverseColor` property.
|
|
22
|
-
* - If the seriesIndex is provided, the reverse color will be set for that series only. Otherwise, the reverse color will be set for all series.
|
|
22
|
+
* - If the `seriesIndex` is provided, the reverse color will be set for that series only. Otherwise, the reverse color will be set for all series.
|
|
23
23
|
*
|
|
24
24
|
* @param reverseColor - Indicator of whether to reverse the color.
|
|
25
25
|
* @param seriesIndex - The index of the series to set the reverse color.
|
|
@@ -27,7 +27,7 @@ export abstract class ModelWithTooltips extends ChartModel {
|
|
|
27
27
|
setDataTooltipReverseColor(reverseColor: boolean, seriesIndex?: number): void;
|
|
28
28
|
/**
|
|
29
29
|
* Sets the visibility of the data tooltips.
|
|
30
|
-
* - If the seriesIndex is provided, the visibility will be set for that series only. Otherwise, the visibility will be set for all series.
|
|
30
|
+
* - If the `seriesIndex` is provided, the visibility will be set for that series only. Otherwise, the visibility will be set for all series.
|
|
31
31
|
*
|
|
32
32
|
* @param visibility - The visibility of the data tooltips.
|
|
33
33
|
* @param seriesIndex - The index of the series to set the visibility.
|
|
@@ -13,25 +13,25 @@ export abstract class PieChartLegendModel extends PieChartLegendModelSuperclass
|
|
|
13
13
|
/**
|
|
14
14
|
* Gets the setting for the display of numerical value in the legend items.
|
|
15
15
|
*
|
|
16
|
-
* **Note**:
|
|
16
|
+
* **Note**: Only applicable to pie charts.
|
|
17
17
|
*/
|
|
18
18
|
getDisplayNumericValue(): boolean;
|
|
19
19
|
/**
|
|
20
20
|
* Gets the setting for the display of percentage in the legend items.
|
|
21
21
|
*
|
|
22
|
-
* **Note**:
|
|
22
|
+
* **Note**: Only applicable to pie charts.
|
|
23
23
|
*/
|
|
24
24
|
getDisplayPercentage(): boolean;
|
|
25
25
|
/**
|
|
26
26
|
* Gets the maximum width in pixel for the legend item labels.
|
|
27
27
|
*
|
|
28
|
-
* **Note**:
|
|
28
|
+
* **Note**: Only applicable to pie charts.
|
|
29
29
|
*/
|
|
30
30
|
getLabelMaxWidth(): number;
|
|
31
31
|
/**
|
|
32
32
|
* Sets the setting for the display of numerical value in the legend items.
|
|
33
33
|
*
|
|
34
|
-
* **Note**:
|
|
34
|
+
* **Note**: Only applicable to pie charts.
|
|
35
35
|
*
|
|
36
36
|
* @param displayNumericValue - The setting for the display of numerical value in the legend items
|
|
37
37
|
*/
|
|
@@ -39,7 +39,7 @@ export abstract class PieChartLegendModel extends PieChartLegendModelSuperclass
|
|
|
39
39
|
/**
|
|
40
40
|
* Sets the setting for the display of percentage in the legend items.
|
|
41
41
|
*
|
|
42
|
-
* **Note**:
|
|
42
|
+
* **Note**: Only applicable to pie charts.
|
|
43
43
|
*
|
|
44
44
|
* @param displayPercentage - The setting for the display of percentage in the legend items
|
|
45
45
|
*/
|
|
@@ -47,7 +47,7 @@ export abstract class PieChartLegendModel extends PieChartLegendModelSuperclass
|
|
|
47
47
|
/**
|
|
48
48
|
* Sets the maximum width in pixel for the legend item labels.
|
|
49
49
|
*
|
|
50
|
-
* **Note**:
|
|
50
|
+
* **Note**: Only applicable to pie charts.
|
|
51
51
|
*
|
|
52
52
|
* @param labelMaxWidth - The maximum width in pixel for the legend item labels
|
|
53
53
|
*/
|
|
@@ -14,7 +14,7 @@ import type { ModelWithTooltips } from "../mixins/model-with-tooltips.js";
|
|
|
14
14
|
export class PieChartModel extends PieChartModelSuperclass {
|
|
15
15
|
/** Aggregation type for the pie chart. */
|
|
16
16
|
accessor aggregationType: WebChartStatisticType;
|
|
17
|
-
/** Align data labels
|
|
17
|
+
/** Align the data labels on the left or right side of the chart instead of the default position around the chart. */
|
|
18
18
|
accessor alignDataLabels: boolean | undefined;
|
|
19
19
|
/** Category field for the pie chart. */
|
|
20
20
|
accessor category: string;
|
|
@@ -48,6 +48,7 @@ export class PieChartModel extends PieChartModelSuperclass {
|
|
|
48
48
|
accessor displayNumericValueOnTooltip: boolean;
|
|
49
49
|
/**
|
|
50
50
|
* Whether to display the percentage on the data label.
|
|
51
|
+
*
|
|
51
52
|
* **Note:** If the setting is not found in the config, it will default to `true`.
|
|
52
53
|
*/
|
|
53
54
|
accessor displayPercentageOnDataLabel: boolean;
|
|
@@ -57,7 +58,7 @@ export class PieChartModel extends PieChartModelSuperclass {
|
|
|
57
58
|
* **Note**: If the setting is not found in the config, it will default to `true`.
|
|
58
59
|
*/
|
|
59
60
|
accessor displayPercentageOnTooltip: boolean;
|
|
60
|
-
/** Display type for the pie chart slices. Specifies whether to display the slices as a percentage
|
|
61
|
+
/** Display type for the pie chart slices. Specifies whether to display the slices as a `percentage`, `value`, or `both`. */
|
|
61
62
|
accessor displayType: PieChartSlicesDisplay;
|
|
62
63
|
/** End angle of the pie chart. */
|
|
63
64
|
accessor endAngle: number | null | undefined;
|
|
@@ -70,7 +71,8 @@ export class PieChartModel extends PieChartModelSuperclass {
|
|
|
70
71
|
/** Character limit for the slice labels. */
|
|
71
72
|
accessor labelCharacterLimit: number | null;
|
|
72
73
|
/**
|
|
73
|
-
* The pie chart data mode
|
|
74
|
+
* The pie chart data mode.
|
|
75
|
+
*
|
|
74
76
|
* `category` - The chart is using values from the category field to determine each slice.
|
|
75
77
|
* `fields` - The chart is using aggregated values from the numeric fields to determine each slice.
|
|
76
78
|
*/
|
|
@@ -80,7 +82,14 @@ export class PieChartModel extends PieChartModelSuperclass {
|
|
|
80
82
|
set numericFields(value: string[] | string);
|
|
81
83
|
/** Optimize data labels overlapping setting for the pie chart. */
|
|
82
84
|
accessor optimizeDataLabelsOverlapping: boolean | undefined;
|
|
83
|
-
/**
|
|
85
|
+
/**
|
|
86
|
+
* List of category's values for custom sort.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* pieChartModel.orderByList = ["Field1", "Field2", "Field3"];
|
|
91
|
+
* ```
|
|
92
|
+
*/
|
|
84
93
|
accessor orderByList: string[];
|
|
85
94
|
/** Order of the slice array by returning an array of slice ids */
|
|
86
95
|
accessor orderOfSlices: string[] | undefined;
|
|
@@ -184,7 +193,6 @@ export class PieChartModel extends PieChartModelSuperclass {
|
|
|
184
193
|
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
185
194
|
*
|
|
186
195
|
* @param params
|
|
187
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
188
196
|
*/
|
|
189
197
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.PieChart>>): Promise<void>;
|
|
190
198
|
}
|
|
@@ -2,6 +2,10 @@ import type { ChartModelBase } from "../../../chart-model/chart-model-base.js";
|
|
|
2
2
|
|
|
3
3
|
/** Adds support for configuring the maximum x-axis bound. */
|
|
4
4
|
export abstract class WithMaxXBound extends ChartModelBase {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Maximum bound set for the x-axis.
|
|
7
|
+
*
|
|
8
|
+
* `null` indicates no explicit maximum.
|
|
9
|
+
*/
|
|
6
10
|
accessor maxXBound: number | null;
|
|
7
11
|
}
|
|
@@ -2,6 +2,10 @@ import type { ChartModelBase } from "../../../chart-model/chart-model-base.js";
|
|
|
2
2
|
|
|
3
3
|
/** Adds support for configuring the minimum x-axis bound. */
|
|
4
4
|
export abstract class WithMinXBound extends ChartModelBase {
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* Minimum bound set for the x-axis.
|
|
7
|
+
*
|
|
8
|
+
* `null` indicates no explicit minimum.
|
|
9
|
+
*/
|
|
6
10
|
accessor minXBound: number | null;
|
|
7
11
|
}
|
|
@@ -4,8 +4,8 @@ import type { ChartModelBase } from "../../../chart-model/chart-model-base.js";
|
|
|
4
4
|
export abstract class WithXAxisTitleVisibility extends ChartModelBase {
|
|
5
5
|
/**
|
|
6
6
|
* Whether the x-axis title is visible.
|
|
7
|
-
* true
|
|
8
|
-
* false
|
|
7
|
+
* `true`: X-axis title is visible.
|
|
8
|
+
* `false`: X-axis title is hidden.
|
|
9
9
|
*/
|
|
10
10
|
accessor xAxisTitleVisibility: boolean;
|
|
11
11
|
}
|
|
@@ -3,7 +3,50 @@ import type { ChartModelBase } from "../chart-model/chart-model-base.js";
|
|
|
3
3
|
|
|
4
4
|
/** Adds support for working with chart renderer. */
|
|
5
5
|
export abstract class WithChartRenderer extends ChartModelBase {
|
|
6
|
-
/**
|
|
6
|
+
/**
|
|
7
|
+
* The chart renderer.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* In this example, we set the chartRenderer for a class-break heat chart.
|
|
11
|
+
* ```ts
|
|
12
|
+
* heatChartModel.chartRenderer = {
|
|
13
|
+
* "type": "classBreaks",
|
|
14
|
+
* "field": "arcgis_charts_heat_chart_value",
|
|
15
|
+
* "classBreakInfos": [
|
|
16
|
+
* {
|
|
17
|
+
* "label": "70 - 145",
|
|
18
|
+
* "classMinValue": 70,
|
|
19
|
+
* "classMaxValue": 145,
|
|
20
|
+
* "symbol": {
|
|
21
|
+
* "type": "esriSFS",
|
|
22
|
+
* "color": [
|
|
23
|
+
* 212,
|
|
24
|
+
* 227,
|
|
25
|
+
* 255,
|
|
26
|
+
* 255
|
|
27
|
+
* ],
|
|
28
|
+
* "style": "esriSFSSolid"
|
|
29
|
+
* }
|
|
30
|
+
* },
|
|
31
|
+
* {
|
|
32
|
+
* "label": "146 - 250",
|
|
33
|
+
* "classMinValue": 146,
|
|
34
|
+
* "classMaxValue": 250,
|
|
35
|
+
* "symbol": {
|
|
36
|
+
* "type": "esriSFS",
|
|
37
|
+
* "color": [
|
|
38
|
+
* 43,
|
|
39
|
+
* 108,
|
|
40
|
+
* 240,
|
|
41
|
+
* 255
|
|
42
|
+
* ],
|
|
43
|
+
* "style": "esriSFSSolid"
|
|
44
|
+
* }
|
|
45
|
+
* }
|
|
46
|
+
* ]
|
|
47
|
+
* };
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
7
50
|
get chartRenderer(): IDrawingInfo["renderer"] | undefined;
|
|
8
51
|
set chartRenderer(value: IDrawingInfo["renderer"]);
|
|
9
52
|
}
|
|
@@ -6,7 +6,6 @@ export abstract class WithColorMatch extends ChartModelBase {
|
|
|
6
6
|
* Whether the chart should attempt to match the data source's colors.
|
|
7
7
|
*
|
|
8
8
|
* `true`: Attempt to match the data source's colors.
|
|
9
|
-
*
|
|
10
9
|
* `false`: Use the colors defined in the config.
|
|
11
10
|
*/
|
|
12
11
|
accessor colorMatch: boolean;
|
|
@@ -2,9 +2,6 @@ import type { ChartModelBase } from "../../chart-model/chart-model-base.js";
|
|
|
2
2
|
|
|
3
3
|
/** Adds support for working with the data labels visibility. */
|
|
4
4
|
export abstract class WithDataLabelsVisibility extends ChartModelBase {
|
|
5
|
-
/**
|
|
6
|
-
* Whether data labels are visible.
|
|
7
|
-
* true: visible, false: hidden.
|
|
8
|
-
*/
|
|
5
|
+
/** Whether data labels are visible. */
|
|
9
6
|
accessor dataLabelsVisibility: boolean;
|
|
10
7
|
}
|
|
@@ -5,10 +5,6 @@ export abstract class WithDescriptionVisibility extends ChartModelBase {
|
|
|
5
5
|
/**
|
|
6
6
|
* Whether or not the chart description is visible.
|
|
7
7
|
*
|
|
8
|
-
* `true`: Description is visible.
|
|
9
|
-
*
|
|
10
|
-
* `false`: Description is hidden.
|
|
11
|
-
*
|
|
12
8
|
* **Note:** Even if the description is visible, it may not be displayed if the description text is empty.
|
|
13
9
|
*/
|
|
14
10
|
accessor descriptionVisibility: boolean;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { SupportedLayer } from "../../interfaces.js";
|
|
1
|
+
import type { SupportedLayer, SupportedRasterLayer } from "../../interfaces.js";
|
|
2
2
|
import type { ChartModelBase } from "../chart-model/chart-model-base.js";
|
|
3
3
|
|
|
4
4
|
/** Adds getter support for the associated layer reference. */
|
|
5
5
|
export abstract class WithLayer extends ChartModelBase {
|
|
6
6
|
/** The chart model's layer. */
|
|
7
|
-
get layer(): SupportedLayer | undefined;
|
|
7
|
+
get layer(): SupportedLayer | SupportedRasterLayer | undefined;
|
|
8
8
|
}
|
|
@@ -5,10 +5,6 @@ export abstract class WithChartSubtitleVisibility extends ChartModelBase {
|
|
|
5
5
|
/**
|
|
6
6
|
* Whether or not the chart subtitle is visible.
|
|
7
7
|
*
|
|
8
|
-
* `true`: Chart subtitle is visible.
|
|
9
|
-
*
|
|
10
|
-
* `false`: Chart subtitle is hidden.
|
|
11
|
-
*
|
|
12
8
|
* **Note:** Even if the subtitle is visible, it may not be displayed if the subtitle text is empty.
|
|
13
9
|
*/
|
|
14
10
|
accessor chartSubtitleVisibility: boolean;
|
|
@@ -5,10 +5,6 @@ export abstract class WithChartTitleVisibility extends ChartModelBase {
|
|
|
5
5
|
/**
|
|
6
6
|
* Whether or not the chart title is visible.
|
|
7
7
|
*
|
|
8
|
-
* `true`: Chart title is visible.
|
|
9
|
-
*
|
|
10
|
-
* `false`: Chart title is hidden.
|
|
11
|
-
*
|
|
12
8
|
* **Note:** Even if the title is visible, it may not be displayed if the title text is empty.
|
|
13
9
|
*/
|
|
14
10
|
accessor chartTitleVisibility: boolean;
|
|
@@ -14,7 +14,6 @@ export class RadarChartModel extends RadarChartModelSuperclass {
|
|
|
14
14
|
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
15
15
|
*
|
|
16
16
|
* @param params
|
|
17
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
18
17
|
*/
|
|
19
18
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.RadarChart>>): Promise<void>;
|
|
20
19
|
}
|
|
@@ -23,9 +23,9 @@ import type { ModelWithYGuides } from "../mixins/model-with-y-guides.js";
|
|
|
23
23
|
|
|
24
24
|
export class ScatterplotModel extends ScatterplotModelSuperclass {
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Add an additional field to display for scatterplot tooltips.
|
|
27
27
|
*
|
|
28
|
-
* **
|
|
28
|
+
* **Note**: Only numeric fields are supported.
|
|
29
29
|
*/
|
|
30
30
|
get additionalTooltipField(): string[] | string;
|
|
31
31
|
set additionalTooltipField(value: string[] | string | undefined);
|
|
@@ -33,7 +33,7 @@ export class ScatterplotModel extends ScatterplotModelSuperclass {
|
|
|
33
33
|
accessor fixedMarkerSymbol: ISimpleMarkerSymbol;
|
|
34
34
|
/** Line symbol for the linear trend line. */
|
|
35
35
|
accessor linearTrendSymbol: ISimpleLineSymbol;
|
|
36
|
-
/**
|
|
36
|
+
/** Trendline overlay for the scatterplot. */
|
|
37
37
|
accessor seriesOverlays: ScatterplotOverlays | undefined;
|
|
38
38
|
/** Whether the linear trend line is shown. */
|
|
39
39
|
accessor showLinearTrend: boolean;
|
|
@@ -51,7 +51,6 @@ export class ScatterplotModel extends ScatterplotModelSuperclass {
|
|
|
51
51
|
* Completes the async setup process for the chart model. Must be called before using the model.
|
|
52
52
|
*
|
|
53
53
|
* @param params
|
|
54
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
55
54
|
*/
|
|
56
55
|
setup(params: ModelParams<ChartConfig<typeof ModelTypes.Scatterplot>>): Promise<void>;
|
|
57
56
|
}
|
|
@@ -23,18 +23,18 @@ import type { ModelWithYGuides } from "../mixins/model-with-y-guides.js";
|
|
|
23
23
|
import type { ModelWithTemporalBinning } from "../mixins/model-with-temporal-binning.js";
|
|
24
24
|
|
|
25
25
|
export abstract class SerialChartModel extends SerialChartModelSuperclass {
|
|
26
|
-
/** The aggregation type for the
|
|
26
|
+
/** The aggregation type for the chart. */
|
|
27
27
|
accessor aggregationType: WebChartStatisticType;
|
|
28
28
|
/**
|
|
29
29
|
* Whether temporal binning is enabled for all series in the config.
|
|
30
|
+
*
|
|
30
31
|
* **Note:** Setting this prop removes any existing temporal binning settings if `value` is set to `false`.
|
|
31
32
|
*/
|
|
32
33
|
accessor binTemporalData: boolean;
|
|
33
34
|
/**
|
|
34
|
-
* The null category configuration of the
|
|
35
|
+
* The null category configuration of the chart.
|
|
35
36
|
*
|
|
36
|
-
*
|
|
37
|
-
* the following to be set on the model for the null category to be applied:
|
|
37
|
+
* The following to be set on the model for the null category to be applied:
|
|
38
38
|
* - `fetchNULLValues` to be set to `true` on the model.
|
|
39
39
|
* - `colorMatch` to be set to `false` on the model
|
|
40
40
|
*/
|
|
@@ -42,15 +42,15 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
|
|
|
42
42
|
/** The numeric fields array for the chart. */
|
|
43
43
|
get numericFields(): string[];
|
|
44
44
|
set numericFields(value: string[] | string);
|
|
45
|
-
/** The list of
|
|
45
|
+
/** The list of values for custom sort. */
|
|
46
46
|
accessor orderByList: string[];
|
|
47
47
|
/** The split-by field for the chart. */
|
|
48
48
|
accessor splitByField: string;
|
|
49
49
|
/**
|
|
50
|
-
* How the bars
|
|
50
|
+
* How the bars (lines) should be placed when multiple series are rendered in the same chart, say when "split by" operation is executed on any field or
|
|
51
51
|
* when multiple attributes/fields corresponding to the same set of classes are to be visualized.
|
|
52
52
|
*
|
|
53
|
-
* **Note**: Currently this property is only used for bar and line
|
|
53
|
+
* **Note**: Currently this property is only used for bar charts and line charts.
|
|
54
54
|
*/
|
|
55
55
|
accessor stackedType: WebChartStackedKinds | undefined;
|
|
56
56
|
/** The x-axis field for the chart. */
|
|
@@ -139,11 +139,7 @@ export abstract class SerialChartModel extends SerialChartModelSuperclass {
|
|
|
139
139
|
* @param orderByList - The list of category's values to order by.
|
|
140
140
|
*/
|
|
141
141
|
setSortOrder(newSortOrder: HeatChartDataSortingKinds | SerialChartDataSortingKinds, orderByList?: string[]): void;
|
|
142
|
-
/**
|
|
143
|
-
|
|
144
|
-
*
|
|
145
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
146
|
-
*/
|
|
147
|
-
updateSeriesFromLayerFilter(): Promise<void>;
|
|
142
|
+
/** Updates the series based on the layer filter. */
|
|
143
|
+
updateSeriesFromLayerFilter(): void;
|
|
148
144
|
}
|
|
149
145
|
declare const SerialChartModelSuperclass: typeof ChartModel & typeof WithGenerateXAxisTitle & typeof WithAxisLinesSymbol & typeof WithAxisLabelsSymbol & typeof WithXAxisTitleSymbol & typeof WithXBounds & typeof WithXAxisTitleVisibility & typeof WithXAxisLabelsVisibility & typeof WithXAxisTitleText & typeof ModelWithTemporalBinning & typeof ModelWithYGuides & typeof ModelWithXGuides & typeof WithDataLabelsSymbol & typeof WithDataLabelsVisibility & typeof WithRotatedState & typeof WithColorMatch & typeof ModelWithTooltips & typeof ModelWithLegend & typeof ModelWithMultiAxes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ModelOfType, ModelTypes } from "../interfaces/common.js";
|
|
2
|
-
import type { SupportedLayer } from "../../interfaces.js";
|
|
3
|
-
import type { IFeatureLayer } from "../../spec/rest-js-types.js";
|
|
2
|
+
import type { SupportedLayer, SupportedRasterLayer } from "../../interfaces.js";
|
|
3
|
+
import type { IFeatureLayer, IImageServiceLayer, ITiledImageServiceLayer } from "../../spec/rest-js-types.js";
|
|
4
4
|
import type { ChartConfig } from "../../utils/types/index.js";
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -8,6 +8,13 @@ import type { ChartConfig } from "../../utils/types/index.js";
|
|
|
8
8
|
* Various combinations of properties `layer`, `iLayer`, `chartType`, and `config` are supported.
|
|
9
9
|
*
|
|
10
10
|
* @param props - The properties used to set up the chart.
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const chartModel = await createModel({
|
|
14
|
+
* layer: myLayer,
|
|
15
|
+
* chartType: "gauge",
|
|
16
|
+
* });
|
|
17
|
+
* ```
|
|
11
18
|
*/
|
|
12
19
|
export function createModel<T extends ModelTypes>(props: CreateModelProps<T>): Promise<ModelOfType<T>>;
|
|
13
20
|
|
|
@@ -23,7 +30,7 @@ export type CreateModelProps<T extends ModelTypes> = ILayerAndSourcelessConfig<T
|
|
|
23
30
|
* A new model of the specified type will be created using default values.
|
|
24
31
|
*/
|
|
25
32
|
export type LayerAndType<T extends ModelTypes> = {
|
|
26
|
-
layer: SupportedLayer;
|
|
33
|
+
layer: SupportedLayer | SupportedRasterLayer;
|
|
27
34
|
chartType: T;
|
|
28
35
|
};
|
|
29
36
|
|
|
@@ -33,7 +40,7 @@ export type LayerAndType<T extends ModelTypes> = {
|
|
|
33
40
|
* A new model of the specified type will be created using default values.
|
|
34
41
|
*/
|
|
35
42
|
export type ILayerAndType<T extends ModelTypes> = {
|
|
36
|
-
iLayer: IFeatureLayer;
|
|
43
|
+
iLayer: IFeatureLayer | IImageServiceLayer | ITiledImageServiceLayer;
|
|
37
44
|
chartType: T;
|
|
38
45
|
};
|
|
39
46
|
|
|
@@ -43,7 +50,7 @@ export type ILayerAndType<T extends ModelTypes> = {
|
|
|
43
50
|
* The `config` is considered "sourceless" since its `iLayer` property is not required.
|
|
44
51
|
*/
|
|
45
52
|
export type LayerAndSourcelessConfig<T extends ModelTypes> = {
|
|
46
|
-
layer: SupportedLayer;
|
|
53
|
+
layer: SupportedLayer | SupportedRasterLayer;
|
|
47
54
|
config: ChartConfig<T>;
|
|
48
55
|
};
|
|
49
56
|
|
|
@@ -53,7 +60,7 @@ export type LayerAndSourcelessConfig<T extends ModelTypes> = {
|
|
|
53
60
|
* The `config` is considered "sourceless" since its `iLayer` property is not required.
|
|
54
61
|
*/
|
|
55
62
|
export type ILayerAndSourcelessConfig<T extends ModelTypes> = {
|
|
56
|
-
iLayer: IFeatureLayer;
|
|
63
|
+
iLayer: IFeatureLayer | IImageServiceLayer | ITiledImageServiceLayer;
|
|
57
64
|
config: ChartConfig<T>;
|
|
58
65
|
};
|
|
59
66
|
|
|
@@ -21,6 +21,7 @@ import type { ModelWithXGuides } from "../mixins/model-with-x-guides.js";
|
|
|
21
21
|
import type { ModelWithYGuides } from "../mixins/model-with-y-guides.js";
|
|
22
22
|
import type { ModelWithLegend } from "../mixins/model-with-legend.js";
|
|
23
23
|
import type { ModelWithTemporalBinning } from "../mixins/model-with-temporal-binning.js";
|
|
24
|
+
import type { RadarChartModel } from "../radar-chart-model/radar-chart-model.js";
|
|
24
25
|
|
|
25
26
|
/**
|
|
26
27
|
* Determines if the provided model or config is a `ChartModel`.
|
|
@@ -43,6 +44,13 @@ export function isBarChartModel(model: ChartModelBase | undefined): model is Bar
|
|
|
43
44
|
*/
|
|
44
45
|
export function isLineChartModel(model: ChartModelBase | undefined): model is LineChartModel;
|
|
45
46
|
|
|
47
|
+
/**
|
|
48
|
+
* Determines if the provided `model` is of type `RadarChartModel`.
|
|
49
|
+
*
|
|
50
|
+
* @param model - The model to check.
|
|
51
|
+
*/
|
|
52
|
+
export function isRadarChartModel(model: ChartModelBase | undefined): model is RadarChartModel;
|
|
53
|
+
|
|
46
54
|
/**
|
|
47
55
|
* Determines if the provided `model` is of type `ComboBarLineChartModel`.
|
|
48
56
|
*
|
package/dist/model.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { B as e, C as i, F as t, G as o, H as r, L as
|
|
3
|
-
import {
|
|
4
|
-
import { c as
|
|
2
|
+
import { B as e, C as i, F as t, G as o, H as r, L as d, M as l, P as M, a as h, b as n, S as C, T as g, c as m } from "./chunks/common.js";
|
|
3
|
+
import { i as p, a as u, b as y, c as K, d as P, e as W, f as c, g as x, h as L, j as B, k as D, l as G, m as T, n as f, o as F, p as H, q as b, r as k, s as O, t as j, u as q, v } from "./chunks/type-guards.js";
|
|
4
|
+
import { c as R } from "./chunks/setup-utils.js";
|
|
5
5
|
export {
|
|
6
6
|
e as BoxPlotDataSortingKinds,
|
|
7
7
|
i as ColorFormatKeys,
|
|
8
8
|
t as FormatKeys,
|
|
9
9
|
o as GuideOrientation,
|
|
10
10
|
r as HeatChartDataSortingKinds,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
d as LineFormatKeys,
|
|
12
|
+
l as ModelTypes,
|
|
13
13
|
M as PieChartDataModes,
|
|
14
14
|
h as PieChartDataSortingKinds,
|
|
15
15
|
n as PieChartSlicesDisplay,
|
|
16
16
|
C as SerialChartDataSortingKinds,
|
|
17
17
|
g as TextFormatKeys,
|
|
18
|
-
|
|
18
|
+
R as createModel,
|
|
19
19
|
m as customSortString,
|
|
20
20
|
p as isBarChartModel,
|
|
21
21
|
u as isBoxPlotModel,
|
|
@@ -36,6 +36,7 @@ export {
|
|
|
36
36
|
b as isModelWithYGuides,
|
|
37
37
|
k as isPieChartLegendModel,
|
|
38
38
|
O as isPieChartModel,
|
|
39
|
-
j as
|
|
40
|
-
q as
|
|
39
|
+
j as isRadarChartModel,
|
|
40
|
+
q as isScatterplotModel,
|
|
41
|
+
v as isSerialChartModel
|
|
41
42
|
};
|