@geoscene/charts-components 5.0.19
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 +18 -0
- package/README.md +15 -0
- package/dist/cdn/27RSUS44.js +499 -0
- package/dist/cdn/2ABIWUBP.js +168 -0
- package/dist/cdn/2FLUZ2DU.js +44 -0
- package/dist/cdn/2H7DJUUG.js +217 -0
- package/dist/cdn/2UIJDI4B.js +110 -0
- package/dist/cdn/2WSVTAF5.js +155 -0
- package/dist/cdn/2ZYMR3QH.js +469 -0
- package/dist/cdn/346SLSRB.js +117 -0
- package/dist/cdn/34GIQYIH.js +1000 -0
- package/dist/cdn/3DEMDCI6.js +176 -0
- package/dist/cdn/3PHU76K7.js +162 -0
- package/dist/cdn/3RSCQLEZ.js +376 -0
- package/dist/cdn/3SM7FV35.js +217 -0
- package/dist/cdn/3SYE47CU.js +157 -0
- package/dist/cdn/42A4L2UB.js +209 -0
- package/dist/cdn/43OZVJ43.js +10 -0
- package/dist/cdn/45AJBAFE.js +480 -0
- package/dist/cdn/4B3QBH5T.js +2440 -0
- package/dist/cdn/4HJDWMQ2.js +255 -0
- package/dist/cdn/4UCPYNHM.js +217 -0
- package/dist/cdn/4ZN5TLRY.js +206 -0
- package/dist/cdn/53MWUIM5.js +208 -0
- package/dist/cdn/5752NFTR.js +228 -0
- package/dist/cdn/5AWSZZXY.js +165 -0
- package/dist/cdn/5FBGXF7O.js +508 -0
- package/dist/cdn/5FW4PWIO.js +217 -0
- package/dist/cdn/5RNNVK4R.js +161 -0
- package/dist/cdn/6NZDPYGF.js +187 -0
- package/dist/cdn/6PBHDFIO.js +209 -0
- package/dist/cdn/7I5Y5NSS.js +82 -0
- package/dist/cdn/7IUSVOKT.js +119 -0
- package/dist/cdn/7XITED6J.js +216 -0
- package/dist/cdn/A6QBN7CC.js +45 -0
- package/dist/cdn/A7YNU2NS.js +34090 -0
- package/dist/cdn/AENRD2JF.js +174 -0
- package/dist/cdn/AHWBG4EN.js +170 -0
- package/dist/cdn/AQMOKQMS.js +97 -0
- package/dist/cdn/AULQDYOE.js +286 -0
- package/dist/cdn/BB25YSSU.js +273 -0
- package/dist/cdn/BBHUZEFF.js +217 -0
- package/dist/cdn/BY6OCNJ5.js +203 -0
- package/dist/cdn/BZA7GDEH.js +281 -0
- package/dist/cdn/CCRQK5DN.js +377 -0
- package/dist/cdn/CFQFRB3N.js +154 -0
- package/dist/cdn/CUT7ZZEN.js +211 -0
- package/dist/cdn/D24YASGK.js +241 -0
- package/dist/cdn/D4XT7ZCD.js +78 -0
- package/dist/cdn/D57WSEYW.js +65954 -0
- package/dist/cdn/D7VH5WCI.js +97 -0
- package/dist/cdn/DKENL7TV.js +72 -0
- package/dist/cdn/DP4BNWU2.js +442 -0
- package/dist/cdn/DPJE33GY.js +111 -0
- package/dist/cdn/DPXJFQDJ.js +34 -0
- package/dist/cdn/DVTRF3NE.js +498 -0
- package/dist/cdn/ED7V65WK.js +471 -0
- package/dist/cdn/EEARIV73.js +211 -0
- package/dist/cdn/EI4BBWXF.js +365 -0
- package/dist/cdn/EKW43NKP.js +211 -0
- package/dist/cdn/EKZC6UDI.js +219 -0
- package/dist/cdn/EQYSD2NX.js +217 -0
- package/dist/cdn/F335AJAZ.js +220 -0
- package/dist/cdn/FEJD2JHY.js +15 -0
- package/dist/cdn/FHOCRXYD.js +116 -0
- package/dist/cdn/FKGSMYFL.js +414 -0
- package/dist/cdn/FL37YOHH.js +217 -0
- package/dist/cdn/FPSTP5OC.js +392 -0
- package/dist/cdn/FVY5LUI2.js +157 -0
- package/dist/cdn/FWWJZ3MJ.js +209 -0
- package/dist/cdn/FZD6CNIZ.js +399 -0
- package/dist/cdn/G4MCRK6N.js +162 -0
- package/dist/cdn/GTW3ZY2Z.js +159 -0
- package/dist/cdn/GWOR7UVC.js +124624 -0
- package/dist/cdn/HAGP76HP.js +16 -0
- package/dist/cdn/HB4IRXAE.js +72 -0
- package/dist/cdn/HM3YITGN.js +217 -0
- package/dist/cdn/HOC24MW7.js +151 -0
- package/dist/cdn/HZC3QJTN.js +105 -0
- package/dist/cdn/IARNAL5N.js +14375 -0
- package/dist/cdn/IER7B77G.js +209 -0
- package/dist/cdn/IHRGRUHQ.js +130 -0
- package/dist/cdn/IJKPLGK6.js +141 -0
- package/dist/cdn/IJUDK7C2.js +209 -0
- package/dist/cdn/IMTYQFPL.js +36 -0
- package/dist/cdn/ISWZQ6CS.js +1163 -0
- package/dist/cdn/IUTE24ZY.js +13 -0
- package/dist/cdn/IYO5SQDL.js +99 -0
- package/dist/cdn/J436GCGB.js +217 -0
- package/dist/cdn/J7TZPMJS.js +55 -0
- package/dist/cdn/JADN2A6V.js +209 -0
- package/dist/cdn/JGALBLLO.js +30326 -0
- package/dist/cdn/JP64Q3GB.js +209 -0
- package/dist/cdn/JRIDQN35.js +215 -0
- package/dist/cdn/JRXMYWDW.js +135 -0
- package/dist/cdn/JS32MHPQ.js +217 -0
- package/dist/cdn/K3EUYISB.js +217 -0
- package/dist/cdn/K7DZU3S3.js +209 -0
- package/dist/cdn/KB7UF3HK.js +89 -0
- package/dist/cdn/KJHME2ZX.js +31 -0
- package/dist/cdn/KM2WGERQ.js +625 -0
- package/dist/cdn/KP4ZXQIA.js +104 -0
- package/dist/cdn/KPQTJ2HD.js +642 -0
- package/dist/cdn/KPZUTGHH.js +630 -0
- package/dist/cdn/KRZ433BT.js +2106 -0
- package/dist/cdn/KUVOINJC.js +81 -0
- package/dist/cdn/KYALHV7T.js +209 -0
- package/dist/cdn/KZCTMPJT.js +209 -0
- package/dist/cdn/L2JT5DRD.js +706 -0
- package/dist/cdn/LCDVPNSE.js +13 -0
- package/dist/cdn/LMCXUA7Q.js +10 -0
- package/dist/cdn/LN5565XO.js +52 -0
- package/dist/cdn/LZPEOYIX.js +98 -0
- package/dist/cdn/ML4GGRP6.js +570 -0
- package/dist/cdn/MMTB6DEH.js +209 -0
- package/dist/cdn/MSXA6BCJ.js +207 -0
- package/dist/cdn/NII7T2C6.js +179 -0
- package/dist/cdn/NKG4FLLR.js +165 -0
- package/dist/cdn/NSSG3EFV.js +48 -0
- package/dist/cdn/OBMBMKLH.js +327 -0
- package/dist/cdn/OIKTWYMH.js +157 -0
- package/dist/cdn/OR4HXHSY.js +41 -0
- package/dist/cdn/P4UNBBUE.js +82 -0
- package/dist/cdn/P5SSZWMH.js +309 -0
- package/dist/cdn/P6IDPIZS.js +211 -0
- package/dist/cdn/P7VOZE67.js +296 -0
- package/dist/cdn/PJRXBEGZ.js +178 -0
- package/dist/cdn/PNEIQAP5.js +217 -0
- package/dist/cdn/PWVXLHJ5.js +217 -0
- package/dist/cdn/QB7LODVK.js +684 -0
- package/dist/cdn/QEF5BUC3.js +10 -0
- package/dist/cdn/QFD6CUH6.js +30326 -0
- package/dist/cdn/QH6BI7FG.js +217 -0
- package/dist/cdn/QOI7NT7O.js +219 -0
- package/dist/cdn/QWWC6FN5.js +536 -0
- package/dist/cdn/QXU67LZR.js +155 -0
- package/dist/cdn/QYYAUYYC.js +112 -0
- package/dist/cdn/R6TDL23L.js +209 -0
- package/dist/cdn/RF5DZ4IV.js +191 -0
- package/dist/cdn/S4AW3T6V.js +224 -0
- package/dist/cdn/S565TLQY.js +196 -0
- package/dist/cdn/SMF5WZQN.js +209 -0
- package/dist/cdn/SON2ID5T.js +219 -0
- package/dist/cdn/SQV437VB.js +215 -0
- package/dist/cdn/T27VVYVB.js +157 -0
- package/dist/cdn/TAAITYOS.js +198 -0
- package/dist/cdn/TABYE4TB.js +217 -0
- package/dist/cdn/TB7WEW23.js +209 -0
- package/dist/cdn/TJ5UK25V.js +9 -0
- package/dist/cdn/TJ65PNGP.js +165 -0
- package/dist/cdn/TMANAKTG.js +591 -0
- package/dist/cdn/U4PUZ7GN.js +162 -0
- package/dist/cdn/U7SAWP3S.js +209 -0
- package/dist/cdn/UCCVQZDR.js +9 -0
- package/dist/cdn/UG7LOBJE.js +85 -0
- package/dist/cdn/UKOVO7VE.js +186 -0
- package/dist/cdn/ULFF36NB.js +178 -0
- package/dist/cdn/UNHONDOG.js +31 -0
- package/dist/cdn/UPIJ2RYA.js +219 -0
- package/dist/cdn/UTRIB3ZD.js +162 -0
- package/dist/cdn/V2OPADQU.js +696 -0
- package/dist/cdn/V3CSEWPF.js +487 -0
- package/dist/cdn/VAB3BCTX.js +133 -0
- package/dist/cdn/VE5YTXK3.js +226 -0
- package/dist/cdn/VGRQ5KGN.js +13 -0
- package/dist/cdn/VGRXIFGH.js +473 -0
- package/dist/cdn/VPNOON73.js +6242 -0
- package/dist/cdn/VQMZEOOE.js +711 -0
- package/dist/cdn/VTOYBMVV.js +230 -0
- package/dist/cdn/W2ZT3M5X.js +477 -0
- package/dist/cdn/WKARMQOX.js +416 -0
- package/dist/cdn/WSH74NNB.js +184 -0
- package/dist/cdn/X2UNNQPA.js +209 -0
- package/dist/cdn/X5VZ6AC5.js +209 -0
- package/dist/cdn/XFRW44O2.js +209 -0
- package/dist/cdn/XLDY6CTA.js +142 -0
- package/dist/cdn/XNEK46GJ.js +230 -0
- package/dist/cdn/XOBTD5MM.js +371 -0
- package/dist/cdn/XQXY7DRO.js +268 -0
- package/dist/cdn/XZG6TRNQ.js +163 -0
- package/dist/cdn/XZQIXM6A.js +157 -0
- package/dist/cdn/Y56PEINI.js +217 -0
- package/dist/cdn/Y5VXYUPT.js +217 -0
- package/dist/cdn/YEXVZE6D.js +173 -0
- package/dist/cdn/YIZBXVJZ.js +493 -0
- package/dist/cdn/YOQQ22ZG.js +209 -0
- package/dist/cdn/YYJQDF23.js +35 -0
- package/dist/cdn/Z7HL2BUP.js +283 -0
- package/dist/cdn/ZAGKTJNS.js +209 -0
- package/dist/cdn/ZBU6PQPJ.js +340 -0
- package/dist/cdn/ZEG4LDOE.js +198 -0
- package/dist/cdn/ZEPS5UGU.js +238 -0
- package/dist/cdn/ZLQXY2BV.js +35 -0
- package/dist/cdn/ZLRKGGOO.js +1414 -0
- package/dist/cdn/ZQY74JM4.js +135 -0
- package/dist/cdn/ZTNIHU2P.js +137 -0
- package/dist/cdn/assets/chart/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-action-bar/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-axes/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-axis/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-series/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-bar-chart-series-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-series/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-box-plot-series-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-category-format/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-chart-rename-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-color-style/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-colors/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-create-flow/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-font-style/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-format/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-format-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-general/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guide/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guide-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guides/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-guides-type-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-heat-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-heat-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-histogram-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-histogram-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-series/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-chart-series-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-line-style/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-number-format/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-slices/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-pie-chart-slices-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-scatter-plot-data/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-scatter-plot-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-select-chart-type-popover/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/charts-config-view-charts/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/common/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/styles/_common.scss +257 -0
- package/dist/cdn/assets/styles/_layout.scss +10 -0
- package/dist/cdn/assets/styles/resources.ts +7 -0
- package/dist/cdn/assets/styles/variables.scss +41 -0
- package/dist/cdn/index.js +256 -0
- package/dist/cdn/main.css +1 -0
- package/dist/chart-rendering/common/interfaces.d.ts +367 -0
- package/dist/chunks/action-bar-utils.js +206 -0
- package/dist/chunks/axis-lines-symbol.js +98 -0
- package/dist/chunks/axis-model-wrapper.js +37 -0
- package/dist/chunks/bar-chart-model.js +150 -0
- package/dist/chunks/bar-chart-series.js +41 -0
- package/dist/chunks/bg_BG.js +8 -0
- package/dist/chunks/bg_BG2.js +8 -0
- package/dist/chunks/box-plot-data.js +757 -0
- package/dist/chunks/box-plot-model.js +473 -0
- package/dist/chunks/chart-model.js +595 -0
- package/dist/chunks/chart-ui-utils.js +93 -0
- package/dist/chunks/chart-ui-utils2.js +232 -0
- package/dist/chunks/class-breaks.js +370 -0
- package/dist/chunks/combo-bar-line-chart-model.js +299 -0
- package/dist/chunks/common.js +106 -0
- package/dist/chunks/data-labels-symbol.js +42 -0
- package/dist/chunks/data.js +195 -0
- package/dist/chunks/default.js +16 -0
- package/dist/chunks/gauge-model.js +489 -0
- package/dist/chunks/generate-x-axis-title.js +98 -0
- package/dist/chunks/heat-chart-model.js +483 -0
- package/dist/chunks/histogram-data.js +196 -0
- package/dist/chunks/histogram-model.js +228 -0
- package/dist/chunks/index.js +23574 -0
- package/dist/chunks/index2.js +1099 -0
- package/dist/chunks/index3.js +279 -0
- package/dist/chunks/index4.js +98 -0
- package/dist/chunks/index5.js +76 -0
- package/dist/chunks/interfaces.js +123 -0
- package/dist/chunks/line-chart-model.js +134 -0
- package/dist/chunks/model-setter.js +162 -0
- package/dist/chunks/model-with-guides.js +330 -0
- package/dist/chunks/model-with-line-marker-styling.js +178 -0
- package/dist/chunks/model-with-tooltips.js +318 -0
- package/dist/chunks/model-with-x-guides.js +45 -0
- package/dist/chunks/model-with-y-guides.js +656 -0
- package/dist/chunks/negative-values-stacked-to-baseline.js +157 -0
- package/dist/chunks/pie-chart-data.js +473 -0
- package/dist/chunks/pie-chart-model.js +884 -0
- package/dist/chunks/popover-ui-utils.js +15 -0
- package/dist/chunks/radar-chart-model.js +157 -0
- package/dist/chunks/resource.js +14 -0
- package/dist/chunks/resources.js +13 -0
- package/dist/chunks/rest-js-object-literals.js +112 -0
- package/dist/chunks/rotated-state.js +54 -0
- package/dist/chunks/runtime.js +19 -0
- package/dist/chunks/scatterplot-model.js +350 -0
- package/dist/chunks/serial-chart-data.js +1446 -0
- package/dist/chunks/serial-chart-model.js +587 -0
- package/dist/chunks/series-length.js +81 -0
- package/dist/chunks/series-types.js +249 -0
- package/dist/chunks/series.js +36 -0
- package/dist/chunks/setup-utils.js +87 -0
- package/dist/chunks/sk_SK.js +8 -0
- package/dist/chunks/store.js +35 -0
- package/dist/chunks/type-guards.js +156 -0
- package/dist/chunks/useT9n.js +5 -0
- package/dist/chunks/utils.js +308 -0
- package/dist/chunks/utils2.js +85 -0
- package/dist/chunks/web-component-utils.js +634 -0
- package/dist/components/geoscene-chart/customElement.d.ts +1551 -0
- package/dist/components/geoscene-chart/customElement.js +27412 -0
- package/dist/components/geoscene-chart/index.d.ts +1 -0
- package/dist/components/geoscene-chart/index.js +3 -0
- package/dist/components/geoscene-charts-action-bar/customElement.d.ts +813 -0
- package/dist/components/geoscene-charts-action-bar/customElement.js +500 -0
- package/dist/components/geoscene-charts-action-bar/index.d.ts +1 -0
- package/dist/components/geoscene-charts-action-bar/index.js +7 -0
- package/dist/components/geoscene-charts-config-axes/customElement.js +72 -0
- package/dist/components/geoscene-charts-config-axes/index.js +2 -0
- package/dist/components/geoscene-charts-config-axis/customElement.js +382 -0
- package/dist/components/geoscene-charts-config-axis/index.js +9 -0
- package/dist/components/geoscene-charts-config-bar-chart/customElement.js +165 -0
- package/dist/components/geoscene-charts-config-bar-chart/index.js +7 -0
- package/dist/components/geoscene-charts-config-bar-chart-data/customElement.js +644 -0
- package/dist/components/geoscene-charts-config-bar-chart-data/index.js +12 -0
- package/dist/components/geoscene-charts-config-bar-chart-popover/customElement.js +454 -0
- package/dist/components/geoscene-charts-config-bar-chart-popover/index.js +13 -0
- package/dist/components/geoscene-charts-config-bar-chart-series/customElement.js +341 -0
- package/dist/components/geoscene-charts-config-bar-chart-series/index.js +7 -0
- package/dist/components/geoscene-charts-config-bar-chart-series-popover/customElement.js +125 -0
- package/dist/components/geoscene-charts-config-bar-chart-series-popover/index.js +6 -0
- package/dist/components/geoscene-charts-config-box-plot/customElement.js +160 -0
- package/dist/components/geoscene-charts-config-box-plot/index.js +7 -0
- package/dist/components/geoscene-charts-config-box-plot-data/customElement.js +456 -0
- package/dist/components/geoscene-charts-config-box-plot-data/index.js +10 -0
- package/dist/components/geoscene-charts-config-box-plot-popover/customElement.js +343 -0
- package/dist/components/geoscene-charts-config-box-plot-popover/index.js +8 -0
- package/dist/components/geoscene-charts-config-box-plot-series/customElement.js +394 -0
- package/dist/components/geoscene-charts-config-box-plot-series/index.js +7 -0
- package/dist/components/geoscene-charts-config-box-plot-series-popover/customElement.js +163 -0
- package/dist/components/geoscene-charts-config-box-plot-series-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-category-format/customElement.js +87 -0
- package/dist/components/geoscene-charts-config-category-format/index.js +3 -0
- package/dist/components/geoscene-charts-config-chart-rename-popover/customElement.js +143 -0
- package/dist/components/geoscene-charts-config-chart-rename-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-color-style/customElement.js +58 -0
- package/dist/components/geoscene-charts-config-color-style/index.js +3 -0
- package/dist/components/geoscene-charts-config-colors/customElement.js +73 -0
- package/dist/components/geoscene-charts-config-colors/index.js +3 -0
- package/dist/components/geoscene-charts-config-create-flow/customElement.js +929 -0
- package/dist/components/geoscene-charts-config-create-flow/index.js +15 -0
- package/dist/components/geoscene-charts-config-field-select/customElement.js +37 -0
- package/dist/components/geoscene-charts-config-field-select/index.js +2 -0
- package/dist/components/geoscene-charts-config-font-style/customElement.js +226 -0
- package/dist/components/geoscene-charts-config-font-style/index.js +9 -0
- package/dist/components/geoscene-charts-config-font-style/resource.d.ts +15 -0
- package/dist/components/geoscene-charts-config-format/customElement.js +485 -0
- package/dist/components/geoscene-charts-config-format/index.js +5 -0
- package/dist/components/geoscene-charts-config-format-popover/customElement.js +113 -0
- package/dist/components/geoscene-charts-config-format-popover/index.js +5 -0
- package/dist/components/geoscene-charts-config-general/customElement.js +328 -0
- package/dist/components/geoscene-charts-config-general/index.js +9 -0
- package/dist/components/geoscene-charts-config-guide/customElement.js +487 -0
- package/dist/components/geoscene-charts-config-guide/index.js +14 -0
- package/dist/components/geoscene-charts-config-guide/resource.d.ts +15 -0
- package/dist/components/geoscene-charts-config-guide-popover/customElement.js +111 -0
- package/dist/components/geoscene-charts-config-guide-popover/index.js +4 -0
- package/dist/components/geoscene-charts-config-guides/customElement.js +194 -0
- package/dist/components/geoscene-charts-config-guides/index.js +4 -0
- package/dist/components/geoscene-charts-config-guides-type-popover/customElement.js +100 -0
- package/dist/components/geoscene-charts-config-guides-type-popover/index.js +4 -0
- package/dist/components/geoscene-charts-config-heat-chart/customElement.js +114 -0
- package/dist/components/geoscene-charts-config-heat-chart/index.js +4 -0
- package/dist/components/geoscene-charts-config-heat-chart-data/customElement.js +701 -0
- package/dist/components/geoscene-charts-config-heat-chart-data/index.js +18 -0
- package/dist/components/geoscene-charts-config-heat-chart-popover/customElement.js +499 -0
- package/dist/components/geoscene-charts-config-heat-chart-popover/index.js +12 -0
- package/dist/components/geoscene-charts-config-histogram/customElement.js +137 -0
- package/dist/components/geoscene-charts-config-histogram/index.js +6 -0
- package/dist/components/geoscene-charts-config-histogram-data/customElement.js +612 -0
- package/dist/components/geoscene-charts-config-histogram-data/index.js +11 -0
- package/dist/components/geoscene-charts-config-histogram-popover/customElement.js +255 -0
- package/dist/components/geoscene-charts-config-histogram-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-invalid-input-message/customElement.js +31 -0
- package/dist/components/geoscene-charts-config-invalid-input-message/index.js +2 -0
- package/dist/components/geoscene-charts-config-line-chart/customElement.js +169 -0
- package/dist/components/geoscene-charts-config-line-chart/index.js +7 -0
- package/dist/components/geoscene-charts-config-line-chart-data/customElement.js +444 -0
- package/dist/components/geoscene-charts-config-line-chart-data/index.js +12 -0
- package/dist/components/geoscene-charts-config-line-chart-popover/customElement.js +357 -0
- package/dist/components/geoscene-charts-config-line-chart-popover/index.js +11 -0
- package/dist/components/geoscene-charts-config-line-chart-series/customElement.js +245 -0
- package/dist/components/geoscene-charts-config-line-chart-series/index.js +7 -0
- package/dist/components/geoscene-charts-config-line-chart-series-popover/customElement.js +216 -0
- package/dist/components/geoscene-charts-config-line-chart-series-popover/index.js +10 -0
- package/dist/components/geoscene-charts-config-line-style/customElement.js +159 -0
- package/dist/components/geoscene-charts-config-line-style/index.js +9 -0
- package/dist/components/geoscene-charts-config-number-format/customElement.js +102 -0
- package/dist/components/geoscene-charts-config-number-format/index.js +4 -0
- package/dist/components/geoscene-charts-config-pie-chart/customElement.js +164 -0
- package/dist/components/geoscene-charts-config-pie-chart/index.js +5 -0
- package/dist/components/geoscene-charts-config-pie-chart-data/customElement.js +258 -0
- package/dist/components/geoscene-charts-config-pie-chart-data/index.js +8 -0
- package/dist/components/geoscene-charts-config-pie-chart-popover/customElement.js +300 -0
- package/dist/components/geoscene-charts-config-pie-chart-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices/customElement.js +454 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices/index.js +12 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices-popover/customElement.js +126 -0
- package/dist/components/geoscene-charts-config-pie-chart-slices-popover/index.js +6 -0
- package/dist/components/geoscene-charts-config-scatter-plot/customElement.js +132 -0
- package/dist/components/geoscene-charts-config-scatter-plot/index.js +6 -0
- package/dist/components/geoscene-charts-config-scatter-plot-data/customElement.js +616 -0
- package/dist/components/geoscene-charts-config-scatter-plot-data/index.js +12 -0
- package/dist/components/geoscene-charts-config-scatter-plot-popover/customElement.js +198 -0
- package/dist/components/geoscene-charts-config-scatter-plot-popover/index.js +7 -0
- package/dist/components/geoscene-charts-config-select-chart-type-popover/customElement.js +148 -0
- package/dist/components/geoscene-charts-config-select-chart-type-popover/index.js +6 -0
- package/dist/components/geoscene-charts-config-view-charts/customElement.js +289 -0
- package/dist/components/geoscene-charts-config-view-charts/index.js +10 -0
- package/dist/components/geoscene-charts-info-modal/customElement.js +101 -0
- package/dist/components/geoscene-charts-info-modal/index.js +2 -0
- package/dist/docs/api.json +87068 -0
- package/dist/docs/docs.json +3082 -0
- package/dist/docs/vscode.css-custom-data.json +1 -0
- package/dist/docs/vscode.html-custom-data.json +519 -0
- package/dist/docs/web-types.json +1282 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +812 -0
- package/dist/interfaces.d.ts +203 -0
- package/dist/json-schema/index.d.ts +8488 -0
- package/dist/loader.d.ts +2 -0
- package/dist/loader.js +332 -0
- package/dist/model/bar-chart-model/bar-chart-model.d.ts +51 -0
- package/dist/model/box-plot-model/box-plot-model.d.ts +177 -0
- package/dist/model/chart-model/chart-model-base.d.ts +34 -0
- package/dist/model/chart-model/chart-model.d.ts +28 -0
- package/dist/model/chart-model/utils/types.d.ts +10 -0
- package/dist/model/combo-bar-line-chart-model/combo-bar-line-chart-model.d.ts +189 -0
- package/dist/model/gauge-model/gauge-model.d.ts +103 -0
- package/dist/model/heat-chart-model/heat-chart-model.d.ts +224 -0
- package/dist/model/histogram-model/histogram-model.d.ts +75 -0
- package/dist/model/index.d.ts +18 -0
- package/dist/model/interfaces/chart-interfaces.d.ts +21 -0
- package/dist/model/interfaces/common.d.ts +172 -0
- package/dist/model/line-chart-model/line-chart-model.d.ts +20 -0
- package/dist/model/mixins/model-with-guides.d.ts +140 -0
- package/dist/model/mixins/model-with-legend.d.ts +22 -0
- package/dist/model/mixins/model-with-line-marker-styling.d.ts +139 -0
- package/dist/model/mixins/model-with-multi-axes.d.ts +307 -0
- package/dist/model/mixins/model-with-temporal-binning.d.ts +25 -0
- package/dist/model/mixins/model-with-tooltips.d.ts +36 -0
- package/dist/model/mixins/model-with-x-guides.d.ts +24 -0
- package/dist/model/mixins/model-with-y-guides.d.ts +24 -0
- package/dist/model/pie-chart-model/pie-chart-legend-model.d.ts +56 -0
- package/dist/model/pie-chart-model/pie-chart-model.d.ts +199 -0
- package/dist/model/properties/axes/axis-labels-symbol.d.ts +8 -0
- package/dist/model/properties/axes/axis-lines-symbol.d.ts +8 -0
- package/dist/model/properties/axes/x-axis/generate-x-axis-title.d.ts +7 -0
- package/dist/model/properties/axes/x-axis/max-x-bound.d.ts +11 -0
- package/dist/model/properties/axes/x-axis/min-x-bound.d.ts +11 -0
- package/dist/model/properties/axes/x-axis/x-axis-labels-visibility.d.ts +7 -0
- package/dist/model/properties/axes/x-axis/x-axis-title-symbol.d.ts +8 -0
- package/dist/model/properties/axes/x-axis/x-axis-title-text.d.ts +7 -0
- package/dist/model/properties/axes/x-axis/x-axis-title-visibility.d.ts +11 -0
- package/dist/model/properties/axes/x-axis/x-bounds.d.ts +8 -0
- package/dist/model/properties/background-color.d.ts +8 -0
- package/dist/model/properties/chart-id.d.ts +7 -0
- package/dist/model/properties/chart-renderer.d.ts +52 -0
- package/dist/model/properties/chart-sub-type.d.ts +8 -0
- package/dist/model/properties/color-match.d.ts +12 -0
- package/dist/model/properties/config.d.ts +8 -0
- package/dist/model/properties/data-filters.d.ts +14 -0
- package/dist/model/properties/data-labels/data-labels-symbol.d.ts +8 -0
- package/dist/model/properties/data-labels/data-labels-visibility.d.ts +7 -0
- package/dist/model/properties/data-tooltip-value-format.d.ts +21 -0
- package/dist/model/properties/description/description-symbol.d.ts +8 -0
- package/dist/model/properties/description/description-text.d.ts +6 -0
- package/dist/model/properties/description/description-visibility.d.ts +11 -0
- package/dist/model/properties/fetch-null-values.d.ts +7 -0
- package/dist/model/properties/layer.d.ts +8 -0
- package/dist/model/properties/rotated-state.d.ts +7 -0
- package/dist/model/properties/series/negative-values-stacked-to-baseline.d.ts +22 -0
- package/dist/model/properties/series/series-id.d.ts +12 -0
- package/dist/model/properties/series/series-index.d.ts +12 -0
- package/dist/model/properties/series/series-length.d.ts +7 -0
- package/dist/model/properties/series/series-visibility.d.ts +18 -0
- package/dist/model/properties/split-by-values.d.ts +7 -0
- package/dist/model/properties/subtitle/subtitle-symbol.d.ts +8 -0
- package/dist/model/properties/subtitle/subtitle-text.d.ts +7 -0
- package/dist/model/properties/subtitle/subtitle-visibility.d.ts +11 -0
- package/dist/model/properties/title/title-symbol.d.ts +8 -0
- package/dist/model/properties/title/title-text.d.ts +7 -0
- package/dist/model/properties/title/title-visibility.d.ts +11 -0
- package/dist/model/properties/version.d.ts +7 -0
- package/dist/model/radar-chart-model/radar-chart-model.d.ts +20 -0
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +57 -0
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +145 -0
- package/dist/model/shared/setup-utils.d.ts +74 -0
- package/dist/model/shared/type-guards.d.ts +172 -0
- package/dist/model.js +77 -0
- package/dist/spec/chart-object-literals.d.ts +364 -0
- package/dist/spec/config-defaults.d.ts +11 -0
- package/dist/spec/data-source.d.ts +104 -0
- package/dist/spec/events.d.ts +34 -0
- package/dist/spec/index.d.ts +8 -0
- package/dist/spec/rest-js-object-literals.d.ts +132 -0
- package/dist/spec/rest-js-types.d.ts +1923 -0
- package/dist/spec/web-chart.d.ts +1539 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/lumina.d.ts +187 -0
- package/dist/types/preact.d.ts +194 -0
- package/dist/types/react.d.ts +204 -0
- package/dist/types/stencil.d.ts +194 -0
- package/dist/utils/chart-config/converter/index.d.ts +21 -0
- package/dist/utils/chart-config/interfaces.d.ts +8 -0
- package/dist/utils/chart-config/utils/index.d.ts +520 -0
- package/dist/utils/chart-config/utils/interfaces.d.ts +8 -0
- package/dist/utils/chart-config/validator/index.d.ts +27 -0
- package/dist/utils/chart-config/validator/interfaces.d.ts +105 -0
- package/dist/utils/components/event-payloads.d.ts +82 -0
- package/dist/utils/components/interfaces.d.ts +14 -0
- package/dist/utils/cursor/interfaces.d.ts +17 -0
- package/dist/utils/data/categorical-data/index.d.ts +27 -0
- package/dist/utils/data/index.d.ts +149 -0
- package/dist/utils/data/interfaces.d.ts +75 -0
- package/dist/utils/data/time-binning/interfaces.d.ts +38 -0
- package/dist/utils/defaults/index.d.ts +638 -0
- package/dist/utils/defaults/interfaces.d.ts +81 -0
- package/dist/utils/errors/index.d.ts +17 -0
- package/dist/utils/errors/interfaces.d.ts +9 -0
- package/dist/utils/index.d.ts +33 -0
- package/dist/utils/layer/index.d.ts +313 -0
- package/dist/utils/layer/inline-conversion/index.d.ts +46 -0
- package/dist/utils/layer/inline-conversion/interfaces.d.ts +21 -0
- package/dist/utils/layer/interfaces.d.ts +73 -0
- package/dist/utils/layer/query-features/index.d.ts +192 -0
- package/dist/utils/layer/query-features/interfaces.d.ts +10 -0
- package/dist/utils/layer/query-parser/index.d.ts +183 -0
- package/dist/utils/layer/utils/index.d.ts +202 -0
- package/dist/utils/localization/index.d.ts +87 -0
- package/dist/utils/localization/interfaces.d.ts +617 -0
- package/dist/utils/misc/index.d.ts +347 -0
- package/dist/utils/misc/interfaces.d.ts +116 -0
- package/dist/utils/type-guards/index.d.ts +229 -0
- package/dist/utils/type-guards/series-types.d.ts +38 -0
- package/dist/utils/types/index.d.ts +227 -0
- package/dist/utils/ui/chart-ui-utils.d.ts +34 -0
- package/dist/utils/ui/popover-ui-utils.d.ts +35 -0
- package/package.json +59 -0
|
@@ -0,0 +1,1539 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
GaugeChartSubTypes,
|
|
3
|
+
SizePolicyScaleTypes,
|
|
4
|
+
WebChartCalendarDatePartsUnits,
|
|
5
|
+
WebChartClassBreakTypes,
|
|
6
|
+
WebChartDataTransformations,
|
|
7
|
+
WebChartDirectionalDataOrder,
|
|
8
|
+
WebChartHeatChartHeatRulesTypes,
|
|
9
|
+
WebChartHeatChartViewTypes,
|
|
10
|
+
WebChartLabelBehavior,
|
|
11
|
+
WebChartLegendPositions,
|
|
12
|
+
WebChartMultiAxesDataOrder,
|
|
13
|
+
WebChartNullPolicyTypes,
|
|
14
|
+
WebChartOrderSeriesBy,
|
|
15
|
+
WebChartPredefinedLabelsDataOrder,
|
|
16
|
+
WebChartRadarChartAxisLabelsOrientation,
|
|
17
|
+
WebChartStackedKinds,
|
|
18
|
+
WebChartTemporalBinningUnits,
|
|
19
|
+
WebChartTimeAggregationTypes,
|
|
20
|
+
WebChartTypes,
|
|
21
|
+
} from "./chart-object-literals.js";
|
|
22
|
+
import type { TimeIntervalInfo } from "./data-source.js";
|
|
23
|
+
import type { RESTUnits } from "./rest-js-object-literals.js";
|
|
24
|
+
import type {
|
|
25
|
+
Color,
|
|
26
|
+
IDrawingInfo,
|
|
27
|
+
IEnvelope,
|
|
28
|
+
IExtent,
|
|
29
|
+
IFeatureLayer,
|
|
30
|
+
IPoint,
|
|
31
|
+
IPolygon,
|
|
32
|
+
IPolygonWithCurves,
|
|
33
|
+
IPolyline,
|
|
34
|
+
ISimpleFillSymbol,
|
|
35
|
+
ISimpleLineSymbol,
|
|
36
|
+
ISimpleMarkerSymbol,
|
|
37
|
+
IStatisticDefinition,
|
|
38
|
+
ITextSymbol,
|
|
39
|
+
} from "./rest-js-types.js";
|
|
40
|
+
|
|
41
|
+
/** Version of the current specification. */
|
|
42
|
+
export const WebChartCurrentVersion: "25.0.0";
|
|
43
|
+
|
|
44
|
+
/** Stores information regarding a numeric conversion. */
|
|
45
|
+
export interface ValueConversion {
|
|
46
|
+
/** A numeric value multiplying the value to convert. */
|
|
47
|
+
factor?: number;
|
|
48
|
+
/** A numeric offset to apply to the value to convert. */
|
|
49
|
+
offset?: number;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/** Describes the properties of an axis scrollbar. */
|
|
53
|
+
export interface WebChartAxisScrollBar {
|
|
54
|
+
/**
|
|
55
|
+
* Scrollbar visibility.
|
|
56
|
+
*
|
|
57
|
+
* @default false
|
|
58
|
+
*/
|
|
59
|
+
visible?: boolean;
|
|
60
|
+
/** Scrollbar width in pixels. */
|
|
61
|
+
width?: number;
|
|
62
|
+
/** Scrollbar color. */
|
|
63
|
+
color?: Color;
|
|
64
|
+
/** Grip size in pixels. */
|
|
65
|
+
gripSize?: number;
|
|
66
|
+
/** Margin between the scrollbar and the series container in pixels. */
|
|
67
|
+
margin?: number;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/** Represents a text symbol. */
|
|
71
|
+
export type WebChartTextSymbol = Omit<
|
|
72
|
+
ITextSymbol,
|
|
73
|
+
"angle" | "style" | "xoffset" | "yoffset"
|
|
74
|
+
> & {
|
|
75
|
+
/**
|
|
76
|
+
* Horizontal offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value
|
|
77
|
+
* relative to the label's container width.
|
|
78
|
+
*/
|
|
79
|
+
xoffset?: number | string;
|
|
80
|
+
/**
|
|
81
|
+
* Vertical offset. Can be a number for a fixed value in pixels, or a string such as `25%` for a value
|
|
82
|
+
* relative to the label's container height.
|
|
83
|
+
*/
|
|
84
|
+
yoffset?: number | string;
|
|
85
|
+
/** Rotation angle of the label. */
|
|
86
|
+
angle?: number;
|
|
87
|
+
/** Label style. */
|
|
88
|
+
style?: string;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/** Stores information on how some text is rendered on the chart and whether it is visible or not. */
|
|
92
|
+
export interface WebChartText {
|
|
93
|
+
/** A unique string identifier for the `ChartText` object. This value is `chartText`. */
|
|
94
|
+
type: typeof WebChartTypes.Text;
|
|
95
|
+
/**
|
|
96
|
+
* Determines the visibility of the content.
|
|
97
|
+
*
|
|
98
|
+
* @default true
|
|
99
|
+
*/
|
|
100
|
+
visible?: boolean;
|
|
101
|
+
/** Contains the styling information and text content. */
|
|
102
|
+
content: WebChartTextSymbol;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/** JSON representation of the cursor's crosshair for a chart. */
|
|
106
|
+
export interface WebChartCursorCrosshair {
|
|
107
|
+
/** Represents a unique string identifier for the chart cursor's crosshair. */
|
|
108
|
+
type: typeof WebChartTypes.CursorCrosshair;
|
|
109
|
+
/** Contains styling information on how the chart cursor's crosshair should be rendered. */
|
|
110
|
+
style?: ISimpleLineSymbol;
|
|
111
|
+
/**
|
|
112
|
+
* Indicates whether the vertical crosshair line should be displayed.
|
|
113
|
+
*
|
|
114
|
+
* @default false
|
|
115
|
+
*/
|
|
116
|
+
verticalLineVisible?: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Indicates whether the horizontal crosshair line should be displayed.
|
|
119
|
+
*
|
|
120
|
+
* @default false
|
|
121
|
+
*/
|
|
122
|
+
horizontalLineVisible?: boolean;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/** JSON representation of the chart's legend. */
|
|
126
|
+
export interface WebChartLegend {
|
|
127
|
+
/** A unique string identifier for the `ChartLegend` object. This value is `chartLegend`. */
|
|
128
|
+
type: typeof WebChartTypes.Legend;
|
|
129
|
+
/**
|
|
130
|
+
* Determines the visibility of the content.
|
|
131
|
+
*
|
|
132
|
+
* @default true
|
|
133
|
+
*/
|
|
134
|
+
visible?: boolean;
|
|
135
|
+
/** Contains styling information on how the title of the legend box should be rendered. */
|
|
136
|
+
title?: WebChartText;
|
|
137
|
+
/**
|
|
138
|
+
* Contains styling information on how legend body (excluding the `title`) should be rendered.
|
|
139
|
+
* Will use default styling if not provided.
|
|
140
|
+
*/
|
|
141
|
+
body?: WebChartTextSymbol;
|
|
142
|
+
/**
|
|
143
|
+
* Positions the legends at `"right"`, `"left"`, `"top"`, or `"bottom"` of the chart.
|
|
144
|
+
*
|
|
145
|
+
* @default `right`
|
|
146
|
+
*/
|
|
147
|
+
position?: WebChartLegendPositions;
|
|
148
|
+
/**
|
|
149
|
+
* Legend's maximum height. If not set the legend will occupy the same height as the series container.
|
|
150
|
+
*
|
|
151
|
+
* @default null
|
|
152
|
+
*/
|
|
153
|
+
maxHeight?: number | null;
|
|
154
|
+
/**
|
|
155
|
+
* Allows the legend markers to be displayed as circles.
|
|
156
|
+
* - `false` or `undefined`: rounded rectangles
|
|
157
|
+
* - `true`: circles
|
|
158
|
+
*
|
|
159
|
+
* @default false
|
|
160
|
+
*/
|
|
161
|
+
roundMarkers?: boolean;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export interface WebChartNullCategory {
|
|
165
|
+
/**
|
|
166
|
+
* Specifies the text to use for the null category.
|
|
167
|
+
* If none is provided, the default `null` text will be used.
|
|
168
|
+
*/
|
|
169
|
+
text?: string;
|
|
170
|
+
/**
|
|
171
|
+
* Contains styling information on how the overlay should be rendered.
|
|
172
|
+
* If not provided a default style is applied.
|
|
173
|
+
*
|
|
174
|
+
* @default 1 - symbol.outline.width
|
|
175
|
+
*/
|
|
176
|
+
symbol?: ISimpleFillSymbol;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
/** Specific legend for pie charts */
|
|
180
|
+
export interface WebChartPieChartLegend extends WebChartLegend {
|
|
181
|
+
/**
|
|
182
|
+
* Indicates whether the category associated to a slice is to be displayed in the legend.
|
|
183
|
+
*
|
|
184
|
+
* @default true
|
|
185
|
+
*/
|
|
186
|
+
displayCategory?: boolean;
|
|
187
|
+
/**
|
|
188
|
+
* Indicates whether the numeric value associated to a slice is to be displayed in the legend.
|
|
189
|
+
* If both `displayNumericValue` and `displayPercentage` are true on a same label, they will be displayed as `percentage (value)`
|
|
190
|
+
*
|
|
191
|
+
* @default false
|
|
192
|
+
*/
|
|
193
|
+
displayNumericValue?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* Indicates whether the percentage to a slice is to be displayed in the legend.
|
|
196
|
+
* If both `displayNumericValue` and `displayPercentage` are true on a same label, they will be displayed as `percentage (value)`
|
|
197
|
+
*
|
|
198
|
+
* @default false
|
|
199
|
+
*/
|
|
200
|
+
displayPercentage?: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Maximum width in pixels of the label displaying the slice name. If the label is larger than the maximum width, it will automatically wrap.
|
|
203
|
+
*
|
|
204
|
+
* @default 200
|
|
205
|
+
*/
|
|
206
|
+
labelMaxWidth?: number;
|
|
207
|
+
/**
|
|
208
|
+
* Maximum width in pixels of the value label displaying the slice value. If the label is larger than the maximum width, it will automatically wrap.
|
|
209
|
+
*
|
|
210
|
+
* @default 200
|
|
211
|
+
*/
|
|
212
|
+
valueLabelMaxWidth?: number;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/** JSON representation of the chart's overlays such as the trendline in scatterplot, and the median overlay in histogram. */
|
|
216
|
+
export interface WebChartOverlay {
|
|
217
|
+
/** A unique string identifier for the `ChartOverlay` object. This value is `chartOverlay`. */
|
|
218
|
+
type: typeof WebChartTypes.Overlay;
|
|
219
|
+
/**
|
|
220
|
+
* Determines whether the overlay is created under the hood. It may or may not be visible.
|
|
221
|
+
*
|
|
222
|
+
* @default false
|
|
223
|
+
*/
|
|
224
|
+
created?: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Determines the visibility of the content.
|
|
227
|
+
*
|
|
228
|
+
* @default true
|
|
229
|
+
*/
|
|
230
|
+
visible?: boolean;
|
|
231
|
+
/**
|
|
232
|
+
* Contains styling information on how the overlay should be rendered.
|
|
233
|
+
* If not provided a default style is applied.
|
|
234
|
+
*/
|
|
235
|
+
symbol?: ISimpleLineSymbol;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/** Defines how the numerical(value) axis data should be formatted. */
|
|
239
|
+
export interface NumberFormatOptions {
|
|
240
|
+
/** Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `number`. It can help to differentiate numerical (value) axis from other types of axes such as date-time axis and category axis. */
|
|
241
|
+
type: typeof WebChartTypes.NumberAxisFormat;
|
|
242
|
+
/** Represents the JS native [Intl.NumberFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/NumberFormat/NumberFormat), which is based on [CLDR](http://cldr.unicode.org/translation/numbers-currency/number-patterns) specifications. */
|
|
243
|
+
intlOptions: Intl.NumberFormatOptions;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Interface used by the axis `valueFormat` property to describe how to format specific date and time units when displayed on the axis.
|
|
248
|
+
*
|
|
249
|
+
* @example
|
|
250
|
+
* ```json
|
|
251
|
+
* "year": { year: "numeric" }
|
|
252
|
+
* "month": { month: "numeric" }
|
|
253
|
+
* "day": { day: "2-digit" }
|
|
254
|
+
* "hour": { day: "numeric" }
|
|
255
|
+
* "minute": { minute: "numeric" }
|
|
256
|
+
* "second": { second: "numeric" }
|
|
257
|
+
* ```
|
|
258
|
+
*/
|
|
259
|
+
export interface WebChartDateTimeUnitFormatOptions {
|
|
260
|
+
year?: Intl.DateTimeFormatOptions;
|
|
261
|
+
month?: Intl.DateTimeFormatOptions;
|
|
262
|
+
day?: Intl.DateTimeFormatOptions;
|
|
263
|
+
hour?: Intl.DateTimeFormatOptions;
|
|
264
|
+
minute?: Intl.DateTimeFormatOptions;
|
|
265
|
+
second?: Intl.DateTimeFormatOptions;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/** Defines how the `DateTime` axis data should be formatted. */
|
|
269
|
+
export interface DateTimeFormatOptions {
|
|
270
|
+
/** Represents a unique string identifier for the `NumberFormatOptions` object. For the `NumberFormatOptions` object, it is `date`. It can help to differentiate date-time axis from other types of axes such as numeric (value) axis and category axis. */
|
|
271
|
+
type: typeof WebChartTypes.DateAxisFormat;
|
|
272
|
+
/** Represent the JS native [Intl.DateTimeFormatOptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat), which is based on [CLDR](http://cldr.unicode.org/translation/date-time-1/date-time-patterns) specifications. */
|
|
273
|
+
intlOptions: Intl.DateTimeFormatOptions;
|
|
274
|
+
/** Represents how to format specific date and time units when displayed on the axis, independently from the `intlOptions`. */
|
|
275
|
+
formatPerDateTimeUnit?: WebChartDateTimeUnitFormatOptions;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
/** Defines how the category axis data (categories) should be formatted. */
|
|
279
|
+
export interface CategoryFormatOptions {
|
|
280
|
+
/** Represents a unique string identifier for the `CategoryFormatOptions` object. For the `CategoryFormatOptions` object, it is `category`. It can help to differentiate category axis from other types of axes such as date-time axis and numeric (value) axis. */
|
|
281
|
+
type: typeof WebChartTypes.CategoryAxisFormat;
|
|
282
|
+
/** Represents a positive integer which represents the limit on the number of characters to be displayed for all the category strings. The truncated string are appended with `...`. If property is not present or `null`, no truncation is done. */
|
|
283
|
+
characterLimit?: number | null;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/** JSON representation of the chart's guide object. Can be used to represent both line and fill guides. */
|
|
287
|
+
export interface WebChartGuide {
|
|
288
|
+
/** Represents a unique string identifier for the `Guide` object. For the `Guide` class, it is `chartGuide`. */
|
|
289
|
+
type: typeof WebChartTypes.Guide;
|
|
290
|
+
/** Determines the value where the guide should begin. */
|
|
291
|
+
start: Date | number | string | null;
|
|
292
|
+
/** Determines the value where the guide should end. If it is not specified, a line guide is used, otherwise a fill/rectangular guide is used. */
|
|
293
|
+
end?: Date | number | string | null;
|
|
294
|
+
/** Determines how the guide should be rendered. */
|
|
295
|
+
style: ISimpleFillSymbol | ISimpleLineSymbol;
|
|
296
|
+
/** A unique string identifier which is used to refer to a particular guide. It is displayed in the charts config UI to differentiate between different guides. */
|
|
297
|
+
name: string;
|
|
298
|
+
/** Defines a text label for the given guide. It is displayed on the chart next to the concerned guide and is styled using **geosceneTS** format. */
|
|
299
|
+
label?: WebChartTextSymbol;
|
|
300
|
+
/**
|
|
301
|
+
* Determines the visibility of the content.
|
|
302
|
+
*
|
|
303
|
+
* @default true
|
|
304
|
+
*/
|
|
305
|
+
visible?: boolean;
|
|
306
|
+
/**
|
|
307
|
+
* Determines whether the guide should be rendered on top of (overlapping) the series or under the series.
|
|
308
|
+
*
|
|
309
|
+
* @default false
|
|
310
|
+
*/
|
|
311
|
+
above?: boolean;
|
|
312
|
+
/**
|
|
313
|
+
* Indicates whether to apply the hovered element's color to the guide's tooltip background (false) or its outline (true).
|
|
314
|
+
*
|
|
315
|
+
* @default false
|
|
316
|
+
*/
|
|
317
|
+
tooltipReverseColor?: boolean;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
/** JSON representation of the chart's axis object */
|
|
321
|
+
export interface WebChartAxis {
|
|
322
|
+
/** Represents a unique string identifier for the `WebChartAxis` object. For `ChartAxis` object, it is `chartAxis`. */
|
|
323
|
+
type: typeof WebChartTypes.Axis;
|
|
324
|
+
/**
|
|
325
|
+
* Determines the visibility of the content.
|
|
326
|
+
*
|
|
327
|
+
* @default true
|
|
328
|
+
*/
|
|
329
|
+
visible?: boolean;
|
|
330
|
+
/**
|
|
331
|
+
* Specifies whether the axis has a logarithmic scale or not.
|
|
332
|
+
*
|
|
333
|
+
* @default false
|
|
334
|
+
*/
|
|
335
|
+
isLogarithmic?: boolean;
|
|
336
|
+
/** Contains styling information on how the title of the axis should be rendered */
|
|
337
|
+
title?: WebChartText;
|
|
338
|
+
/** Specifies how numerical/categorical/date-time values should be formatted. */
|
|
339
|
+
valueFormat:
|
|
340
|
+
| CategoryFormatOptions
|
|
341
|
+
| DateTimeFormatOptions
|
|
342
|
+
| NumberFormatOptions;
|
|
343
|
+
/** The minimum value which the axis should represent, when it is not defined or null, then the minimum value for the corresponding axis is automatically calculated. */
|
|
344
|
+
minimum?: number | null;
|
|
345
|
+
/** The maximum value which the axis should represent, when it is not defined or null, then the maximum value for the corresponding axis is automatically calculated. */
|
|
346
|
+
maximum?: number | null;
|
|
347
|
+
/** Dictates how the grid lines associated with a particular axis should be rendered. */
|
|
348
|
+
grid?: ISimpleLineSymbol;
|
|
349
|
+
/** Represent an array of guides that should be rendered onto the axis. */
|
|
350
|
+
guides?: WebChartGuide[];
|
|
351
|
+
/**
|
|
352
|
+
* Contains styling information on how the axis line should be rendered.
|
|
353
|
+
* If not provided a default style is applied.
|
|
354
|
+
*/
|
|
355
|
+
lineSymbol?: ISimpleLineSymbol;
|
|
356
|
+
/** Contains styling information on how the axis labels should be rendered. */
|
|
357
|
+
labels: WebChartText;
|
|
358
|
+
/** Represents the axis scrollbar style and visibility. */
|
|
359
|
+
scrollbar?: WebChartAxisScrollBar;
|
|
360
|
+
/**
|
|
361
|
+
* Represents an option to hide/un-hide the zero line on value axis.
|
|
362
|
+
*
|
|
363
|
+
* @default false
|
|
364
|
+
*/
|
|
365
|
+
displayZeroLine?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* Represents an option to show `integer-only` values for a value axis
|
|
368
|
+
*
|
|
369
|
+
* @default false
|
|
370
|
+
*/
|
|
371
|
+
integerOnlyValues?: boolean;
|
|
372
|
+
/**
|
|
373
|
+
* Specifies whether cursor tooltip should be displayed.
|
|
374
|
+
*
|
|
375
|
+
* @default false
|
|
376
|
+
*/
|
|
377
|
+
displayCursorTooltip?: boolean;
|
|
378
|
+
/**
|
|
379
|
+
* Allows setting a buffer to a **value axis** to provide some space around the series.
|
|
380
|
+
*
|
|
381
|
+
* @default false
|
|
382
|
+
*/
|
|
383
|
+
buffer?: boolean;
|
|
384
|
+
/**
|
|
385
|
+
* The desired minimum distance between two adjacent axis ticks. The actual distance may fluctuate depending on the chart's size.
|
|
386
|
+
* When not provided a default value is assigned according to the axis type and axis labels behavior.
|
|
387
|
+
*
|
|
388
|
+
* **Note**: This property is not applicable to gauge charts.
|
|
389
|
+
*
|
|
390
|
+
* @minimum 1
|
|
391
|
+
*/
|
|
392
|
+
tickSpacing?: number;
|
|
393
|
+
/**
|
|
394
|
+
* Specifies the base interval on a date axis. Will be ignored on the other axis types.
|
|
395
|
+
* It will be overridden by the properties from the series `binTemporalData` when provided.
|
|
396
|
+
*/
|
|
397
|
+
dateBaseInterval?: TimeIntervalInfo;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
/** JSON representation of the gauge axis ticks. Currently only used by `WebChartGaugeAxis`. */
|
|
401
|
+
export interface WebChartGaugeAxisTick {
|
|
402
|
+
/** Represents a unique string identifier for the `GaugeAxisTick` object. For `WebChartGaugeAxisTick` object, it is `gaugeAxisTick`. */
|
|
403
|
+
type: typeof WebChartTypes.GaugeAxisTick;
|
|
404
|
+
/**
|
|
405
|
+
* Determines the visibility of the axis ticks.
|
|
406
|
+
*
|
|
407
|
+
* @default true
|
|
408
|
+
*/
|
|
409
|
+
visible?: boolean;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/** JSON representation of a gauge needle. */
|
|
413
|
+
export interface WebChartNeedle {
|
|
414
|
+
/** Represents a unique string identifier for the `ChartNeedle` object. For `WebChartNeedle` object, it is `gaugeNeedle`. */
|
|
415
|
+
type: typeof WebChartTypes.GaugeNeedle;
|
|
416
|
+
/**
|
|
417
|
+
* Hides or shows the needle.
|
|
418
|
+
*
|
|
419
|
+
* @default true
|
|
420
|
+
*/
|
|
421
|
+
visible?: boolean;
|
|
422
|
+
/** Contains styling information on how the needle should be rendered. */
|
|
423
|
+
symbol?: ISimpleFillSymbol;
|
|
424
|
+
/**
|
|
425
|
+
* Represents the needle's thickness at the bottom (chart's center) in pixels.
|
|
426
|
+
*
|
|
427
|
+
* @default 10
|
|
428
|
+
* @minimum 1
|
|
429
|
+
*/
|
|
430
|
+
startWidth?: number | null;
|
|
431
|
+
/**
|
|
432
|
+
* Represents the needle's thickness at the top in pixels.
|
|
433
|
+
*
|
|
434
|
+
* @default 1
|
|
435
|
+
* @minimum 1
|
|
436
|
+
*/
|
|
437
|
+
endWidth?: number | null;
|
|
438
|
+
/**
|
|
439
|
+
* Represents the size of the hole in the middle of the chart. Can be visualized when guides are displayed.
|
|
440
|
+
*
|
|
441
|
+
* @default 25
|
|
442
|
+
* @minimum 0
|
|
443
|
+
* @maximum 100
|
|
444
|
+
*/
|
|
445
|
+
innerRadius?: number | null;
|
|
446
|
+
/**
|
|
447
|
+
* Hides or shows the needle's pin (centroid circle).
|
|
448
|
+
*
|
|
449
|
+
* @default false
|
|
450
|
+
*/
|
|
451
|
+
displayPin?: boolean;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
/** JSON representation of the gauge chart's axis object. Inherits from the `WebChartAxis` properties. */
|
|
455
|
+
export interface WebChartGaugeAxis extends WebChartAxis {
|
|
456
|
+
/** Specifies how the axis' inner label needs to be displayed. */
|
|
457
|
+
innerLabel?: WebChartText;
|
|
458
|
+
/** Specifies how the axis' needle needs to be displayed. */
|
|
459
|
+
needle?: WebChartNeedle;
|
|
460
|
+
/** Specifies how the axis' ticks need to be displayed. */
|
|
461
|
+
ticks?: WebChartGaugeAxisTick;
|
|
462
|
+
/**
|
|
463
|
+
* If a label has a value being a multiple of that property, it will be displayed. Otherwise it will be hidden.
|
|
464
|
+
*
|
|
465
|
+
* If the property is `undefined` or `0`, the chart will be displayed with 6 axis labels distributed evenly along the axis min and max.
|
|
466
|
+
*
|
|
467
|
+
* If the property has a value that results in more than a set limit of axis labels (`25` as defined in `ChartDefaults.gauge.maximumNumberOfLabelIntervals`)
|
|
468
|
+
* this property value will be ignored and the chart will be displayed with only axis min/max with 4 ticks in between.
|
|
469
|
+
*
|
|
470
|
+
* @default undefined
|
|
471
|
+
* @min 0
|
|
472
|
+
*/
|
|
473
|
+
labelsIncrement?: number;
|
|
474
|
+
/**
|
|
475
|
+
* Specifies if only the first and last labels need to be displayed. If set to `true` all the other labels will be hidden.
|
|
476
|
+
* Their visibility still depends on the axis labels visibility (`WebChartAxis.labels.visible`).
|
|
477
|
+
*
|
|
478
|
+
* @default false
|
|
479
|
+
*/
|
|
480
|
+
onlyShowFirstAndLastLabels?: boolean;
|
|
481
|
+
/** Defines how to convert the axis minimum. */
|
|
482
|
+
minimumValueConversion?: ValueConversion;
|
|
483
|
+
/** Defines how to convert the axis maximum. */
|
|
484
|
+
maximumValueConversion?: ValueConversion;
|
|
485
|
+
/**
|
|
486
|
+
* With a gauge by feature:
|
|
487
|
+
* - `minimumFromField` is expected to be a field name. The value from that field for the given feature is mapped to the axis minimum value.
|
|
488
|
+
*
|
|
489
|
+
* With a statistic gauge:
|
|
490
|
+
* - If `minimumFromField` is set to a field name (string), the minimum from that field is mapped to the axis minimum value.
|
|
491
|
+
* - If it is set to an `IStatisticDefinition` the statistic (min, max, avg...) from the given field is mapped to the axis minimum value.
|
|
492
|
+
*
|
|
493
|
+
* When `minimumFromField` is not provided or when it leads to an invalid value, the `minimum` value from the axis config, if provided, or the default value of 0, in that order, will be used.
|
|
494
|
+
*/
|
|
495
|
+
minimumFromField?: IStatisticDefinition | string;
|
|
496
|
+
/**
|
|
497
|
+
* With a gauge by feature:
|
|
498
|
+
* - `maximumFromField` is expected to be a field name. The value from that field for the given feature is mapped to the axis maximum value.
|
|
499
|
+
*
|
|
500
|
+
* With a statistic gauge:
|
|
501
|
+
* - If `maximumFromField` is set to a field name (string), the maximum from that field is mapped to the axis maximum value.
|
|
502
|
+
* - If it is set to an `IStatisticDefinition` the statistic (min, max, avg...) from the given field is mapped to the axis maximum value.
|
|
503
|
+
*
|
|
504
|
+
* When `maximumFromField` is not provided or when it leads to an invalid value, the `maximum` value from the axis config, if provided, or the default value of 0, in that order, will be used.
|
|
505
|
+
*/
|
|
506
|
+
maximumFromField?: IStatisticDefinition | string;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/** JSON representation of the radar chart's axis object. */
|
|
510
|
+
export interface WebChartRadarChartAxis extends WebChartAxis {
|
|
511
|
+
/**
|
|
512
|
+
* Defines the labels orientation.
|
|
513
|
+
*
|
|
514
|
+
* @default WebChartRadarChartAxisLabelsOrientation.Circular
|
|
515
|
+
*/
|
|
516
|
+
labelsOrientation?: WebChartRadarChartAxisLabelsOrientation;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
/** Chart's query object. */
|
|
520
|
+
export interface WebChartQuery {
|
|
521
|
+
/** Attribute fields to include in the `FeatureSet`. Will have an effect on chart with no aggregation. */
|
|
522
|
+
outFields?: string[];
|
|
523
|
+
/** Acts as a filter on the base data for attribute-based filtering, expect for bar/line charts for which is is used to handle the split-by field values. */
|
|
524
|
+
where?: string;
|
|
525
|
+
/**
|
|
526
|
+
* An array of fields which determine how the base data is grouped. Only one **groupBy** field is supported,
|
|
527
|
+
*
|
|
528
|
+
* @maxItems 1
|
|
529
|
+
*/
|
|
530
|
+
groupByFieldsForStatistics?: string[];
|
|
531
|
+
/** Represents an array of statistics definitions which dictate how a particular field should be aggregated. */
|
|
532
|
+
outStatistics?: IStatisticDefinition[];
|
|
533
|
+
/**
|
|
534
|
+
* Represents the sorting order of the output result.
|
|
535
|
+
*
|
|
536
|
+
* It's recommended to use the `orderByFields` property of the chart's `orderOptions` object instead of this one.
|
|
537
|
+
* If both are used, the `orderByFields` property of the chart's `orderOptions` object will take precedence.
|
|
538
|
+
*
|
|
539
|
+
* The format of any entry in this array is `field_name sorting_order`. When `sorting_order` is not defined, it is assumed to be ascending.
|
|
540
|
+
*
|
|
541
|
+
* @example
|
|
542
|
+
* ```
|
|
543
|
+
* ["STATE_NAME DESC", "CITY_NAME ASC", "CITY_NAME"]
|
|
544
|
+
* ```
|
|
545
|
+
*/
|
|
546
|
+
orderByFields?: string[];
|
|
547
|
+
/** Specifies the geodatabase version to display for feature service queries. */
|
|
548
|
+
gdbVersion?: string;
|
|
549
|
+
/** The geometry to apply to the spatial filter. A buffer can be applied to it by setting the properties `distance` and `units`. */
|
|
550
|
+
geometry?:
|
|
551
|
+
| IEnvelope
|
|
552
|
+
| IExtent
|
|
553
|
+
| IPoint
|
|
554
|
+
| IPolygon
|
|
555
|
+
| IPolygonWithCurves
|
|
556
|
+
| IPolyline;
|
|
557
|
+
/** For spatial filters, this parameter defines the spatial relationship to filter features in the layer view against the filter geometry. */
|
|
558
|
+
spatialRelationship?:
|
|
559
|
+
| "contains"
|
|
560
|
+
| "crosses"
|
|
561
|
+
| "disjoint"
|
|
562
|
+
| "envelope-intersects"
|
|
563
|
+
| "index-intersects"
|
|
564
|
+
| "intersects"
|
|
565
|
+
| "overlaps"
|
|
566
|
+
| "relation"
|
|
567
|
+
| "touches"
|
|
568
|
+
| "within";
|
|
569
|
+
/** Specifies a search distance for the `geometry`. To be associated with the `units` property. For compatible layers only. */
|
|
570
|
+
distance?: number;
|
|
571
|
+
/**
|
|
572
|
+
* The unit for calculating the buffer distance when `distance` and `geometry` are provided.
|
|
573
|
+
* If not specified, the unit is derived from the geometry spatial reference.
|
|
574
|
+
*/
|
|
575
|
+
units?: RESTUnits;
|
|
576
|
+
/** A time extent `[timestamp, timestamp]` for a temporal query against time-aware layers. */
|
|
577
|
+
timeExtent?: [number, number];
|
|
578
|
+
/** The zero-based index indicating where to begin retrieving features. */
|
|
579
|
+
start?: number;
|
|
580
|
+
/** The number of features to retrieve. */
|
|
581
|
+
num?: number;
|
|
582
|
+
/**
|
|
583
|
+
* If true then the query returns distinct values based on the field(s) specified in outFields. Available for count-based aggregations only.
|
|
584
|
+
*
|
|
585
|
+
* @default false
|
|
586
|
+
*/
|
|
587
|
+
returnDistinctValues?: boolean;
|
|
588
|
+
/**
|
|
589
|
+
* Indicates whether to fetch null values for them to be counted or displayed as categories on the chart.
|
|
590
|
+
*
|
|
591
|
+
* @default false
|
|
592
|
+
*/
|
|
593
|
+
fetchNullValues?: boolean;
|
|
594
|
+
/** An array of objectIds or uniqueIds of the features to be filtered. */
|
|
595
|
+
objectIds?: (number | string)[];
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Subset of the `WebChartQuery`, used at the series level.
|
|
600
|
+
*
|
|
601
|
+
* **Note**: The former `orderByFields` property is replaced by the `orderOptions` property of `WebChart`.
|
|
602
|
+
*/
|
|
603
|
+
export type WebChartSeriesQuery = Omit<
|
|
604
|
+
WebChartQuery,
|
|
605
|
+
| "distance"
|
|
606
|
+
| "gdbVersion"
|
|
607
|
+
| "geometry"
|
|
608
|
+
| "num"
|
|
609
|
+
| "objectIds"
|
|
610
|
+
| "orderByFields"
|
|
611
|
+
| "spatialRelationship"
|
|
612
|
+
| "start"
|
|
613
|
+
| "timeExtent"
|
|
614
|
+
| "units"
|
|
615
|
+
>;
|
|
616
|
+
|
|
617
|
+
/** JSON representation of filters applied to the data. */
|
|
618
|
+
export type WebChartDataFilters = Pick<
|
|
619
|
+
WebChartQuery,
|
|
620
|
+
| "distance"
|
|
621
|
+
| "gdbVersion"
|
|
622
|
+
| "geometry"
|
|
623
|
+
| "objectIds"
|
|
624
|
+
| "spatialRelationship"
|
|
625
|
+
| "timeExtent"
|
|
626
|
+
| "units"
|
|
627
|
+
| "where"
|
|
628
|
+
>;
|
|
629
|
+
|
|
630
|
+
/** JSON representation of the chart's series object. All other series extends this interface. */
|
|
631
|
+
export interface WebChartSeries {
|
|
632
|
+
type: string;
|
|
633
|
+
/** A unique string used to differentiate the series on a chart. */
|
|
634
|
+
id: string;
|
|
635
|
+
/**
|
|
636
|
+
* Hides or shows the series. If the series is has **visible** set to `false`, the corresponding legend is grayed out in the legend box.
|
|
637
|
+
*
|
|
638
|
+
* @default true
|
|
639
|
+
*/
|
|
640
|
+
visible?: boolean;
|
|
641
|
+
/**
|
|
642
|
+
* Hides or shows data tooltips.
|
|
643
|
+
* **Note**: Not applicable to gauge.
|
|
644
|
+
*
|
|
645
|
+
* @default true
|
|
646
|
+
*/
|
|
647
|
+
dataTooltipVisible?: boolean;
|
|
648
|
+
/**
|
|
649
|
+
* Indicates whether to apply the hovered element's color to the background (`false`) or the outline (`true`).
|
|
650
|
+
* **Note**: Not applicable to gauge.
|
|
651
|
+
*
|
|
652
|
+
* @default false
|
|
653
|
+
*/
|
|
654
|
+
dataTooltipReverseColor?: boolean;
|
|
655
|
+
/** Defines how to render numeric values in tooltips. */
|
|
656
|
+
dataTooltipValueFormat?: NumberFormatOptions;
|
|
657
|
+
/**
|
|
658
|
+
* Defines how to render percent values in tooltips.
|
|
659
|
+
* Used for stacked 100% bar and line charts, as well as pie charts.
|
|
660
|
+
*/
|
|
661
|
+
dataTooltipPercentFormat?: NumberFormatOptions;
|
|
662
|
+
/**
|
|
663
|
+
* Defines how to render dates in tooltips.
|
|
664
|
+
* Used for bar and line charts using a date x-axis with no time binning.
|
|
665
|
+
*/
|
|
666
|
+
dataTooltipDateFormat?: DateTimeFormatOptions;
|
|
667
|
+
/** Specifies the name of the series. It would be reflected in the chart's legend. */
|
|
668
|
+
name: string;
|
|
669
|
+
/** Specifies a query object associated with a particular series containing information on what data to fetch for that series. */
|
|
670
|
+
query?: WebChartSeriesQuery;
|
|
671
|
+
/**
|
|
672
|
+
* Specifies which field represents the x-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) is needed.
|
|
673
|
+
*
|
|
674
|
+
* @minLength 1
|
|
675
|
+
*/
|
|
676
|
+
x: string;
|
|
677
|
+
/** Specifies how the data labels should be rendered. */
|
|
678
|
+
dataLabels?: WebChartText;
|
|
679
|
+
/**
|
|
680
|
+
* Specifies whether the series should be assigned to the second value axis, when the `axes` property defines it.
|
|
681
|
+
* Supported by bar and line series.
|
|
682
|
+
*
|
|
683
|
+
* @default false
|
|
684
|
+
*/
|
|
685
|
+
assignToSecondValueAxis?: boolean;
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
export interface WebChartCalendarDatePartsBinning
|
|
689
|
+
extends WebChartTemporalBinningBase {
|
|
690
|
+
/** Represents a unique string identifier for the `CalendarDatePartsBinning` object. `For CalendarDatePartsBinning` object, it is `calendarDateParts`. */
|
|
691
|
+
type: typeof WebChartTypes.CalendarDateParts;
|
|
692
|
+
/** Represents the unit to use to bin the data. */
|
|
693
|
+
unit: WebChartCalendarDatePartsUnits;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/** Describes the properties available for a temporal binning for bar charts and line charts. */
|
|
697
|
+
export interface WebChartTemporalBinning
|
|
698
|
+
extends WebChartTemporalBinningBase,
|
|
699
|
+
WebChartTemporalBinningExtras {
|
|
700
|
+
/**
|
|
701
|
+
* The unit of time to use to bin the temporal data.
|
|
702
|
+
*
|
|
703
|
+
* Current limitation: the "quarters" unit is only supported if the provided layer supports the `queryBins` operation.
|
|
704
|
+
*/
|
|
705
|
+
unit?: WebChartTemporalBinningUnits;
|
|
706
|
+
/** The span of time that will be binned or aggregated together. Works in coordination with `unit`. */
|
|
707
|
+
size?: number;
|
|
708
|
+
/**
|
|
709
|
+
* The time interval alignment type. Valid options include `equalIntervalsFromStartTime` and `equalIntervalsFromEndTime`.
|
|
710
|
+
*
|
|
711
|
+
* When specific the binning will start at the first or last date of the dataset.
|
|
712
|
+
*
|
|
713
|
+
* @default "equalIntervalsFromStartTime"
|
|
714
|
+
*/
|
|
715
|
+
timeAggregationType?: WebChartTimeAggregationTypes;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
/** Describes the properties related to a temporal series. */
|
|
719
|
+
export interface WebChartTemporalSeries {
|
|
720
|
+
/**
|
|
721
|
+
* Whether to use the time properties to bin the temporal data.
|
|
722
|
+
*
|
|
723
|
+
* `false` - the `binCount` and `unit` properties can be used to set the date axis base interval.
|
|
724
|
+
*
|
|
725
|
+
* @default true
|
|
726
|
+
*/
|
|
727
|
+
binTemporalData?: boolean;
|
|
728
|
+
/** Describes how to bin the temporal data. */
|
|
729
|
+
temporalBinning?: WebChartTemporalBinning;
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
/** Bar chart shows the categorical distribution of `String` or `DateTime` data. */
|
|
733
|
+
export interface WebChartBarChartSeries
|
|
734
|
+
extends WebChartSeries,
|
|
735
|
+
WebChartTemporalSeries {
|
|
736
|
+
/** Represents a unique string identifier for the `BarChartSeries` object. For `BarSeries` object, it is `barSeries`. */
|
|
737
|
+
type: typeof WebChartTypes.BarSeries;
|
|
738
|
+
/**
|
|
739
|
+
* Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.
|
|
740
|
+
*
|
|
741
|
+
* @minLength 1
|
|
742
|
+
*/
|
|
743
|
+
y: string;
|
|
744
|
+
/** Contains styling information on how the columns/bars should be rendered. */
|
|
745
|
+
fillSymbol?: ISimpleFillSymbol;
|
|
746
|
+
/**
|
|
747
|
+
* `true` or `undefined` - the labels displayed within a small stacked column are hidden to avoid cluttering.
|
|
748
|
+
* `false` - all the data labels are displayed.
|
|
749
|
+
*
|
|
750
|
+
* @default true
|
|
751
|
+
*/
|
|
752
|
+
hideOversizedStackedLabels?: boolean;
|
|
753
|
+
/**
|
|
754
|
+
* When `true`, the labels displayed within a small column for sideBySide bar series are hidden to avoid cluttering.
|
|
755
|
+
* When `false` or `undefined` (default), all the data labels are displayed.
|
|
756
|
+
*
|
|
757
|
+
* @default false
|
|
758
|
+
*/
|
|
759
|
+
hideOversizedSideBySideLabels?: boolean;
|
|
760
|
+
/**
|
|
761
|
+
* Specifies how to display the category with null value.
|
|
762
|
+
* Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color.
|
|
763
|
+
*/
|
|
764
|
+
nullCategory?: WebChartNullCategory;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
/** Object containing histogram overlays. */
|
|
768
|
+
export interface HistogramOverlays {
|
|
769
|
+
/** Represents a unique string identifier for the `HistogramOverlays` object. For `HistogramOverlays` object, it is `chartOverlays`. */
|
|
770
|
+
type: typeof WebChartTypes.Overlays;
|
|
771
|
+
/**
|
|
772
|
+
* Specifies the mean overlay for histogram.
|
|
773
|
+
*
|
|
774
|
+
* If not provided, the mean overlay is not displayed.
|
|
775
|
+
*/
|
|
776
|
+
mean?: WebChartOverlay;
|
|
777
|
+
/**
|
|
778
|
+
* Specifies the median overlay for histogram.
|
|
779
|
+
*
|
|
780
|
+
* If not provided, the median overlay is not displayed.
|
|
781
|
+
*/
|
|
782
|
+
median?: WebChartOverlay;
|
|
783
|
+
/**
|
|
784
|
+
* Specifies the standard deviation overlay for histogram.
|
|
785
|
+
*
|
|
786
|
+
* If not provided, the standard deviation overlay is not displayed.
|
|
787
|
+
*/
|
|
788
|
+
standardDeviation?: WebChartOverlay;
|
|
789
|
+
/**
|
|
790
|
+
* Specifies the comparison distribution overlay for histogram.
|
|
791
|
+
*
|
|
792
|
+
* If not provided, the comparison distribution overlay is not displayed.
|
|
793
|
+
*/
|
|
794
|
+
comparisonDistribution?: WebChartOverlay;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/** Histogram shows the frequency distribution of a numerical field. */
|
|
798
|
+
export interface WebChartHistogramSeries extends WebChartSeries {
|
|
799
|
+
/** Represents a unique string identifier for the `HistogramSeries` object. For `HistogramSeries` object, it is `histogramSeries`. */
|
|
800
|
+
type: typeof WebChartTypes.HistogramSeries;
|
|
801
|
+
/**
|
|
802
|
+
* Bin count must be a positive integer.
|
|
803
|
+
*
|
|
804
|
+
* @default 32
|
|
805
|
+
* @minimum 1
|
|
806
|
+
* @multipleOf 1
|
|
807
|
+
*/
|
|
808
|
+
binCount?: number | null;
|
|
809
|
+
/**
|
|
810
|
+
* Specifies the chart overlays. Histogram supports 4 overlays: **mean**, **median**, **standardDeviation** and **comparisonDistribution**.
|
|
811
|
+
* The overlays won't show if the property is not defined.
|
|
812
|
+
*/
|
|
813
|
+
overlays?: HistogramOverlays;
|
|
814
|
+
/** Specifies how the data should be transformed (e.g. square root, log, etc.) before binning. */
|
|
815
|
+
dataTransformationType?: WebChartDataTransformations;
|
|
816
|
+
/** Contains styling information on how the columns should be rendered. */
|
|
817
|
+
fillSymbol?: ISimpleFillSymbol;
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/** Object containing scatterplot overlays. */
|
|
821
|
+
export interface ScatterplotOverlays {
|
|
822
|
+
/** Represents a unique string identifier for the `ScatterplotOverlays` object. For the `ScatterplotOverlays` object, it is `chartOverlays`. */
|
|
823
|
+
type: typeof WebChartTypes.Overlays;
|
|
824
|
+
/**
|
|
825
|
+
* Specifies the trend line overlay for scatterplot.
|
|
826
|
+
*
|
|
827
|
+
* The trend line won't show if the property is not defined.
|
|
828
|
+
*/
|
|
829
|
+
trendLine?: WebChartOverlay;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
export interface SizePolicy {
|
|
833
|
+
/** Represents a unique string identifier for the `sizePolicy` object. For the `sizePolicy` object, it is `sizeScale`. */
|
|
834
|
+
type: typeof WebChartTypes.SizePolicy;
|
|
835
|
+
/**
|
|
836
|
+
* The type of scale to apply to the markers (`logarithmic` or `linear`).
|
|
837
|
+
*
|
|
838
|
+
* @default SizePolicyScaleTypes.Linear
|
|
839
|
+
*/
|
|
840
|
+
scaleType?: SizePolicyScaleTypes;
|
|
841
|
+
/** The field which determines the markers size. */
|
|
842
|
+
field: string;
|
|
843
|
+
/**
|
|
844
|
+
* The minimum marker size.
|
|
845
|
+
*
|
|
846
|
+
* @default 5
|
|
847
|
+
* @min 1
|
|
848
|
+
* @multipleOf 1
|
|
849
|
+
*/
|
|
850
|
+
minSize?: number;
|
|
851
|
+
/**
|
|
852
|
+
* The maximum marker size.
|
|
853
|
+
*
|
|
854
|
+
* @default 30
|
|
855
|
+
* @min 1
|
|
856
|
+
* @multipleOf 1
|
|
857
|
+
*/
|
|
858
|
+
maxSize?: number;
|
|
859
|
+
}
|
|
860
|
+
|
|
861
|
+
/** Scatterplot shows the relationship between two numerical fields. */
|
|
862
|
+
export interface WebChartScatterplotSeries extends WebChartSeries {
|
|
863
|
+
/** Represents a unique string identifier for the `ScatterSeries` object. For the `ScatterSeries` object, it is `scatterSeries`. */
|
|
864
|
+
type: typeof WebChartTypes.ScatterSeries;
|
|
865
|
+
/**
|
|
866
|
+
* Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.
|
|
867
|
+
*
|
|
868
|
+
* @minLength 1
|
|
869
|
+
*/
|
|
870
|
+
y: string;
|
|
871
|
+
/** Specifies how each data point in the scatterplot should be rendered. */
|
|
872
|
+
markerSymbol?: ISimpleMarkerSymbol;
|
|
873
|
+
/**
|
|
874
|
+
* Specifies all the chart overlays. The scatterplot implements only 1 overlay, **trendLine**.
|
|
875
|
+
* The overlays won't show if the property is not defined.
|
|
876
|
+
*/
|
|
877
|
+
overlays?: ScatterplotOverlays;
|
|
878
|
+
/** Specifies rules to use the scatterplot as bubble plot, by changing dynamically the markers size according to a specific field value. */
|
|
879
|
+
sizePolicy?: SizePolicy;
|
|
880
|
+
/** Specifies the additional numeric fields in the tooltip. */
|
|
881
|
+
additionalTooltipFields?: string[];
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/** JSON representation of the pie ticks. */
|
|
885
|
+
export interface WebChartPieChartTick {
|
|
886
|
+
/** Represents a unique string identifier for the `WebChartPieChartTick` object. For the `WebChartPieChartTick` object, it is `pieTick`. */
|
|
887
|
+
type: typeof WebChartTypes.PieTick;
|
|
888
|
+
/**
|
|
889
|
+
* Determines the visibility of the tick.
|
|
890
|
+
*
|
|
891
|
+
* Assigning the `true` value will only be considered when the data labels are visible (`series.dataLabels.visible`) and
|
|
892
|
+
* when the data label associated to the tick is outside of the chart (`series.dataLabelsOffset` > 0).
|
|
893
|
+
*/
|
|
894
|
+
visible?: boolean;
|
|
895
|
+
/** Contains styling information on how the pie chart ticks should be rendered. */
|
|
896
|
+
lineSymbol?: ISimpleLineSymbol;
|
|
897
|
+
}
|
|
898
|
+
|
|
899
|
+
/** JSON representation of the pie slices */
|
|
900
|
+
export interface WebChartPieChartSlice {
|
|
901
|
+
/** A unique string used identify the slice of a pie chart. */
|
|
902
|
+
readonly sliceId: string;
|
|
903
|
+
/** The slice's original label. */
|
|
904
|
+
readonly originalLabel?: Date | number | string | null;
|
|
905
|
+
/**
|
|
906
|
+
* Custom label for the slice.
|
|
907
|
+
*
|
|
908
|
+
* For grouped slice, the default value is `Other`.
|
|
909
|
+
* For regular slice, it will be either the category or field name.
|
|
910
|
+
*/
|
|
911
|
+
label?: string;
|
|
912
|
+
/** Contains styling information on how the slice should be rendered. If not provided, the slice will be styled with default values. */
|
|
913
|
+
fillSymbol?: ISimpleFillSymbol;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/** JSON representation of the pie grouped slice. */
|
|
917
|
+
export interface WebChartPieChartGroupSlice extends WebChartPieChartSlice {
|
|
918
|
+
/**
|
|
919
|
+
* Slices that have a percent value equal or lesser to this threshold are grouped into a unique slice.
|
|
920
|
+
*
|
|
921
|
+
* @min 0
|
|
922
|
+
* @max 100
|
|
923
|
+
*/
|
|
924
|
+
percentageThreshold: number;
|
|
925
|
+
/**
|
|
926
|
+
* Specifies how the grouped slice data labels should be rendered.
|
|
927
|
+
*
|
|
928
|
+
* If the property is not set the `series.dataLabels` will be used instead.
|
|
929
|
+
*/
|
|
930
|
+
dataLabels?: WebChartText;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
/** JSON representation of the pie chart series */
|
|
934
|
+
export interface WebChartPieChartSeries extends WebChartSeries {
|
|
935
|
+
/** Represents a unique string identifier for the `WebChartPieChartSeries` object. For the `WebChartPieChartSeries` object, it is `pieSeries`. */
|
|
936
|
+
type: typeof WebChartTypes.PieSeries;
|
|
937
|
+
/**
|
|
938
|
+
* Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.
|
|
939
|
+
*
|
|
940
|
+
* @minLength 1
|
|
941
|
+
*/
|
|
942
|
+
y: string;
|
|
943
|
+
/**
|
|
944
|
+
* Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.
|
|
945
|
+
*
|
|
946
|
+
* @default 50
|
|
947
|
+
* @minimum 0
|
|
948
|
+
* @maximum 100
|
|
949
|
+
*/
|
|
950
|
+
innerRadius?: number | null;
|
|
951
|
+
/** @default -90 */
|
|
952
|
+
startAngle?: number | null;
|
|
953
|
+
/** @default 270 */
|
|
954
|
+
endAngle?: number | null;
|
|
955
|
+
/** Contains styling information on how the slices should be rendered. */
|
|
956
|
+
fillSymbol?: ISimpleFillSymbol;
|
|
957
|
+
/**
|
|
958
|
+
* Indicates whether the category associated to a slice is to be displayed on its data label.
|
|
959
|
+
* This property will be ignored if the chart options `dataLabelFormatter` is provided.
|
|
960
|
+
*
|
|
961
|
+
* @default true
|
|
962
|
+
*/
|
|
963
|
+
displayCategoryOnDataLabel?: boolean;
|
|
964
|
+
/**
|
|
965
|
+
* Indicates whether the numeric value associated to a slice is to be displayed on its data label.
|
|
966
|
+
*
|
|
967
|
+
* If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`.
|
|
968
|
+
*
|
|
969
|
+
* This property will be ignored if the chart options `dataLabelFormatter` is provided.
|
|
970
|
+
*
|
|
971
|
+
* @default true
|
|
972
|
+
*/
|
|
973
|
+
displayNumericValueOnDataLabel?: boolean;
|
|
974
|
+
/**
|
|
975
|
+
* Indicates whether the percentage associated to a slice is to be displayed on its data label.
|
|
976
|
+
*
|
|
977
|
+
* If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`
|
|
978
|
+
*
|
|
979
|
+
* This property will be ignored if the chart options `dataLabelFormatter` is provided.
|
|
980
|
+
*
|
|
981
|
+
* @default false
|
|
982
|
+
*/
|
|
983
|
+
displayPercentageOnDataLabel?: boolean;
|
|
984
|
+
/**
|
|
985
|
+
* Indicates whether the category associated to a slice is to be displayed on its tooltip.
|
|
986
|
+
*
|
|
987
|
+
* This property will be ignored if the chart options `tooltipFormatter` is provided.
|
|
988
|
+
*
|
|
989
|
+
* @default true
|
|
990
|
+
*/
|
|
991
|
+
displayCategoryOnTooltip?: boolean;
|
|
992
|
+
/**
|
|
993
|
+
* Indicates whether the numeric value associated to a slice is to be displayed on its tooltip.
|
|
994
|
+
*
|
|
995
|
+
* If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`
|
|
996
|
+
*
|
|
997
|
+
* This property will be ignored if the chart options `tooltipFormatter` is provided.
|
|
998
|
+
*
|
|
999
|
+
* @default true
|
|
1000
|
+
*/
|
|
1001
|
+
displayNumericValueOnTooltip?: boolean;
|
|
1002
|
+
/**
|
|
1003
|
+
* Indicates whether the percentage associated to a slice is to be displayed on its tooltip.
|
|
1004
|
+
*
|
|
1005
|
+
* If both displayNumericValue & displayPercentage are true on a same label, they will be displayed as `percentage (value)`
|
|
1006
|
+
*
|
|
1007
|
+
* This property will be ignored if the chart options `tooltipFormatter` is provided.
|
|
1008
|
+
*
|
|
1009
|
+
* @default true
|
|
1010
|
+
*/
|
|
1011
|
+
displayPercentageOnTooltip?: boolean;
|
|
1012
|
+
/**
|
|
1013
|
+
* Specifies how the numerical values should be formatted (applied to label, tooltip and legend).
|
|
1014
|
+
*
|
|
1015
|
+
* Can be overridden for the tooltips by `series.dataTooltipValueFormat`.
|
|
1016
|
+
*/
|
|
1017
|
+
numericValueFormat?: NumberFormatOptions;
|
|
1018
|
+
/**
|
|
1019
|
+
* Specifies how the percent values should be formatted (applied to label, tooltip and legend).
|
|
1020
|
+
*
|
|
1021
|
+
* Can be overridden for the tooltips by `series.dataTooltipPercentFormat`.
|
|
1022
|
+
*/
|
|
1023
|
+
percentValueFormat?: NumberFormatOptions;
|
|
1024
|
+
/** Adds a prefix to all the values displayed on the pie chart: data labels, tooltips and legend. */
|
|
1025
|
+
valuePrefix?: string;
|
|
1026
|
+
/** Adds a suffix to all the values displayed on the pie chart: data labels, tooltips and legend. */
|
|
1027
|
+
valueSuffix?: string;
|
|
1028
|
+
/** Adds a prefix to all the percentages displayed on the pie chart: data labels, tooltips and legend. */
|
|
1029
|
+
percentagePrefix?: string;
|
|
1030
|
+
/** Adds a suffix to all the percentages displayed on the pie chart: data labels, tooltips and legend. */
|
|
1031
|
+
percentageSuffix?: string;
|
|
1032
|
+
/**
|
|
1033
|
+
* If set, the category on the data label is truncated to display only `characterLimit` characters, and an ellipsis ("...") is added to the end of the label.
|
|
1034
|
+
*
|
|
1035
|
+
* Does not affect the value or percentage displayed in labels. Not applicable to tooltips or legend labels.
|
|
1036
|
+
*
|
|
1037
|
+
* @default undefined
|
|
1038
|
+
* @minimum 1
|
|
1039
|
+
* @multipleOf 1
|
|
1040
|
+
*/
|
|
1041
|
+
dataLabelsCharacterLimit?: number | null;
|
|
1042
|
+
/**
|
|
1043
|
+
* Specifies how to render the ticks shown on each slide.
|
|
1044
|
+
* Ticks will be displayed with default values if not provided.
|
|
1045
|
+
*/
|
|
1046
|
+
ticks?: WebChartPieChartTick;
|
|
1047
|
+
/**
|
|
1048
|
+
* Whether to place the data labels inside the pie slices.
|
|
1049
|
+
*
|
|
1050
|
+
* When set to `true` the following properties will be ignored:
|
|
1051
|
+
* - `dataLabelsOffset`
|
|
1052
|
+
* - `alignDataLabels`
|
|
1053
|
+
* - `optimizeDataLabelsOverlapping`
|
|
1054
|
+
*
|
|
1055
|
+
* @default false
|
|
1056
|
+
*/
|
|
1057
|
+
dataLabelsInside?: boolean;
|
|
1058
|
+
/**
|
|
1059
|
+
* Determines in pixel how far the data labels should be placed from their slice.
|
|
1060
|
+
* If a negative value is provided the label will be placed inside of the chart.
|
|
1061
|
+
*
|
|
1062
|
+
* Ignored when `dataLabelsInside` is set to `true`.
|
|
1063
|
+
*
|
|
1064
|
+
* @default 10
|
|
1065
|
+
*/
|
|
1066
|
+
dataLabelsOffset?: number;
|
|
1067
|
+
/**
|
|
1068
|
+
* Aligns labels into columns to make them more readable and avoid them to overlap each other.
|
|
1069
|
+
*
|
|
1070
|
+
* Ignored when `dataLabelsInside` is set to `true`.
|
|
1071
|
+
*
|
|
1072
|
+
* @default false
|
|
1073
|
+
*/
|
|
1074
|
+
alignDataLabels?: boolean;
|
|
1075
|
+
/**
|
|
1076
|
+
* Optimizes the data labels rendering to avoid them to be cut off on the edges or to overlap the legend by wrapping them and adding padding to the chart.
|
|
1077
|
+
*
|
|
1078
|
+
* Ignored when `dataLabelsInside` is set to `true`.
|
|
1079
|
+
*
|
|
1080
|
+
* @default false
|
|
1081
|
+
*/
|
|
1082
|
+
optimizeDataLabelsOverlapping?: boolean;
|
|
1083
|
+
/** Specifies if and how the slices under a given percentage threshold are grouped into a unique slice. */
|
|
1084
|
+
sliceGrouping?: WebChartPieChartGroupSlice;
|
|
1085
|
+
/**
|
|
1086
|
+
* An array of `WebChartPieChartSlice` representing the ids, labels and styles of the pie slices.
|
|
1087
|
+
*
|
|
1088
|
+
* When this property is not defined, or when a pie slice does not have a matching slice in this array,
|
|
1089
|
+
* the series' fillSymbol will be used. If the series' fillSymbol does not contain color information, colors from the color ramps will be utilized.
|
|
1090
|
+
*/
|
|
1091
|
+
slices?: WebChartPieChartSlice[];
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
/** JSON representation of the gauge series */
|
|
1095
|
+
export interface WebChartGaugeSeries extends WebChartSeries {
|
|
1096
|
+
/** Represents a unique string identifier for the `WebChartGaugeSeries` object. For the `WebChartGaugeSeries` object, it is `gaugeSeries`. */
|
|
1097
|
+
type: typeof WebChartTypes.GaugeSeries;
|
|
1098
|
+
/** Defines the conversion to apply to the gauge value. */
|
|
1099
|
+
valueConversion?: ValueConversion;
|
|
1100
|
+
/**
|
|
1101
|
+
* Specifies the index of the feature to be rendered.
|
|
1102
|
+
*
|
|
1103
|
+
* This property will be ignored for a statistic gauge (indicated via `WebGaugeChart.subType` property).
|
|
1104
|
+
*
|
|
1105
|
+
* For feature-based gauge, if this property is not present, the first feature will be used (featureIndex = 0)
|
|
1106
|
+
*/
|
|
1107
|
+
featureIndex?: number;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
/** JSON representation of the line chart series. */
|
|
1111
|
+
export interface WebChartLineChartSeries<
|
|
1112
|
+
SeriesType extends "lineSeries" | "radarSeries" = "lineSeries"
|
|
1113
|
+
> extends WebChartSeries,
|
|
1114
|
+
WebChartTemporalSeries {
|
|
1115
|
+
/** Represents a unique string identifier for the `WebChartLineChartSeries` object. For the `WebChartLineChartSeries` object, it is `lineSeries`. */
|
|
1116
|
+
type: SeriesType;
|
|
1117
|
+
/** Specifies the numeric field(s) used by the series. */
|
|
1118
|
+
y: string[] | string;
|
|
1119
|
+
/** Contains styling information on how the line or line segments should be rendered. */
|
|
1120
|
+
lineSymbol?: ISimpleLineSymbol;
|
|
1121
|
+
/**
|
|
1122
|
+
* Specifies whether line segments should be smoothed.
|
|
1123
|
+
*
|
|
1124
|
+
* @default false
|
|
1125
|
+
*/
|
|
1126
|
+
lineSmoothed?: boolean;
|
|
1127
|
+
/**
|
|
1128
|
+
* Indicates whether line series show area.
|
|
1129
|
+
*
|
|
1130
|
+
* @default false
|
|
1131
|
+
*/
|
|
1132
|
+
showArea?: boolean;
|
|
1133
|
+
/**
|
|
1134
|
+
* Indicates whether to show or hide the markers/bullets of the line series.
|
|
1135
|
+
*
|
|
1136
|
+
* @default true
|
|
1137
|
+
*/
|
|
1138
|
+
markerVisible?: boolean;
|
|
1139
|
+
/** Contains styling information on how the marker should be rendered. */
|
|
1140
|
+
markerSymbol?: ISimpleMarkerSymbol;
|
|
1141
|
+
/**
|
|
1142
|
+
* Specifies the color of the filled area for line chart.
|
|
1143
|
+
*
|
|
1144
|
+
* `areaColor` will be applied only if `showArea` is true, and is defaulted to the line color if not provided.
|
|
1145
|
+
*/
|
|
1146
|
+
areaColor?: Color;
|
|
1147
|
+
/**
|
|
1148
|
+
* Specifies how negative values are treated in stacked series.
|
|
1149
|
+
* `true` - negative values will be stacked on the base line.
|
|
1150
|
+
* `false` - negative values will be stacked in relation to their previous values in the stack.
|
|
1151
|
+
*
|
|
1152
|
+
* @default true
|
|
1153
|
+
*/
|
|
1154
|
+
stackNegativeValuesToBaseline?: boolean;
|
|
1155
|
+
/**
|
|
1156
|
+
* Whether to connect the lines when there's a gap in the data.
|
|
1157
|
+
* Can be overridden by the temporal data setting `nullPolicy`.
|
|
1158
|
+
*
|
|
1159
|
+
* @default true
|
|
1160
|
+
*/
|
|
1161
|
+
connectLines?: boolean;
|
|
1162
|
+
/**
|
|
1163
|
+
* Specifies how to display the category with null value.
|
|
1164
|
+
*
|
|
1165
|
+
* Setting this property will ensure that the item with no data is displayed on the chart with the specified text and color.
|
|
1166
|
+
*/
|
|
1167
|
+
nullCategory?: WebChartNullCategory;
|
|
1168
|
+
}
|
|
1169
|
+
|
|
1170
|
+
/** JSON representation of the box plot series */
|
|
1171
|
+
export interface WebChartBoxPlotSeries extends WebChartSeries {
|
|
1172
|
+
type: typeof WebChartTypes.BoxPlotSeries;
|
|
1173
|
+
/**
|
|
1174
|
+
* Specifies the numeric field(s) used by the box plot series.
|
|
1175
|
+
*
|
|
1176
|
+
* @minLength 1
|
|
1177
|
+
* @minItems 1
|
|
1178
|
+
*/
|
|
1179
|
+
y: string[] | string;
|
|
1180
|
+
/** Contains styling information on how the box and whiskers should be rendered. The whiskers use the `fillSymbol.outline`. */
|
|
1181
|
+
fillSymbol?: ISimpleFillSymbol;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
/** JSON representation of the Heat chart with gradient heat rules. */
|
|
1185
|
+
export interface WebChartHeatChartGradient {
|
|
1186
|
+
/** An array of 2 colors to use for the gradient. The first color represents the minimum value, the second color represents the maximum value. */
|
|
1187
|
+
colorList?: [Color, Color];
|
|
1188
|
+
/** Specifies the custom minimum value for the heat chart. If none is provided, the minimum value from the dataset will be used. */
|
|
1189
|
+
minValue?: number;
|
|
1190
|
+
/** Specifies the custom maximum value for the heat chart. If none is provided, the maximum value from the dataset will be used. */
|
|
1191
|
+
maxValue?: number;
|
|
1192
|
+
/**
|
|
1193
|
+
* Specifies the color to use for the items outside the lower range specified by `minValue`. If none is provided,
|
|
1194
|
+
* the default color will be used.
|
|
1195
|
+
*
|
|
1196
|
+
* @default `[250, 250, 250, 255] - white`
|
|
1197
|
+
*/
|
|
1198
|
+
outsideRangeLowerColor?: Color;
|
|
1199
|
+
/**
|
|
1200
|
+
* Specifies the color to use for the items outside the upper range specified by `maxValue`. If none is provided,
|
|
1201
|
+
* the default color will be used.
|
|
1202
|
+
*
|
|
1203
|
+
* @default `[0, 0, 255, 255] - blue`
|
|
1204
|
+
*/
|
|
1205
|
+
outsideRangeUpperColor?: Color;
|
|
1206
|
+
}
|
|
1207
|
+
|
|
1208
|
+
/** JSON representation of the Heat chart with class breaks heat rules. */
|
|
1209
|
+
export interface WebChartHeatChartHeatClassBreaks {
|
|
1210
|
+
/**
|
|
1211
|
+
* The number of class breaks to be used for the heat chart.
|
|
1212
|
+
*
|
|
1213
|
+
* @default 5
|
|
1214
|
+
*/
|
|
1215
|
+
breaksCount?: number;
|
|
1216
|
+
/**
|
|
1217
|
+
* The classification method to be used for the heat chart.
|
|
1218
|
+
* `equal-interval` - divides the range of values into equal-sized intervals.
|
|
1219
|
+
* `quantile` - divides the range of values into intervals that contain an equal number of features.
|
|
1220
|
+
* `natural-breaks` - identifies natural groupings of values in the data by minimizing the variance within classes and maximizing the variance between classes.
|
|
1221
|
+
* `manual` - allows you to manually specify the class breaks.
|
|
1222
|
+
*/
|
|
1223
|
+
classificationMethod?: WebChartClassBreakTypes;
|
|
1224
|
+
}
|
|
1225
|
+
|
|
1226
|
+
/** JSON representation of the heat chart empty cell configuration. */
|
|
1227
|
+
export interface WebChartHeatChartEmptyCell {
|
|
1228
|
+
/**
|
|
1229
|
+
* Specifies the text to use by the empty cells.
|
|
1230
|
+
* If none is provided, the default `null` text will be used.
|
|
1231
|
+
*
|
|
1232
|
+
* @default `null`
|
|
1233
|
+
*/
|
|
1234
|
+
text?: string;
|
|
1235
|
+
/**
|
|
1236
|
+
* Specifies the symbol to use by the empty cells.
|
|
1237
|
+
* If none is provided, the default symbol will be used.
|
|
1238
|
+
*/
|
|
1239
|
+
symbol?: ISimpleFillSymbol;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
/** JSON representation of the heat chart series. */
|
|
1243
|
+
export interface WebChartHeatChartSeries extends WebChartSeries {
|
|
1244
|
+
type: typeof WebChartTypes.HeatSeries;
|
|
1245
|
+
/**
|
|
1246
|
+
* Specifies which field represents the y-coordinates of this series. Empty string or one with just white spaces is not allowed. At least 1 or more word characters (a-z, A-Z, _) are needed.
|
|
1247
|
+
*
|
|
1248
|
+
* @minLength 1
|
|
1249
|
+
*/
|
|
1250
|
+
y: string;
|
|
1251
|
+
/** Describes how to bin the temporal data when the x-axis field is a date. */
|
|
1252
|
+
xTemporalBinning?: WebChartCalendarDatePartsBinning;
|
|
1253
|
+
/** Describes how to bin the temporal data when the y-axis field is a date. */
|
|
1254
|
+
yTemporalBinning?: WebChartCalendarDatePartsBinning;
|
|
1255
|
+
/** Defines how the cells outline should render. */
|
|
1256
|
+
gridLine?: ISimpleLineSymbol;
|
|
1257
|
+
/**
|
|
1258
|
+
* Defines the type of rule to apply for the heat chart.
|
|
1259
|
+
*
|
|
1260
|
+
* @default WebChartHeatChartHeatRulesTypes.Gradient
|
|
1261
|
+
*/
|
|
1262
|
+
heatRulesType?: WebChartHeatChartHeatRulesTypes;
|
|
1263
|
+
/** Specifies the details of the gradient rules for the heat chart. */
|
|
1264
|
+
gradientRules?: WebChartHeatChartGradient;
|
|
1265
|
+
/** Specifies the details of the class breaks rules for the heat chart. */
|
|
1266
|
+
classBreaksRules?: WebChartHeatChartHeatClassBreaks;
|
|
1267
|
+
/** Specifies how to display the empty cells, in terms of text and symbology. */
|
|
1268
|
+
emptyCells?: WebChartHeatChartEmptyCell;
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
export type WebChartRadarChartSeries = WebChartLineChartSeries<"radarSeries">;
|
|
1272
|
+
|
|
1273
|
+
/** Type containing all the series types available */
|
|
1274
|
+
export type WebChartSeriesType =
|
|
1275
|
+
| WebChartBarChartSeries
|
|
1276
|
+
| WebChartBoxPlotSeries
|
|
1277
|
+
| WebChartGaugeSeries
|
|
1278
|
+
| WebChartHeatChartSeries
|
|
1279
|
+
| WebChartHistogramSeries
|
|
1280
|
+
| WebChartLineChartSeries
|
|
1281
|
+
| WebChartPieChartSeries
|
|
1282
|
+
| WebChartRadarChartSeries
|
|
1283
|
+
| WebChartScatterplotSeries;
|
|
1284
|
+
|
|
1285
|
+
/** JSON representation of the web chart object. */
|
|
1286
|
+
export interface WebChart {
|
|
1287
|
+
/** Version of the specification. Used to identify when a saved config was created. */
|
|
1288
|
+
version: typeof WebChartCurrentVersion;
|
|
1289
|
+
/** Represents a unique string identifier for the `WebChart` object. For the `WebChart` object, it is `chart`. */
|
|
1290
|
+
type: typeof WebChartTypes.Chart;
|
|
1291
|
+
/** Can be used to uniquely identify a chart. */
|
|
1292
|
+
id?: string;
|
|
1293
|
+
/** Property representing the layer to be used by the chart. If not provided we expect a layer object to be set on the component. */
|
|
1294
|
+
iLayer?: IFeatureLayer;
|
|
1295
|
+
/** Used to filter the chart's data while in layer mode. */
|
|
1296
|
+
dataFilters?: WebChartDataFilters;
|
|
1297
|
+
/** Specifies title of the chart. */
|
|
1298
|
+
title?: WebChartText;
|
|
1299
|
+
/** Specifies subtitle of the chart. */
|
|
1300
|
+
subtitle?: WebChartText;
|
|
1301
|
+
/** Specifies footer of the chart. */
|
|
1302
|
+
footer?: WebChartText;
|
|
1303
|
+
/**
|
|
1304
|
+
* Specifies the background color of the chart.
|
|
1305
|
+
*
|
|
1306
|
+
* @default `[255, 255, 255, 255]`
|
|
1307
|
+
*/
|
|
1308
|
+
background?: Color;
|
|
1309
|
+
/** Specifies cursor's crosshair information for the chart. Only for XY charts. */
|
|
1310
|
+
cursorCrosshair?: WebChartCursorCrosshair;
|
|
1311
|
+
/** Specifies the Legend information for the chart. */
|
|
1312
|
+
legend?: WebChartLegend | WebChartPieChartLegend;
|
|
1313
|
+
/**
|
|
1314
|
+
* Represents an array of **at least 1 or at most 3** chart axes accompanying the chart.
|
|
1315
|
+
* The third axis config is used when a series `assignToSecondValueAxis` is set to `true`.
|
|
1316
|
+
* Some of the axis features won't apply to the third axis (e.g. labels behaviors).
|
|
1317
|
+
*/
|
|
1318
|
+
axes?: [WebChartAxis, WebChartAxis?, WebChartAxis?];
|
|
1319
|
+
/**
|
|
1320
|
+
* Represents the way the labels should behave when the horizontal axis can't display them all.
|
|
1321
|
+
*
|
|
1322
|
+
* Applicable to XY charts only. Histograms support `none` and `rotate` only. The default horizontal axis value is `rotate`, except for histograms, where it is `none`.
|
|
1323
|
+
*
|
|
1324
|
+
* @default "rotate"
|
|
1325
|
+
*/
|
|
1326
|
+
horizontalAxisLabelsBehavior?: WebChartLabelBehavior;
|
|
1327
|
+
/**
|
|
1328
|
+
* Represents the way the labels should behave when the vertical axis can't display them all.
|
|
1329
|
+
*
|
|
1330
|
+
* For XY Chart only.
|
|
1331
|
+
*
|
|
1332
|
+
* @default "wrap"
|
|
1333
|
+
*/
|
|
1334
|
+
verticalAxisLabelsBehavior?: WebChartLabelBehavior;
|
|
1335
|
+
/**
|
|
1336
|
+
* Represents an array of various chart series to be plot inside the chart.
|
|
1337
|
+
*
|
|
1338
|
+
* Empty array is not allowed.
|
|
1339
|
+
*
|
|
1340
|
+
* @minItems 1
|
|
1341
|
+
*/
|
|
1342
|
+
series: WebChartSeriesType[];
|
|
1343
|
+
/**
|
|
1344
|
+
* Specifies whether or not the chart is rotated.
|
|
1345
|
+
*
|
|
1346
|
+
* @default false
|
|
1347
|
+
*/
|
|
1348
|
+
rotated?: boolean;
|
|
1349
|
+
/**
|
|
1350
|
+
* Specifies how the bars/lines should be placed when multiple series are rendered in the same chart.
|
|
1351
|
+
*
|
|
1352
|
+
* Only applicable to bar and line series.
|
|
1353
|
+
*
|
|
1354
|
+
* @default sideBySide
|
|
1355
|
+
*/
|
|
1356
|
+
stackedType?: WebChartStackedKinds;
|
|
1357
|
+
/**
|
|
1358
|
+
* Specifies whether to first try matching the colors from the layer renderer or the chart renderer
|
|
1359
|
+
* for coloring the chart elements, like markers, line segments, columns, etc.
|
|
1360
|
+
*
|
|
1361
|
+
* To do so, this property needs to be set to `true`.
|
|
1362
|
+
*
|
|
1363
|
+
* When there is no matching color found (for when `colorMatch = true`) or when `colorMatch = false`,
|
|
1364
|
+
* the colors from the config, and then from the color ramps will be used, in that order.
|
|
1365
|
+
*
|
|
1366
|
+
* @default false
|
|
1367
|
+
*/
|
|
1368
|
+
colorMatch?: boolean;
|
|
1369
|
+
/**
|
|
1370
|
+
* Renderer to use to style the series when the chart uses the color match mode.
|
|
1371
|
+
*
|
|
1372
|
+
* Considered before the layer's renderer.
|
|
1373
|
+
*/
|
|
1374
|
+
chartRenderer?: IDrawingInfo["renderer"];
|
|
1375
|
+
/** Chart order options for data and series. */
|
|
1376
|
+
orderOptions?: {
|
|
1377
|
+
series?: WebChartOrderSeriesBy;
|
|
1378
|
+
data?:
|
|
1379
|
+
| WebChartDirectionalDataOrder
|
|
1380
|
+
| WebChartMultiAxesDataOrder
|
|
1381
|
+
| WebChartPredefinedLabelsDataOrder;
|
|
1382
|
+
orderByFields?: string[];
|
|
1383
|
+
};
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/** JSON representation of the gauge chart. */
|
|
1387
|
+
export interface WebGaugeChart extends WebChart {
|
|
1388
|
+
/**
|
|
1389
|
+
* Represents the size of the hole in middle of the chart. The number is used as a percentage rather than a fixed value.
|
|
1390
|
+
*
|
|
1391
|
+
* @default 50
|
|
1392
|
+
*/
|
|
1393
|
+
innerRadius?: number | null;
|
|
1394
|
+
/**
|
|
1395
|
+
* Represents where is the chart's starting point
|
|
1396
|
+
*
|
|
1397
|
+
* @default -180
|
|
1398
|
+
*/
|
|
1399
|
+
startAngle?: number | null;
|
|
1400
|
+
/**
|
|
1401
|
+
* Represents where is the chart's ending point. To be related with `startAngle`. If `endAngle-startAngle` is 360 the chart will render as a full circle.
|
|
1402
|
+
*
|
|
1403
|
+
* @default 180
|
|
1404
|
+
*/
|
|
1405
|
+
endAngle?: number | null;
|
|
1406
|
+
/** Array of one `WebChartGaugeAxis`. */
|
|
1407
|
+
axes: [WebChartGaugeAxis];
|
|
1408
|
+
/**
|
|
1409
|
+
* The type of gauge, like `FeatureGauge` or `StatisticGauge`.
|
|
1410
|
+
*
|
|
1411
|
+
* When this property is not specified, it will be defaulted to `GaugeChartSubTypes.StatisticGauge`.
|
|
1412
|
+
*/
|
|
1413
|
+
subType?: GaugeChartSubTypes;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
/** JSON representation of the box plot. */
|
|
1417
|
+
export interface WebBoxPlot extends WebChart {
|
|
1418
|
+
/** Whether to show the outliers on the chart. */
|
|
1419
|
+
showOutliers?: boolean;
|
|
1420
|
+
/** Whether to standardize the values by calculating the series z-score. */
|
|
1421
|
+
standardizeValues?: boolean;
|
|
1422
|
+
/**
|
|
1423
|
+
* Whether to show the mean lines on the chart. Applies only if a split-by field is set.
|
|
1424
|
+
*
|
|
1425
|
+
* Additionally the chart will render with that option enabled only if the the series array contains one box plot series and N lines series.
|
|
1426
|
+
*
|
|
1427
|
+
* @default false
|
|
1428
|
+
*/
|
|
1429
|
+
showMean?: boolean;
|
|
1430
|
+
/** The box plot series can be of type `boxPlotSeries` or `lineSeries`. */
|
|
1431
|
+
series: (WebChartBoxPlotSeries | WebChartLineChartSeries)[];
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
/** Gives a JSON representation of the radar chart object. */
|
|
1435
|
+
export interface WebRadarChart extends WebChart {
|
|
1436
|
+
/**
|
|
1437
|
+
* The radar chart series.
|
|
1438
|
+
*
|
|
1439
|
+
* @minItems 1
|
|
1440
|
+
*/
|
|
1441
|
+
series: WebChartRadarChartSeries[];
|
|
1442
|
+
/** Array of two axes, one specific to the radar chart and the other one common to all charts. */
|
|
1443
|
+
axes: [WebChartRadarChartAxis, WebChartAxis];
|
|
1444
|
+
}
|
|
1445
|
+
|
|
1446
|
+
/** Gives a JSON representation of the heat chart object. */
|
|
1447
|
+
export interface WebHeatChart extends WebChart, WebChartTemporalBinningExtras {
|
|
1448
|
+
/**
|
|
1449
|
+
* The heat chart series.
|
|
1450
|
+
*
|
|
1451
|
+
* @minItems 1
|
|
1452
|
+
*/
|
|
1453
|
+
series: WebChartHeatChartSeries[];
|
|
1454
|
+
orderOptions?: Omit<WebChart["orderOptions"], "data" | "orderByFields"> & {
|
|
1455
|
+
data?: WebChartMultiAxesDataOrder;
|
|
1456
|
+
};
|
|
1457
|
+
/**
|
|
1458
|
+
* Whether to hide entire rows or columns that are empty (i.e. contain no valid data).
|
|
1459
|
+
*
|
|
1460
|
+
* @default false
|
|
1461
|
+
*/
|
|
1462
|
+
hideEmptyRowsAndColumns?: boolean;
|
|
1463
|
+
/**
|
|
1464
|
+
* The calendar view type for the heat chart.
|
|
1465
|
+
*
|
|
1466
|
+
* **NOTE**: This property is only applicable to the calendar heat chart.
|
|
1467
|
+
*/
|
|
1468
|
+
viewType?: WebChartHeatChartViewTypes;
|
|
1469
|
+
/**
|
|
1470
|
+
* Whether to include leap day (Feb. 29th) in queries.
|
|
1471
|
+
*
|
|
1472
|
+
* @default false
|
|
1473
|
+
*/
|
|
1474
|
+
includeLeapDay?: boolean;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
/** Describes the basic properties available for a temporal binning */
|
|
1478
|
+
export interface WebChartTemporalBinningBase {
|
|
1479
|
+
/**
|
|
1480
|
+
* Determines whether incomplete time intervals at the start or end of the data span (depending on the `timeAggregationType`) will be removed from the chart.
|
|
1481
|
+
*
|
|
1482
|
+
* Incomplete intervals on a chart can cause misleading results in which the period in question is under- or over reported due to a different amount of time in the interval.
|
|
1483
|
+
*
|
|
1484
|
+
* `true` - trim the incomplete intervals.
|
|
1485
|
+
* `false` - does not trim the incomplete intervals.
|
|
1486
|
+
*
|
|
1487
|
+
* @default true
|
|
1488
|
+
*/
|
|
1489
|
+
trimIncompleteTimeInterval?: boolean;
|
|
1490
|
+
/**
|
|
1491
|
+
* The binning start date.
|
|
1492
|
+
*
|
|
1493
|
+
* Current limitation: this is applied only when the provided layer supports the `queryBins` operation.
|
|
1494
|
+
*/
|
|
1495
|
+
start?: number;
|
|
1496
|
+
/**
|
|
1497
|
+
* The binning end date.
|
|
1498
|
+
*
|
|
1499
|
+
* Current limitation: this is applied only when the provided layer supports the `queryBins` operation.
|
|
1500
|
+
*/
|
|
1501
|
+
end?: number;
|
|
1502
|
+
/**
|
|
1503
|
+
* Offset to apply to the results.
|
|
1504
|
+
*
|
|
1505
|
+
* Current limitation: this is applied only when the provided layer supports the `queryBins` operation.
|
|
1506
|
+
*/
|
|
1507
|
+
offset?: {
|
|
1508
|
+
unit: WebChartTemporalBinningUnits;
|
|
1509
|
+
size: number;
|
|
1510
|
+
};
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
/** Describes the extra properties available for a temporal series and for the heat chart. */
|
|
1514
|
+
export interface WebChartTemporalBinningExtras {
|
|
1515
|
+
/**
|
|
1516
|
+
* Defines the [IANA time zone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) used for temporal bin calculations.
|
|
1517
|
+
*
|
|
1518
|
+
* Current limitation: this is applied only when the provided layer supports the `queryBins` operation.
|
|
1519
|
+
*/
|
|
1520
|
+
outTimeZone?: string;
|
|
1521
|
+
/**
|
|
1522
|
+
* The first day of the week. This property is used to determine the start of the week for date-based bins. The default value depends on the user locale (e.g. `7` as Sunday for US, `1` as Monday for France).
|
|
1523
|
+
*
|
|
1524
|
+
* Current limitation: this is applied only when the provided layer supports the `queryBins` operation.
|
|
1525
|
+
*
|
|
1526
|
+
* @minimum 1
|
|
1527
|
+
* @maximum 7
|
|
1528
|
+
* @multipleOf 1
|
|
1529
|
+
*/
|
|
1530
|
+
firstDayOfWeek?: number;
|
|
1531
|
+
/**
|
|
1532
|
+
* How summarized bins returning a null value are displayed. Supported options are:
|
|
1533
|
+
* - `null`, `zero`, and `interpolate` for line series.
|
|
1534
|
+
* - `null` and `zero` for bar series.
|
|
1535
|
+
*
|
|
1536
|
+
* @default "null"
|
|
1537
|
+
*/
|
|
1538
|
+
nullPolicy?: WebChartNullPolicyTypes;
|
|
1539
|
+
}
|