@arcgis/charts-components 4.34.0-next.111 → 4.34.0-next.113
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{OOMMTXY4.js → 23I4Q3OX.js} +1 -1
- package/dist/cdn/{XFNX4D2O.js → 262AENTU.js} +2 -2
- package/dist/cdn/{GMNQPJA5.js → 2AEEFPEX.js} +2 -2
- package/dist/cdn/2CXG76NM.js +4 -0
- package/dist/cdn/{X57ZLP3B.js → 2ER5PXU6.js} +2 -2
- package/dist/cdn/{ARQEETOT.js → 2FKZJUPY.js} +2 -2
- package/dist/cdn/2OYSTEG4.js +4 -0
- package/dist/cdn/{NXQ4XFXV.js → 2XRLHUO4.js} +2 -2
- package/dist/cdn/{FAV5SQY7.js → 34CTQ2YC.js} +23 -23
- package/dist/cdn/{2LZCNZSO.js → 36DWFWMR.js} +2 -2
- package/dist/cdn/{B7UZTYK7.js → 3YCYB5YB.js} +2 -2
- package/dist/cdn/{66VJ6LJG.js → 4H5KCTKT.js} +2 -2
- package/dist/cdn/{54AREBZJ.js → 4JZ5QNSR.js} +2 -2
- package/dist/cdn/{X3GMU3UN.js → 4KYIOYQJ.js} +2 -2
- package/dist/cdn/{WBBRKHMU.js → 4NH3HZ7S.js} +2 -2
- package/dist/cdn/{EIWHNTXK.js → 4O56TDHY.js} +2 -2
- package/dist/cdn/4O7SEJLL.js +4 -0
- package/dist/cdn/{M7SFMYYJ.js → 4OBIO427.js} +2 -2
- package/dist/cdn/{NHCXATX3.js → 53BUUZMF.js} +2 -2
- package/dist/cdn/{32LZ5ZUE.js → 5WBMOWIY.js} +1 -1
- package/dist/cdn/5ZZYKWT2.js +4 -0
- package/dist/cdn/{MBHVII23.js → 62YSTE7B.js} +2 -2
- package/dist/cdn/{GE5B7EHY.js → 67SRQPQO.js} +2 -2
- package/dist/cdn/6MAVBETA.js +4 -0
- package/dist/cdn/{AT3QGW6X.js → 6YDMBON5.js} +2 -2
- package/dist/cdn/{EER3AJSG.js → 74GOXLFU.js} +2 -2
- package/dist/cdn/{OWYOYCBA.js → 77E5KG5S.js} +2 -2
- package/dist/cdn/7FHQSHKC.js +4 -0
- package/dist/cdn/7KMZG76W.js +6 -0
- package/dist/cdn/{74B4CUN4.js → 7QNYDVH4.js} +2 -2
- package/dist/cdn/{2WN7KFS6.js → ACXTURJX.js} +2 -2
- package/dist/cdn/AJPLPIVM.js +4 -0
- package/dist/cdn/{DQWZHJZC.js → APTMEFHH.js} +2 -2
- package/dist/cdn/{IJBNBMA5.js → AUAH5WQA.js} +2 -2
- package/dist/cdn/{OC36Z6JP.js → AZ4NACBM.js} +2 -2
- package/dist/cdn/{NO5OWUBU.js → BJZHJTCR.js} +2 -2
- package/dist/cdn/{UTUBGWZ2.js → BQ5FFKZT.js} +2 -2
- package/dist/cdn/{J4RK4FTK.js → BTZPYYAW.js} +2 -2
- package/dist/cdn/BWO26RLA.js +4 -0
- package/dist/cdn/{7SOKHXX6.js → BXZ4PAPX.js} +2 -2
- package/dist/cdn/{X6LUL2NU.js → CWSOEJAF.js} +2 -2
- package/dist/cdn/D4LC37XL.js +4 -0
- package/dist/cdn/{QSJX2JAV.js → D5K7GLZI.js} +2 -2
- package/dist/cdn/{GST4XFWM.js → DC245MVI.js} +2 -2
- package/dist/cdn/{WSIYEMKM.js → DDGLCJYC.js} +2 -2
- package/dist/cdn/DPSEGNJG.js +4 -0
- package/dist/cdn/{UYXBEO66.js → DQ7SBWPB.js} +2 -2
- package/dist/cdn/{GLRNFYGS.js → DS4E4Q2G.js} +2 -2
- package/dist/cdn/{TARYHNRD.js → DUFPMHN6.js} +1 -1
- package/dist/cdn/{YSA7L475.js → EDV3MOKX.js} +2 -2
- package/dist/cdn/{ZKXAE6BB.js → EFHJ22PU.js} +2 -2
- package/dist/cdn/{WPWDJMJX.js → EL63BDEN.js} +2 -2
- package/dist/cdn/{GBFPI43N.js → ERRILYTQ.js} +2 -2
- package/dist/cdn/{U3QQ3GBN.js → ES3WLIA6.js} +2 -2
- package/dist/cdn/{R5BMYD4E.js → EUMWR4FW.js} +2 -2
- package/dist/cdn/{F4TV3AYN.js → FBTZQQO2.js} +2 -2
- package/dist/cdn/{T65RZ5CJ.js → FJFF5NBC.js} +1 -1
- package/dist/cdn/{DVGEHSBK.js → FP4VD5M5.js} +2 -2
- package/dist/cdn/FRG4H7DY.js +4 -0
- package/dist/cdn/{EPK6PLLI.js → FVKXONAJ.js} +2 -2
- package/dist/cdn/G2U7BOXW.js +4 -0
- package/dist/cdn/{HQDYN3EY.js → G5KZWTTJ.js} +2 -2
- package/dist/cdn/{PAVKQXWL.js → G6SI62O6.js} +2 -2
- package/dist/cdn/G7AJFCHY.js +4 -0
- package/dist/cdn/{HDNLDBDN.js → G7NAHC4H.js} +2 -2
- package/dist/cdn/{CO3CAMDJ.js → GEXEMHKT.js} +1 -1
- package/dist/cdn/GLVB2Y4Z.js +4 -0
- package/dist/cdn/{JKYGZTFM.js → GP6BLLZ6.js} +2 -2
- package/dist/cdn/{RERDS2J4.js → GQLETBEV.js} +2 -2
- package/dist/cdn/{6IDVHQLD.js → H2MGRSEZ.js} +2 -2
- package/dist/cdn/{HDC7XARZ.js → H3UO7KXQ.js} +2 -2
- package/dist/cdn/{UJN6L4I5.js → HDJSFPBO.js} +2 -2
- package/dist/cdn/{HGBNNX46.js → HJCUPHBY.js} +2 -2
- package/dist/cdn/{PWJ4FHBE.js → HXENFBLS.js} +2 -2
- package/dist/cdn/HYYPVCJY.js +4 -0
- package/dist/cdn/{DYZVS5EK.js → I7I5UN3B.js} +2 -2
- package/dist/cdn/{ZE7YNJLP.js → IA3R7DWY.js} +2 -2
- package/dist/cdn/{LGHT76RC.js → IDKXEI5N.js} +2 -2
- package/dist/cdn/IGZXWEGN.js +4 -0
- package/dist/cdn/{JX5UG5QS.js → ITJUM6CQ.js} +2 -2
- package/dist/cdn/{M34GM3LR.js → IWBZ2LG6.js} +2 -2
- package/dist/cdn/{ZWIEPILX.js → IYXEA5UZ.js} +2 -2
- package/dist/cdn/J4LS67JX.js +4 -0
- package/dist/cdn/{M3TJBQIF.js → JIZSQTFO.js} +2 -2
- package/dist/cdn/{AVGVPTI7.js → JOEKX63Y.js} +2 -2
- package/dist/cdn/{C6WBQHC3.js → JQIM4HXM.js} +2 -2
- package/dist/cdn/JU4HNSSP.js +4 -0
- package/dist/cdn/{B73UHRNU.js → JZAQOUOG.js} +2 -2
- package/dist/cdn/{Z4QT5UPI.js → K24M4DIQ.js} +2 -2
- package/dist/cdn/KDALCUMD.js +4 -0
- package/dist/cdn/{OSOGDD2O.js → KGAKAOYH.js} +2 -2
- package/dist/cdn/{5OVWLYQ2.js → KIQX6GVB.js} +2 -2
- package/dist/cdn/{KEMMERGS.js → KRQMKCZI.js} +2 -2
- package/dist/cdn/{ELUDJGTX.js → KV7EM7PX.js} +1 -1
- package/dist/cdn/KVFRZUPI.js +4 -0
- package/dist/cdn/{UOJ6VURM.js → L3YC2CMK.js} +2 -2
- package/dist/cdn/{XBUEC53B.js → L52BOAFI.js} +2 -2
- package/dist/cdn/LK5F7IJH.js +4 -0
- package/dist/cdn/{766R2ZUF.js → LMRA733F.js} +2 -2
- package/dist/cdn/{6L5IYOVJ.js → LR6HD2P3.js} +2 -2
- package/dist/cdn/{TBSPZD6V.js → LYEHHYEU.js} +2 -2
- package/dist/cdn/{WSADKE3S.js → LZQ6574F.js} +2 -2
- package/dist/cdn/MARTZ5CU.js +4 -0
- package/dist/cdn/{JUALZFUW.js → MBPX3ABN.js} +2 -2
- package/dist/cdn/{4JMR7RE7.js → MCNBXXW4.js} +2 -2
- package/dist/cdn/MQYDTINF.js +4 -0
- package/dist/cdn/{Y7LCSTDO.js → MRBTE465.js} +2 -2
- package/dist/cdn/{R6EBYFCK.js → N55DMRDM.js} +2 -2
- package/dist/cdn/{ZTGZ5KQ5.js → N5JQAFBS.js} +2 -2
- package/dist/cdn/{BI3AWCYS.js → N6Q2R2TE.js} +2 -2
- package/dist/cdn/{BM4Q7XWY.js → N7DQPBWE.js} +2 -2
- package/dist/cdn/NCEYDCHU.js +4 -0
- package/dist/cdn/NG7OWFJ6.js +4 -0
- package/dist/cdn/{FKEXTGFK.js → OAWCJUZT.js} +2 -2
- package/dist/cdn/{SVZZMU5C.js → OFBW4P4T.js} +2 -2
- package/dist/cdn/{UYGUX3DS.js → OJI4CLWE.js} +2 -2
- package/dist/cdn/OOO6DIKM.js +4 -0
- package/dist/cdn/{54Z2SWHN.js → P3FFH4DH.js} +2 -2
- package/dist/cdn/{LZJPJN75.js → P4I2IJI7.js} +2 -2
- package/dist/cdn/P6HBTDNT.js +4 -0
- package/dist/cdn/{QUFPUWDU.js → PPDFDZHH.js} +2 -2
- package/dist/cdn/{4MERVGGF.js → Q2C2P4EN.js} +2 -2
- package/dist/cdn/{JVWFJ5DC.js → Q4TY76YP.js} +2 -2
- package/dist/cdn/{UDF7MOCD.js → Q4YQVWNG.js} +2 -2
- package/dist/cdn/{I3WZAY3O.js → Q7LOJ3JF.js} +2 -2
- package/dist/cdn/{IY75QO4X.js → QROY3C7T.js} +2 -2
- package/dist/cdn/{XOICHBBS.js → QSWGXAUW.js} +2 -2
- package/dist/cdn/{CIBF67LX.js → QVNMLFWY.js} +2 -2
- package/dist/cdn/RES37HIF.js +42 -0
- package/dist/cdn/{TXJ6UGD7.js → RLR3ZNM2.js} +2 -2
- package/dist/cdn/{2KFXMEPE.js → RQ3GKOJ7.js} +2 -2
- package/dist/cdn/{YQPU5BNJ.js → RXKDSHL7.js} +2 -2
- package/dist/cdn/{XUXUGRNN.js → S4VHP2ZR.js} +2 -2
- package/dist/cdn/SAWZHKVM.js +4 -0
- package/dist/cdn/{KG6GB7SI.js → SCBRD7D5.js} +2 -2
- package/dist/cdn/{AMXGL6QW.js → SEYRQNRV.js} +2 -2
- package/dist/cdn/{RGS7LNAF.js → SSIMBGDR.js} +2 -2
- package/dist/cdn/{NEYJLUSE.js → TBNIGI5Y.js} +2 -2
- package/dist/cdn/{SBIAOG2G.js → TBNKPKMC.js} +2 -2
- package/dist/cdn/{F7UCAGKZ.js → TIZV2MNP.js} +2 -2
- package/dist/cdn/{M5WAW7T2.js → TWCVQILN.js} +2 -2
- package/dist/cdn/{ASEPPH6D.js → TX6OXVK6.js} +2 -2
- package/dist/cdn/{JE5Q2CC2.js → UD7DXOYR.js} +2 -2
- package/dist/cdn/{CCJL3MPA.js → UIMNI23U.js} +2 -2
- package/dist/cdn/{ZLJECTGF.js → UNNMKPG6.js} +2 -2
- package/dist/cdn/{F2BNDBMQ.js → VBYPJL3M.js} +2 -2
- package/dist/cdn/VLG63OOO.js +4 -0
- package/dist/cdn/{RGCKIL24.js → VZ7MRAHZ.js} +2 -2
- package/dist/cdn/{W67DX6SU.js → WB24ZY6A.js} +2 -2
- package/dist/cdn/WFMTTAJ6.js +4 -0
- package/dist/cdn/{FOOS6H7N.js → WISYDBQW.js} +2 -2
- package/dist/cdn/WN5SWFMA.js +4 -0
- package/dist/cdn/{SL42MFBQ.js → WNOEDRP4.js} +2 -2
- package/dist/cdn/WSXTRM7N.js +4 -0
- package/dist/cdn/{UTGAYBC3.js → WXJ5YZUW.js} +2 -2
- package/dist/cdn/{6C2NYXSZ.js → WY65YRDM.js} +2 -2
- package/dist/cdn/{6Z46DESZ.js → XD5BIPXT.js} +2 -2
- package/dist/cdn/{GTTH5SUQ.js → XMAUG3VG.js} +2 -2
- package/dist/cdn/{5Q2BSIRH.js → XOH4RGS6.js} +2 -2
- package/dist/cdn/XYRDMRJA.js +4 -0
- package/dist/cdn/{GA4HMY6V.js → XYTVQU7V.js} +2 -2
- package/dist/cdn/{F7RAYVB3.js → XZN52GO4.js} +2 -2
- package/dist/cdn/{U2HWNREF.js → Y34U7R5P.js} +2 -2
- package/dist/cdn/Y3OZTMJT.js +4 -0
- package/dist/cdn/{I3SAGSKG.js → Y755N4VS.js} +2 -2
- package/dist/cdn/YE2LGUYA.js +4 -0
- package/dist/cdn/YFN2MEJP.js +4 -0
- package/dist/cdn/YG2A5ZJ5.js +4 -0
- package/dist/cdn/{KWWTP7HE.js → YGP67EKU.js} +2 -2
- package/dist/cdn/{2GPVHBCV.js → YM5Z2FFK.js} +1 -1
- package/dist/cdn/YMZW2ZUF.js +4 -0
- package/dist/cdn/{IEOUCLTJ.js → YNJBI7WH.js} +2 -2
- package/dist/cdn/{BRXOBDCP.js → YO6PCY3Y.js} +2 -2
- package/dist/cdn/{BAR34E3W.js → YPSJQKN4.js} +2 -2
- package/dist/cdn/{HZXLKNTA.js → YYSVUXJZ.js} +2 -2
- package/dist/cdn/Z43T6AQJ.js +4 -0
- package/dist/cdn/{QD7IV3XR.js → Z43TGHKL.js} +2 -2
- package/dist/cdn/{34EFVOEX.js → ZILUOBRR.js} +2 -2
- package/dist/cdn/ZKWH7XFG.js +4 -0
- package/dist/cdn/{CGQOZD2N.js → ZNZCLCZD.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/model.js +2 -2
- package/dist/cdn/spec.js +2 -2
- package/dist/chart-rendering/common/data/utils/query-parser/index.d.ts +1 -3
- package/dist/chart-rendering/common/data/utils/summarize-data/time-binning/index.d.ts +2 -0
- package/dist/chunks/action-bar-utils.js +1 -1
- package/dist/chunks/axis-model-wrapper.js +15 -15
- package/dist/chunks/bar-chart-model.js +2 -2
- package/dist/chunks/bar-chart-series.js +2 -2
- package/dist/chunks/baseline-stacking.js +2 -2
- package/dist/chunks/bg_BG.js +1 -1
- package/dist/chunks/bg_BG2.js +1 -1
- package/dist/chunks/box-plot-data.js +240 -240
- package/dist/chunks/box-plot-model.js +17 -17
- package/dist/chunks/chart-object-literals.js +33 -56
- package/dist/chunks/chart-ui-utils.js +1 -1
- package/dist/chunks/chart-ui-utils2.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/data.js +458 -476
- package/dist/chunks/default.js +1 -1
- package/dist/chunks/gauge-model.js +3 -3
- package/dist/chunks/histogram-data.js +68 -68
- package/dist/chunks/histogram-model.js +10 -10
- package/dist/chunks/index.js +153 -142
- package/dist/chunks/index2.js +1 -1
- package/dist/chunks/index3.js +1 -1
- package/dist/chunks/index4.js +1 -1
- package/dist/chunks/index5.js +1 -1
- package/dist/chunks/interfaces.js +1096 -1159
- package/dist/chunks/interfaces2.js +1 -1
- package/dist/chunks/line-chart-model.js +4 -4
- package/dist/chunks/model-with-baseline-stacking.js +2 -2
- package/dist/chunks/model-with-data-labels.js +3 -3
- package/dist/chunks/{model-with-y-guides.js → model-with-multi-axes.js} +780 -630
- package/dist/chunks/model-with-rotation.js +3 -3
- package/dist/chunks/pie-chart-data.js +11 -11
- package/dist/chunks/pie-chart-model.js +11 -11
- package/dist/chunks/popover-ui-utils.js +1 -1
- package/dist/chunks/radar-chart-model.js +3 -3
- package/dist/chunks/resource.js +1 -1
- package/dist/chunks/rest-js-object-literals.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/scatterplot-model.js +71 -71
- package/dist/chunks/serial-chart-model.js +84 -82
- package/dist/chunks/series-types.js +1 -1
- package/dist/chunks/series.js +2 -2
- package/dist/chunks/sk_SK.js +1 -1
- package/dist/chunks/store.js +1 -1
- package/dist/chunks/type-guards.js +6 -6
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/web-component-utils.js +3 -3
- package/dist/components/arcgis-chart/customElement.js +4039 -4026
- package/dist/components/arcgis-charts-action-bar/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-axes/customElement.d.ts +2 -2
- package/dist/components/arcgis-charts-config-axes/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-axis/customElement.d.ts +2 -2
- package/dist/components/arcgis-charts-config-axis/customElement.js +22 -22
- package/dist/components/arcgis-charts-config-axis/utils/axis-model-wrapper.d.ts +6 -6
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +36 -36
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +13 -13
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +13 -13
- package/dist/components/arcgis-charts-config-category-format/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-color-style/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-colors/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +21 -21
- package/dist/components/arcgis-charts-config-field-select/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-font-style/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-format/customElement.js +85 -64
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-general/customElement.js +11 -11
- package/dist/components/arcgis-charts-config-guide/customElement.js +25 -25
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +10 -10
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-invalid-input-message/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-line-style/customElement.js +8 -8
- package/dist/components/arcgis-charts-config-number-format/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +6 -6
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +7 -7
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +5 -5
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +3 -3
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +2 -2
- package/dist/docs/api.json +3 -3
- package/dist/docs/docs.json +5 -5
- package/dist/docs/web-types.json +2 -2
- package/dist/index.js +1 -1
- package/dist/json-schema/index.d.ts +84 -96
- package/dist/loader.js +1 -1
- package/dist/model/box-plot-model/box-plot-model.d.ts +2 -2
- package/dist/model/histogram-model/histogram-model.d.ts +2 -2
- package/dist/model/mixins/index.d.ts +1 -1
- package/dist/model/mixins/model-with-basic-x-axis.d.ts +2 -2
- package/dist/model/mixins/model-with-multi-axes.d.ts +342 -0
- package/dist/model/mixins/model-with-temporal-binning.d.ts +5 -5
- package/dist/model/mixins/utils/axes.d.ts +55 -43
- package/dist/model/mixins/utils/temporal-binning.d.ts +3 -14
- package/dist/model/scatterplot-model/scatterplot-model.d.ts +2 -2
- package/dist/model/serial-chart-model/serial-chart-model.d.ts +3 -3
- package/dist/model/serial-chart-model/utils/serial-chart-series.d.ts +1 -1
- package/dist/model/shared/axes.d.ts +120 -51
- package/dist/model/shared/type-guards.d.ts +3 -3
- package/dist/model.js +13 -13
- package/dist/spec/chart-object-literals.d.ts +0 -35
- package/dist/spec/web-chart.d.ts +55 -69
- package/dist/spec.js +32 -35
- package/dist/utils/chart-config/converter/index.d.ts +16 -3
- package/dist/utils/chart-config/converter/interfaces.d.ts +42 -1
- package/dist/utils/components/config-update.d.ts +1 -1
- package/dist/utils/data/time-binning/interfaces.d.ts +2 -2
- package/dist/utils/layer/query-features/index.d.ts +2 -2
- package/dist/utils/layer/query-parser/index.d.ts +2 -2
- package/dist/utils/layer/utils/index.d.ts +1 -1
- package/dist/utils/type-guards/series-types.d.ts +2 -2
- package/package.json +3 -3
- package/dist/cdn/2TT3TCNZ.js +0 -4
- package/dist/cdn/3PUHNTR2.js +0 -4
- package/dist/cdn/3ZCT6JWJ.js +0 -4
- package/dist/cdn/44TRLNWR.js +0 -4
- package/dist/cdn/4EPAYCHX.js +0 -4
- package/dist/cdn/5R5O4RWN.js +0 -4
- package/dist/cdn/63KGYCI2.js +0 -4
- package/dist/cdn/7JQL4RKR.js +0 -4
- package/dist/cdn/7KRMOETP.js +0 -4
- package/dist/cdn/7TRKEGUJ.js +0 -4
- package/dist/cdn/ASCNRJZK.js +0 -4
- package/dist/cdn/BNNQ3EEX.js +0 -4
- package/dist/cdn/DPZM77GZ.js +0 -4
- package/dist/cdn/E2D72XLN.js +0 -4
- package/dist/cdn/FBHNEJFE.js +0 -44
- package/dist/cdn/FC2SSRE7.js +0 -4
- package/dist/cdn/FZTVEBMS.js +0 -4
- package/dist/cdn/IFASF6V5.js +0 -4
- package/dist/cdn/K5ZSGFHV.js +0 -4
- package/dist/cdn/KCPT5N3T.js +0 -4
- package/dist/cdn/KUDCMX64.js +0 -4
- package/dist/cdn/LCOJDPEO.js +0 -4
- package/dist/cdn/LCQRUVJP.js +0 -4
- package/dist/cdn/NMPSY66G.js +0 -4
- package/dist/cdn/OAV23WIO.js +0 -4
- package/dist/cdn/P5GVO5VF.js +0 -4
- package/dist/cdn/QCENLDJF.js +0 -4
- package/dist/cdn/QCSAA3GD.js +0 -4
- package/dist/cdn/QPFRLAQU.js +0 -4
- package/dist/cdn/SDSYJKTW.js +0 -4
- package/dist/cdn/SKT2WH7C.js +0 -4
- package/dist/cdn/SLQDREI3.js +0 -4
- package/dist/cdn/SS3UVHMB.js +0 -4
- package/dist/cdn/TEOTDY7Z.js +0 -4
- package/dist/cdn/UAXJXTJB.js +0 -4
- package/dist/cdn/VJVZLEEY.js +0 -4
- package/dist/cdn/VUPK2NYD.js +0 -4
- package/dist/cdn/X433BC7B.js +0 -4
- package/dist/cdn/X7RIGDOG.js +0 -6
- package/dist/cdn/XW3VKJL3.js +0 -4
- package/dist/cdn/Y3OATKEN.js +0 -4
- package/dist/cdn/Y44OZPBI.js +0 -4
- package/dist/model/mixins/model-with-xy-axes.d.ts +0 -331
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { cloneDeep as M } from "lodash-es";
|
|
2
|
+
import { W as p, g as _ } from "./chart-object-literals.js";
|
|
3
3
|
import "d3-array";
|
|
4
|
-
import { a5 as
|
|
4
|
+
import { a5 as b, aY as g, a3 as h, cg as N, k as R, g as k, b1 as z, ad as E, a4 as W, a6 as Y, d as w, a1 as m } from "./interfaces.js";
|
|
5
5
|
import "@arcgis/core/geometry/support/jsonUtils.js";
|
|
6
6
|
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
|
|
7
7
|
import "@arcgis/core/rest/support/Query.js";
|
|
@@ -9,63 +9,64 @@ import "@arcgis/core/rest/support/StatisticDefinition.js";
|
|
|
9
9
|
import "@arcgis/core/time/TimeExtent.js";
|
|
10
10
|
import "@arcgis/core/core/promiseUtils.js";
|
|
11
11
|
import "@arcgis/core/request.js";
|
|
12
|
-
import { fetchT9nStringsBundle as
|
|
13
|
-
import
|
|
12
|
+
import { fetchT9nStringsBundle as H, getElementLocale as O } from "@arcgis/toolkit/intl";
|
|
13
|
+
import "./runtime.js";
|
|
14
14
|
import "@arcgis/toolkit/dom";
|
|
15
15
|
import "@arcgis/core/intl.js";
|
|
16
|
-
import {
|
|
17
|
-
import { c as
|
|
18
|
-
import { R as c } from "./rest-js-object-literals.js";
|
|
19
|
-
import { c as Wt, b as Ot } from "./index5.js";
|
|
16
|
+
import { R as f } from "./rest-js-object-literals.js";
|
|
17
|
+
import { c as Z, b as P } from "./index5.js";
|
|
20
18
|
import { G as l } from "./common.js";
|
|
19
|
+
import { g as C, S, T as j, U as q, V as $, W as J, X as K, Y as Q, Z as ii, _ as ti, $ as ei, a0 as si, a1 as oi, a2 as ni, a3 as ri, a4 as ai, q as gi, a as T, a5 as L, a6 as V, a7 as A, a8 as u, s as x, a9 as li, aa as v, ab as G, ac as ci, ad as fi, ae as ui, af as hi, e as y, ag as o, ah as di, ai as xi, aj as bi, ak as mi, al as Ci, am as yi, an as pi, ao as _i, ap as Si, aq as Ti, ar as Li, as as Vi, at as Ai, au as vi, av as Gi, aw as Ui, ax as Bi } from "./data.js";
|
|
20
|
+
import { getAssetPath as Di } from "@esri/calcite-components";
|
|
21
|
+
import { c as Ii } from "./index.js";
|
|
21
22
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
22
23
|
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
|
|
23
|
-
v4.34.0-next.
|
|
24
|
-
const
|
|
24
|
+
v4.34.0-next.113 */
|
|
25
|
+
const Fi = (e) => e.title?.content, Xi = (e, i) => {
|
|
25
26
|
if (e) {
|
|
26
|
-
const
|
|
27
|
-
|
|
27
|
+
const t = C(i);
|
|
28
|
+
i.title === void 0 && (i.title = b({
|
|
28
29
|
text: "",
|
|
29
30
|
visible: !0,
|
|
30
|
-
font:
|
|
31
|
-
type:
|
|
32
|
-
})),
|
|
31
|
+
font: h(g.ChartTitle),
|
|
32
|
+
type: g.ChartTitle
|
|
33
|
+
})), i.title.content = e, i.title.content.text = t;
|
|
33
34
|
}
|
|
34
|
-
},
|
|
35
|
+
}, Mi = (e) => e.subtitle?.content, Ni = (e, i) => {
|
|
35
36
|
if (e) {
|
|
36
|
-
const
|
|
37
|
-
|
|
37
|
+
const t = C(i);
|
|
38
|
+
i.subtitle === void 0 && (i.subtitle = b({
|
|
38
39
|
text: "",
|
|
39
40
|
visible: !0,
|
|
40
|
-
font:
|
|
41
|
-
type:
|
|
42
|
-
})),
|
|
41
|
+
font: h(g.ChartSubtitle),
|
|
42
|
+
type: g.ChartSubtitle
|
|
43
|
+
})), i.subtitle.content = e, i.subtitle.content.text = t;
|
|
43
44
|
}
|
|
44
|
-
},
|
|
45
|
+
}, Ri = (e) => e.footer?.content, ki = (e, i) => {
|
|
45
46
|
if (e) {
|
|
46
|
-
const
|
|
47
|
-
|
|
47
|
+
const t = S(i);
|
|
48
|
+
i.footer === void 0 && (i.footer = b({
|
|
48
49
|
text: "",
|
|
49
50
|
visible: !0,
|
|
50
|
-
font:
|
|
51
|
-
type:
|
|
52
|
-
})),
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
},
|
|
57
|
-
function
|
|
58
|
-
let
|
|
59
|
-
return e.length !== 0 &&
|
|
51
|
+
font: h(g.DescriptionText),
|
|
52
|
+
type: g.DescriptionText
|
|
53
|
+
})), i.footer.content = e, i.footer.content.text = t;
|
|
54
|
+
}
|
|
55
|
+
}, zi = (e) => e.background, Ei = (e, i) => {
|
|
56
|
+
i.background = e;
|
|
57
|
+
}, Wi = (e, i) => i.series[e]?.id, Yi = (e, i) => i.series.findIndex((t) => t.id === e), wi = (e) => e.series.length ?? 0, Hi = (e, i) => i.series[e].visible ?? !0;
|
|
58
|
+
function Oi(e, i) {
|
|
59
|
+
let t;
|
|
60
|
+
return e.length !== 0 && i < e.length && (t = e[i].dataTooltipValueFormat), t;
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
const { series:
|
|
63
|
-
|
|
62
|
+
function Zi(e) {
|
|
63
|
+
const { series: i, seriesIndex: t, valueFormat: s } = e;
|
|
64
|
+
i.length !== 0 && t < i.length && (i[t].dataTooltipValueFormat = s);
|
|
64
65
|
}
|
|
65
|
-
class
|
|
66
|
+
class U extends EventTarget {
|
|
66
67
|
constructor() {
|
|
67
|
-
super(...arguments), this.dataStore = {}, this.setupFinished = new Promise((
|
|
68
|
-
this.resolveSetup =
|
|
68
|
+
super(...arguments), this.dataStore = {}, this.setupFinished = new Promise((i) => {
|
|
69
|
+
this.resolveSetup = i;
|
|
69
70
|
});
|
|
70
71
|
}
|
|
71
72
|
/**
|
|
@@ -73,9 +74,9 @@ class L extends EventTarget {
|
|
|
73
74
|
* @param {ChartModel | undefined} otherModel The other chart model to compare to.
|
|
74
75
|
* @returns {boolean}
|
|
75
76
|
*/
|
|
76
|
-
isSameChartAs(
|
|
77
|
-
const
|
|
78
|
-
return
|
|
77
|
+
isSameChartAs(i) {
|
|
78
|
+
const t = i?.getLayer();
|
|
79
|
+
return t !== void 0 && this._config.id === i?.getChartId() && this.layerInfo?.layer.id === t.id;
|
|
79
80
|
}
|
|
80
81
|
/**
|
|
81
82
|
* Gets the current chart configuration object.
|
|
@@ -88,8 +89,8 @@ class L extends EventTarget {
|
|
|
88
89
|
* Sets the chart configuration object.
|
|
89
90
|
* @param {ChartConfig} config The configuration object.
|
|
90
91
|
*/
|
|
91
|
-
setConfig(
|
|
92
|
-
this._config =
|
|
92
|
+
setConfig(i) {
|
|
93
|
+
this._config = i, this.emitConfigUpdate("setConfig");
|
|
93
94
|
}
|
|
94
95
|
/**
|
|
95
96
|
* Gets the chart type.
|
|
@@ -116,8 +117,8 @@ class L extends EventTarget {
|
|
|
116
117
|
* Sets the chart id.
|
|
117
118
|
* @param {string} id
|
|
118
119
|
*/
|
|
119
|
-
setChartId(
|
|
120
|
-
this._config.id =
|
|
120
|
+
setChartId(i) {
|
|
121
|
+
this._config.id = i;
|
|
121
122
|
}
|
|
122
123
|
//#end region
|
|
123
124
|
// ---------------------------------------------------------------------------------------------
|
|
@@ -135,42 +136,42 @@ class L extends EventTarget {
|
|
|
135
136
|
* @returns {string}
|
|
136
137
|
*/
|
|
137
138
|
getTitleText() {
|
|
138
|
-
return
|
|
139
|
+
return C(this._config);
|
|
139
140
|
}
|
|
140
141
|
/**
|
|
141
142
|
* Sets the chart title text.
|
|
142
143
|
* @param {string} title The title text.
|
|
143
144
|
*/
|
|
144
|
-
setTitleText(
|
|
145
|
-
|
|
145
|
+
setTitleText(i) {
|
|
146
|
+
j(i, this._config), this.emitConfigUpdate("setTitleText");
|
|
146
147
|
}
|
|
147
148
|
/**
|
|
148
149
|
* Gets the chart subtitle text.
|
|
149
150
|
* @returns {string}
|
|
150
151
|
*/
|
|
151
152
|
getSubtitleText() {
|
|
152
|
-
return
|
|
153
|
+
return q(this._config);
|
|
153
154
|
}
|
|
154
155
|
/**
|
|
155
156
|
* Sets the chart subtitle text.
|
|
156
157
|
* @param {string} subtitle The subtitle text.
|
|
157
158
|
*/
|
|
158
|
-
setSubtitleText(
|
|
159
|
-
|
|
159
|
+
setSubtitleText(i) {
|
|
160
|
+
$(i, this._config), this.emitConfigUpdate("setSubtitleText");
|
|
160
161
|
}
|
|
161
162
|
/**
|
|
162
163
|
* Gets the chart description text.
|
|
163
164
|
* @returns {string}
|
|
164
165
|
*/
|
|
165
166
|
getDescriptionText() {
|
|
166
|
-
return
|
|
167
|
+
return S(this._config);
|
|
167
168
|
}
|
|
168
169
|
/**
|
|
169
170
|
* Sets the chart description text.
|
|
170
171
|
* @param {string} description The description text.
|
|
171
172
|
*/
|
|
172
|
-
setDescriptionText(
|
|
173
|
-
|
|
173
|
+
setDescriptionText(i) {
|
|
174
|
+
J(i, this._config), this.emitConfigUpdate("setDescriptionText");
|
|
174
175
|
}
|
|
175
176
|
/**
|
|
176
177
|
* Gets whether or not the chart title is visible.
|
|
@@ -184,7 +185,7 @@ class L extends EventTarget {
|
|
|
184
185
|
* **Note: Even if the title is visible, it may not be displayed if the title text is empty.**
|
|
185
186
|
*/
|
|
186
187
|
getChartTitleVisibility() {
|
|
187
|
-
return
|
|
188
|
+
return K(this._config);
|
|
188
189
|
}
|
|
189
190
|
/**
|
|
190
191
|
* Sets whether or not the chart title is visible.
|
|
@@ -197,8 +198,8 @@ class L extends EventTarget {
|
|
|
197
198
|
*
|
|
198
199
|
* **Note: Even if the title is visible, it may not be displayed if the title text is empty.**
|
|
199
200
|
*/
|
|
200
|
-
setChartTitleVisibility(
|
|
201
|
-
|
|
201
|
+
setChartTitleVisibility(i) {
|
|
202
|
+
Q(i, this._config), this.emitConfigUpdate("setChartTitleVisibility");
|
|
202
203
|
}
|
|
203
204
|
/**
|
|
204
205
|
* Gets whether or not the chart subtitle is visible.
|
|
@@ -212,7 +213,7 @@ class L extends EventTarget {
|
|
|
212
213
|
* **Note: Even if the subtitle is visible, it may not be displayed if the subtitle text is empty.**
|
|
213
214
|
*/
|
|
214
215
|
getChartSubtitleVisibility() {
|
|
215
|
-
return
|
|
216
|
+
return ii(this._config);
|
|
216
217
|
}
|
|
217
218
|
/**
|
|
218
219
|
* Sets whether or not the chart subtitle is visible.
|
|
@@ -225,8 +226,8 @@ class L extends EventTarget {
|
|
|
225
226
|
*
|
|
226
227
|
* **Note: Even if the subtitle is visible, it may not be displayed if the subtitle text is empty.**
|
|
227
228
|
*/
|
|
228
|
-
setChartSubtitleVisibility(
|
|
229
|
-
|
|
229
|
+
setChartSubtitleVisibility(i) {
|
|
230
|
+
ti(i, this._config), this.emitConfigUpdate("setChartSubtitleVisibility");
|
|
230
231
|
}
|
|
231
232
|
/**
|
|
232
233
|
* Gets whether or not the chart description is visible.
|
|
@@ -240,7 +241,7 @@ class L extends EventTarget {
|
|
|
240
241
|
* **Note: Even if the description is visible, it may not be displayed if the description text is empty.**
|
|
241
242
|
*/
|
|
242
243
|
getDescriptionVisibility() {
|
|
243
|
-
return
|
|
244
|
+
return ei(this._config);
|
|
244
245
|
}
|
|
245
246
|
/**
|
|
246
247
|
* Sets whether or not the chart description is visible.
|
|
@@ -253,22 +254,22 @@ class L extends EventTarget {
|
|
|
253
254
|
*
|
|
254
255
|
* **Note: Even if the description is visible, it may not be displayed if the description text is empty.**
|
|
255
256
|
*/
|
|
256
|
-
setDescriptionVisibility(
|
|
257
|
-
|
|
257
|
+
setDescriptionVisibility(i) {
|
|
258
|
+
si(i, this._config), this.emitConfigUpdate("setDescriptionVisibility");
|
|
258
259
|
}
|
|
259
260
|
/**
|
|
260
261
|
* Gets the chart renderer.
|
|
261
262
|
* @returns {IDrawingInfo["renderer"] | undefined} The chart renderer if defined, otherwise undefined.
|
|
262
263
|
*/
|
|
263
264
|
getChartRenderer() {
|
|
264
|
-
return
|
|
265
|
+
return oi(this._config);
|
|
265
266
|
}
|
|
266
267
|
/**
|
|
267
268
|
* Sets the chart renderer.
|
|
268
269
|
* @param renderer The chart renderer to set.
|
|
269
270
|
*/
|
|
270
|
-
setChartRenderer(
|
|
271
|
-
|
|
271
|
+
setChartRenderer(i) {
|
|
272
|
+
ni(i, this._config), this.emitConfigUpdate("setChartRenderer");
|
|
272
273
|
}
|
|
273
274
|
// #endregion
|
|
274
275
|
// ---------------------------------------------------------------------------------------------
|
|
@@ -279,56 +280,56 @@ class L extends EventTarget {
|
|
|
279
280
|
* @returns {WebChartTextSymbol | undefined}
|
|
280
281
|
*/
|
|
281
282
|
getTitleSymbol() {
|
|
282
|
-
return
|
|
283
|
+
return Fi(this._config);
|
|
283
284
|
}
|
|
284
285
|
/**
|
|
285
286
|
* Sets the title text symbol. Contains styling information such as font, color, and symbol style.
|
|
286
287
|
* @param {WebChartTextSymbol | undefined} titleSymbol The title symbol.
|
|
287
288
|
*/
|
|
288
|
-
setTitleSymbol(
|
|
289
|
-
|
|
289
|
+
setTitleSymbol(i) {
|
|
290
|
+
Xi(i, this._config), this.emitConfigUpdate("setTitleSymbol");
|
|
290
291
|
}
|
|
291
292
|
/**
|
|
292
293
|
* Gets the subtitle text symbol. Contains styling information such as font, color, and symbol style.
|
|
293
294
|
* @returns {WebChartTextSymbol | undefined}
|
|
294
295
|
*/
|
|
295
296
|
getSubtitleSymbol() {
|
|
296
|
-
return
|
|
297
|
+
return Mi(this._config);
|
|
297
298
|
}
|
|
298
299
|
/**
|
|
299
300
|
* Sets the subtitle text symbol. Contains styling information such as font, color, and symbol style.
|
|
300
301
|
* @param {WebChartTextSymbol | undefined} subtitleSymbol The title symbol.
|
|
301
302
|
*/
|
|
302
|
-
setSubtitleSymbol(
|
|
303
|
-
|
|
303
|
+
setSubtitleSymbol(i) {
|
|
304
|
+
Ni(i, this._config), this.emitConfigUpdate("setSubtitleSymbol");
|
|
304
305
|
}
|
|
305
306
|
/**
|
|
306
307
|
* Gets the description text symbol. Contains styling information such as font, color, and symbol style.
|
|
307
308
|
* @returns {WebChartTextSymbol | undefined}
|
|
308
309
|
*/
|
|
309
310
|
getDescriptionSymbol() {
|
|
310
|
-
return
|
|
311
|
+
return Ri(this._config);
|
|
311
312
|
}
|
|
312
313
|
/**
|
|
313
314
|
* Sets the description text symbol. Contains styling information such as font, color, and symbol style.
|
|
314
315
|
* @param {WebChartTextSymbol | undefined} descriptionSymbol The description symbol.
|
|
315
316
|
*/
|
|
316
|
-
setDescriptionSymbol(
|
|
317
|
-
|
|
317
|
+
setDescriptionSymbol(i) {
|
|
318
|
+
ki(i, this._config), this.emitConfigUpdate("setDescriptionSymbol");
|
|
318
319
|
}
|
|
319
320
|
/**
|
|
320
321
|
* Gets the background color of the chart.
|
|
321
322
|
* @returns {Color | undefined}
|
|
322
323
|
*/
|
|
323
324
|
getBackgroundColor() {
|
|
324
|
-
return
|
|
325
|
+
return zi(this._config);
|
|
325
326
|
}
|
|
326
327
|
/**
|
|
327
328
|
* Sets the background color of the chart.
|
|
328
329
|
* @param {Color | undefined} backgroundColor The background color.
|
|
329
330
|
*/
|
|
330
|
-
setBackgroundColor(
|
|
331
|
-
|
|
331
|
+
setBackgroundColor(i) {
|
|
332
|
+
Ei(i, this._config), this.emitConfigUpdate("setBackgroundColor");
|
|
332
333
|
}
|
|
333
334
|
// #endregion
|
|
334
335
|
// ---------------------------------------------------------------------------------------------
|
|
@@ -339,8 +340,8 @@ class L extends EventTarget {
|
|
|
339
340
|
* @param seriesIndex The series index
|
|
340
341
|
* @returns {boolean}
|
|
341
342
|
*/
|
|
342
|
-
getSeriesVisibility(
|
|
343
|
-
return
|
|
343
|
+
getSeriesVisibility(i) {
|
|
344
|
+
return Hi(i, this._config);
|
|
344
345
|
}
|
|
345
346
|
/**
|
|
346
347
|
* Sets the visibility of a series.
|
|
@@ -350,8 +351,8 @@ class L extends EventTarget {
|
|
|
350
351
|
* @param {string} props.sliceId
|
|
351
352
|
* @param {WebChartDataItem} props.sliceData
|
|
352
353
|
*/
|
|
353
|
-
setSeriesVisibility(
|
|
354
|
-
|
|
354
|
+
setSeriesVisibility(i) {
|
|
355
|
+
N({ detail: i }, this._config), this.emitConfigUpdate("setSeriesVisibility");
|
|
355
356
|
}
|
|
356
357
|
/**
|
|
357
358
|
* Gets the series ID for a given series index.
|
|
@@ -361,8 +362,8 @@ class L extends EventTarget {
|
|
|
361
362
|
* @param {number} seriesIndex The index of the series.
|
|
362
363
|
* @returns {string | undefined}
|
|
363
364
|
*/
|
|
364
|
-
getSeriesId(
|
|
365
|
-
return
|
|
365
|
+
getSeriesId(i) {
|
|
366
|
+
return Wi(i, this._config);
|
|
366
367
|
}
|
|
367
368
|
/**
|
|
368
369
|
* Gets the series index for a given series ID.
|
|
@@ -372,22 +373,22 @@ class L extends EventTarget {
|
|
|
372
373
|
* @param {string} seriesId
|
|
373
374
|
* @returns {number | undefined}
|
|
374
375
|
*/
|
|
375
|
-
getSeriesIndex(
|
|
376
|
-
return
|
|
376
|
+
getSeriesIndex(i) {
|
|
377
|
+
return Yi(i, this._config);
|
|
377
378
|
}
|
|
378
379
|
/**
|
|
379
380
|
* Gets the length of the series array.
|
|
380
381
|
* @returns {number}
|
|
381
382
|
*/
|
|
382
383
|
getSeriesLength() {
|
|
383
|
-
return
|
|
384
|
+
return wi(this._config);
|
|
384
385
|
}
|
|
385
386
|
/**
|
|
386
387
|
* Gets the chart sub type of the series.
|
|
387
388
|
* @returns {ChartSubType}
|
|
388
389
|
*/
|
|
389
390
|
getChartSubType() {
|
|
390
|
-
return
|
|
391
|
+
return R(this._config.series);
|
|
391
392
|
}
|
|
392
393
|
/**
|
|
393
394
|
* Gets the data tooltip value format for a series.
|
|
@@ -397,8 +398,8 @@ class L extends EventTarget {
|
|
|
397
398
|
* @param {number} seriesIndex The index of the series to retrieve the value format for.
|
|
398
399
|
* @returns {NumberFormatOptions | undefined}
|
|
399
400
|
*/
|
|
400
|
-
getDataTooltipValueFormat(
|
|
401
|
-
return
|
|
401
|
+
getDataTooltipValueFormat(i) {
|
|
402
|
+
return Oi(this._config.series, i);
|
|
402
403
|
}
|
|
403
404
|
/**
|
|
404
405
|
* Sets the data tooltip value format for a series.
|
|
@@ -406,11 +407,11 @@ class L extends EventTarget {
|
|
|
406
407
|
* @param {number} seriesIndex The index of the series to set the value format for.
|
|
407
408
|
* @param {NumberFormatOptions | undefined} valueFormat The value format to set.
|
|
408
409
|
*/
|
|
409
|
-
setDataTooltipValueFormat(
|
|
410
|
-
|
|
410
|
+
setDataTooltipValueFormat(i, t) {
|
|
411
|
+
Zi({
|
|
411
412
|
series: this._config.series,
|
|
412
|
-
seriesIndex:
|
|
413
|
-
valueFormat:
|
|
413
|
+
seriesIndex: i,
|
|
414
|
+
valueFormat: t
|
|
414
415
|
});
|
|
415
416
|
}
|
|
416
417
|
//#endregion
|
|
@@ -422,8 +423,8 @@ class L extends EventTarget {
|
|
|
422
423
|
*
|
|
423
424
|
* @param fetchNULLValues Whether to fetch `null` values.
|
|
424
425
|
*/
|
|
425
|
-
setFetchNULLValues(
|
|
426
|
-
|
|
426
|
+
setFetchNULLValues(i) {
|
|
427
|
+
ri(i, this._config), this.emitConfigUpdate("setFetchNULLValues");
|
|
427
428
|
}
|
|
428
429
|
/**
|
|
429
430
|
* Gets whether to fetch `null` values for them to be counted or displayed as categories on the chart.
|
|
@@ -431,14 +432,14 @@ class L extends EventTarget {
|
|
|
431
432
|
* @returns {boolean} Boolean value indicates whether NULL values will be fetched.
|
|
432
433
|
*/
|
|
433
434
|
getFetchNULLValues() {
|
|
434
|
-
return
|
|
435
|
+
return ai(this._config);
|
|
435
436
|
}
|
|
436
437
|
/**
|
|
437
438
|
* Gets the split-by values for the chart.
|
|
438
439
|
* @returns {string[]}
|
|
439
440
|
*/
|
|
440
441
|
getSplitByValues() {
|
|
441
|
-
return
|
|
442
|
+
return gi(this._config);
|
|
442
443
|
}
|
|
443
444
|
// #endregion
|
|
444
445
|
// ---------------------------------------------------------------------------------------------
|
|
@@ -448,10 +449,10 @@ class L extends EventTarget {
|
|
|
448
449
|
* Emits a config update event.
|
|
449
450
|
* @category Protected
|
|
450
451
|
*/
|
|
451
|
-
emitConfigUpdate(
|
|
452
|
+
emitConfigUpdate(i) {
|
|
452
453
|
this.dispatchEvent(
|
|
453
454
|
new CustomEvent("arcgisChartsModelConfigChange", {
|
|
454
|
-
detail: { config: this._config, functionCalled:
|
|
455
|
+
detail: { config: this._config, functionCalled: i }
|
|
455
456
|
})
|
|
456
457
|
);
|
|
457
458
|
}
|
|
@@ -462,35 +463,35 @@ class L extends EventTarget {
|
|
|
462
463
|
* @param params.iLayer The layer description to use if the layer is not provided
|
|
463
464
|
* @param params.config The config object to be loaded.
|
|
464
465
|
*/
|
|
465
|
-
async loadConfigFromLayer(
|
|
466
|
-
const { layer:
|
|
467
|
-
let
|
|
468
|
-
if (!
|
|
469
|
-
const
|
|
466
|
+
async loadConfigFromLayer(i) {
|
|
467
|
+
const { layer: t, iLayer: s, config: a } = i;
|
|
468
|
+
let r = t;
|
|
469
|
+
if (!r && s && (r = await k(s)), r) {
|
|
470
|
+
const c = await z(r, !0), { objectIdField: X } = r;
|
|
470
471
|
this.layerInfo = {
|
|
471
|
-
layer:
|
|
472
|
-
layerFieldsInfo:
|
|
473
|
-
objectIdField:
|
|
472
|
+
layer: r,
|
|
473
|
+
layerFieldsInfo: c,
|
|
474
|
+
objectIdField: X
|
|
474
475
|
};
|
|
475
476
|
}
|
|
476
|
-
this._config = a !== void 0 ? await
|
|
477
|
+
this._config = a !== void 0 ? await Ii(a) : await this.generateDefaultConfig(), this._config.legend !== void 0 && this._config.legend?.title === void 0 && (this._config.legend.title = E().title), s && (this._config.iLayer = s);
|
|
477
478
|
}
|
|
478
479
|
// #endregion
|
|
479
480
|
}
|
|
480
|
-
class
|
|
481
|
+
class B extends U {
|
|
481
482
|
/**
|
|
482
483
|
* Gets the x-axis title text.
|
|
483
484
|
* @returns {string}
|
|
484
485
|
*/
|
|
485
486
|
getXAxisTitleText() {
|
|
486
|
-
return
|
|
487
|
+
return T(0, this._config);
|
|
487
488
|
}
|
|
488
489
|
/**
|
|
489
490
|
* Sets the x-axis title text.
|
|
490
491
|
* @param {string} newXAxisTitleText - The new x-axis title text.
|
|
491
492
|
*/
|
|
492
|
-
setXAxisTitleText(
|
|
493
|
-
|
|
493
|
+
setXAxisTitleText(i) {
|
|
494
|
+
L(i, 0, this._config), this.emitConfigUpdate("setXAxisTitleText");
|
|
494
495
|
}
|
|
495
496
|
/**
|
|
496
497
|
* Gets whether the x-axis title is visible or not.
|
|
@@ -502,7 +503,7 @@ class A extends L {
|
|
|
502
503
|
* @returns {boolean}
|
|
503
504
|
*/
|
|
504
505
|
getXAxisTitleVisibility() {
|
|
505
|
-
return
|
|
506
|
+
return V(0, this._config);
|
|
506
507
|
}
|
|
507
508
|
/**
|
|
508
509
|
* Sets the visibility of the x-axis title.
|
|
@@ -513,336 +514,723 @@ class A extends L {
|
|
|
513
514
|
*
|
|
514
515
|
* @param {boolean} newXAxisTitleVisibility - Whether the x-axis title is visible or not.
|
|
515
516
|
*/
|
|
516
|
-
setXAxisTitleVisibility(
|
|
517
|
-
|
|
517
|
+
setXAxisTitleVisibility(i) {
|
|
518
|
+
A(i, 0, this._config), this.emitConfigUpdate("setXAxisTitleVisibility");
|
|
518
519
|
}
|
|
519
520
|
/**
|
|
520
521
|
* Gets the maximum bound that is currently set for the x-axis.
|
|
521
522
|
* @returns {number | null}
|
|
522
523
|
*/
|
|
523
524
|
getMaxXBound() {
|
|
524
|
-
return
|
|
525
|
+
return u({ config: this._config, axisIndex: 0, isMax: !0 });
|
|
525
526
|
}
|
|
526
527
|
/**
|
|
527
528
|
* Sets the maximum bound for the x-axis.
|
|
528
529
|
* @param {number | null} newMaxXBound - The new maximum bound for the x-axis.
|
|
529
530
|
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
530
531
|
*/
|
|
531
|
-
|
|
532
|
-
|
|
532
|
+
setMaxXBound(i) {
|
|
533
|
+
x({ config: this._config, value: i, axisIndex: 0, isMax: !0 }), this.emitConfigUpdate("setMaxXBound");
|
|
533
534
|
}
|
|
534
535
|
/**
|
|
535
536
|
* Gets the minimum bound that is currently set for the x-axis.
|
|
536
537
|
* @returns {number | null}
|
|
537
538
|
*/
|
|
538
539
|
getMinXBound() {
|
|
539
|
-
return
|
|
540
|
+
return u({ config: this._config, axisIndex: 0, isMax: !1 });
|
|
540
541
|
}
|
|
541
542
|
/**
|
|
542
543
|
* Sets the minimum bound for the x-axis.
|
|
543
544
|
* @param {number | null} newMinXBound - The new minimum bound for the x-axis.
|
|
544
545
|
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
545
546
|
*/
|
|
546
|
-
|
|
547
|
-
|
|
547
|
+
setMinXBound(i) {
|
|
548
|
+
li(this._config, i), this.emitConfigUpdate("setMinXBound");
|
|
548
549
|
}
|
|
549
550
|
/**
|
|
550
551
|
* Gets the x-axis title text symbol. Contains styling information such as font, color, and symbol style.
|
|
551
552
|
* @returns {WebChartTextSymbol | undefined}
|
|
552
553
|
*/
|
|
553
554
|
getXAxisTitleSymbol() {
|
|
554
|
-
return
|
|
555
|
+
return v(this._config, 0);
|
|
555
556
|
}
|
|
556
557
|
/**
|
|
557
558
|
* Sets the x-axis title text symbol. Contains styling information such as font, color, and symbol style.
|
|
558
559
|
* @param {WebChartTextSymbol | undefined} newXAxisTitle - The new x-axis title text symbol.
|
|
559
560
|
*/
|
|
560
|
-
setXAxisTitleSymbol(
|
|
561
|
-
|
|
561
|
+
setXAxisTitleSymbol(i) {
|
|
562
|
+
G({ symbol: i, axisIndex: 0, config: this._config }), this.emitConfigUpdate("setXAxisTitleSymbol");
|
|
562
563
|
}
|
|
563
564
|
/**
|
|
564
565
|
* Gets the axis labels text symbol. Contains styling information such as font, color, and symbol style.
|
|
565
566
|
* @returns {WebChartTextSymbol | undefined}
|
|
566
567
|
*/
|
|
567
568
|
getAxisLabelsSymbol() {
|
|
568
|
-
return
|
|
569
|
+
return ci(this._config);
|
|
569
570
|
}
|
|
570
571
|
/**
|
|
571
572
|
* Sets the axis labels text symbol. Contains styling information such as font, color, and symbol style.
|
|
572
573
|
* @param {WebChartTextSymbol | undefined} newAxisLabelsSymbol - The new axis labels text symbol.
|
|
573
574
|
*/
|
|
574
|
-
setAxisLabelsSymbol(
|
|
575
|
-
|
|
575
|
+
setAxisLabelsSymbol(i) {
|
|
576
|
+
fi(i, this._config), this.emitConfigUpdate("setAxisLabelsSymbol");
|
|
576
577
|
}
|
|
577
578
|
/**
|
|
578
579
|
* Gets the axis lines symbol. Contains styling information such as line width, line style, and line color.
|
|
579
580
|
* @returns {ISimpleLineSymbol | undefined}
|
|
580
581
|
*/
|
|
581
582
|
getAxisLinesSymbol() {
|
|
582
|
-
return
|
|
583
|
+
return ui(this._config);
|
|
583
584
|
}
|
|
584
585
|
/**
|
|
585
586
|
* Sets the axis lines symbol. Contains styling information such as line width, line style, and line color.
|
|
586
587
|
* @param {ISimpleLineSymbol | undefined} newAxisLinesSymbol - The new axis lines symbol.
|
|
587
588
|
*/
|
|
588
|
-
setAxisLinesSymbol(
|
|
589
|
-
|
|
589
|
+
setAxisLinesSymbol(i) {
|
|
590
|
+
hi(i, this._config), this.emitConfigUpdate("setAxisLinesSymbol");
|
|
590
591
|
}
|
|
591
592
|
}
|
|
592
|
-
const
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
}
|
|
603
|
-
t.cursorCrosshair = e;
|
|
593
|
+
const Pi = (e) => {
|
|
594
|
+
for (const i of e.axes ?? [])
|
|
595
|
+
for (const t of i?.guides ?? [])
|
|
596
|
+
if (t.label !== void 0)
|
|
597
|
+
return t.label;
|
|
598
|
+
}, ji = (e, i) => {
|
|
599
|
+
for (const t of i.axes ?? [])
|
|
600
|
+
for (const s of t?.guides ?? []) {
|
|
601
|
+
const a = s.label?.text ?? "";
|
|
602
|
+
s.label = M(e), s.label !== void 0 && (s.label.text = a);
|
|
603
|
+
}
|
|
604
604
|
};
|
|
605
|
-
|
|
605
|
+
function n(e) {
|
|
606
|
+
return {
|
|
607
|
+
...e,
|
|
608
|
+
axis: e.orientation === l.X ? e.config.axes?.[0] : e.config.axes?.[1],
|
|
609
|
+
index: e.index ?? 0,
|
|
610
|
+
orientation: e.orientation ?? l.Y
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
const qi = (e) => {
|
|
614
|
+
const { axis: i, index: t } = n(e);
|
|
615
|
+
return i?.guides?.[t]?.visible ?? !0;
|
|
616
|
+
}, $i = (e) => {
|
|
617
|
+
const { visible: i, axis: t, index: s } = n(e);
|
|
618
|
+
t?.guides?.[s] !== void 0 && (t.guides[s].visible = i);
|
|
619
|
+
}, D = (e) => {
|
|
620
|
+
const i = w(e.start, e.end);
|
|
621
|
+
Z(e.style) && i === f.SFS ? e.style = { type: f.SFS, color: e.style.color } : P(e.style) && i === f.SLS && (e.style = { type: f.SLS, color: e.style.color });
|
|
622
|
+
}, Ji = (e) => {
|
|
623
|
+
const { axis: i, index: t } = n(e);
|
|
624
|
+
return i?.guides?.[t]?.start ?? null;
|
|
625
|
+
}, Ki = (e) => {
|
|
626
|
+
const { start: i, axis: t, index: s } = n(e);
|
|
627
|
+
t?.guides?.[s] !== void 0 && (t.guides[s].start = i, D(t.guides[s]));
|
|
628
|
+
}, Qi = (e) => {
|
|
629
|
+
const { axis: i, index: t } = n(e);
|
|
630
|
+
return i?.guides?.[t]?.end;
|
|
631
|
+
}, it = (e) => {
|
|
632
|
+
const { end: i, axis: t, index: s } = n(e);
|
|
633
|
+
t?.guides?.[s] !== void 0 && (t.guides[s].end = i, D(t.guides[s]));
|
|
634
|
+
}, tt = (e) => {
|
|
635
|
+
const { axis: i, index: t } = n(e);
|
|
636
|
+
return i?.guides?.[t]?.name;
|
|
637
|
+
}, et = (e) => {
|
|
638
|
+
const { name: i, axis: t, index: s } = n(e);
|
|
639
|
+
t?.guides?.[s] !== void 0 && (t.guides[s].name = i);
|
|
640
|
+
}, st = (e) => {
|
|
641
|
+
const { axis: i, index: t } = n(e);
|
|
642
|
+
return i?.guides?.[t]?.label?.text;
|
|
643
|
+
}, ot = (e) => {
|
|
644
|
+
const { labelText: i, axis: t, index: s } = n(e), a = t?.guides?.[s]?.label ?? W(i, h(g.GuideLabel), g.GuideLabel);
|
|
645
|
+
t?.guides?.[s] !== void 0 && (t.guides[s].label = { ...a, text: i });
|
|
646
|
+
}, nt = (e) => {
|
|
647
|
+
const { axis: i, index: t } = n(e);
|
|
648
|
+
return i?.guides?.[t]?.above ?? !1;
|
|
649
|
+
}, rt = (e) => {
|
|
650
|
+
const { above: i, axis: t, index: s } = n(e);
|
|
651
|
+
t?.guides?.[s] !== void 0 && (t.guides[s].above = i);
|
|
652
|
+
}, at = (e) => {
|
|
653
|
+
const { axis: i, index: t } = n(e);
|
|
654
|
+
return i?.guides?.[t]?.style;
|
|
655
|
+
}, gt = (e) => {
|
|
656
|
+
const { style: i, axis: t, index: s } = n(e);
|
|
657
|
+
t?.guides?.[s] !== void 0 && (t.guides[s].style = i);
|
|
658
|
+
}, I = (e) => {
|
|
659
|
+
const { config: i, name: t, index: s, orientation: a } = e, r = a === l.X ? i.axes?.[0] : i.axes?.[1];
|
|
660
|
+
if (r !== void 0) {
|
|
661
|
+
r.guides = r.guides ?? [];
|
|
662
|
+
const c = {
|
|
663
|
+
type: p.Guide,
|
|
664
|
+
name: t,
|
|
665
|
+
start: r.valueFormat.type === p.DateAxisFormat ? "" : 0,
|
|
666
|
+
style: Y()
|
|
667
|
+
};
|
|
668
|
+
s !== void 0 && s < r.guides.length ? r.guides.splice(s, 0, c) : r.guides.push(c);
|
|
669
|
+
}
|
|
670
|
+
}, F = (e) => {
|
|
671
|
+
const { config: i, index: t, orientation: s } = e, a = s === l.X ? i.axes?.[0] : i.axes?.[1];
|
|
672
|
+
a?.guides !== void 0 && (t !== void 0 && t < a.guides.length ? a.guides.splice(t, 1) : a.guides.pop());
|
|
673
|
+
}, lt = (e) => {
|
|
674
|
+
const { axis: i, index: t } = n(e);
|
|
675
|
+
return i?.guides?.[t]?.tooltipReverseColor ?? !1;
|
|
676
|
+
}, ct = (e) => {
|
|
677
|
+
const { reverseColor: i, axis: t, index: s } = n(e);
|
|
678
|
+
t?.guides?.[s] !== void 0 && (t.guides[s].tooltipReverseColor = i);
|
|
679
|
+
};
|
|
680
|
+
class d extends U {
|
|
606
681
|
/**
|
|
607
|
-
* Gets the
|
|
608
|
-
* @returns {
|
|
682
|
+
* Gets the guide labels text symbol. Contains styling information such as font, color, and symbol style.
|
|
683
|
+
* @returns {WebChartTextSymbol | undefined}
|
|
609
684
|
*/
|
|
610
|
-
|
|
611
|
-
return
|
|
685
|
+
getGuideLabelsSymbol() {
|
|
686
|
+
return Pi(this._config);
|
|
612
687
|
}
|
|
613
688
|
/**
|
|
614
|
-
* Sets the
|
|
615
|
-
* @param {
|
|
689
|
+
* Sets the guide labels text symbol. Contains styling information such as font, color, and symbol style.
|
|
690
|
+
* @param {WebChartTextSymbol | undefined} newGuideLabelsSymbol
|
|
616
691
|
*/
|
|
617
|
-
|
|
618
|
-
|
|
692
|
+
setGuideLabelsSymbol(i) {
|
|
693
|
+
ji(i, this._config), this.emitConfigUpdate("setGuideLabels");
|
|
619
694
|
}
|
|
620
695
|
/**
|
|
621
|
-
* Gets
|
|
622
|
-
*
|
|
623
|
-
* `
|
|
624
|
-
*
|
|
625
|
-
* `false`: The Y-axis title is hidden.
|
|
626
|
-
*
|
|
696
|
+
* Gets whether a guide is visible.
|
|
697
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
698
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
627
699
|
* @returns {boolean}
|
|
628
700
|
*/
|
|
629
|
-
|
|
630
|
-
return
|
|
701
|
+
getGuideVisibility(i, t) {
|
|
702
|
+
return qi({ config: this._config, index: i, orientation: t });
|
|
631
703
|
}
|
|
632
704
|
/**
|
|
633
|
-
* Sets
|
|
634
|
-
*
|
|
635
|
-
* `
|
|
636
|
-
*
|
|
637
|
-
* `false`: Hide the Y-axis title.
|
|
638
|
-
*
|
|
639
|
-
* @param {boolean} visibility The visibility state of the Y-axis title.
|
|
705
|
+
* Sets whether a guide is visible
|
|
706
|
+
* @param {boolean} visible New visibility to set.
|
|
707
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
708
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
640
709
|
*/
|
|
641
|
-
|
|
642
|
-
|
|
710
|
+
setGuideVisibility(i, t, s) {
|
|
711
|
+
$i({ visible: i, config: this._config, index: t, orientation: s }), this.emitConfigUpdate("setGuideVisibility");
|
|
643
712
|
}
|
|
644
713
|
/**
|
|
645
|
-
* Gets the
|
|
646
|
-
* @
|
|
714
|
+
* Gets the start value of a guide.
|
|
715
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
716
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
717
|
+
* @returns {Date | number | string | null}
|
|
647
718
|
*/
|
|
648
|
-
|
|
649
|
-
return
|
|
719
|
+
getGuideStart(i, t) {
|
|
720
|
+
return Ji({ config: this._config, index: i, orientation: t });
|
|
650
721
|
}
|
|
651
722
|
/**
|
|
652
|
-
* Sets the
|
|
653
|
-
* @param {
|
|
654
|
-
* @
|
|
723
|
+
* Sets the start value of a guide.
|
|
724
|
+
* @param {Date | number | string | null} start New start value to set.
|
|
725
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
726
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
655
727
|
*/
|
|
656
|
-
|
|
657
|
-
|
|
728
|
+
setGuideStart(i, t, s) {
|
|
729
|
+
Ki({ start: i, config: this._config, index: t, orientation: s }), this.emitConfigUpdate("setGuideStart");
|
|
658
730
|
}
|
|
659
731
|
/**
|
|
660
|
-
* Gets the
|
|
661
|
-
* @
|
|
732
|
+
* Gets the end value of a guide.
|
|
733
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
734
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
735
|
+
* @returns {Date | number | string | null}
|
|
662
736
|
*/
|
|
663
|
-
|
|
664
|
-
return
|
|
737
|
+
getGuideEnd(i, t) {
|
|
738
|
+
return Qi({ config: this._config, index: i, orientation: t });
|
|
665
739
|
}
|
|
666
740
|
/**
|
|
667
|
-
* Sets the
|
|
668
|
-
* @param {
|
|
669
|
-
* @
|
|
741
|
+
* Sets the end value of a guide.
|
|
742
|
+
* @param {Date | number | string | null | undefined} end New end value to set.
|
|
743
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
744
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
670
745
|
*/
|
|
671
|
-
|
|
672
|
-
|
|
746
|
+
setGuideEnd(i, t, s) {
|
|
747
|
+
it({ end: i, config: this._config, index: t, orientation: s }), this.emitConfigUpdate("setGuideEnd");
|
|
673
748
|
}
|
|
674
749
|
/**
|
|
675
|
-
* Gets the
|
|
676
|
-
* @
|
|
750
|
+
* Gets the name of a guide.
|
|
751
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
752
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
753
|
+
* @returns {string | undefined}
|
|
677
754
|
*/
|
|
678
|
-
|
|
679
|
-
return
|
|
755
|
+
getGuideName(i, t) {
|
|
756
|
+
return tt({ config: this._config, index: i, orientation: t });
|
|
680
757
|
}
|
|
681
758
|
/**
|
|
682
|
-
* Sets the
|
|
683
|
-
* @param {
|
|
684
|
-
* @
|
|
759
|
+
* Sets the name of a guide.
|
|
760
|
+
* @param {string} name New name to set.
|
|
761
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
762
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
685
763
|
*/
|
|
686
|
-
|
|
687
|
-
|
|
764
|
+
setGuideName(i, t, s) {
|
|
765
|
+
et({ name: i, config: this._config, index: t, orientation: s }), this.emitConfigUpdate("setGuideName");
|
|
688
766
|
}
|
|
689
767
|
/**
|
|
690
|
-
* Gets the
|
|
691
|
-
* @
|
|
768
|
+
* Gets the guide label text.
|
|
769
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
770
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
771
|
+
* @returns {string | undefined}
|
|
692
772
|
*/
|
|
693
|
-
|
|
694
|
-
return
|
|
773
|
+
getGuideLabelText(i, t) {
|
|
774
|
+
return st({ config: this._config, index: i, orientation: t });
|
|
695
775
|
}
|
|
696
776
|
/**
|
|
697
|
-
* Sets the
|
|
698
|
-
* @param {
|
|
699
|
-
* @
|
|
777
|
+
* Sets the guide label text.
|
|
778
|
+
* @param {string} labelText New label text to set.
|
|
779
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
780
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
700
781
|
*/
|
|
701
|
-
|
|
702
|
-
|
|
782
|
+
setGuideLabelText(i, t, s) {
|
|
783
|
+
ot({ labelText: i, config: this._config, index: t, orientation: s }), this.emitConfigUpdate("setGuideLabelText");
|
|
703
784
|
}
|
|
704
785
|
/**
|
|
705
|
-
* Gets whether
|
|
706
|
-
*
|
|
707
|
-
* `
|
|
708
|
-
*
|
|
709
|
-
* `false`: Logarithmic scale is disabled for the x-axis.
|
|
710
|
-
*
|
|
786
|
+
* Gets whether the guide should be rendered above the other chart elements.
|
|
787
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
788
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
711
789
|
* @returns {boolean}
|
|
712
790
|
*/
|
|
713
|
-
|
|
714
|
-
return
|
|
791
|
+
getGuideAbove(i, t) {
|
|
792
|
+
return nt({ config: this._config, index: i, orientation: t });
|
|
715
793
|
}
|
|
716
794
|
/**
|
|
717
|
-
* Sets whether
|
|
718
|
-
*
|
|
719
|
-
* `
|
|
720
|
-
*
|
|
721
|
-
* `false`: Disable logarithmic scale for the x-axis.
|
|
722
|
-
*
|
|
723
|
-
* @param {boolean} logarithmicState The state of the logarithmic scale for the x-axis.
|
|
724
|
-
* @async **This method is `async` and must be awaited for the changes to take effect.**
|
|
795
|
+
* Sets whether the guide should be rendered above the other chart elements.
|
|
796
|
+
* @param {boolean} above New above boolean to set.
|
|
797
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
798
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
725
799
|
*/
|
|
726
|
-
|
|
727
|
-
|
|
800
|
+
setGuideAbove(i, t, s) {
|
|
801
|
+
rt({ above: i, config: this._config, index: t, orientation: s }), this.emitConfigUpdate("setGuideAbove");
|
|
728
802
|
}
|
|
729
803
|
/**
|
|
730
|
-
* Gets
|
|
731
|
-
*
|
|
732
|
-
* `
|
|
733
|
-
*
|
|
734
|
-
|
|
804
|
+
* Gets the guide style.
|
|
805
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
806
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
807
|
+
* @returns {ISimpleFillSymbol | ISimpleLineSymbol | undefined}
|
|
808
|
+
*/
|
|
809
|
+
getGuideStyle(i, t) {
|
|
810
|
+
return at({ config: this._config, index: i, orientation: t });
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Sets the guide style.
|
|
814
|
+
* @param {ISimpleFillSymbol | ISimpleLineSymbol} style New style to set.
|
|
815
|
+
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
816
|
+
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
817
|
+
*/
|
|
818
|
+
setGuideStyle(i, t, s) {
|
|
819
|
+
gt({ style: i, config: this._config, index: t, orientation: s }), this.emitConfigUpdate("setGuideStyle");
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Gets whether the tooltip text color should be reversed for a guide.
|
|
823
|
+
* @param index - The index of the guide in the list of guides for the given axis orientation.
|
|
824
|
+
* @param orientation - The axis orientation of the guide.
|
|
825
|
+
* @returns {boolean}
|
|
826
|
+
*/
|
|
827
|
+
getTooltipReverseColor(i, t) {
|
|
828
|
+
return lt({ config: this._config, index: i, orientation: t });
|
|
829
|
+
}
|
|
830
|
+
/**
|
|
831
|
+
* Sets whether the tooltip text color should be reversed for a guide.
|
|
832
|
+
* @param reverseColor - New reverseColor boolean to set.
|
|
833
|
+
* @param index - The index of the guide in the list of guides for the given axis orientation.
|
|
834
|
+
* @param orientation - The axis orientation of the guide.
|
|
835
|
+
*/
|
|
836
|
+
setTooltipReverseColor(i, t, s) {
|
|
837
|
+
ct({ reverseColor: i, config: this._config, index: t, orientation: s }), this.emitConfigUpdate("setTooltipReverseColor");
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
class ft extends d {
|
|
841
|
+
// ---------------------------------------------------------------------------------------------
|
|
842
|
+
// Guides Methods
|
|
843
|
+
// ---------------------------------------------------------------------------------------------
|
|
844
|
+
/**
|
|
845
|
+
* Gets the number guides in the X-axis guides list.
|
|
846
|
+
* @returns {number | undefined} The number of X-axis guides.
|
|
847
|
+
*/
|
|
848
|
+
getXGuidesLength() {
|
|
849
|
+
return this._config.axes?.[0]?.guides?.length;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* Adds an X-axis guide.
|
|
853
|
+
* @param {string} name The name of the guide.
|
|
854
|
+
* @param {number} [index] The index to insert the new guide in the list of X-axis guides. If left `undefined`, the guide is appended to the end of the list.
|
|
855
|
+
*/
|
|
856
|
+
addXAxisGuide(i, t) {
|
|
857
|
+
I({
|
|
858
|
+
config: this._config,
|
|
859
|
+
name: i,
|
|
860
|
+
index: t,
|
|
861
|
+
orientation: l.X
|
|
862
|
+
}), this.emitConfigUpdate("addXAxisGuide");
|
|
863
|
+
}
|
|
864
|
+
/**
|
|
865
|
+
* Deletes an X-axis guide.
|
|
866
|
+
* @param {number} [index] The index of the guide to delete in the list of X-axis guides. If left `undefined`, the last guide in the list is deleted.
|
|
867
|
+
*/
|
|
868
|
+
deleteXAxisGuide(i) {
|
|
869
|
+
F({
|
|
870
|
+
config: this._config,
|
|
871
|
+
index: i,
|
|
872
|
+
orientation: l.X
|
|
873
|
+
}), this.emitConfigUpdate("deleteXAxisGuide");
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
y(ft, [d]);
|
|
877
|
+
class ut extends d {
|
|
878
|
+
/**
|
|
879
|
+
* Gets the number guides in the Y-axis guides list.
|
|
880
|
+
* @returns {number | undefined} The number of Y-axis guides.
|
|
881
|
+
*/
|
|
882
|
+
getYGuidesLength() {
|
|
883
|
+
return this._config.axes?.[1]?.guides?.length;
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* Adds a Y-axis guide.
|
|
887
|
+
* @param {string} name The name of the guide.
|
|
888
|
+
* @param {number} [index] The index to insert the new guide in the list of Y-axis guides. If left `undefined`, the guide is appended to the end of the list.
|
|
889
|
+
*/
|
|
890
|
+
addYAxisGuide(i, t) {
|
|
891
|
+
I({
|
|
892
|
+
config: this._config,
|
|
893
|
+
name: i,
|
|
894
|
+
index: t,
|
|
895
|
+
orientation: l.Y
|
|
896
|
+
}), this.emitConfigUpdate("addYAxisGuide");
|
|
897
|
+
}
|
|
898
|
+
/**
|
|
899
|
+
* Deletes a Y-axis guide.
|
|
900
|
+
* @param {number} [index] The index of the guide to delete in the list of Y-axis guides. If left `undefined`, the last guide in the list is deleted.
|
|
901
|
+
*/
|
|
902
|
+
deleteYAxisGuide(i) {
|
|
903
|
+
F({
|
|
904
|
+
config: this._config,
|
|
905
|
+
index: i,
|
|
906
|
+
orientation: l.Y
|
|
907
|
+
}), this.emitConfigUpdate("deleteYAxisGuide");
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
y(ut, [d]);
|
|
911
|
+
const ht = (e) => e.horizontalAxisLabelsBehavior ?? _.Rotate, dt = (e, i) => {
|
|
912
|
+
i.horizontalAxisLabelsBehavior = e;
|
|
913
|
+
}, xt = (e) => e.verticalAxisLabelsBehavior ?? _.Wrap, bt = (e, i) => {
|
|
914
|
+
i.verticalAxisLabelsBehavior = e;
|
|
915
|
+
}, mt = (e) => e.cursorCrosshair?.horizontalLineVisible ?? !1, Ct = (e, i) => {
|
|
916
|
+
i.cursorCrosshair === void 0 && (i.cursorCrosshair = m()), i.cursorCrosshair.horizontalLineVisible = e;
|
|
917
|
+
}, yt = (e) => e.cursorCrosshair?.verticalLineVisible ?? !1, pt = (e, i) => {
|
|
918
|
+
i.cursorCrosshair === void 0 && (i.cursorCrosshair = m()), i.cursorCrosshair.verticalLineVisible = e;
|
|
919
|
+
}, _t = (e) => e.cursorCrosshair?.style, St = (e, i) => {
|
|
920
|
+
i.cursorCrosshair === void 0 && (i.cursorCrosshair = m()), i.cursorCrosshair.style = e;
|
|
921
|
+
}, Tt = (e) => e.cursorCrosshair, Lt = (e, i) => {
|
|
922
|
+
i.cursorCrosshair = e;
|
|
923
|
+
};
|
|
924
|
+
class Vt extends B {
|
|
925
|
+
/**
|
|
926
|
+
* Gets the title text of the specified axis.
|
|
927
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
928
|
+
* @returns {string}
|
|
929
|
+
*/
|
|
930
|
+
getAxisTitleText(i) {
|
|
931
|
+
return o({
|
|
932
|
+
config: this._config,
|
|
933
|
+
axisIndex: i,
|
|
934
|
+
func: (t) => T(t, this._config)
|
|
935
|
+
}) ?? "";
|
|
936
|
+
}
|
|
937
|
+
/**
|
|
938
|
+
* Sets the title text for the specified axis.
|
|
939
|
+
* @param {string} titleText The title text for the axis.
|
|
940
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
735
941
|
*
|
|
942
|
+
* **NOTE**: The title text for the second Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart.
|
|
943
|
+
* To enable the second Y-axis, use the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
944
|
+
*/
|
|
945
|
+
setAxisTitleText(i, t) {
|
|
946
|
+
o({
|
|
947
|
+
config: this._config,
|
|
948
|
+
axisIndex: t,
|
|
949
|
+
func: (s) => {
|
|
950
|
+
L(i, s, this._config), this.emitConfigUpdate("setAxisTitleText");
|
|
951
|
+
}
|
|
952
|
+
});
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* Gets the visibility of the specified axis title.
|
|
956
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
736
957
|
* @returns {boolean}
|
|
737
958
|
*/
|
|
738
|
-
|
|
739
|
-
return
|
|
959
|
+
getAxisTitleVisibility(i) {
|
|
960
|
+
return o({
|
|
961
|
+
config: this._config,
|
|
962
|
+
axisIndex: i,
|
|
963
|
+
func: (t) => V(t, this._config)
|
|
964
|
+
}) ?? !1;
|
|
740
965
|
}
|
|
741
966
|
/**
|
|
742
|
-
* Sets
|
|
967
|
+
* Sets the visibility of the specified axis title.
|
|
968
|
+
* @param {boolean} isVisible The visibility state for the axis title.
|
|
969
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
743
970
|
*
|
|
744
|
-
*
|
|
971
|
+
* **NOTE**: The title visibility for the second Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart.
|
|
972
|
+
* To enable the second Y-axis, use the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
973
|
+
*/
|
|
974
|
+
setAxisTitleVisibility(i, t) {
|
|
975
|
+
o({
|
|
976
|
+
config: this._config,
|
|
977
|
+
axisIndex: t,
|
|
978
|
+
func: (s) => {
|
|
979
|
+
A(i, s, this._config), this.emitConfigUpdate("setAxisTitleVisibility");
|
|
980
|
+
}
|
|
981
|
+
});
|
|
982
|
+
}
|
|
983
|
+
/**
|
|
984
|
+
* Gets the maximum bound for the specified axis.
|
|
985
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
986
|
+
*@returns {number}
|
|
987
|
+
*/
|
|
988
|
+
getMaxBound(i) {
|
|
989
|
+
return o({
|
|
990
|
+
config: this._config,
|
|
991
|
+
axisIndex: i,
|
|
992
|
+
func: (t) => u({ config: this._config, axisIndex: t, isMax: !0 })
|
|
993
|
+
}) ?? Number.NaN;
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* Sets the maximum bound for the specified axis.
|
|
997
|
+
* @param {number | null} newMaxBound The value to set as the maximum bound.
|
|
998
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
999
|
+
*
|
|
1000
|
+
* **NOTE**: The maximum bound for the second Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart.
|
|
1001
|
+
* To enable the second Y-axis, use the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
1002
|
+
*/
|
|
1003
|
+
setMaxBound(i, t) {
|
|
1004
|
+
o({
|
|
1005
|
+
config: this._config,
|
|
1006
|
+
axisIndex: t,
|
|
1007
|
+
func: (s) => {
|
|
1008
|
+
x({ config: this._config, value: i, axisIndex: s, isMax: !0 }), this.emitConfigUpdate("setMaxBound");
|
|
1009
|
+
}
|
|
1010
|
+
});
|
|
1011
|
+
}
|
|
1012
|
+
/**
|
|
1013
|
+
* Gets the minimum bound for the specified axis.
|
|
1014
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
1015
|
+
* @returns {number}
|
|
1016
|
+
*/
|
|
1017
|
+
getMinBound(i) {
|
|
1018
|
+
return o({
|
|
1019
|
+
config: this._config,
|
|
1020
|
+
axisIndex: i,
|
|
1021
|
+
func: (t) => u({ config: this._config, axisIndex: t, isMax: !1 })
|
|
1022
|
+
}) ?? Number.NaN;
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* Sets the minimum bound for the specified axis.
|
|
1026
|
+
* @param {number | null} newMinBound The value to set as the minimum bound.
|
|
1027
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
745
1028
|
*
|
|
746
|
-
*
|
|
1029
|
+
* **NOTE**: The minimum bound for the second Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart.
|
|
1030
|
+
* To enable the second Y-axis, use the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
1031
|
+
*/
|
|
1032
|
+
setMinBound(i, t) {
|
|
1033
|
+
o({
|
|
1034
|
+
config: this._config,
|
|
1035
|
+
axisIndex: t,
|
|
1036
|
+
func: (s) => {
|
|
1037
|
+
x({ config: this._config, value: i, axisIndex: s, isMax: !1 }), this.emitConfigUpdate("setMinBound");
|
|
1038
|
+
}
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Gets the value format for the specified axis.
|
|
1043
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
1044
|
+
* @returns {CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions | undefined}
|
|
1045
|
+
*/
|
|
1046
|
+
getAxisValueFormat(i) {
|
|
1047
|
+
return o({
|
|
1048
|
+
config: this._config,
|
|
1049
|
+
axisIndex: i,
|
|
1050
|
+
func: (t) => mi(t, this._config)
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Sets the value format for the specified axis.
|
|
1055
|
+
* @param {CategoryFormatOptions | DateTimeFormatOptions | NumberFormatOptions} valueFormat The value format to set.
|
|
1056
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
747
1057
|
*
|
|
748
|
-
*
|
|
749
|
-
*
|
|
1058
|
+
* **NOTE**: The value format for the second Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart.
|
|
1059
|
+
* To enable the second Y-axis, use the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
750
1060
|
*/
|
|
751
|
-
async
|
|
752
|
-
await
|
|
1061
|
+
async setAxisValueFormat(i, t) {
|
|
1062
|
+
await o({
|
|
1063
|
+
config: this._config,
|
|
1064
|
+
axisIndex: i,
|
|
1065
|
+
func: async (s) => {
|
|
1066
|
+
await Ci({ config: this._config, valueFormat: t, axisIndex: s }), this.emitConfigUpdate("setAxisValueFormat");
|
|
1067
|
+
}
|
|
1068
|
+
});
|
|
753
1069
|
}
|
|
754
1070
|
/**
|
|
755
|
-
* Gets the
|
|
756
|
-
* @
|
|
1071
|
+
* Gets whether logarithmic scale is enabled for the specified axis.
|
|
1072
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
1073
|
+
*
|
|
1074
|
+
* `true`: Logarithmic scale is enabled for the specified axis.
|
|
1075
|
+
*
|
|
1076
|
+
* `false`: Logarithmic scale is disabled for the specified axis.
|
|
1077
|
+
*
|
|
1078
|
+
* @returns {boolean}
|
|
757
1079
|
*/
|
|
758
|
-
|
|
759
|
-
return
|
|
1080
|
+
getLogarithmic(i) {
|
|
1081
|
+
return o({
|
|
1082
|
+
config: this._config,
|
|
1083
|
+
axisIndex: i,
|
|
1084
|
+
func: (t) => yi(this._config, t)
|
|
1085
|
+
}) ?? !1;
|
|
760
1086
|
}
|
|
761
1087
|
/**
|
|
762
|
-
* Sets the
|
|
763
|
-
*
|
|
1088
|
+
* Sets whether logarithmic scale is enabled for the specified axis.
|
|
1089
|
+
*
|
|
1090
|
+
* `true`: Enable logarithmic scale for the specified axis.
|
|
1091
|
+
*
|
|
1092
|
+
* `false`: Disable logarithmic scale for the specified axis.
|
|
1093
|
+
*
|
|
1094
|
+
* @param {boolean} isLogarithmic Whether to enable logarithmic scale for the specified axis.
|
|
1095
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
1096
|
+
*
|
|
1097
|
+
* **NOTE**: The logarithmic scale for the second Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart.
|
|
1098
|
+
* To enable the second Y-axis, use the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
764
1099
|
*/
|
|
765
|
-
|
|
766
|
-
|
|
1100
|
+
setLogarithmic(i, t) {
|
|
1101
|
+
o({
|
|
1102
|
+
config: this._config,
|
|
1103
|
+
axisIndex: t,
|
|
1104
|
+
func: (s) => {
|
|
1105
|
+
pi({
|
|
1106
|
+
config: this._config,
|
|
1107
|
+
isLogarithmic: i,
|
|
1108
|
+
axisIndex: s
|
|
1109
|
+
}), this.emitConfigUpdate("setLogarithmic");
|
|
1110
|
+
}
|
|
1111
|
+
});
|
|
767
1112
|
}
|
|
768
1113
|
/**
|
|
769
|
-
* Gets the
|
|
1114
|
+
* Gets the scrollbar configuration for the specified axis.
|
|
1115
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
770
1116
|
* @returns {WebChartAxisScrollBar | undefined}
|
|
771
1117
|
*/
|
|
772
|
-
|
|
773
|
-
return
|
|
1118
|
+
getAxisScrollbar(i) {
|
|
1119
|
+
return o({
|
|
1120
|
+
config: this._config,
|
|
1121
|
+
axisIndex: i,
|
|
1122
|
+
func: (t) => this._config.axes?.[t]?.scrollbar
|
|
1123
|
+
});
|
|
774
1124
|
}
|
|
775
1125
|
/**
|
|
776
|
-
* Sets the
|
|
777
|
-
* @param {WebChartAxisScrollBar} scrollbar The
|
|
1126
|
+
* Sets the scrollbar configuration for the specified axis.
|
|
1127
|
+
* @param {WebChartAxisScrollBar} scrollbar The scrollbar configuration to set.
|
|
1128
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
1129
|
+
*
|
|
1130
|
+
* **NOTE**: The scrollbar configuration for the second Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart.
|
|
1131
|
+
* To enable the second Y-axis, use the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
778
1132
|
*/
|
|
779
|
-
|
|
780
|
-
|
|
1133
|
+
setAxisScrollbar(i, t) {
|
|
1134
|
+
o({
|
|
1135
|
+
config: this._config,
|
|
1136
|
+
axisIndex: t,
|
|
1137
|
+
func: (s) => {
|
|
1138
|
+
_i({
|
|
1139
|
+
config: this._config,
|
|
1140
|
+
scrollbar: i,
|
|
1141
|
+
axisIndex: s
|
|
1142
|
+
}), this.emitConfigUpdate("setAxisScrollbar");
|
|
1143
|
+
}
|
|
1144
|
+
});
|
|
781
1145
|
}
|
|
782
1146
|
/**
|
|
783
|
-
* Gets the
|
|
1147
|
+
* Gets the specified title text symbol. Contains styling information such as font, color, and symbol style.
|
|
784
1148
|
* @returns {WebChartTextSymbol | undefined}
|
|
785
1149
|
*/
|
|
786
|
-
|
|
787
|
-
return
|
|
1150
|
+
getAxisTitleSymbol(i) {
|
|
1151
|
+
return o({
|
|
1152
|
+
config: this._config,
|
|
1153
|
+
axisIndex: i,
|
|
1154
|
+
func: (t) => v(this._config, t)
|
|
1155
|
+
});
|
|
788
1156
|
}
|
|
789
1157
|
/**
|
|
790
|
-
* Sets the
|
|
791
|
-
* @param {WebChartTextSymbol | undefined} titleSymbol The
|
|
1158
|
+
* Sets the title text symbol for the specified axis. Contains styling information such as font, color, and symbol style.
|
|
1159
|
+
* @param {WebChartTextSymbol | undefined} titleSymbol The title text symbol to set.
|
|
1160
|
+
* @param {number} axisIndex The index of the axis (0 for X-axis, 1 for Y-axis, 2 for second Y-axis).
|
|
1161
|
+
*
|
|
1162
|
+
* **NOTE**: The title text symbol for the second Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart.
|
|
1163
|
+
* To enable the second Y-axis, use the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
792
1164
|
*/
|
|
793
|
-
|
|
794
|
-
|
|
1165
|
+
setAxisTitleSymbol(i, t) {
|
|
1166
|
+
o({
|
|
1167
|
+
config: this._config,
|
|
1168
|
+
axisIndex: t,
|
|
1169
|
+
func: (s) => {
|
|
1170
|
+
G({ symbol: i, config: this._config, axisIndex: s }), this.emitConfigUpdate("setAxisTitleSymbol");
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
795
1173
|
}
|
|
796
1174
|
/**
|
|
797
1175
|
* Gets the horizontal axis labels behavior for the chart.
|
|
798
1176
|
* @returns {WebChartLabelBehavior}
|
|
799
1177
|
*/
|
|
800
1178
|
getHorizontalAxisLabelsBehavior() {
|
|
801
|
-
return
|
|
1179
|
+
return ht(this._config);
|
|
802
1180
|
}
|
|
803
1181
|
/**
|
|
804
1182
|
* Sets the horizontal axis labels behavior for the chart.
|
|
805
1183
|
* @param horizontalBehavior The behavior for the horizontal axis labels.
|
|
1184
|
+
*
|
|
1185
|
+
* **NOTE**: The horizontal axis labels behavior for the second Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart.
|
|
1186
|
+
* To enable the second Y-axis, use the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
1187
|
+
*
|
|
806
1188
|
*/
|
|
807
|
-
setHorizontalAxisLabelsBehavior(
|
|
808
|
-
|
|
1189
|
+
setHorizontalAxisLabelsBehavior(i) {
|
|
1190
|
+
dt(i, this._config), this.emitConfigUpdate("setHorizontalAxisLabelsBehavior");
|
|
809
1191
|
}
|
|
810
1192
|
/**
|
|
811
1193
|
* Gets the vertical axis labels behavior for the chart.
|
|
812
1194
|
* @returns {WebChartLabelBehavior}
|
|
813
1195
|
*/
|
|
814
1196
|
getVerticalAxisLabelsBehavior() {
|
|
815
|
-
return
|
|
1197
|
+
return xt(this._config);
|
|
816
1198
|
}
|
|
817
1199
|
/**
|
|
818
1200
|
* Sets the vertical axis labels behavior for the chart.
|
|
819
1201
|
* @param verticalBehavior The behavior for the vertical axis labels.
|
|
1202
|
+
*
|
|
1203
|
+
* **NOTE**: The vertical axis labels behavior for the second Y-axis (axisIndex 2) will only be applied if there is a second Y-axis in the chart.
|
|
1204
|
+
* To enable the second Y-axis, use the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
820
1205
|
*/
|
|
821
|
-
setVerticalAxisLabelsBehavior(
|
|
822
|
-
|
|
1206
|
+
setVerticalAxisLabelsBehavior(i) {
|
|
1207
|
+
bt(i, this._config), this.emitConfigUpdate("setVerticalAxisLabelsBehavior");
|
|
823
1208
|
}
|
|
824
1209
|
/**
|
|
825
1210
|
* Gets the grid lines symbol. Contains styling information such as line width, line style, and line color.
|
|
826
1211
|
* @returns {ISimpleLineSymbol | undefined}
|
|
827
1212
|
*/
|
|
828
1213
|
getGridLinesSymbol() {
|
|
829
|
-
return
|
|
1214
|
+
return di(this._config);
|
|
830
1215
|
}
|
|
831
1216
|
/**
|
|
832
1217
|
* Sets the grid lines symbol. Contains styling information such as line width, line style, and line color.
|
|
833
1218
|
* @param {ISimpleLineSymbol | undefined} linesSymbol The grid lines symbol.
|
|
1219
|
+
* @param {number[]} axisIndices The indices of the axes to set the grid lines symbol for.
|
|
1220
|
+
*
|
|
1221
|
+
* **NOTE**: To set the grid lines symbol for the second Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
834
1222
|
*/
|
|
835
|
-
setGridLinesSymbol(t) {
|
|
836
|
-
|
|
1223
|
+
setGridLinesSymbol(i, t) {
|
|
1224
|
+
Array.isArray(t) && xi(i, this._config, t), this.emitConfigUpdate("setGridLinesSymbol");
|
|
837
1225
|
}
|
|
838
1226
|
/**
|
|
839
1227
|
* Get the default x-axis title text.
|
|
840
1228
|
* @returns {Promise<string>}
|
|
841
1229
|
*/
|
|
842
1230
|
async getDefaultXAxisTitleText() {
|
|
843
|
-
return (await
|
|
844
|
-
|
|
845
|
-
|
|
1231
|
+
return (await H(
|
|
1232
|
+
O(document.documentElement).t9nLocale,
|
|
1233
|
+
Di("./assets/common/t9n"),
|
|
846
1234
|
"messages."
|
|
847
1235
|
)).utilsStrings.statistics.count;
|
|
848
1236
|
}
|
|
@@ -855,8 +1243,12 @@ class Ci extends A {
|
|
|
855
1243
|
* b. To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
856
1244
|
* c. If the displayZeroLine is not set on the axis, the default value of `false` will be returned.
|
|
857
1245
|
*/
|
|
858
|
-
getDisplayZeroLine(
|
|
859
|
-
return
|
|
1246
|
+
getDisplayZeroLine(i) {
|
|
1247
|
+
return o({
|
|
1248
|
+
config: this._config,
|
|
1249
|
+
axisIndex: i,
|
|
1250
|
+
func: (t) => Si(this._config, t)
|
|
1251
|
+
}) ?? !1;
|
|
860
1252
|
}
|
|
861
1253
|
/**
|
|
862
1254
|
* Sets the display zero line setting for the specified axis.
|
|
@@ -865,9 +1257,17 @@ class Ci extends A {
|
|
|
865
1257
|
* @remarks
|
|
866
1258
|
* a. This setting is only applicable to the axis of type ValueAxis.
|
|
867
1259
|
* b. To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1260
|
+
*
|
|
1261
|
+
* **NOTE**: To set the display zero line for the second Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
868
1262
|
*/
|
|
869
|
-
setDisplayZeroLine(
|
|
870
|
-
|
|
1263
|
+
setDisplayZeroLine(i, t) {
|
|
1264
|
+
o({
|
|
1265
|
+
config: this._config,
|
|
1266
|
+
axisIndex: t,
|
|
1267
|
+
func: (s) => {
|
|
1268
|
+
Ti(this._config, i, s), this.emitConfigUpdate("setDisplayZeroLine");
|
|
1269
|
+
}
|
|
1270
|
+
});
|
|
871
1271
|
}
|
|
872
1272
|
/**
|
|
873
1273
|
* Gets the display cursor tooltip setting for the specified axis.
|
|
@@ -877,8 +1277,12 @@ class Ci extends A {
|
|
|
877
1277
|
* a. To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
878
1278
|
* b. If the displayCursorTooltip is not set on the axis, the default value of `false` will be returned.
|
|
879
1279
|
*/
|
|
880
|
-
getDisplayCursorTooltip(
|
|
881
|
-
return
|
|
1280
|
+
getDisplayCursorTooltip(i) {
|
|
1281
|
+
return o({
|
|
1282
|
+
config: this._config,
|
|
1283
|
+
axisIndex: i,
|
|
1284
|
+
func: (t) => Li(this._config, t)
|
|
1285
|
+
}) ?? !1;
|
|
882
1286
|
}
|
|
883
1287
|
/**
|
|
884
1288
|
* Sets the display cursor tooltip setting for the specified axis.
|
|
@@ -886,9 +1290,21 @@ class Ci extends A {
|
|
|
886
1290
|
* @param axisIndex The index of the axis to set the display cursor tooltip for.
|
|
887
1291
|
* @remarks
|
|
888
1292
|
* a. To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1293
|
+
*
|
|
1294
|
+
* **NOTE**: To set the display cursor tooltip for the second Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
889
1295
|
*/
|
|
890
|
-
setDisplayCursorTooltip(
|
|
891
|
-
|
|
1296
|
+
setDisplayCursorTooltip(i, t) {
|
|
1297
|
+
o({
|
|
1298
|
+
config: this._config,
|
|
1299
|
+
axisIndex: t,
|
|
1300
|
+
func: (s) => {
|
|
1301
|
+
Vi({
|
|
1302
|
+
config: this._config,
|
|
1303
|
+
displayCursorTooltip: i,
|
|
1304
|
+
axisIndex: s
|
|
1305
|
+
}), this.emitConfigUpdate("setDisplayCursorTooltip");
|
|
1306
|
+
}
|
|
1307
|
+
});
|
|
892
1308
|
}
|
|
893
1309
|
/**
|
|
894
1310
|
* Gets the buffer setting for the specified axis.
|
|
@@ -899,8 +1315,12 @@ class Ci extends A {
|
|
|
899
1315
|
* b. To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
900
1316
|
* c. If the `buffer` is not set on the axis, the default value of `false` will be returned.
|
|
901
1317
|
*/
|
|
902
|
-
getBuffer(
|
|
903
|
-
return
|
|
1318
|
+
getBuffer(i) {
|
|
1319
|
+
return o({
|
|
1320
|
+
config: this._config,
|
|
1321
|
+
axisIndex: i,
|
|
1322
|
+
func: (t) => Ai(this._config, t)
|
|
1323
|
+
}) ?? !1;
|
|
904
1324
|
}
|
|
905
1325
|
/**
|
|
906
1326
|
* Sets the buffer for the specified axis.
|
|
@@ -909,9 +1329,21 @@ class Ci extends A {
|
|
|
909
1329
|
* @remarks
|
|
910
1330
|
* a. This setting is only applicable to the axis of type ValueAxis.
|
|
911
1331
|
* b. To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1332
|
+
*
|
|
1333
|
+
* **NOTE**: To set the buffer for the second Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
912
1334
|
*/
|
|
913
|
-
setBuffer(
|
|
914
|
-
|
|
1335
|
+
setBuffer(i, t) {
|
|
1336
|
+
o({
|
|
1337
|
+
config: this._config,
|
|
1338
|
+
axisIndex: t,
|
|
1339
|
+
func: (s) => {
|
|
1340
|
+
vi({
|
|
1341
|
+
config: this._config,
|
|
1342
|
+
buffer: i,
|
|
1343
|
+
axisIndex: s
|
|
1344
|
+
}), this.emitConfigUpdate("setBuffer");
|
|
1345
|
+
}
|
|
1346
|
+
});
|
|
915
1347
|
}
|
|
916
1348
|
/**
|
|
917
1349
|
* Gets the tick spacing setting for the specified axis.
|
|
@@ -920,8 +1352,8 @@ class Ci extends A {
|
|
|
920
1352
|
* @remarks
|
|
921
1353
|
* a. To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
922
1354
|
*/
|
|
923
|
-
getTickSpacing(
|
|
924
|
-
return
|
|
1355
|
+
getTickSpacing(i) {
|
|
1356
|
+
return bi(this._config, i);
|
|
925
1357
|
}
|
|
926
1358
|
/**
|
|
927
1359
|
* Sets the tick spacing for the specified axis.
|
|
@@ -929,9 +1361,21 @@ class Ci extends A {
|
|
|
929
1361
|
* @param axisIndex The index of the axis
|
|
930
1362
|
* @remarks
|
|
931
1363
|
* a. To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1364
|
+
*
|
|
1365
|
+
* **NOTE**: To set the tick spacing for the second Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
932
1366
|
*/
|
|
933
|
-
setTickSpacing(
|
|
934
|
-
|
|
1367
|
+
setTickSpacing(i, t) {
|
|
1368
|
+
o({
|
|
1369
|
+
config: this._config,
|
|
1370
|
+
axisIndex: t,
|
|
1371
|
+
func: (s) => {
|
|
1372
|
+
Gi({
|
|
1373
|
+
config: this._config,
|
|
1374
|
+
tickSpacing: i,
|
|
1375
|
+
axisIndex: s
|
|
1376
|
+
}), this.emitConfigUpdate("setTickSpacing");
|
|
1377
|
+
}
|
|
1378
|
+
});
|
|
935
1379
|
}
|
|
936
1380
|
/**
|
|
937
1381
|
* Gets the integer only values setting for the specified axis.
|
|
@@ -942,8 +1386,12 @@ class Ci extends A {
|
|
|
942
1386
|
* b. To get the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
943
1387
|
* c. If the `integerOnlyValues` is not set on the axis, the default value of `false` will be returned.
|
|
944
1388
|
*/
|
|
945
|
-
getIntegerOnlyValues(
|
|
946
|
-
return
|
|
1389
|
+
getIntegerOnlyValues(i) {
|
|
1390
|
+
return o({
|
|
1391
|
+
config: this._config,
|
|
1392
|
+
axisIndex: i,
|
|
1393
|
+
func: (t) => Ui(this._config, t)
|
|
1394
|
+
}) ?? !1;
|
|
947
1395
|
}
|
|
948
1396
|
/**
|
|
949
1397
|
* Sets the integer only values setting for the specified axis.
|
|
@@ -952,9 +1400,21 @@ class Ci extends A {
|
|
|
952
1400
|
* @remarks
|
|
953
1401
|
* a. This setting is only applicable to the axis of type ValueAxis.
|
|
954
1402
|
* b. To set the setting for the x-axis, the axisIndex should be `0`. For the y-axis, the axisIndex should be `1`.
|
|
1403
|
+
*
|
|
1404
|
+
* **NOTE**: To set the integer only values for the second Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
955
1405
|
*/
|
|
956
|
-
setIntegerOnlyValues(
|
|
957
|
-
|
|
1406
|
+
setIntegerOnlyValues(i, t) {
|
|
1407
|
+
o({
|
|
1408
|
+
config: this._config,
|
|
1409
|
+
axisIndex: t,
|
|
1410
|
+
func: (s) => {
|
|
1411
|
+
Bi({
|
|
1412
|
+
config: this._config,
|
|
1413
|
+
integerOnlyValues: i,
|
|
1414
|
+
axisIndex: s
|
|
1415
|
+
}), this.emitConfigUpdate("setIntegerOnlyValues");
|
|
1416
|
+
}
|
|
1417
|
+
});
|
|
958
1418
|
}
|
|
959
1419
|
/**
|
|
960
1420
|
* Gets the visibility of the horizontal line of the cursor's crosshair.
|
|
@@ -962,15 +1422,17 @@ class Ci extends A {
|
|
|
962
1422
|
* @remarks if the cursor crosshair or its horizontal line visibility is not set, the default value of `false` will be returned.
|
|
963
1423
|
*/
|
|
964
1424
|
getCursorCrosshairHorizontalLineVisibility() {
|
|
965
|
-
return
|
|
1425
|
+
return mt(this._config);
|
|
966
1426
|
}
|
|
967
1427
|
/**
|
|
968
1428
|
* Sets the visibility of the horizontal line of the cursor's crosshair.
|
|
969
1429
|
* @param visibility The visibility to set for the cursor's crosshair horizontal line
|
|
970
1430
|
* @remarks if the cursor crosshair is not set, it will be created with the default values.
|
|
1431
|
+
*
|
|
1432
|
+
* **NOTE**: To set the cursor crosshair horizontal line visibility for the second Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
971
1433
|
*/
|
|
972
|
-
setCursorCrosshairHorizontalLineVisibility(
|
|
973
|
-
|
|
1434
|
+
setCursorCrosshairHorizontalLineVisibility(i) {
|
|
1435
|
+
Ct(i, this._config), this.emitConfigUpdate("setCursorCrosshairHorizontalLineVisibility");
|
|
974
1436
|
}
|
|
975
1437
|
/**
|
|
976
1438
|
* Gets the visibility of the vertical line of the cursor's crosshair.
|
|
@@ -978,15 +1440,17 @@ class Ci extends A {
|
|
|
978
1440
|
* @remarks if the cursor crosshair or its vertical line visibility is not set, the default value of `false` will be returned.
|
|
979
1441
|
*/
|
|
980
1442
|
getCursorCrosshairVerticalLineVisibility() {
|
|
981
|
-
return
|
|
1443
|
+
return yt(this._config);
|
|
982
1444
|
}
|
|
983
1445
|
/**
|
|
984
1446
|
* Sets the visibility of the vertical line of the cursor's crosshair.
|
|
985
1447
|
* @param visibility The visibility to set for the cursor's crosshair vertical line
|
|
986
1448
|
* @remarks if the cursor crosshair is not set, it will be created with the default values.
|
|
1449
|
+
*
|
|
1450
|
+
* **NOTE**: To set the cursor crosshair vertical line visibility for the second Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
987
1451
|
*/
|
|
988
|
-
setCursorCrosshairVerticalLineVisibility(
|
|
989
|
-
|
|
1452
|
+
setCursorCrosshairVerticalLineVisibility(i) {
|
|
1453
|
+
pt(i, this._config), this.emitConfigUpdate("setCursorCrosshairVerticalLineVisibility");
|
|
990
1454
|
}
|
|
991
1455
|
/**
|
|
992
1456
|
* Gets the style of the cursor's crosshair from the chart config.
|
|
@@ -994,15 +1458,17 @@ class Ci extends A {
|
|
|
994
1458
|
* @returns {boolean}
|
|
995
1459
|
*/
|
|
996
1460
|
getCursorCrosshairStyle() {
|
|
997
|
-
return
|
|
1461
|
+
return _t(this._config);
|
|
998
1462
|
}
|
|
999
1463
|
/**
|
|
1000
1464
|
* Sets the style of the cursor's crosshair in the chart config.
|
|
1001
1465
|
* @param style The style to set for the cursor's crosshair
|
|
1002
1466
|
* @param config The chart configuration
|
|
1467
|
+
*
|
|
1468
|
+
* **NOTE**: To set the cursor crosshair style for the second Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
1003
1469
|
*/
|
|
1004
|
-
setCursorCrosshairStyle(
|
|
1005
|
-
|
|
1470
|
+
setCursorCrosshairStyle(i) {
|
|
1471
|
+
St(i, this._config), this.emitConfigUpdate("setCursorCrosshairStyle");
|
|
1006
1472
|
}
|
|
1007
1473
|
/**
|
|
1008
1474
|
* Gets the cursor crosshair from the chart config.
|
|
@@ -1010,340 +1476,24 @@ class Ci extends A {
|
|
|
1010
1476
|
* @returns {WebChartCursorCrosshair | undefined}
|
|
1011
1477
|
*/
|
|
1012
1478
|
getCursorCrosshair() {
|
|
1013
|
-
return
|
|
1479
|
+
return Tt(this._config);
|
|
1014
1480
|
}
|
|
1015
1481
|
/**
|
|
1016
1482
|
* Sets the cursor crosshair in the chart config.
|
|
1017
1483
|
* @param cursorCrosshair The cursor crosshair to set
|
|
1018
1484
|
* @param config The chart configuration object
|
|
1485
|
+
*
|
|
1486
|
+
* **NOTE**: To set the cursor crosshair for the second Y-axis (axisIndex 2), ensure there is a second Y-axis in the chart by using the `setAssignToSecondValueAxis(true, 1)` method to assign a series to the second Y-axis.
|
|
1019
1487
|
*/
|
|
1020
|
-
setCursorCrosshair(
|
|
1021
|
-
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
b(Ci, [A]);
|
|
1025
|
-
const yi = (e) => {
|
|
1026
|
-
for (const t of e.axes ?? [])
|
|
1027
|
-
for (const i of t?.guides ?? [])
|
|
1028
|
-
if (i.label !== void 0)
|
|
1029
|
-
return i.label;
|
|
1030
|
-
}, pi = (e, t) => {
|
|
1031
|
-
for (const i of t.axes ?? [])
|
|
1032
|
-
for (const s of i?.guides ?? []) {
|
|
1033
|
-
const a = s.label?.text ?? "";
|
|
1034
|
-
s.label = X(e), s.label !== void 0 && (s.label.text = a);
|
|
1035
|
-
}
|
|
1036
|
-
};
|
|
1037
|
-
function o(e) {
|
|
1038
|
-
return {
|
|
1039
|
-
...e,
|
|
1040
|
-
axis: e.orientation === l.X ? e.config.axes?.[0] : e.config.axes?.[1],
|
|
1041
|
-
index: e.index ?? 0,
|
|
1042
|
-
orientation: e.orientation ?? l.Y
|
|
1043
|
-
};
|
|
1044
|
-
}
|
|
1045
|
-
const Si = (e) => {
|
|
1046
|
-
const { axis: t, index: i } = o(e);
|
|
1047
|
-
return t?.guides?.[i]?.visible ?? !0;
|
|
1048
|
-
}, _i = (e) => {
|
|
1049
|
-
const { visible: t, axis: i, index: s } = o(e);
|
|
1050
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].visible = t);
|
|
1051
|
-
}, V = (e) => {
|
|
1052
|
-
const t = R(e.start, e.end);
|
|
1053
|
-
Wt(e.style) && t === c.SFS ? e.style = { type: c.SFS, color: e.style.color } : Ot(e.style) && t === c.SLS && (e.style = { type: c.SLS, color: e.style.color });
|
|
1054
|
-
}, Ti = (e) => {
|
|
1055
|
-
const { axis: t, index: i } = o(e);
|
|
1056
|
-
return t?.guides?.[i]?.start ?? null;
|
|
1057
|
-
}, Li = (e) => {
|
|
1058
|
-
const { start: t, axis: i, index: s } = o(e);
|
|
1059
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].start = t, V(i.guides[s]));
|
|
1060
|
-
}, Ai = (e) => {
|
|
1061
|
-
const { axis: t, index: i } = o(e);
|
|
1062
|
-
return t?.guides?.[i]?.end;
|
|
1063
|
-
}, Vi = (e) => {
|
|
1064
|
-
const { end: t, axis: i, index: s } = o(e);
|
|
1065
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].end = t, V(i.guides[s]));
|
|
1066
|
-
}, vi = (e) => {
|
|
1067
|
-
const { axis: t, index: i } = o(e);
|
|
1068
|
-
return t?.guides?.[i]?.name;
|
|
1069
|
-
}, Gi = (e) => {
|
|
1070
|
-
const { name: t, axis: i, index: s } = o(e);
|
|
1071
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].name = t);
|
|
1072
|
-
}, Ui = (e) => {
|
|
1073
|
-
const { axis: t, index: i } = o(e);
|
|
1074
|
-
return t?.guides?.[i]?.label?.text;
|
|
1075
|
-
}, Xi = (e) => {
|
|
1076
|
-
const { labelText: t, axis: i, index: s } = o(e), a = i?.guides?.[s]?.label ?? I(t, u(r.GuideLabel), r.GuideLabel);
|
|
1077
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].label = { ...a, text: t });
|
|
1078
|
-
}, Bi = (e) => {
|
|
1079
|
-
const { axis: t, index: i } = o(e);
|
|
1080
|
-
return t?.guides?.[i]?.above ?? !1;
|
|
1081
|
-
}, Yi = (e) => {
|
|
1082
|
-
const { above: t, axis: i, index: s } = o(e);
|
|
1083
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].above = t);
|
|
1084
|
-
}, Di = (e) => {
|
|
1085
|
-
const { axis: t, index: i } = o(e);
|
|
1086
|
-
return t?.guides?.[i]?.style;
|
|
1087
|
-
}, Fi = (e) => {
|
|
1088
|
-
const { style: t, axis: i, index: s } = o(e);
|
|
1089
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].style = t);
|
|
1090
|
-
}, v = (e) => {
|
|
1091
|
-
const { config: t, name: i, index: s, orientation: a } = e, n = a === l.X ? t.axes?.[0] : t.axes?.[1];
|
|
1092
|
-
if (n !== void 0) {
|
|
1093
|
-
n.guides = n.guides ?? [];
|
|
1094
|
-
const g = {
|
|
1095
|
-
type: m.Guide,
|
|
1096
|
-
name: i,
|
|
1097
|
-
start: n.valueFormat.type === m.DateAxisFormat ? "" : 0,
|
|
1098
|
-
style: w()
|
|
1099
|
-
};
|
|
1100
|
-
s !== void 0 && s < n.guides.length ? n.guides.splice(s, 0, g) : n.guides.push(g);
|
|
1101
|
-
}
|
|
1102
|
-
}, G = (e) => {
|
|
1103
|
-
const { config: t, index: i, orientation: s } = e, a = s === l.X ? t.axes?.[0] : t.axes?.[1];
|
|
1104
|
-
a?.guides !== void 0 && (i !== void 0 && i < a.guides.length ? a.guides.splice(i, 1) : a.guides.pop());
|
|
1105
|
-
}, Mi = (e) => {
|
|
1106
|
-
const { axis: t, index: i } = o(e);
|
|
1107
|
-
return t?.guides?.[i]?.tooltipReverseColor ?? !1;
|
|
1108
|
-
}, Ii = (e) => {
|
|
1109
|
-
const { reverseColor: t, axis: i, index: s } = o(e);
|
|
1110
|
-
i?.guides?.[s] !== void 0 && (i.guides[s].tooltipReverseColor = t);
|
|
1111
|
-
};
|
|
1112
|
-
class h extends L {
|
|
1113
|
-
/**
|
|
1114
|
-
* Gets the guide labels text symbol. Contains styling information such as font, color, and symbol style.
|
|
1115
|
-
* @returns {WebChartTextSymbol | undefined}
|
|
1116
|
-
*/
|
|
1117
|
-
getGuideLabelsSymbol() {
|
|
1118
|
-
return yi(this._config);
|
|
1119
|
-
}
|
|
1120
|
-
/**
|
|
1121
|
-
* Sets the guide labels text symbol. Contains styling information such as font, color, and symbol style.
|
|
1122
|
-
* @param {WebChartTextSymbol | undefined} newGuideLabelsSymbol
|
|
1123
|
-
*/
|
|
1124
|
-
setGuideLabelsSymbol(t) {
|
|
1125
|
-
pi(t, this._config), this.emitConfigUpdate("setGuideLabels");
|
|
1126
|
-
}
|
|
1127
|
-
/**
|
|
1128
|
-
* Gets whether a guide is visible.
|
|
1129
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1130
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1131
|
-
* @returns {boolean}
|
|
1132
|
-
*/
|
|
1133
|
-
getGuideVisibility(t, i) {
|
|
1134
|
-
return Si({ config: this._config, index: t, orientation: i });
|
|
1135
|
-
}
|
|
1136
|
-
/**
|
|
1137
|
-
* Sets whether a guide is visible
|
|
1138
|
-
* @param {boolean} visible New visibility to set.
|
|
1139
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1140
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1141
|
-
*/
|
|
1142
|
-
setGuideVisibility(t, i, s) {
|
|
1143
|
-
_i({ visible: t, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideVisibility");
|
|
1144
|
-
}
|
|
1145
|
-
/**
|
|
1146
|
-
* Gets the start value of a guide.
|
|
1147
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1148
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1149
|
-
* @returns {Date | number | string | null}
|
|
1150
|
-
*/
|
|
1151
|
-
getGuideStart(t, i) {
|
|
1152
|
-
return Ti({ config: this._config, index: t, orientation: i });
|
|
1153
|
-
}
|
|
1154
|
-
/**
|
|
1155
|
-
* Sets the start value of a guide.
|
|
1156
|
-
* @param {Date | number | string | null} start New start value to set.
|
|
1157
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1158
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1159
|
-
*/
|
|
1160
|
-
setGuideStart(t, i, s) {
|
|
1161
|
-
Li({ start: t, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideStart");
|
|
1162
|
-
}
|
|
1163
|
-
/**
|
|
1164
|
-
* Gets the end value of a guide.
|
|
1165
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1166
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1167
|
-
* @returns {Date | number | string | null}
|
|
1168
|
-
*/
|
|
1169
|
-
getGuideEnd(t, i) {
|
|
1170
|
-
return Ai({ config: this._config, index: t, orientation: i });
|
|
1171
|
-
}
|
|
1172
|
-
/**
|
|
1173
|
-
* Sets the end value of a guide.
|
|
1174
|
-
* @param {Date | number | string | null | undefined} end New end value to set.
|
|
1175
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1176
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1177
|
-
*/
|
|
1178
|
-
setGuideEnd(t, i, s) {
|
|
1179
|
-
Vi({ end: t, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideEnd");
|
|
1180
|
-
}
|
|
1181
|
-
/**
|
|
1182
|
-
* Gets the name of a guide.
|
|
1183
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1184
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1185
|
-
* @returns {string | undefined}
|
|
1186
|
-
*/
|
|
1187
|
-
getGuideName(t, i) {
|
|
1188
|
-
return vi({ config: this._config, index: t, orientation: i });
|
|
1189
|
-
}
|
|
1190
|
-
/**
|
|
1191
|
-
* Sets the name of a guide.
|
|
1192
|
-
* @param {string} name New name to set.
|
|
1193
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1194
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1195
|
-
*/
|
|
1196
|
-
setGuideName(t, i, s) {
|
|
1197
|
-
Gi({ name: t, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideName");
|
|
1198
|
-
}
|
|
1199
|
-
/**
|
|
1200
|
-
* Gets the guide label text.
|
|
1201
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1202
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1203
|
-
* @returns {string | undefined}
|
|
1204
|
-
*/
|
|
1205
|
-
getGuideLabelText(t, i) {
|
|
1206
|
-
return Ui({ config: this._config, index: t, orientation: i });
|
|
1207
|
-
}
|
|
1208
|
-
/**
|
|
1209
|
-
* Sets the guide label text.
|
|
1210
|
-
* @param {string} labelText New label text to set.
|
|
1211
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1212
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1213
|
-
*/
|
|
1214
|
-
setGuideLabelText(t, i, s) {
|
|
1215
|
-
Xi({ labelText: t, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideLabelText");
|
|
1216
|
-
}
|
|
1217
|
-
/**
|
|
1218
|
-
* Gets whether the guide should be rendered above the other chart elements.
|
|
1219
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1220
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1221
|
-
* @returns {boolean}
|
|
1222
|
-
*/
|
|
1223
|
-
getGuideAbove(t, i) {
|
|
1224
|
-
return Bi({ config: this._config, index: t, orientation: i });
|
|
1225
|
-
}
|
|
1226
|
-
/**
|
|
1227
|
-
* Sets whether the guide should be rendered above the other chart elements.
|
|
1228
|
-
* @param {boolean} above New above boolean to set.
|
|
1229
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1230
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1231
|
-
*/
|
|
1232
|
-
setGuideAbove(t, i, s) {
|
|
1233
|
-
Yi({ above: t, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideAbove");
|
|
1234
|
-
}
|
|
1235
|
-
/**
|
|
1236
|
-
* Gets the guide style.
|
|
1237
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1238
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1239
|
-
* @returns {ISimpleFillSymbol | ISimpleLineSymbol | undefined}
|
|
1240
|
-
*/
|
|
1241
|
-
getGuideStyle(t, i) {
|
|
1242
|
-
return Di({ config: this._config, index: t, orientation: i });
|
|
1243
|
-
}
|
|
1244
|
-
/**
|
|
1245
|
-
* Sets the guide style.
|
|
1246
|
-
* @param {ISimpleFillSymbol | ISimpleLineSymbol} style New style to set.
|
|
1247
|
-
* @param {number} [index] Default `0`. The index of the guide in the list of guides for the given axis orientation.
|
|
1248
|
-
* @param {GuideOrientation} [orientation] Default `y`. The axis orientation of the guide.
|
|
1249
|
-
*/
|
|
1250
|
-
setGuideStyle(t, i, s) {
|
|
1251
|
-
Fi({ style: t, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setGuideStyle");
|
|
1252
|
-
}
|
|
1253
|
-
/**
|
|
1254
|
-
* Gets whether the tooltip text color should be reversed for a guide.
|
|
1255
|
-
* @param index - The index of the guide in the list of guides for the given axis orientation.
|
|
1256
|
-
* @param orientation - The axis orientation of the guide.
|
|
1257
|
-
* @returns {boolean}
|
|
1258
|
-
*/
|
|
1259
|
-
getTooltipReverseColor(t, i) {
|
|
1260
|
-
return Mi({ config: this._config, index: t, orientation: i });
|
|
1261
|
-
}
|
|
1262
|
-
/**
|
|
1263
|
-
* Sets whether the tooltip text color should be reversed for a guide.
|
|
1264
|
-
* @param reverseColor - New reverseColor boolean to set.
|
|
1265
|
-
* @param index - The index of the guide in the list of guides for the given axis orientation.
|
|
1266
|
-
* @param orientation - The axis orientation of the guide.
|
|
1267
|
-
*/
|
|
1268
|
-
setTooltipReverseColor(t, i, s) {
|
|
1269
|
-
Ii({ reverseColor: t, config: this._config, index: i, orientation: s }), this.emitConfigUpdate("setTooltipReverseColor");
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
class wi extends h {
|
|
1273
|
-
// ---------------------------------------------------------------------------------------------
|
|
1274
|
-
// Guides Methods
|
|
1275
|
-
// ---------------------------------------------------------------------------------------------
|
|
1276
|
-
/**
|
|
1277
|
-
* Gets the number guides in the X-axis guides list.
|
|
1278
|
-
* @returns {number | undefined} The number of X-axis guides.
|
|
1279
|
-
*/
|
|
1280
|
-
getXGuidesLength() {
|
|
1281
|
-
return this._config.axes?.[0]?.guides?.length;
|
|
1282
|
-
}
|
|
1283
|
-
/**
|
|
1284
|
-
* Adds an X-axis guide.
|
|
1285
|
-
* @param {string} name The name of the guide.
|
|
1286
|
-
* @param {number} [index] The index to insert the new guide in the list of X-axis guides. If left `undefined`, the guide is appended to the end of the list.
|
|
1287
|
-
*/
|
|
1288
|
-
addXAxisGuide(t, i) {
|
|
1289
|
-
v({
|
|
1290
|
-
config: this._config,
|
|
1291
|
-
name: t,
|
|
1292
|
-
index: i,
|
|
1293
|
-
orientation: l.X
|
|
1294
|
-
}), this.emitConfigUpdate("addXAxisGuide");
|
|
1295
|
-
}
|
|
1296
|
-
/**
|
|
1297
|
-
* Deletes an X-axis guide.
|
|
1298
|
-
* @param {number} [index] The index of the guide to delete in the list of X-axis guides. If left `undefined`, the last guide in the list is deleted.
|
|
1299
|
-
*/
|
|
1300
|
-
deleteXAxisGuide(t) {
|
|
1301
|
-
G({
|
|
1302
|
-
config: this._config,
|
|
1303
|
-
index: t,
|
|
1304
|
-
orientation: l.X
|
|
1305
|
-
}), this.emitConfigUpdate("deleteXAxisGuide");
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
b(wi, [h]);
|
|
1309
|
-
class Ri extends h {
|
|
1310
|
-
/**
|
|
1311
|
-
* Gets the number guides in the Y-axis guides list.
|
|
1312
|
-
* @returns {number | undefined} The number of Y-axis guides.
|
|
1313
|
-
*/
|
|
1314
|
-
getYGuidesLength() {
|
|
1315
|
-
return this._config.axes?.[1]?.guides?.length;
|
|
1316
|
-
}
|
|
1317
|
-
/**
|
|
1318
|
-
* Adds a Y-axis guide.
|
|
1319
|
-
* @param {string} name The name of the guide.
|
|
1320
|
-
* @param {number} [index] The index to insert the new guide in the list of Y-axis guides. If left `undefined`, the guide is appended to the end of the list.
|
|
1321
|
-
*/
|
|
1322
|
-
addYAxisGuide(t, i) {
|
|
1323
|
-
v({
|
|
1324
|
-
config: this._config,
|
|
1325
|
-
name: t,
|
|
1326
|
-
index: i,
|
|
1327
|
-
orientation: l.Y
|
|
1328
|
-
}), this.emitConfigUpdate("addYAxisGuide");
|
|
1329
|
-
}
|
|
1330
|
-
/**
|
|
1331
|
-
* Deletes a Y-axis guide.
|
|
1332
|
-
* @param {number} [index] The index of the guide to delete in the list of Y-axis guides. If left `undefined`, the last guide in the list is deleted.
|
|
1333
|
-
*/
|
|
1334
|
-
deleteYAxisGuide(t) {
|
|
1335
|
-
G({
|
|
1336
|
-
config: this._config,
|
|
1337
|
-
index: t,
|
|
1338
|
-
orientation: l.Y
|
|
1339
|
-
}), this.emitConfigUpdate("deleteYAxisGuide");
|
|
1488
|
+
setCursorCrosshair(i) {
|
|
1489
|
+
Lt(i, this._config), this.emitConfigUpdate("setCursorCrosshair");
|
|
1340
1490
|
}
|
|
1341
1491
|
}
|
|
1342
|
-
|
|
1492
|
+
y(Vt, [B]);
|
|
1343
1493
|
export {
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1494
|
+
U as C,
|
|
1495
|
+
Vt as M,
|
|
1496
|
+
ut as a,
|
|
1497
|
+
ft as b,
|
|
1498
|
+
B as c
|
|
1349
1499
|
};
|