boardplot 0.56.0 → 0.57.0
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/CHANGELOG.md +110 -0
- package/README.md +3 -3
- package/dist/{ReaderBox-GLCKYXBU.js → ReaderBox-GCIITQCX.js} +4 -4
- package/dist/{annotateEngine-QVNAE3EH.js → annotateEngine-JMZI6QEG.js} +1 -1
- package/dist/build-identity.json +3 -3
- package/dist/{chunk-CKGSGRP7.js → chunk-26WNBTWB.js} +20 -4
- package/dist/{chunk-UBCVBBJJ.js → chunk-2AJWRVZ2.js} +4 -3
- package/dist/{chunk-XMP2DNLI.js → chunk-2BHLRHF2.js} +2 -2
- package/dist/{chunk-2NRHD2G7.js → chunk-2HD5RY2U.js} +11 -3
- package/dist/{chunk-6QDMRPXI.js → chunk-2I76VFMZ.js} +184 -239
- package/dist/{chunk-XC5IRUEL.js → chunk-2KCK63DD.js} +2 -2
- package/dist/{chunk-ZEYBI47P.js → chunk-2WTD3GCR.js} +11 -3
- package/dist/{chunk-BTDGWHGJ.js → chunk-2X6XY4K4.js} +4 -4
- package/dist/{chunk-5S3JQ5AT.js → chunk-3DUGZ7ML.js} +149 -118
- package/dist/{chunk-JTFKRDDA.js → chunk-3LNVEE5Z.js} +1 -1
- package/dist/{chunk-JCAGVAB3.js → chunk-43PCSBVQ.js} +563 -10
- package/dist/{chunk-F2EVCJ4U.js → chunk-4JNHF6JW.js} +10 -10
- package/dist/{chunk-ECBUFKCP.js → chunk-4RN4OM6I.js} +3 -3
- package/dist/{chunk-A2GAWGVJ.js → chunk-4U2WSW6F.js} +20 -20
- package/dist/{chunk-CCDXK5NA.js → chunk-53OEKS4L.js} +5 -3
- package/dist/{chunk-YPYD6OJ3.js → chunk-54HEIM2A.js} +2 -2
- package/dist/{chunk-IGJ2G5C6.js → chunk-5H4HFRDO.js} +6 -6
- package/dist/{chunk-EMFUZKYK.js → chunk-5HTGSB6Y.js} +3 -3
- package/dist/{chunk-WXJ5MHLH.js → chunk-5JTRCSBN.js} +1 -1
- package/dist/{chunk-67QSW5RW.js → chunk-5P4MXWKP.js} +3 -3
- package/dist/{chunk-EBB4PYBN.js → chunk-5RHP7YTL.js} +5 -5
- package/dist/{chunk-VVXKFU72.js → chunk-5TUDYKNL.js} +35 -27
- package/dist/{chunk-HZUAEMN5.js → chunk-5WSIH4SR.js} +1 -1
- package/dist/{chunk-KF7HD3EH.js → chunk-62JZL6FW.js} +43 -35
- package/dist/{chunk-S7NRL66K.js → chunk-6EE6XEMA.js} +4 -4
- package/dist/chunk-6JXBLQJ2.js +32 -0
- package/dist/{chunk-KBJMLXNW.js → chunk-6KHRMK3I.js} +14 -14
- package/dist/{chunk-2DOEZ5QY.js → chunk-6LQKU6YN.js} +4 -4
- package/dist/chunk-6VU2XI3W.js +89 -0
- package/dist/{chunk-DQ7YMQVX.js → chunk-6WJOHZPW.js} +5 -5
- package/dist/{chunk-ZMPH2OC4.js → chunk-6XU5XGYV.js} +7 -8
- package/dist/{chunk-MAFPVR4G.js → chunk-6ZN2XJFI.js} +10 -5
- package/dist/{chunk-PQLAZEQV.js → chunk-72OJBDRB.js} +204 -59
- package/dist/{chunk-T2YDWT54.js → chunk-73O6AOAA.js} +43 -30
- package/dist/{chunk-4JHMCXOB.js → chunk-76UL4CT4.js} +60 -24
- package/dist/chunk-7BQK2UDV.js +13 -0
- package/dist/{chunk-7PPMT5EJ.js → chunk-7EQU2TUN.js} +300 -64
- package/dist/{chunk-2HTYGMMG.js → chunk-7FAO4ICF.js} +2 -2
- package/dist/{chunk-6WHWXCHJ.js → chunk-7MYJUJZV.js} +6 -2
- package/dist/{chunk-CB4CERXZ.js → chunk-7P7D6WXR.js} +11 -2
- package/dist/{chunk-RT66UTLJ.js → chunk-A33MFWHW.js} +2 -2
- package/dist/{chunk-4JC3SE4G.js → chunk-A6XCVOC5.js} +1 -1
- package/dist/{chunk-QWCLWFKC.js → chunk-AFA32LHN.js} +132 -36
- package/dist/{chunk-T2CYNDYU.js → chunk-AFGQXMKT.js} +235 -80
- package/dist/{chunk-HOU2MZHC.js → chunk-AKJO6N4K.js} +2 -2
- package/dist/{chunk-MRAP2UVV.js → chunk-ANNQJWDX.js} +10 -10
- package/dist/{chunk-LGNJCPFP.js → chunk-AOIZJ7GR.js} +7 -7
- package/dist/chunk-B5A7X2BA.js +44 -0
- package/dist/{chunk-SS4YGK3E.js → chunk-BDCKHLUB.js} +15 -15
- package/dist/{chunk-XHRUXZD7.js → chunk-BFDPY7JM.js} +10 -3
- package/dist/{chunk-BK6P6KMW.js → chunk-BM2A3IGQ.js} +1 -1
- package/dist/{chunk-GQT2SY2S.js → chunk-BO5EJBLH.js} +247 -127
- package/dist/chunk-BQIADGJB.js +23 -0
- package/dist/{chunk-PJBEJR2U.js → chunk-BY5JGQFZ.js} +24 -7
- package/dist/{chunk-SXD3OYAR.js → chunk-C5SQEYTQ.js} +76 -55
- package/dist/{chunk-3465633G.js → chunk-CEMXGMQN.js} +2 -2
- package/dist/{chunk-AMR4SUAN.js → chunk-CIDOL4FO.js} +5 -5
- package/dist/{chunk-E7V3OHQQ.js → chunk-CT4RFZO4.js} +6 -6
- package/dist/{chunk-7Q37C6GZ.js → chunk-CV3NC75L.js} +1 -1
- package/dist/{chunk-FFJGC2DX.js → chunk-D3PQAVFW.js} +22 -12
- package/dist/{chunk-52WNCUIN.js → chunk-D5G67OER.js} +1 -1
- package/dist/{chunk-MOS6WFWM.js → chunk-D5RAVZ5C.js} +6 -7
- package/dist/{chunk-FNRPQIQE.js → chunk-DJBMA4FW.js} +4 -4
- package/dist/{chunk-4DZFR52I.js → chunk-DPUCT567.js} +2 -2
- package/dist/{chunk-TE4M52AA.js → chunk-DYSEZVIJ.js} +18 -2
- package/dist/{chunk-SA46CNMS.js → chunk-ED7GLWTF.js} +4 -1
- package/dist/{chunk-R5MEBBAA.js → chunk-EDBUVDRI.js} +117 -67
- package/dist/{chunk-TUW5IYGA.js → chunk-EEBMK6T6.js} +6 -6
- package/dist/{chunk-RLMC5CUP.js → chunk-EEL2N4Y6.js} +7 -8
- package/dist/{chunk-CF4NMRN7.js → chunk-EFKFZNQC.js} +24 -18
- package/dist/{chunk-UPTXFTKH.js → chunk-EHNGPUTO.js} +6 -6
- package/dist/{chunk-BISJK67O.js → chunk-EHQLLZCQ.js} +48 -21
- package/dist/{chunk-U3A6FMSI.js → chunk-EWR6WVOV.js} +6 -6
- package/dist/{chunk-RMC4OONA.js → chunk-EY4OA4OF.js} +985 -663
- package/dist/{chunk-YYJORENB.js → chunk-F4JAGDPD.js} +5 -5
- package/dist/{chunk-ZY72LSQK.js → chunk-FAFUMSPR.js} +33 -24
- package/dist/{chunk-CYKXROFG.js → chunk-FERP4WS3.js} +19 -9
- package/dist/{chunk-N5HN5QGH.js → chunk-FF7MV4D4.js} +1 -1
- package/dist/{chunk-O7REHICC.js → chunk-FJKFYQ5I.js} +10 -10
- package/dist/chunk-FL3FQ2YA.js +27 -0
- package/dist/{chunk-YOOHNQ3L.js → chunk-FX5VZK5F.js} +4 -0
- package/dist/{chunk-7M2GK7XQ.js → chunk-G5BUGYIL.js} +68 -16
- package/dist/{chunk-QZIHKQRH.js → chunk-G5CELEUR.js} +6 -6
- package/dist/{chunk-ZJFJ2IKQ.js → chunk-GADI2DU7.js} +11 -10
- package/dist/{chunk-F6OLHND5.js → chunk-GAFEN3H7.js} +2 -2
- package/dist/{chunk-GM3EGUYW.js → chunk-GHFTKVJN.js} +1 -1
- package/dist/chunk-GKDUIDU6.js +138 -0
- package/dist/{chunk-OJ5CQV7H.js → chunk-GKQLKUMF.js} +186 -82
- package/dist/{chunk-EGGDPDYJ.js → chunk-GS5UG6QD.js} +1 -1
- package/dist/{chunk-5TWY3ZIC.js → chunk-H2POQ4LB.js} +5 -5
- package/dist/{chunk-KD5GOR2K.js → chunk-H3EWFSWI.js} +93 -52
- package/dist/{chunk-CHAS5A5B.js → chunk-H6EJ63QN.js} +18 -16
- package/dist/{chunk-GIHH6VC2.js → chunk-HB3TH7GY.js} +3 -3
- package/dist/{chunk-FMDNJ6PC.js → chunk-HC6WHTBX.js} +2 -2
- package/dist/{chunk-63Y3ROZ7.js → chunk-HDSHS2QZ.js} +45 -30
- package/dist/{chunk-KTHFHD6C.js → chunk-HFFKN7PA.js} +11 -6
- package/dist/{chunk-QSMGZOT5.js → chunk-HGPFEG2L.js} +7 -8
- package/dist/{chunk-2YO4WRJN.js → chunk-HVX2E26J.js} +35 -25
- package/dist/{chunk-KLB2QC24.js → chunk-I3DLERI7.js} +1 -1
- package/dist/{chunk-SPSGUFTI.js → chunk-I4NUYVP5.js} +1 -1
- package/dist/{chunk-LKMFMNQX.js → chunk-I5ZADE2U.js} +1 -1
- package/dist/{chunk-CPGASWNN.js → chunk-I65OLJ2X.js} +1 -1
- package/dist/{chunk-SRAV6FPB.js → chunk-I6QGYRY4.js} +3 -3
- package/dist/{chunk-NCLRZQR6.js → chunk-I7KDPCC7.js} +3 -3
- package/dist/{chunk-6EYTD777.js → chunk-IFURKTOL.js} +2 -2
- package/dist/{chunk-Y54LU4CU.js → chunk-IPWUBZ4P.js} +1 -1
- package/dist/{chunk-BIGQKCU7.js → chunk-IRXTNSZL.js} +9 -9
- package/dist/{chunk-2FKEF2AC.js → chunk-IUVJVMKS.js} +11 -11
- package/dist/{chunk-ZKJ5L35C.js → chunk-IVQT2E3Y.js} +28 -17
- package/dist/{chunk-7DAH2E4T.js → chunk-IW3YUMPI.js} +2 -2
- package/dist/chunk-IXM6BAM4.js +53 -0
- package/dist/{chunk-YMTXTQCN.js → chunk-IZRTNCJQ.js} +5 -5
- package/dist/{chunk-QGFKSDQO.js → chunk-J22ETKDJ.js} +2 -2
- package/dist/{chunk-HJRNBKIT.js → chunk-JARJP576.js} +3 -3
- package/dist/{chunk-DD6RVD3S.js → chunk-JHWDTV4K.js} +5 -1
- package/dist/{chunk-P4SMC4BY.js → chunk-JIH52I36.js} +79 -79
- package/dist/{chunk-KQCKK3LD.js → chunk-JKXJWCJ5.js} +69 -34
- package/dist/{chunk-WI5VOSQX.js → chunk-JMOBA5ES.js} +2 -2
- package/dist/{chunk-AGDDH6XY.js → chunk-JMXNXLAC.js} +5 -1
- package/dist/{chunk-R2IKOLBK.js → chunk-JRRSKCGG.js} +3 -3
- package/dist/{chunk-IVRYF7QA.js → chunk-JSA3ESEJ.js} +1 -1
- package/dist/{chunk-WBETBGSC.js → chunk-K6Y4HBK7.js} +31 -31
- package/dist/{chunk-Z55DXFWS.js → chunk-KAAB2DIV.js} +23 -13
- package/dist/{chunk-UZLR25BW.js → chunk-KF3ZHLHQ.js} +7 -8
- package/dist/{chunk-GELSK76Y.js → chunk-KGS5Z7SL.js} +3 -3
- package/dist/{chunk-E2ZUBP4Q.js → chunk-KIXNHDXS.js} +7 -8
- package/dist/{chunk-7VMEM3LN.js → chunk-KJLH5EHD.js} +26 -26
- package/dist/{chunk-KLIZXSBK.js → chunk-KLQKHA3T.js} +6 -6
- package/dist/chunk-KQ2WZ6BY.js +11 -0
- package/dist/{chunk-DF3XEFQ7.js → chunk-KUMJI5B6.js} +10 -10
- package/dist/{chunk-SE7MJ2LQ.js → chunk-L2XRUG4P.js} +7 -8
- package/dist/{chunk-JYBT2JNY.js → chunk-LE3LSEUL.js} +27 -2
- package/dist/{chunk-75WIUG2W.js → chunk-LFX5BERN.js} +140 -60
- package/dist/{chunk-MJPXHCBW.js → chunk-LGMV7ZV4.js} +4 -4
- package/dist/{chunk-3V62N3Z7.js → chunk-LO3AGGE3.js} +7 -8
- package/dist/{chunk-7KSUMFBK.js → chunk-LSKCKGCF.js} +5 -1
- package/dist/{chunk-NHC2ADGI.js → chunk-LSR3SBJ4.js} +45 -34
- package/dist/{chunk-V634AXDM.js → chunk-LUZ7HXBT.js} +1 -1
- package/dist/{chunk-5PPQIF4D.js → chunk-LW4ZQGVL.js} +2 -2
- package/dist/{chunk-H3IBJQ5A.js → chunk-M2OQK2FO.js} +1 -1
- package/dist/{chunk-4LTN7SND.js → chunk-M74H7QYD.js} +1 -1
- package/dist/{chunk-TXBO2LWM.js → chunk-MOQFYJ3F.js} +6 -6
- package/dist/{chunk-VPL3JYC6.js → chunk-MQ5EKWIG.js} +51 -9
- package/dist/{chunk-X3KCQEYZ.js → chunk-MTCDGSYW.js} +9 -1
- package/dist/{chunk-FCECYJVA.js → chunk-NCCDEUHD.js} +1 -1
- package/dist/{chunk-IGVAWAOK.js → chunk-NIDH22DI.js} +31 -7
- package/dist/{chunk-5DTCOOLU.js → chunk-NINK4G7U.js} +2 -2
- package/dist/{chunk-HHXIVFAU.js → chunk-NO7GRVUU.js} +10 -8
- package/dist/{chunk-X23SZHV5.js → chunk-NRYERHEI.js} +6 -6
- package/dist/{chunk-V5JQQMFQ.js → chunk-O4D27FKH.js} +1 -1
- package/dist/{chunk-I7H5DU34.js → chunk-O7Y6RJ4D.js} +21 -9
- package/dist/{chunk-2NN676RI.js → chunk-OAT6FWKL.js} +7 -8
- package/dist/{chunk-JHWYG7V5.js → chunk-OF7FMGH5.js} +6 -6
- package/dist/{chunk-GLQ3KCTY.js → chunk-OKM5LYYP.js} +7 -8
- package/dist/{chunk-JCIXYOND.js → chunk-OTGNVAI4.js} +2 -2
- package/dist/{chunk-EIL3KHAL.js → chunk-PSYPB22T.js} +3 -3
- package/dist/{chunk-JXBZIJCG.js → chunk-PYGEIPPH.js} +1 -1
- package/dist/{chunk-KZJ5VM6E.js → chunk-PZ3TQFSY.js} +15 -1
- package/dist/{chunk-K3VZ5QJK.js → chunk-Q7VPTN5X.js} +4 -4
- package/dist/{chunk-ZVM5TFGR.js → chunk-QFIRPOXR.js} +6 -2
- package/dist/{chunk-YHD2FZFP.js → chunk-QHPJ5ZKS.js} +6 -6
- package/dist/{chunk-QLANK3VN.js → chunk-QLWUFEKR.js} +6 -6
- package/dist/{chunk-64LJDGJH.js → chunk-QNLESRH6.js} +3 -1
- package/dist/{chunk-RJGCYGC3.js → chunk-QRZESG66.js} +38 -27
- package/dist/{chunk-76Q7E3TM.js → chunk-QYOZ46ZQ.js} +70 -23
- package/dist/{chunk-E555EDOQ.js → chunk-QZMLSK43.js} +221 -62
- package/dist/{chunk-NGA7ICG4.js → chunk-RDJ3ZU6O.js} +16 -13
- package/dist/{chunk-6MJUW5R5.js → chunk-RHBQ2Q5H.js} +95 -44
- package/dist/{chunk-ZYQYX66L.js → chunk-RHVP62HI.js} +6 -6
- package/dist/{chunk-F5BYLT3M.js → chunk-RMVCKO6N.js} +13 -11
- package/dist/chunk-RRPTQGRU.js +47 -0
- package/dist/{chunk-IRXVV65V.js → chunk-S2TSXUYP.js} +6 -6
- package/dist/{chunk-OG2YUVBW.js → chunk-SD6ENKTO.js} +7 -2
- package/dist/{chunk-6AMN7IKJ.js → chunk-SHAAMKN7.js} +43 -22
- package/dist/{chunk-DLUNQHFO.js → chunk-SHCW2TCA.js} +9 -9
- package/dist/{chunk-54ROMBU7.js → chunk-SSZB3VXG.js} +17 -17
- package/dist/chunk-SXAZDIGM.js +84 -0
- package/dist/{chunk-QHRE2M6V.js → chunk-T2L5H2WW.js} +4 -3
- package/dist/{chunk-RPIKNMZA.js → chunk-T3WCDDIL.js} +7 -2
- package/dist/{chunk-JIEVDGAF.js → chunk-T5MBORBK.js} +1 -1
- package/dist/{chunk-32LLDRPI.js → chunk-TDDSWNGD.js} +23 -15
- package/dist/{chunk-7VVHTOE7.js → chunk-TGR6PRKG.js} +2 -2
- package/dist/{chunk-QJWLNP64.js → chunk-TKERVBJ3.js} +7 -8
- package/dist/{chunk-43GGVT7W.js → chunk-TMXRTYGT.js} +10 -4
- package/dist/{chunk-BIVL764T.js → chunk-TQ5HHNM3.js} +2 -2
- package/dist/{chunk-WN3HEU3P.js → chunk-TWRFVW3J.js} +4 -2
- package/dist/{chunk-7FKY6YWU.js → chunk-TXMS7QUJ.js} +3 -3
- package/dist/{chunk-O6ZTIDWB.js → chunk-UBXIGE2P.js} +3 -2
- package/dist/{chunk-JTC5SEAQ.js → chunk-UCIAHSJK.js} +2 -2
- package/dist/{chunk-BVYIKLQ5.js → chunk-UD6U4EF5.js} +1 -1
- package/dist/{chunk-DMAMWUYY.js → chunk-UFZXZJJG.js} +5 -5
- package/dist/{chunk-SNQ7D5R7.js → chunk-UIHGGWES.js} +51 -11
- package/dist/{chunk-27OIGDRK.js → chunk-UP4JSNDR.js} +1 -1
- package/dist/{chunk-JEUL777U.js → chunk-USFIDSTO.js} +7 -5
- package/dist/{chunk-PZ46S2SY.js → chunk-V3UE3TB7.js} +2 -2
- package/dist/{chunk-KDSYZLF6.js → chunk-V5IFI3FV.js} +8 -1
- package/dist/{chunk-BSATR6ZO.js → chunk-V62B23VC.js} +13 -1
- package/dist/{chunk-WWGPTEQB.js → chunk-VFLMBA2M.js} +66 -16
- package/dist/{chunk-5P2TTHBZ.js → chunk-VM5CQ7CG.js} +2 -2
- package/dist/{chunk-UREXN6WG.js → chunk-VMGTNB6H.js} +6 -6
- package/dist/{chunk-2NSQIPAA.js → chunk-VT7PBGL2.js} +6 -6
- package/dist/{chunk-CXETOLPX.js → chunk-VY2NPB2Q.js} +1 -1
- package/dist/{chunk-F77TMAUY.js → chunk-VY67Q6CJ.js} +18 -18
- package/dist/{chunk-7STMIK2X.js → chunk-W5SVS4B6.js} +2 -2
- package/dist/{chunk-MD6DCQMA.js → chunk-W7Q6PLT4.js} +37 -37
- package/dist/{chunk-JVZTKQFS.js → chunk-WDAZ2MT4.js} +8 -4
- package/dist/{chunk-MZACASZY.js → chunk-WE5WVQE4.js} +13 -1
- package/dist/chunk-WJQX7HBH.js +54 -0
- package/dist/{chunk-MS7O3KDJ.js → chunk-WKWCNS6K.js} +6 -6
- package/dist/{chunk-4KQHKPB3.js → chunk-WSKZZ2ZB.js} +11 -12
- package/dist/{chunk-SMHZXHHD.js → chunk-WZB6R2ZX.js} +6 -4
- package/dist/{chunk-37PKNVLS.js → chunk-X5OVVMZX.js} +1 -1
- package/dist/{chunk-MPO5TVGF.js → chunk-XFCBH3TI.js} +3 -3
- package/dist/{chunk-CAJ54IEP.js → chunk-XJUZC53Y.js} +1 -1
- package/dist/chunk-XN7JDII2.js +2047 -0
- package/dist/{chunk-4KMZAK6J.js → chunk-XNV7VOIT.js} +4 -4
- package/dist/{chunk-YK2KWNTU.js → chunk-XR7VOF2V.js} +9 -7
- package/dist/{chunk-WTQAG2OT.js → chunk-XYUXB5VK.js} +8 -3
- package/dist/{chunk-QB5HV4IY.js → chunk-Y5IKCXQR.js} +7 -8
- package/dist/{chunk-FNMH5WEY.js → chunk-Y5WHM2Q5.js} +1 -1
- package/dist/{chunk-IGNBQT23.js → chunk-Y7Q3VEYC.js} +96 -5
- package/dist/{chunk-L6YVK6VC.js → chunk-YB6QGOCO.js} +1 -1
- package/dist/{chunk-BYCJ6TKI.js → chunk-YBYV56FS.js} +3 -3
- package/dist/{chunk-DLDDRXAI.js → chunk-YCUNFAEE.js} +77 -37
- package/dist/{chunk-V7F4F6JA.js → chunk-YFI5PN5O.js} +5 -7
- package/dist/{chunk-ZL6IHMOW.js → chunk-YGPLUENN.js} +88 -58
- package/dist/chunk-YGZEG3JV.js +123 -0
- package/dist/{chunk-JGFHNAHS.js → chunk-YJGFT63R.js} +8 -3
- package/dist/{chunk-XQMYQ4TN.js → chunk-YNHPPZ7S.js} +1 -1
- package/dist/{chunk-EZZ533MH.js → chunk-YO5UKKCQ.js} +1 -1
- package/dist/{chunk-YZZLIYPA.js → chunk-YTEJYLU7.js} +5 -1
- package/dist/{chunk-CCJP6QZO.js → chunk-Z257SH5U.js} +1 -1
- package/dist/{chunk-ETMHDCEH.js → chunk-Z2BDTZDT.js} +13 -11
- package/dist/{chunk-MOK3ZS6P.js → chunk-ZDD3MJ2H.js} +1 -1
- package/dist/{chunk-6364WO5D.js → chunk-ZNX5J7D7.js} +2 -2
- package/dist/{chunk-UZTQUPTB.js → chunk-ZSYU6LIH.js} +4 -4
- package/dist/{chunk-JFFREZGT.js → chunk-ZTSJ7NY6.js} +6 -2
- package/dist/chunk-ZV3SNRJI.js +122 -0
- package/dist/cli/index.js +1 -1
- package/dist/{core-MU4ALRR7.js → core-4M4RY7MX.js} +4 -1
- package/dist/{core-XW7UJFJZ.js → core-4PW4MXWR.js} +4 -1
- package/dist/{core-LB5M7XL4.js → core-5S5CJHBG.js} +5 -1
- package/dist/{core-LGJZUP6H.js → core-7TTM4KRP.js} +6 -1
- package/dist/{core-GSILPKUR.js → core-7XKNJM7Y.js} +4 -1
- package/dist/{core-JDFUZFRH.js → core-A7HXVSKB.js} +5 -1
- package/dist/{core-K3JX5WPM.js → core-AMWCZTOT.js} +2 -1
- package/dist/{core-BLHEJ5OK.js → core-AVA4XLQ2.js} +4 -1
- package/dist/{core-ILPXXC2Z.js → core-BJZEJ63L.js} +5 -1
- package/dist/{core-3KLQSYWB.js → core-CCB3IXGD.js} +4 -1
- package/dist/{core-BBNY2BX4.js → core-D2OIGYC7.js} +2 -1
- package/dist/{core-4RR6VSXM.js → core-DMDAXVMY.js} +3 -1
- package/dist/{core-HDNWVLJW.js → core-EMSJRGSE.js} +4 -1
- package/dist/{core-A5AKUB7H.js → core-FCSA74RT.js} +2 -1
- package/dist/{core-WZ4CHVYL.js → core-FTQBESDS.js} +3 -1
- package/dist/{core-G3LXHW73.js → core-GS4DXDDG.js} +4 -1
- package/dist/{core-H5HO2CED.js → core-JDZDBTID.js} +2 -1
- package/dist/{core-VKZSQFRG.js → core-L3UR75IJ.js} +2 -1
- package/dist/{core-AR2T32Y3.js → core-MAW4S3KA.js} +4 -1
- package/dist/{core-4HFVG4CP.js → core-N2JEWJ7D.js} +3 -1
- package/dist/{core-BOG33BFD.js → core-OBPTBKX6.js} +4 -1
- package/dist/{core-HTD5RHE7.js → core-OFPPRHYY.js} +5 -1
- package/dist/{core-ZLSQHZ3I.js → core-QFAVWFI3.js} +4 -1
- package/dist/{core-TCSW24N6.js → core-QM34237W.js} +4 -1
- package/dist/{core-WJNK7F2J.js → core-SKMHEA4Y.js} +5 -1
- package/dist/{core-7S3XMW5O.js → core-T3OSZOVV.js} +2 -1
- package/dist/{core-7Y5BZZON.js → core-UNX4ZV4M.js} +4 -1
- package/dist/{core-DFZMOO7E.js → core-VRVL6LIM.js} +5 -1
- package/dist/{core-J2JD5ODO.js → core-VT35VDVS.js} +4 -1
- package/dist/{core-TKZZZ6UW.js → core-VWYXK2R3.js} +4 -1
- package/dist/{core-E2XOSHPR.js → core-WNT6ZMRO.js} +5 -1
- package/dist/{core-RR2CAZC5.js → core-WP73P4CW.js} +4 -1
- package/dist/{core-DD62MWEW.js → core-WPEYRK6Y.js} +2 -1
- package/dist/{core-YMXYUGF5.js → core-WXZJ7V7S.js} +2 -1
- package/dist/{core-5UF44NDI.js → core-XKXDXALI.js} +3 -1
- package/dist/{core-GLOZY6Z7.js → core-ZACFV6XR.js} +2 -1
- package/dist/{core-QPSAYRFT.js → core-ZSERZGK6.js} +5 -1
- package/dist/{dataTable-CNDRVGA5.js → dataTable-7IO546LM.js} +10 -2
- package/dist/{engine-FVEIM3WV.js → engine-US3N6UCH.js} +17 -9
- package/dist/fixtures.js +3 -1
- package/dist/fonts.js +1 -1
- package/dist/geo/dach.js +1 -1
- package/dist/geo/de-states.js +1 -1
- package/dist/geo/eu27.js +1 -1
- package/dist/geo/europe.js +1 -1
- package/dist/geo/index.js +2 -2
- package/dist/geo/us-states.js +1 -1
- package/dist/geo/world.js +1 -1
- package/dist/index.js +31 -19
- package/dist/{main-THU6VIVU.js → main-2UWKGUHR.js} +27 -13
- package/dist/mcp/server.js +23 -13
- package/dist/react/bar.js +6 -1
- package/dist/react/bartable.js +8 -1
- package/dist/react/box.js +6 -1
- package/dist/react/bullet.js +7 -1
- package/dist/react/butterfly.js +6 -1
- package/dist/react/choropleth.js +8 -1
- package/dist/react/cohort.js +9 -1
- package/dist/react/column.js +6 -1
- package/dist/react/combo.js +6 -1
- package/dist/react/creative.js +8 -1
- package/dist/react/diagram.js +8 -1
- package/dist/react/dimswitch.js +6 -1
- package/dist/react/dot.js +6 -1
- package/dist/react/export.js +25 -18
- package/dist/react/funnel.js +6 -1
- package/dist/react/gantt.js +7 -1
- package/dist/react/grid.js +5 -1
- package/dist/react/heatmap.js +7 -1
- package/dist/react/histogram.js +6 -1
- package/dist/react/index.js +93 -84
- package/dist/react/kpi.js +7 -1
- package/dist/react/likert.js +6 -1
- package/dist/react/line.js +6 -1
- package/dist/react/mekko.js +6 -1
- package/dist/react/pareto.js +6 -1
- package/dist/react/pie.js +6 -1
- package/dist/react/prepare.js +35 -20
- package/dist/react/pvm.js +7 -1
- package/dist/react/pyramid.js +6 -1
- package/dist/react/sankey.js +8 -1
- package/dist/react/scatter.js +6 -1
- package/dist/react/slope.js +7 -1
- package/dist/react/sparkline.js +7 -1
- package/dist/react/spec.js +17 -11
- package/dist/react/status.js +7 -1
- package/dist/react/story.js +4 -2
- package/dist/react/table.js +6 -1
- package/dist/react/theme.js +8 -3
- package/dist/react/tilemap.js +7 -1
- package/dist/react/treemap.js +7 -1
- package/dist/react/variance.js +6 -1
- package/dist/react/waffle.js +7 -1
- package/dist/react/waterfall.js +7 -1
- package/dist/rows.js +3 -2
- package/dist/{rowsModule-LI6KOS46.js → rowsModule-DYDVHBAX.js} +2 -1
- package/dist/{schema-ZQSIR5UC.js → schema-3KMU5737.js} +1 -1
- package/dist/{schema-YLE4XXQQ.js → schema-4JRNXEZF.js} +3 -1
- package/dist/{schema-KPEPBGAX.js → schema-626QXX4G.js} +3 -1
- package/dist/{schema-72EEMYS3.js → schema-6PL46VXZ.js} +3 -1
- package/dist/{schema-JH57NFXJ.js → schema-6V5K3J2V.js} +4 -1
- package/dist/{schema-H2EC4GAQ.js → schema-A2XUZUCV.js} +3 -1
- package/dist/{schema-QPOBZUAR.js → schema-CNJ4Y6CT.js} +3 -1
- package/dist/{schema-5KDEQBBT.js → schema-DHMMGDTI.js} +3 -1
- package/dist/{schema-BKUFZLLI.js → schema-F2Q6MH7W.js} +3 -1
- package/dist/{schema-PL3EU6EQ.js → schema-FC6J6KZC.js} +5 -1
- package/dist/{schema-AXRDF6ND.js → schema-FGE5YK3S.js} +3 -1
- package/dist/{schema-5DUTAVO7.js → schema-FSYDLMGD.js} +1 -1
- package/dist/{schema-PQZWO3BP.js → schema-G5KSSI5W.js} +1 -1
- package/dist/{schema-25INXAMY.js → schema-GXOG4MXL.js} +1 -1
- package/dist/{schema-AMT7P7KB.js → schema-HEB6ZDI5.js} +3 -1
- package/dist/{schema-HH5HOORE.js → schema-I44IDRGD.js} +1 -1
- package/dist/{schema-VYECMPON.js → schema-IFTIMTS3.js} +1 -1
- package/dist/{schema-QCIE6M2P.js → schema-IUY7VYHJ.js} +3 -1
- package/dist/{schema-M5JBHQIV.js → schema-J4HCSD5C.js} +5 -2
- package/dist/{schema-B2GCEYXD.js → schema-JCU6LTYD.js} +1 -1
- package/dist/{schema-FDFQKIO5.js → schema-JJWORI7D.js} +3 -1
- package/dist/{schema-GNTKL5DN.js → schema-K4V4PYBO.js} +3 -1
- package/dist/{schema-L5U4OROI.js → schema-LGLQBRC4.js} +3 -1
- package/dist/{schema-THXXFY6I.js → schema-MD22QYZU.js} +1 -1
- package/dist/{schema-7NSV542V.js → schema-MGETMQYC.js} +3 -1
- package/dist/{schema-ZG6ZKFRZ.js → schema-MQB6CE5V.js} +3 -1
- package/dist/{schema-OU35XA3Z.js → schema-NMIYKGHE.js} +3 -1
- package/dist/{schema-5ZTGVQAJ.js → schema-NOBNFD2F.js} +3 -1
- package/dist/{schema-MMVPMJEF.js → schema-OXO2XY4Y.js} +1 -1
- package/dist/{schema-LOQ3AFC7.js → schema-PHIHMDVB.js} +1 -1
- package/dist/{schema-ZEVJMFLV.js → schema-UXWKA3PI.js} +3 -1
- package/dist/{schema-GN6GAIU5.js → schema-WBOPCTPC.js} +1 -1
- package/dist/{schema-BBTXTWYI.js → schema-WFGDVBJK.js} +1 -1
- package/dist/{schema-J7TNCZIP.js → schema-WX2RS4OU.js} +3 -1
- package/dist/{schema-QORUB6EK.js → schema-XIHAKX3B.js} +18 -1
- package/dist/{schema-R5Y6NVBH.js → schema-XRSORYBI.js} +3 -1
- package/dist/{schema-CGQID64D.js → schema-YDZCGL56.js} +3 -1
- package/dist/{specValidation-VHLGDEME.js → specValidation-XGELWQUU.js} +2 -1
- package/dist/theme.js +5 -1
- package/dist/types/core/charts/bartable/types.d.ts +14 -1
- package/dist/types/core/charts/box/types.d.ts +3 -1
- package/dist/types/core/charts/choropleth/layout.d.ts +1 -5
- package/dist/types/core/charts/choropleth/types.d.ts +19 -0
- package/dist/types/core/charts/cohort/types.d.ts +16 -3
- package/dist/types/core/charts/creative/types.d.ts +21 -0
- package/dist/types/core/charts/dimswitch/compile.d.ts +15 -2
- package/dist/types/core/charts/dimswitch/types.d.ts +24 -1
- package/dist/types/core/charts/gantt/calendar.d.ts +20 -0
- package/dist/types/core/charts/gantt/columns.d.ts +56 -0
- package/dist/types/core/charts/gantt/layout.d.ts +8 -2
- package/dist/types/core/charts/gantt/model.d.ts +296 -0
- package/dist/types/core/charts/grid/metricStack.d.ts +9 -0
- package/dist/types/core/charts/grid/metricStackSchema.d.ts +13 -0
- package/dist/types/core/charts/histogram/types.d.ts +8 -0
- package/dist/types/core/charts/likert/layout.d.ts +10 -8
- package/dist/types/core/charts/pvm/types.d.ts +9 -1
- package/dist/types/core/charts/pyramid/types.d.ts +3 -1
- package/dist/types/core/charts/sankey/types.d.ts +5 -1
- package/dist/types/core/charts/status/layout.d.ts +3 -0
- package/dist/types/core/charts/table/resolve.d.ts +14 -0
- package/dist/types/core/footer.d.ts +2 -0
- package/dist/types/core/formatSpec.d.ts +10 -0
- package/dist/types/core/frame.d.ts +1 -1
- package/dist/types/core/geo/types.d.ts +2 -0
- package/dist/types/core/geometry.d.ts +1 -1
- package/dist/types/core/normalize/shared.d.ts +2 -0
- package/dist/types/core/registry.d.ts +4 -5
- package/dist/types/core/request.d.ts +6 -0
- package/dist/types/core/schema/capability.d.ts +20 -7
- package/dist/types/core/schema/generatedColumns.d.ts +168 -0
- package/dist/types/core/text.d.ts +16 -0
- package/dist/types/core/themeGeometry.d.ts +9 -0
- package/dist/types/core/timeAxis.d.ts +6 -1
- package/dist/types/core/types/diagram.d.ts +7 -0
- package/dist/types/core/types/options.d.ts +83 -12
- package/dist/types/core/types/table.d.ts +21 -3
- package/dist/types/index.d.ts +2 -0
- package/dist/types/react/barrelCharts.d.ts +16 -5
- package/dist/types/react/charts/butterfly.d.ts +2 -2
- package/dist/types/react/charts/dot.d.ts +7 -1
- package/dist/types/react/charts/pareto.d.ts +4 -1
- package/dist/types/react/charts/variance.d.ts +3 -1
- package/dist/types/react/hover/labelCard.d.ts +11 -2
- package/dist/types/react/prepare.d.ts +7 -1
- package/dist/types/theme.d.ts +2 -0
- package/dist/validate.js +15 -5
- package/docs/manual.md +31 -3
- package/docs/reference/bar.md +3 -0
- package/docs/reference/bartable.md +16 -1
- package/docs/reference/box.md +8 -1
- package/docs/reference/bullet.md +12 -1
- package/docs/reference/butterfly.md +7 -1
- package/docs/reference/choropleth.md +14 -1
- package/docs/reference/cohort.md +25 -5
- package/docs/reference/column.md +1 -0
- package/docs/reference/combo.md +1 -0
- package/docs/reference/creative.md +13 -0
- package/docs/reference/diagram.md +5 -0
- package/docs/reference/dimswitch.md +50 -32
- package/docs/reference/dot.md +7 -2
- package/docs/reference/fixtures.md +57 -0
- package/docs/reference/funnel.md +5 -0
- package/docs/reference/gantt.md +10 -2
- package/docs/reference/grid.md +9 -2
- package/docs/reference/heatmap.md +6 -0
- package/docs/reference/histogram.md +2 -2
- package/docs/reference/kpi.md +5 -1
- package/docs/reference/likert.md +8 -0
- package/docs/reference/options.md +4 -3
- package/docs/reference/pareto.md +1 -1
- package/docs/reference/pvm.md +7 -1
- package/docs/reference/pyramid.md +6 -0
- package/docs/reference/react.md +1 -2
- package/docs/reference/sankey.md +6 -2
- package/docs/reference/slope.md +6 -0
- package/docs/reference/sparkline.md +1 -1
- package/docs/reference/status.md +7 -1
- package/docs/reference/table.md +16 -4
- package/docs/reference/tilemap.md +1 -1
- package/docs/reference/treemap.md +1 -1
- package/docs/reference/waffle.md +1 -1
- package/docs/reference/waterfall.md +4 -1
- package/package.json +1 -1
- package/dist/chunk-FG5L2LUK.js +0 -89
- package/dist/chunk-IFQN4GKK.js +0 -1852
- package/dist/chunk-O36WX56O.js +0 -13
- package/dist/chunk-WIVFIVFZ.js +0 -27
- package/dist/chunk-ZWNRLIFT.js +0 -24
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveChartRequest
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EDBUVDRI.js";
|
|
4
4
|
import {
|
|
5
5
|
drawnRequest
|
|
6
6
|
} from "./chunk-INHDHZNP.js";
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
chartString
|
|
13
13
|
} from "./chunk-4JGBCBDZ.js";
|
|
14
14
|
import {
|
|
15
|
-
chartString as
|
|
15
|
+
chartString as chartString4
|
|
16
16
|
} from "./chunk-VJ7VBB6S.js";
|
|
17
17
|
import {
|
|
18
18
|
normalizeGridData
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YFI5PN5O.js";
|
|
20
20
|
import {
|
|
21
|
-
chartString as
|
|
22
|
-
|
|
23
|
-
} from "./chunk-
|
|
21
|
+
chartString as chartString3,
|
|
22
|
+
tablePlan
|
|
23
|
+
} from "./chunk-AFA32LHN.js";
|
|
24
24
|
import {
|
|
25
25
|
sharedEndLabelId
|
|
26
26
|
} from "./chunk-GC4WOLV3.js";
|
|
@@ -30,26 +30,33 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
mekkoStackingMode,
|
|
32
32
|
poolMekkoCell
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-W5SVS4B6.js";
|
|
34
34
|
import {
|
|
35
35
|
stackAdds
|
|
36
36
|
} from "./chunk-JMGB444D.js";
|
|
37
|
+
import {
|
|
38
|
+
chartString as chartString2
|
|
39
|
+
} from "./chunk-ZV3SNRJI.js";
|
|
37
40
|
import {
|
|
38
41
|
SPARKLINE_RING_RADIUS,
|
|
39
42
|
kpiSparkSeries,
|
|
40
43
|
lastObservedIndex,
|
|
41
44
|
sparklinePointId
|
|
42
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-VT7PBGL2.js";
|
|
46
|
+
import {
|
|
47
|
+
labelOn
|
|
48
|
+
} from "./chunk-YO5UKKCQ.js";
|
|
43
49
|
import {
|
|
44
50
|
calendarNames
|
|
45
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-AFGQXMKT.js";
|
|
46
52
|
import {
|
|
47
53
|
datePatternFromExample,
|
|
48
54
|
formatDate,
|
|
49
55
|
rectCenter,
|
|
50
56
|
textRole
|
|
51
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-WSKZZ2ZB.js";
|
|
52
58
|
import {
|
|
59
|
+
LABEL_ONLY_ROW,
|
|
53
60
|
differenceExample,
|
|
54
61
|
exampleSpec,
|
|
55
62
|
formatNonzeroWithSpec,
|
|
@@ -59,7 +66,7 @@ import {
|
|
|
59
66
|
specUnitKind,
|
|
60
67
|
unitOfSpec,
|
|
61
68
|
withUnit
|
|
62
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-D3PQAVFW.js";
|
|
63
70
|
import {
|
|
64
71
|
NOT_AVAILABLE,
|
|
65
72
|
NOT_MEANINGFUL,
|
|
@@ -88,7 +95,7 @@ import {
|
|
|
88
95
|
normalizeCell,
|
|
89
96
|
normalizeScenario,
|
|
90
97
|
normalizeSeriesValues
|
|
91
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-FX5VZK5F.js";
|
|
92
99
|
import {
|
|
93
100
|
pushAll
|
|
94
101
|
} from "./chunk-WYJEOMNY.js";
|
|
@@ -134,10 +141,10 @@ var EN = {
|
|
|
134
141
|
reasonAComparisonOperandIsUnavailable: "Ein Vergleichswert ist nicht verf\xFCgbar",
|
|
135
142
|
reasonComparisonRequiresNumericValues: "Vergleich braucht Zahlenwerte",
|
|
136
143
|
reasonRelativeChangeIsNotMeaningfulForANonpositiveReference: "Relative \xC4nderung bei einer nichtpositiven Referenz nicht aussagekr\xE4ftig"
|
|
137
|
-
}, { chartString:
|
|
144
|
+
}, { chartString: chartString5 } = chartStrings(EN, DE), reasonKeys = ["reasonSegmentOperandsNotRetained", "reasonReferenceIsNonpositive", "reasonValueOrTargetMissing", "reasonPositiveReferenceAndValueRequired", "reasonNonzeroCompositionBasisRequired", "reasonNoSourceCategoryForThisMark", "reasonASignedCompositionHasNoShareOfANonnegativeTotal", "reasonShareRequiresAPositiveTotal", "reasonTheObservationIsUnavailable", "reasonCurrentTotalCombinesIncompatibleUnits", "reasonRelativeChangeRequiresAPositiveReference", "reasonNoObservation", "reasonNoObservationDrawnAsZeroInTheStack", "reasonNonfiniteValue", "reasonIncompatibleUnits", "reasonAComparisonOperandIsUnavailable", "reasonComparisonRequiresNumericValues", "reasonRelativeChangeIsNotMeaningfulForANonpositiveReference"], reasonByEnglish;
|
|
138
145
|
function localizedRecordReason(reason, language) {
|
|
139
146
|
let key = (reasonByEnglish ??= new Map(reasonKeys.map((key2) => [EN[key2], key2]))).get(reason);
|
|
140
|
-
return key === void 0 ? reason :
|
|
147
|
+
return key === void 0 ? reason : chartString5({ locale: { language } }, key);
|
|
141
148
|
}
|
|
142
149
|
|
|
143
150
|
// src/core/strings/a11y-valueText.ts
|
|
@@ -151,7 +158,7 @@ var EN2 = {
|
|
|
151
158
|
valueWithheld: "Wert zur\xFCckgehalten",
|
|
152
159
|
valueUnavailable: "Nicht verf\xFCgbar ({v1})",
|
|
153
160
|
observationUnavailable: "Nicht verf\xFCgbar (keine Beobachtung)"
|
|
154
|
-
}, { chartString:
|
|
161
|
+
}, { chartString: chartString6 } = chartStrings(EN2, DE2);
|
|
155
162
|
|
|
156
163
|
// src/core/a11y/valueText.ts
|
|
157
164
|
function decimalPrecision(raw) {
|
|
@@ -232,11 +239,11 @@ function displayedValueText(value, locale) {
|
|
|
232
239
|
return withUnit(sourceNumberText(value.raw, locale, value.derived === "number", value.format ? void 0 : value.unit, value.renderTarget), rawUnit(value));
|
|
233
240
|
}
|
|
234
241
|
function interactionValueText(value, locale) {
|
|
235
|
-
if (value.state === "suppressed") return
|
|
242
|
+
if (value.state === "suppressed") return chartString6({ locale: { language: locale } }, "valueWithheld");
|
|
236
243
|
if (value.state === "na") return (value.reason ? localizedRecordReason(value.reason, locale) : void 0) || NOT_AVAILABLE;
|
|
237
244
|
if (value.state === "nm") return (value.reason ? localizedRecordReason(value.reason, locale) : void 0) || NOT_MEANINGFUL;
|
|
238
|
-
if (value.state !== "value") return (value.reason ? localizedRecordReason(value.reason, locale) : void 0) ||
|
|
239
|
-
if (value.raw === null) return
|
|
245
|
+
if (value.state !== "value") return (value.reason ? localizedRecordReason(value.reason, locale) : void 0) || chartString6({ locale: { language: locale } }, "valueUnavailable", { v1: value.state });
|
|
246
|
+
if (value.raw === null) return chartString6({ locale: { language: locale } }, "observationUnavailable");
|
|
240
247
|
if (value.kind === "date") {
|
|
241
248
|
if (typeof value.raw != "string") return String(value.raw);
|
|
242
249
|
let parsed = parseISODate(value.raw);
|
|
@@ -285,7 +292,7 @@ var EN3 = {
|
|
|
285
292
|
notMeaningful: "Nicht aussagekr\xE4ftig",
|
|
286
293
|
notApplicableName: "Nicht anwendbar",
|
|
287
294
|
spanText: "{v1} bis {v2}"
|
|
288
|
-
}, { chartString:
|
|
295
|
+
}, { chartString: chartString7 } = chartStrings(EN3, DE3);
|
|
289
296
|
|
|
290
297
|
// src/core/a11y/recordsShared.ts
|
|
291
298
|
function ownerKey(owner) {
|
|
@@ -326,7 +333,7 @@ function statedValue(value, state, options) {
|
|
|
326
333
|
...value,
|
|
327
334
|
raw: null,
|
|
328
335
|
state,
|
|
329
|
-
reason:
|
|
336
|
+
reason: chartString7(options, state === "suppressed" ? "valueWithheld" : state === "nm" ? "notMeaningful" : "notApplicableName")
|
|
330
337
|
};
|
|
331
338
|
}
|
|
332
339
|
function cellRecordValue(cell, unit, format) {
|
|
@@ -478,7 +485,7 @@ var EN4 = {
|
|
|
478
485
|
recordTarget: "Ziel",
|
|
479
486
|
maturingHidden: "Noch nicht ausgereifter Wert nicht gezeigt",
|
|
480
487
|
categoryState: "Zustand der Kategorie"
|
|
481
|
-
}, { chartString:
|
|
488
|
+
}, { chartString: chartString8 } = chartStrings(EN4, DE4);
|
|
482
489
|
|
|
483
490
|
// src/core/a11y/structuralRecords.ts
|
|
484
491
|
function tableValue(options, cell, column, row = {}, columnFormatAuthored = !1) {
|
|
@@ -499,7 +506,7 @@ function tableValue(options, cell, column, row = {}, columnFormatAuthored = !1)
|
|
|
499
506
|
...unit && column.unitScaled && unscaledUnit(unit) !== unit ? { scaledUnit: !0 } : {},
|
|
500
507
|
...computed ? { derived: "number" } : {}
|
|
501
508
|
},
|
|
502
|
-
...cell.state !== "value" ? { reason: cell.state === "suppressed" ?
|
|
509
|
+
...cell.state !== "value" ? { reason: cell.state === "suppressed" ? chartString8(options, "valueWithheld") : cell.state === "open" ? chartString8(options, "openPeriod") : cell.state } : {}
|
|
503
510
|
};
|
|
504
511
|
}
|
|
505
512
|
function suppressedTableCells(data) {
|
|
@@ -512,13 +519,13 @@ function suppressedTableCells(data) {
|
|
|
512
519
|
}
|
|
513
520
|
function authoredRowSpecs(data) {
|
|
514
521
|
let specs = /* @__PURE__ */ new Map(), visit = (row) => {
|
|
515
|
-
specs.set(row.id, { ...row.format === void 0 ? {} : { format: row.format }, ...row.calc === void 0 ? {} : { calc: row.calc }, cells: row.cells }), row.children?.forEach(visit);
|
|
522
|
+
specs.set(row.id, { ...row.format === void 0 ? {} : { format: row.format }, ...row.calc === void 0 ? {} : { calc: row.calc }, ...row[LABEL_ONLY_ROW] ? { labelOnly: !0 } : {}, cells: row.cells }), row.children?.forEach(visit);
|
|
516
523
|
};
|
|
517
524
|
return data.rows.forEach(visit), specs;
|
|
518
525
|
}
|
|
519
526
|
function tableRecordCells(table, data, options = {}) {
|
|
520
527
|
let withheld = suppressedTableCells(data), rowSpecs = authoredRowSpecs(data), authoredFormat = new Set(data.columns.filter(columnOwnsFormat).map((column) => column.id));
|
|
521
|
-
return table.rows.flatMap((row) => table.columns.flatMap((column) => {
|
|
528
|
+
return table.rows.flatMap((row) => rowSpecs.get(row.id)?.labelOnly ? [] : table.columns.flatMap((column) => {
|
|
522
529
|
let resolved = row.cells[column.id], cell = resolved && withheld.has(JSON.stringify([row.id, column.id])) ? { ...resolved, raw: null, state: "suppressed", displayed: resolved.state === "suppressed" ? resolved.displayed : "\u2014*", note: void 0, href: void 0 } : resolved;
|
|
523
530
|
if (!cell || column.kind === "rowLabel") return [];
|
|
524
531
|
let spec = rowSpecs.get(row.id), rollUp = row.hasChildren && spec?.cells?.[column.id] === void 0, value = tableValue(options, cell, column, { ...spec, rollUp }, authoredFormat.has(column.id)), sourceColumn = data.columns.find((item) => item.id === column.id);
|
|
@@ -530,7 +537,7 @@ function tableRecordCells(table, data, options = {}) {
|
|
|
530
537
|
}));
|
|
531
538
|
}
|
|
532
539
|
function bandFields(options, cell) {
|
|
533
|
-
return cell.band?.label === void 0 || cell.state !== "value" ? [] : [{ key: "band", label:
|
|
540
|
+
return cell.band?.label === void 0 || cell.state !== "value" ? [] : [{ key: "band", label: chartString8(options, "band"), value: textValue(cell.band.label) }];
|
|
534
541
|
}
|
|
535
542
|
function preparedTableRecords(table, data, scope, options = {}) {
|
|
536
543
|
return tableRecordCells(table, data, options).map(({ row, column, cell, value }) => {
|
|
@@ -562,14 +569,14 @@ function tableRecords(ctx) {
|
|
|
562
569
|
function statusRecords(ctx) {
|
|
563
570
|
let data = ctx.request.data, options = ctx.request.options;
|
|
564
571
|
return ctx.geometry.marks.cells.map((mark) => {
|
|
565
|
-
let state = options.states.find((item) => item.id === mark.state), row = data.rows.find((item) => item.id === mark.row), col = data.columns.find((item) => item.id === mark.col);
|
|
572
|
+
let state = options.states.find((item) => item.id === mark.state), row = data.rows.find((item) => item.id === mark.row), col = data.columns.find((item) => item.id === mark.col), colName = options.columnOverrides?.[mark.col]?.label ?? col?.label ?? mark.col;
|
|
566
573
|
return makeRecord(
|
|
567
574
|
ctx,
|
|
568
575
|
{ seriesId: mark.row, categoryId: mark.col },
|
|
569
576
|
textValue(mark.sourceState ?? (mark.missing ? null : mark.state)),
|
|
570
577
|
{
|
|
571
|
-
label: `${row?.label ?? mark.row} / ${
|
|
572
|
-
fields: state ? [{ key: "stateLabel", label:
|
|
578
|
+
label: `${row?.label ?? mark.row} / ${colName}`,
|
|
579
|
+
fields: state ? [{ key: "stateLabel", label: chartString8(ctx.request.options, "state"), value: textValue(state.label) }] : [],
|
|
573
580
|
nodeIds: [mark.nodeId],
|
|
574
581
|
anchor: mark.rect
|
|
575
582
|
}
|
|
@@ -578,12 +585,12 @@ function statusRecords(ctx) {
|
|
|
578
585
|
}
|
|
579
586
|
var BARTABLE_TOTAL_ROW = "__total";
|
|
580
587
|
function bartableRecords(ctx) {
|
|
581
|
-
let data = ctx.request.data, marks = ctx.geometry.marks, options = ctx.request.options, tracks = [
|
|
582
|
-
...(data.columns ?? []).map((column) => ({ id: column.id, name: column.label ?? column.id, format: column.format })),
|
|
588
|
+
let data = ctx.request.data, marks = ctx.geometry.marks, options = ctx.request.options, overrides = options.columnOverrides, tracks = [
|
|
589
|
+
...(data.columns ?? []).map((column) => ({ id: column.id, name: overrides?.[column.id]?.label ?? column.label ?? column.id, format: column.format })),
|
|
583
590
|
...data.panels.flatMap((panel) => [
|
|
584
|
-
{ id: panel.id, name: panel.label ?? panel.id, unit: panel.unit, format: panel.format ?? options.format },
|
|
591
|
+
{ id: panel.id, name: overrides?.[panel.id]?.label ?? panel.label ?? panel.id, unit: panel.unit, format: panel.format ?? options.format },
|
|
585
592
|
// Under cascade: the computed share column of each panel.
|
|
586
|
-
...options.variant === "cascade" ? [{ id: `share:${panel.id}`, name: `${panel.label ?? panel.id} share`, unit: "%", computed: !0 }] : []
|
|
593
|
+
...options.variant === "cascade" ? [{ id: `share:${panel.id}`, name: `${overrides?.[panel.id]?.label ?? panel.label ?? panel.id} share`, unit: "%", computed: !0 }] : []
|
|
587
594
|
]),
|
|
588
595
|
...options.variant === "cascade" && options.cascade?.growth ? [{ id: "growth", name: options.cascade.growth.label ?? (options.cascade.growth.measure === "cagr" ? "CAGR" : "Share change"), unit: options.cascade.growth.measure === "cagr" ? "%" : "pp", computed: !0 }] : []
|
|
589
596
|
], derived2 = ctx.geometry.derived, rows = [
|
|
@@ -600,12 +607,12 @@ function bartableRecords(ctx) {
|
|
|
600
607
|
mark.rect
|
|
601
608
|
)), cells = marks.cells.filter((mark) => !mark.combined && (mark.rowId ?? BARTABLE_TOTAL_ROW) === row.id && mark.colId === track.id).map((mark) => {
|
|
602
609
|
let owner = { categoryId: row.id, colId: track.id };
|
|
603
|
-
if (mark.value === null && mark.kind === "total") return at(track.name, owner, { ...number2(null, mark.text, track), reason:
|
|
610
|
+
if (mark.value === null && mark.kind === "total") return at(track.name, owner, { ...number2(null, mark.text, track), reason: chartString8(ctx.request.options, "rowMissing") }, mark.rect);
|
|
604
611
|
if (!mark.range) return at(track.name, owner, number2(mark.value, mark.text, mark.kind === "total" ? { ...track, computed: !0 } : track), mark.rect);
|
|
605
612
|
let range = { kind: "text", raw: mark.text, state: "value", ...track.unit === void 0 ? {} : { unit: track.unit } };
|
|
606
613
|
return at(track.name, owner, range, mark.rect, [
|
|
607
|
-
{ key: "low", label:
|
|
608
|
-
{ key: "high", label:
|
|
614
|
+
{ key: "low", label: chartString8(ctx.request.options, "low"), value: numericValue(mark.range.low, track.unit, track.format) },
|
|
615
|
+
{ key: "high", label: chartString8(ctx.request.options, "high"), value: numericValue(mark.range.high, track.unit, track.format) }
|
|
609
616
|
]);
|
|
610
617
|
});
|
|
611
618
|
return [...segments, ...cells];
|
|
@@ -621,15 +628,15 @@ function bartableRecords(ctx) {
|
|
|
621
628
|
return [...perRow, ...combined];
|
|
622
629
|
}
|
|
623
630
|
function ganttItemRecord(ctx, rowId, rowLabel, item) {
|
|
624
|
-
let mark = ctx.geometry.marks.rows.find((row) => row.id === rowId)?.itemNodes.find((node) => node.id === item.id), start = mark ? textValue(mark.start, "date") : item.anchor ? { kind: "date", raw: null, state: "unavailable", reason:
|
|
631
|
+
let mark = ctx.geometry.marks.rows.find((row) => row.id === rowId)?.itemNodes.find((node) => node.id === item.id), start = mark ? textValue(mark.start, "date") : item.anchor ? { kind: "date", raw: null, state: "unavailable", reason: chartString8(ctx.request.options, "anchoredDateUnavailable") } : textValue(item.start, "date"), what = item.label ?? item.colorLabel ?? chartString4(
|
|
625
632
|
ctx.request.options,
|
|
626
633
|
item.kind === "bracket" ? "overallSpan" : item.kind === "milestone" ? "milestone" : "task"
|
|
627
634
|
);
|
|
628
635
|
return makeRecord(ctx, { categoryId: rowId, segmentId: item.id }, textValue(what), {
|
|
629
636
|
label: item.label ? `${rowLabel} / ${item.label}` : rowLabel,
|
|
630
637
|
fields: [
|
|
631
|
-
{ key: "start", label:
|
|
632
|
-
...mark || item.end ? [{ key: "end", label:
|
|
638
|
+
{ key: "start", label: chartString8(ctx.request.options, "start"), value: start },
|
|
639
|
+
...mark || item.end ? [{ key: "end", label: chartString8(ctx.request.options, "end"), value: textValue(mark?.end ?? item.end, "date") }] : []
|
|
633
640
|
],
|
|
634
641
|
...mark ? { nodeIds: [mark.nodeId], anchor: mark.rect } : {}
|
|
635
642
|
});
|
|
@@ -646,8 +653,8 @@ function diagramRecords(ctx) {
|
|
|
646
653
|
return !label || label.hidden !== void 0 || label.title !== void 0;
|
|
647
654
|
}, nodes = marks.nodes.map((mark) => {
|
|
648
655
|
let node = data.nodes.find((item) => item.id === mark.id), fields = [
|
|
649
|
-
...node.secondaryLabel ? [{ key: "secondaryLabel", label:
|
|
650
|
-
...node.caption ? [{ key: "caption", label:
|
|
656
|
+
...node.secondaryLabel ? [{ key: "secondaryLabel", label: chartString8(ctx.request.options, "description"), value: textValue(node.secondaryLabel), labelId: `secondary-label:${node.id}` }] : [],
|
|
657
|
+
...node.caption ? [{ key: "caption", label: chartString8(ctx.request.options, "caption"), value: textValue(node.caption), labelId: `caption-label:${node.id}` }] : []
|
|
651
658
|
];
|
|
652
659
|
return makeRecord(ctx, { pointId: mark.id }, textValue(node.label), {
|
|
653
660
|
label: node.label,
|
|
@@ -663,8 +670,8 @@ function diagramRecords(ctx) {
|
|
|
663
670
|
nodeIds: mark.sceneNodeIds,
|
|
664
671
|
anchor: mark.route.bounds,
|
|
665
672
|
fields: [
|
|
666
|
-
{ key: "source", label:
|
|
667
|
-
{ key: "target", label:
|
|
673
|
+
{ key: "source", label: chartString8(ctx.request.options, "recordSource"), value: textValue(mark.source.nodeId) },
|
|
674
|
+
{ key: "target", label: chartString8(ctx.request.options, "recordTarget"), value: textValue(mark.target.nodeId) }
|
|
668
675
|
],
|
|
669
676
|
cardFields: []
|
|
670
677
|
});
|
|
@@ -684,8 +691,8 @@ function gridRecords(ctx, childRecords) {
|
|
|
684
691
|
seriesLabel: source.title,
|
|
685
692
|
categoryLabel: category.label,
|
|
686
693
|
// Every stack figure is an expression over the measures: computed, so it reads without float residue.
|
|
687
|
-
value: { ...hidden ? numericValue(null, source.unit) : derivedValue(raw, source.unit), displayed: panel.displayed[i], ...hidden ? { state: "unavailable", reason:
|
|
688
|
-
fields: [{ key: "state", label:
|
|
694
|
+
value: { ...hidden ? numericValue(null, source.unit) : derivedValue(raw, source.unit), displayed: panel.displayed[i], ...hidden ? { state: "unavailable", reason: chartString8(ctx.request.options, "maturingHidden") } : {} },
|
|
695
|
+
fields: [{ key: "state", label: chartString8(ctx.request.options, "categoryState"), value: { kind: "text", state: "value", raw: panel.states[i] } }],
|
|
689
696
|
comparisons: [],
|
|
690
697
|
annotations: [],
|
|
691
698
|
claimIds: [],
|
|
@@ -756,47 +763,55 @@ var EN5 = {
|
|
|
756
763
|
baselineObservations: "Beobachtungen im Basiszeitraum",
|
|
757
764
|
currentObservations: "Beobachtungen im aktuellen Zeitraum",
|
|
758
765
|
dailyMetric: "T\xE4glich {v1}"
|
|
759
|
-
}, { chartString:
|
|
766
|
+
}, { chartString: chartString9 } = chartStrings(EN5, DE5);
|
|
760
767
|
|
|
761
768
|
// src/core/a11y/creativeRecords.ts
|
|
769
|
+
function printedChange(delta) {
|
|
770
|
+
let value = derivedPercent(delta?.pct);
|
|
771
|
+
return delta?.pct === null || delta === void 0 ? value : { ...value, displayed: delta.text };
|
|
772
|
+
}
|
|
762
773
|
function creativeRecords(ctx) {
|
|
763
774
|
if (ctx.request.type !== "creative") return;
|
|
764
|
-
let data = ctx.request.data, marks = ctx.geometry.marks, fatigue = ctx.geometry.derived.fatigue, records =
|
|
765
|
-
let unit = suffix === "currency" ? data.facts.currency : suffix, owner = { seriesId: key, categoryId: data.id };
|
|
766
|
-
return makeRecord(ctx, owner,
|
|
775
|
+
let data = ctx.request.data, marks = ctx.geometry.marks, fatigue = ctx.geometry.derived.fatigue, options = ctx.request.options, plan = tablePlan(options), overrides = options.columnOverrides, drawn = { value: plan.columns.includes("value"), median: plan.columns.includes("median"), delta: plan.columns.includes("delta") }, medianLabel = overrides?.median?.label ?? chartString9(ctx.request.options, "accountMedian"), deltaLabel = overrides?.delta?.label ?? chartString3(ctx.request.options, "vsMedianColumn"), deltas = ctx.geometry.derived.deltas ?? [], drawnIds = new Set(ctx.geometry.scene.map((node) => node.id)), records = plan.columns.length === 0 ? [] : plan.rows.map(([key, label, suffix]) => {
|
|
776
|
+
let unit = suffix === "currency" ? data.facts.currency : suffix, owner = { seriesId: key, categoryId: data.id }, name = options.rowOverrides?.[key]?.label || label, metric = data.metrics[key], primary = drawn.value ? { value: numericValue(metric.value, unit), valueLabel: overrides?.value?.label ?? chartString3(ctx.request.options, "creativeColumn") } : drawn.median ? { value: numericValue(metric.accountMedian, unit), valueLabel: medianLabel } : { value: printedChange(deltas.find((delta) => delta.key === key)), valueLabel: deltaLabel };
|
|
777
|
+
return makeRecord(ctx, owner, primary.value, {
|
|
767
778
|
// The value is the creative's own, beside the account median: it carries the column's name.
|
|
768
|
-
label,
|
|
769
|
-
seriesLabel:
|
|
779
|
+
label: name,
|
|
780
|
+
seriesLabel: name,
|
|
770
781
|
categoryLabel: data.facts.name,
|
|
771
|
-
valueLabel:
|
|
782
|
+
valueLabel: primary.valueLabel,
|
|
772
783
|
anchor: marks.metrics[key],
|
|
773
|
-
nodeIds: [`creative:row:${key}`, `label:creative:metric:${key}`, `label:creative:value:${key}`, `label:creative:median:${key}`],
|
|
784
|
+
nodeIds: [`creative:row:${key}`, `label:creative:metric:${key}`, `label:creative:value:${key}`, `label:creative:median:${key}`].filter((id) => drawnIds.has(id)),
|
|
774
785
|
fields: [
|
|
775
|
-
{ key: "accountMedian", label:
|
|
776
|
-
|
|
777
|
-
{ key: "
|
|
786
|
+
...drawn.median && drawn.value ? [{ key: "accountMedian", label: medianLabel, value: numericValue(metric.accountMedian, unit) }] : [],
|
|
787
|
+
// A printed change keeps its source in the record once the value or the median it divides is hidden.
|
|
788
|
+
...drawn.delta && drawn.value !== drawn.median ? [{ key: "delta", label: deltaLabel, value: printedChange(deltas.find((delta) => delta.key === key)) }] : [],
|
|
789
|
+
...drawn.median || drawn.delta ? [
|
|
790
|
+
{ key: "population", label: chartString9(ctx.request.options, "medianPopulation"), value: textValue(data.comparison.population) },
|
|
791
|
+
{ key: "window", label: chartString9(ctx.request.options, "medianWindow"), value: textValue(`${data.comparison.startDate} to ${data.comparison.endDate}`) }
|
|
792
|
+
] : []
|
|
778
793
|
]
|
|
779
794
|
});
|
|
780
795
|
});
|
|
781
796
|
records.push(makeRecord(ctx, { pointId: data.id }, textValue(data.media.alt), {
|
|
782
797
|
label: data.facts.name,
|
|
783
798
|
anchor: marks.media,
|
|
784
|
-
fields: [{ key: "spendToDate", label:
|
|
799
|
+
fields: [{ key: "spendToDate", label: chartString9(ctx.request.options, "spendToDate"), value: numericValue(data.facts.spendToDate, data.facts.currency) }]
|
|
785
800
|
})), records.push(makeRecord(ctx, { seriesId: "fatigue", categoryId: data.id }, fatigue.status === "unavailable" ? { kind: "text", raw: null, state: "unavailable", reason: fatigue.reason } : textValue(fatigue.status), {
|
|
786
|
-
label:
|
|
801
|
+
label: chartString9(ctx.request.options, "fatigueRule"),
|
|
787
802
|
nodeIds: ["label:creative:fatigue:0"],
|
|
788
803
|
claimIds: ctx.claims.filter((claim) => claim.id.startsWith("creative:fatigue:")).map((claim) => claim.id),
|
|
789
804
|
fields: [
|
|
790
|
-
{ key: "changePct", label:
|
|
791
|
-
{ key: "baselineN", label:
|
|
792
|
-
{ key: "currentN", label:
|
|
805
|
+
{ key: "changePct", label: chartString9(ctx.request.options, "dailyMeanChange"), value: derivedPercent(fatigue.changePct) },
|
|
806
|
+
{ key: "baselineN", label: chartString9(ctx.request.options, "baselineObservations"), value: numericValue(fatigue.baseline.inputs.length) },
|
|
807
|
+
{ key: "currentN", label: chartString9(ctx.request.options, "currentObservations"), value: numericValue(fatigue.current.inputs.length) }
|
|
793
808
|
]
|
|
794
809
|
}));
|
|
795
810
|
for (let row of data.observations) for (let key of ["spend", "cpa", "ctr"]) records.push(makeRecord(
|
|
796
811
|
ctx,
|
|
797
812
|
{ seriesId: `daily:${key}`, categoryId: row.date },
|
|
798
813
|
numericValue(row[key], key === "ctr" ? "%" : data.facts.currency),
|
|
799
|
-
{ label: `${row.date} ${key.toUpperCase()}`, categoryLabel: row.date, seriesLabel:
|
|
814
|
+
{ label: `${row.date} ${key.toUpperCase()}`, categoryLabel: row.date, seriesLabel: chartString9(ctx.request.options, "dailyMetric", { v1: key.toUpperCase() }) }
|
|
800
815
|
));
|
|
801
816
|
return records;
|
|
802
817
|
}
|
|
@@ -854,7 +869,7 @@ var EN6 = {
|
|
|
854
869
|
includes: "Umfasst",
|
|
855
870
|
shareOfSource: "Anteil am Abfluss der Quelle",
|
|
856
871
|
shareOfTarget: "Anteil am Zufluss des Ziels"
|
|
857
|
-
}, { chartString:
|
|
872
|
+
}, { chartString: chartString10 } = chartStrings(EN6, DE6);
|
|
858
873
|
|
|
859
874
|
// src/core/a11y/details.ts
|
|
860
875
|
function detailRecordFields(options, cell) {
|
|
@@ -942,7 +957,7 @@ function segmentSpan(ctx, start, parts, id, end) {
|
|
|
942
957
|
let from = parts.slice(0, index).reduce((sum, part) => sum + part.value, start);
|
|
943
958
|
start = from, end = from + parts[index].value;
|
|
944
959
|
}
|
|
945
|
-
return [field("start",
|
|
960
|
+
return [field("start", chartString10(ctx.request.options, "start"), derived(ctx, start)), field("end", chartString10(ctx.request.options, "end"), derived(ctx, end))];
|
|
946
961
|
}
|
|
947
962
|
function waterfallCases(ctx, data, geo) {
|
|
948
963
|
let cases = data.cases;
|
|
@@ -955,8 +970,8 @@ function waterfallCases(ctx, data, geo) {
|
|
|
955
970
|
anchor: bar.rect,
|
|
956
971
|
scenario,
|
|
957
972
|
fields: [
|
|
958
|
-
field("start",
|
|
959
|
-
field("end",
|
|
973
|
+
field("start", chartString10(ctx.request.options, "start"), derived(ctx, geo.derived.levels[key]?.start)),
|
|
974
|
+
field("end", chartString10(ctx.request.options, "end"), derived(ctx, geo.derived.levels[key]?.end))
|
|
960
975
|
]
|
|
961
976
|
})];
|
|
962
977
|
}));
|
|
@@ -979,17 +994,17 @@ function kpi(ctx) {
|
|
|
979
994
|
nodeIds,
|
|
980
995
|
comparisons: comparisons2,
|
|
981
996
|
fields: [
|
|
982
|
-
...geo.derived.band?.label ? [field("band",
|
|
997
|
+
...geo.derived.band?.label ? [field("band", chartString10(ctx.request.options, "band"), textValue(geo.derived.band.label))] : [],
|
|
983
998
|
...attainment ? [
|
|
984
999
|
field("target", attainment.label, numericValue(attainment.vs, value.unit, value.format)),
|
|
985
|
-
field("attainment",
|
|
1000
|
+
field("attainment", chartString10(ctx.request.options, "attainment"), attainment.pct === null ? unavailable(chartString10(ctx.request.options, "referenceNonpositive")) : derivedPercent(attainment.pct))
|
|
986
1001
|
] : []
|
|
987
1002
|
]
|
|
988
1003
|
});
|
|
989
1004
|
if (!data.spark || !geo.scene.some((node) => node.id === "label:spark:last")) return [card];
|
|
990
1005
|
let { cells, values } = kpiSparkSeries(data.spark), index = lastObservedIndex(values), dot = geo.scene.find((node) => node.id === "mark:spark:dot" || node.id === "mark:sparkColLast");
|
|
991
1006
|
return [card, makeRecord(ctx, { seriesId: "spark", segmentId: "sparkLast" }, cellRecordValue(cells[index], value.unit, value.format), {
|
|
992
|
-
label: `${data.label}, ${data.spark.labels?.[index] ??
|
|
1007
|
+
label: `${data.label}, ${data.spark.labels?.[index] ?? chartString10(ctx.request.options, "latest")}`,
|
|
993
1008
|
nodeIds: dot ? [dot.id] : []
|
|
994
1009
|
})];
|
|
995
1010
|
}
|
|
@@ -1004,26 +1019,42 @@ function sparkline(ctx) {
|
|
|
1004
1019
|
label: point.label ?? point.id,
|
|
1005
1020
|
...point.label === void 0 ? {} : { categoryLabel: point.label },
|
|
1006
1021
|
anchor: { x: point.x - SPARKLINE_RING_RADIUS, y: point.y - SPARKLINE_RING_RADIUS, w: 2 * SPARKLINE_RING_RADIUS, h: 2 * SPARKLINE_RING_RADIUS },
|
|
1007
|
-
fields: [field("position",
|
|
1022
|
+
fields: [field("position", chartString10(ctx.request.options, "position"), numericValue(point.index + 1))]
|
|
1008
1023
|
});
|
|
1009
1024
|
});
|
|
1010
1025
|
}
|
|
1011
1026
|
function bullet(ctx) {
|
|
1012
|
-
let data = ctx.request.data
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1027
|
+
let data = ctx.request.data, options = ctx.request.options, geo = geometry(ctx), cells = data.rows.map((row) => {
|
|
1028
|
+
let value = cellRecordValue(normalizeCell(row.value, "value"), options.unit, options.format);
|
|
1029
|
+
return { row, value, target: cellRecordValue(normalizeCell(row.target, "target"), value.unit, value.format) };
|
|
1030
|
+
}), pointOn = labelOn(options, "point"), noteOn = labelOn(options, "annotation"), drawn = options.sharedScale === "percentOfTarget" ? [...pointOn ? ["actual", "share"] : [], ...noteOn ? ["delta"] : []] : [
|
|
1031
|
+
...pointOn && cells.some(({ value }) => value.raw !== null) ? ["actual"] : [],
|
|
1032
|
+
...noteOn && cells.some(({ target }) => target.raw !== null) ? ["target", "gap"] : []
|
|
1033
|
+
], removed = (id) => drawn.includes(id) && options.columnVisibility?.[id] === !1, shown = drawn.filter((id) => !removed(id));
|
|
1034
|
+
if (drawn.length > 0 && shown.length === 0) return [];
|
|
1035
|
+
let leads = removed("actual") ? ["target", "gap", "share", "delta"].find((id) => shown.includes(id)) : void 0, head = (id, key) => options.columnOverrides?.[id]?.label ?? chartString2(options, key, { v1: chartString2(options, "target") });
|
|
1036
|
+
return geo.marks.rows.map((mark) => {
|
|
1037
|
+
let { row, value, target } = cells.find(({ row: row2 }) => row2.id === mark.id), word = options.strings?.target ?? "target", name = word[0].toUpperCase() + word.slice(1), deltaOf = (raw) => numericValue(raw, isPercentLevel(value) && isPercentLevel(target) ? "pp" : value.unit, value.format), delta = typeof value.raw == "number" && typeof target.raw == "number" ? deltaOf(value.raw - target.raw) : unavailable("Value or target missing"), gapShown = geo.derived.deltaVsTarget[row.id], drawnDelta = gapShown === void 0 ? delta : deltaOf(gapShown), share2 = geo.derived.percentOfTarget?.[row.id], shareValue2 = share2 === void 0 ? unavailable("Positive reference and value required") : derivedPercent(share2), printed = [
|
|
1038
|
+
{ id: "gap", label: head("gap", "gapColumn"), value: drawnDelta },
|
|
1039
|
+
{ id: "share", label: head("share", "shareColumn"), value: shareValue2 },
|
|
1040
|
+
{ id: "delta", label: head("delta", "deltaColumn"), value: drawnDelta }
|
|
1041
|
+
].filter((column) => shown.includes(column.id)), led = printed.find((column) => column.id === leads), lead = leads === "target" ? { value: target, valueLabel: head("target", "targetColumn") } : led ? { value: led.value, valueLabel: led.label } : { value }, compares = !["actual", "target", "gap", "share", "delta"].some(removed);
|
|
1042
|
+
return makeRecord(ctx, { categoryId: row.id }, lead.value, {
|
|
1016
1043
|
label: row.label ?? row.id,
|
|
1017
1044
|
anchor: mark.rect,
|
|
1018
|
-
|
|
1019
|
-
|
|
1045
|
+
..."valueLabel" in lead ? { valueLabel: lead.valueLabel } : {},
|
|
1046
|
+
fields: [
|
|
1047
|
+
...removed("target") || leads === "target" ? [] : [field("target", name, target)],
|
|
1048
|
+
// With the comparison gone, a column that still prints its number keeps it here.
|
|
1049
|
+
...compares ? [] : printed.flatMap((column) => column.id === leads || column.value.raw === null ? [] : [field(column.id, column.label, column.value)])
|
|
1050
|
+
],
|
|
1051
|
+
comparisons: compares ? [{
|
|
1020
1052
|
label: name,
|
|
1021
1053
|
current: value,
|
|
1022
1054
|
reference: target,
|
|
1023
|
-
|
|
1024
|
-
delta: typeof value.raw == "number" && typeof target.raw == "number" ? numericValue(value.raw - target.raw, isPercentLevel(value) && isPercentLevel(target) ? "pp" : value.unit, value.format) : unavailable("Value or target missing"),
|
|
1055
|
+
delta,
|
|
1025
1056
|
percent: typeof value.raw == "number" && typeof target.raw == "number" && target.raw > 0 ? derivedPercent((value.raw - target.raw) / target.raw * 100) : unavailable("Positive reference and value required")
|
|
1026
|
-
}]
|
|
1057
|
+
}] : []
|
|
1027
1058
|
});
|
|
1028
1059
|
});
|
|
1029
1060
|
}
|
|
@@ -1051,8 +1082,8 @@ function funnel(ctx) {
|
|
|
1051
1082
|
anchor: segment.rect,
|
|
1052
1083
|
scenario: source.series.find((series) => series.id === segment.id)?.scenario,
|
|
1053
1084
|
fields: [
|
|
1054
|
-
field("stageTotal",
|
|
1055
|
-
field("conversion",
|
|
1085
|
+
field("stageTotal", chartString10(ctx.request.options, "stageTotal"), derived(ctx, geo.derived.stageTotals[row.categoryId] ?? void 0)),
|
|
1086
|
+
field("conversion", chartString10(ctx.request.options, "stageConversion"), conversion ? derivedPercent(conversion.rate * 100) : unavailable(chartString10(ctx.request.options, "noPrecedingStage"))),
|
|
1056
1087
|
...source.details(row.categoryId, segment.id)
|
|
1057
1088
|
]
|
|
1058
1089
|
});
|
|
@@ -1124,7 +1155,7 @@ function pareto(ctx) {
|
|
|
1124
1155
|
...details(column.categoryId),
|
|
1125
1156
|
anchor: segment.rect,
|
|
1126
1157
|
share: share(value, geo.derived.total, geo.derived.total > 0 ? geo.derived.values[column.categoryId] / geo.derived.total * 100 : void 0),
|
|
1127
|
-
fields: [field("cumulative",
|
|
1158
|
+
fields: [field("cumulative", chartString10(ctx.request.options, "cumulativeShare"), derivedPercent(geo.derived.cumulativeShare[column.categoryId]))]
|
|
1128
1159
|
});
|
|
1129
1160
|
})), ...geo.marks.lines.flatMap((line) => line.points.map((point) => makeRecord(
|
|
1130
1161
|
ctx,
|
|
@@ -1134,7 +1165,7 @@ function pareto(ctx) {
|
|
|
1134
1165
|
...details(point.categoryId),
|
|
1135
1166
|
anchor: { x: point.x, y: point.y },
|
|
1136
1167
|
nodeIds: point.markerNodeId ? [point.markerNodeId] : [line.nodeId],
|
|
1137
|
-
fields: [field("cumulative",
|
|
1168
|
+
fields: [field("cumulative", chartString10(ctx.request.options, "cumulativeAmount"), derived(ctx, geo.derived.cumulative[point.categoryId]))]
|
|
1138
1169
|
}
|
|
1139
1170
|
)))];
|
|
1140
1171
|
}
|
|
@@ -1157,7 +1188,7 @@ function waffle(ctx) {
|
|
|
1157
1188
|
label: many ? `${panel.label} / ${series?.label ?? segment.seriesId}` : panel.label,
|
|
1158
1189
|
anchor: mark.rect,
|
|
1159
1190
|
...node ? { nodeIds: [node] } : {},
|
|
1160
|
-
fields: square ? [] : [field("cells",
|
|
1191
|
+
fields: square ? [] : [field("cells", chartString10(ctx.request.options, "cells"), textValue(segment.reading))]
|
|
1161
1192
|
});
|
|
1162
1193
|
}));
|
|
1163
1194
|
}
|
|
@@ -1169,7 +1200,7 @@ function treemap(ctx) {
|
|
|
1169
1200
|
label: item.label,
|
|
1170
1201
|
...nodeId ? { nodeIds: [nodeId] } : {},
|
|
1171
1202
|
share: share(value, geo.derived.total, item.share),
|
|
1172
|
-
...group !== void 0 ? { fields: [field("group",
|
|
1203
|
+
...group !== void 0 ? { fields: [field("group", chartString10(ctx.request.options, "group"), textValue(group))] } : {}
|
|
1173
1204
|
});
|
|
1174
1205
|
});
|
|
1175
1206
|
}
|
|
@@ -1184,12 +1215,12 @@ function sankey(chart) {
|
|
|
1184
1215
|
...mark ? { nodeIds: [mark.nodeId], anchor: mark.rect } : {},
|
|
1185
1216
|
share: share(value, geo.derived.stages[node.column]?.total, node.share),
|
|
1186
1217
|
fields: [
|
|
1187
|
-
...stage !== void 0 ? [field("stage",
|
|
1218
|
+
...stage !== void 0 ? [field("stage", chartString10(options, "stage"), textValue(stage))] : [],
|
|
1188
1219
|
...node.in > 0 && node.out > 0 && node.in !== node.out ? [
|
|
1189
|
-
field("inflow",
|
|
1190
|
-
field("outflow",
|
|
1220
|
+
field("inflow", chartString10(options, "inflow"), derived(ctx, node.in)),
|
|
1221
|
+
field("outflow", chartString10(options, "outflow"), derived(ctx, node.out))
|
|
1191
1222
|
] : [],
|
|
1192
|
-
...node.members ? [field("includes",
|
|
1223
|
+
...node.members ? [field("includes", chartString10(options, "includes"), textValue(node.members.map((member) => member.label).join(", ")))] : []
|
|
1193
1224
|
]
|
|
1194
1225
|
}), outgoing = geo.derived.links.filter((link) => link.source === node.key).sort((a, b) => rank.get(a.target) - rank.get(b.target));
|
|
1195
1226
|
return [record, ...outgoing.map((link) => {
|
|
@@ -1198,8 +1229,8 @@ function sankey(chart) {
|
|
|
1198
1229
|
label: `${name(link.source)} \u2192 ${name(link.target)}`,
|
|
1199
1230
|
...linkMark ? { nodeIds: [linkMark.nodeId], anchor: linkMark.at } : {},
|
|
1200
1231
|
fields: [
|
|
1201
|
-
field("shareOfSource",
|
|
1202
|
-
field("shareOfTarget",
|
|
1232
|
+
field("shareOfSource", chartString10(options, "shareOfSource"), percent(link.shareOfSource)),
|
|
1233
|
+
field("shareOfTarget", chartString10(options, "shareOfTarget"), percent(link.shareOfTarget))
|
|
1203
1234
|
]
|
|
1204
1235
|
});
|
|
1205
1236
|
})];
|
|
@@ -1226,10 +1257,10 @@ function likert(ctx) {
|
|
|
1226
1257
|
label: `${item.label ?? item.id} / ${option.label ?? option.id}`,
|
|
1227
1258
|
anchor: bar.rect,
|
|
1228
1259
|
// A count of answers says what it counts; a percent value is the response share itself.
|
|
1229
|
-
...options.values === "percent" ? {} : { valueLabel:
|
|
1260
|
+
...options.values === "percent" ? {} : { valueLabel: chartString10(ctx.request.options, "responses") },
|
|
1230
1261
|
fields: [
|
|
1231
|
-
field("share",
|
|
1232
|
-
field("base",
|
|
1262
|
+
field("share", chartString10(ctx.request.options, "responseShare"), shareValue(geo.derived.shares[row.id]?.[option.id], options.format, options.values === "percent")),
|
|
1263
|
+
field("base", chartString10(ctx.request.options, "sampleSize"), row.id in geo.derived.base ? numericValue(geo.derived.base[row.id]) : unavailable(chartString10(ctx.request.options, "sampleSizeMissing")))
|
|
1233
1264
|
]
|
|
1234
1265
|
});
|
|
1235
1266
|
})), halves = /* @__PURE__ */ new Map();
|
|
@@ -1291,7 +1322,7 @@ var EN7 = {
|
|
|
1291
1322
|
date: "Datum",
|
|
1292
1323
|
footnote: "Fu\xDFnote",
|
|
1293
1324
|
shareOfTotal: "Anteil an der Summe"
|
|
1294
|
-
}, { chartString:
|
|
1325
|
+
}, { chartString: chartString11 } = chartStrings(EN7, DE7);
|
|
1295
1326
|
|
|
1296
1327
|
// src/core/a11y/categoryMarks.ts
|
|
1297
1328
|
function withLineEndLabels(ctx, cells) {
|
|
@@ -1420,13 +1451,13 @@ function shareFor(ctx, matrix, mark, value) {
|
|
|
1420
1451
|
}
|
|
1421
1452
|
function cellFacts(ctx, cell, category, unit) {
|
|
1422
1453
|
let fields = [];
|
|
1423
|
-
if (category?.date && fields.push({ key: "date", label:
|
|
1454
|
+
if (category?.date && fields.push({ key: "date", label: chartString11(ctx.request.options, "date"), value: textValue(category.date, "date") }), cell && typeof cell == "object" && "range" in cell && cell.range)
|
|
1424
1455
|
for (let key of ["low", "high", "mid"]) cell.range[key] !== void 0 && fields.push({ key, label: key, value: numericValue(cell.range[key], unit) });
|
|
1425
1456
|
let footnote = cell ? cellMeta(cell)?.footnote ?? category?.footnote : category?.footnote;
|
|
1426
|
-
return footnote !== void 0 && fields.push({ key: "footnote", label:
|
|
1457
|
+
return footnote !== void 0 && fields.push({ key: "footnote", label: chartString11(ctx.request.options, "footnote"), value: numericValue(footnote) }), fields.push(...detailRecordFields(ctx.request.options, cell)), fields;
|
|
1427
1458
|
}
|
|
1428
1459
|
function categoryRecord(ctx, matrix, mark) {
|
|
1429
|
-
let series = matrix.seriesIndex.get(mark.seriesId), ci = matrix.categoryIndex.get(mark.categoryId) ?? -1,
|
|
1460
|
+
let series = matrix.seriesIndex.get(mark.seriesId), ci = matrix.categoryIndex.get(mark.categoryId) ?? -1, authored = matrix.categories[ci], heatmapName = ctx.request.type === "heatmap" ? ctx.request.options.columnOverrides?.[mark.categoryId]?.label : void 0, category = authored && heatmapName !== void 0 ? { ...authored, label: heatmapName } : authored, found = valueFor(ctx, matrix, series, mark.categoryId), variant = ctx.request.options.variant, cellState = ctx.request.type === "heatmap" && found.state === "missing" ? series.states?.[ci] : void 0, value = cellState ? statedValue(found, cellState, ctx.request.options) : found.state === "missing" && ctx.request.type === "line" && (variant === "stacked-area" || variant === "stacked100-area") ? { ...found, reason: "No observation; drawn as 0 in the stack" } : found, scenario = normalizeScenario(cellMeta(series.cells[ci])?.scenario ?? series.scenario, "scenario"), othersLabel = ctx.request.options.topN?.restLabel ?? ctx.request.options.strings?.others ?? "Others", record = makeRecord(ctx, { categoryId: mark.categoryId, seriesId: mark.seriesId }, value, {
|
|
1430
1461
|
label: `${category?.label ?? othersLabel} / ${series.label ?? series.id}`,
|
|
1431
1462
|
categoryLabel: category?.label ?? othersLabel,
|
|
1432
1463
|
seriesLabel: series.label ?? series.id,
|
|
@@ -1462,7 +1493,7 @@ function slopeOtherRecords(ctx, marks, categories) {
|
|
|
1462
1493
|
seriesLabel,
|
|
1463
1494
|
nodeIds: mark.nodeIds,
|
|
1464
1495
|
anchor: mark.anchor,
|
|
1465
|
-
fields: [{ key: "share", label:
|
|
1496
|
+
fields: [{ key: "share", label: chartString11(ctx.request.options, "shareOfTotal"), value: derivedPercent(end.share * 100) }],
|
|
1466
1497
|
members: folded.memberIds.map((seriesId) => ({ seriesId, categoryId: mark.categoryId }))
|
|
1467
1498
|
})] : [];
|
|
1468
1499
|
});
|
|
@@ -1522,7 +1553,7 @@ var EN8 = {
|
|
|
1522
1553
|
date: "Datum",
|
|
1523
1554
|
category: "Kategorie",
|
|
1524
1555
|
recordKind: "Art"
|
|
1525
|
-
}, { chartString:
|
|
1556
|
+
}, { chartString: chartString12 } = chartStrings(EN8, DE8);
|
|
1526
1557
|
|
|
1527
1558
|
// src/core/a11y/eventRecords.ts
|
|
1528
1559
|
function eventRecords(ctx) {
|
|
@@ -1536,9 +1567,9 @@ function eventRecords(ctx) {
|
|
|
1536
1567
|
label: eventHeading(event) || event.items[0].title,
|
|
1537
1568
|
value: textValue(event.items[0].title),
|
|
1538
1569
|
fields: [
|
|
1539
|
-
...event.dateText ? [{ key: "date", label:
|
|
1540
|
-
...event.place ? [{ key: "place", label:
|
|
1541
|
-
...event.group ? [{ key: "group", label:
|
|
1570
|
+
...event.dateText ? [{ key: "date", label: chartString12(ctx.request.options, "date"), value: textValue(event.dateText) }] : [],
|
|
1571
|
+
...event.place ? [{ key: "place", label: chartString12(ctx.request.options, "category"), value: textValue(event.place) }] : [],
|
|
1572
|
+
...event.group ? [{ key: "group", label: chartString12(ctx.request.options, "recordKind"), value: textValue(event.group) }] : []
|
|
1542
1573
|
],
|
|
1543
1574
|
comparisons: [],
|
|
1544
1575
|
annotations: [],
|
|
@@ -1607,7 +1638,7 @@ var EN9 = {
|
|
|
1607
1638
|
highCase: "Hoher Fall",
|
|
1608
1639
|
baseCaseName: "Basisfall",
|
|
1609
1640
|
current: "Aktuell"
|
|
1610
|
-
}, { chartString:
|
|
1641
|
+
}, { chartString: chartString13 } = chartStrings(EN9, DE9);
|
|
1611
1642
|
|
|
1612
1643
|
// src/core/a11y/categoryVariants.ts
|
|
1613
1644
|
function tornadoRecords(ctx) {
|
|
@@ -1620,9 +1651,9 @@ function tornadoRecords(ctx) {
|
|
|
1620
1651
|
label: categories.find((category) => category.id === row.id)?.label ?? row.id,
|
|
1621
1652
|
anchor: mark?.rect,
|
|
1622
1653
|
fields: [
|
|
1623
|
-
{ key: "low", label:
|
|
1624
|
-
{ key: "high", label:
|
|
1625
|
-
{ key: "base", label:
|
|
1654
|
+
{ key: "low", label: chartString13(ctx.request.options, "lowCase"), value: number2(row.low) },
|
|
1655
|
+
{ key: "high", label: chartString13(ctx.request.options, "highCase"), value: number2(row.high) },
|
|
1656
|
+
{ key: "base", label: chartString13(ctx.request.options, "baseCaseName"), value: number2(derived2.tornado.baseValue) }
|
|
1626
1657
|
],
|
|
1627
1658
|
members: data.series.map((series) => ({ categoryId: row.id, seriesId: series.id })),
|
|
1628
1659
|
...rank ? { rank: { value: rank, of: derived2.tornado.rows.length, policy: "competition", direction: "desc" } } : {}
|
|
@@ -1642,7 +1673,7 @@ function categoryVariantRecords(ctx) {
|
|
|
1642
1673
|
comparisons: [comparison],
|
|
1643
1674
|
// the fields carry the series' own labels; a sum of several reads 'Current'.
|
|
1644
1675
|
fields: [
|
|
1645
|
-
{ key: "current", label: sources.length === 1 ? sources[0].label ?? sources[0].id :
|
|
1676
|
+
{ key: "current", label: sources.length === 1 ? sources[0].label ?? sources[0].id : chartString13(ctx.request.options, "current"), value: current },
|
|
1646
1677
|
{ key: "reference", label: referenceSeries.label ?? referenceSeries.id, value: reference }
|
|
1647
1678
|
],
|
|
1648
1679
|
...options.variance.of === void 0 || options.variance.of === "total" ? { members: data.series.filter((series) => series.role !== "reference").map((series) => ({ categoryId: category.id, seriesId: series.id })) } : {}
|
|
@@ -1673,7 +1704,7 @@ function scatterRecords(ctx) {
|
|
|
1673
1704
|
let data = ctx.request.data, marks = ctx.geometry.marks, byId = new Map(marks.points.map((point) => [point.id, point])), { unit, format } = ctx.request.options;
|
|
1674
1705
|
return data.points.map((point) => {
|
|
1675
1706
|
let mark = byId.get(point.id), x = cellRecordValue(normalizeCell(point.x, `points[${point.id}].x`), unit, format), y = cellRecordValue(normalizeCell(point.y, `points[${point.id}].y`), unit, format), fields = [field2("x", "x", x), field2("y", "y", y)];
|
|
1676
|
-
return point.size !== void 0 && fields.push(numberField("size", point.size)), point.group !== void 0 && fields.push(field2("group",
|
|
1707
|
+
return point.size !== void 0 && fields.push(numberField("size", point.size)), point.group !== void 0 && fields.push(field2("group", chartString7(ctx.request.options, "group"), textValue(point.group))), makeRecord(ctx, { pointId: point.id }, y, {
|
|
1677
1708
|
label: point.label ?? point.id,
|
|
1678
1709
|
fields,
|
|
1679
1710
|
...point.scenario ? { scenario: normalizeScenario(point.scenario, `points[${point.id}].scenario`) } : {},
|
|
@@ -1696,7 +1727,7 @@ function computedValue(value, observed) {
|
|
|
1696
1727
|
function spanValue(low, high, decimals, unit, format, locale) {
|
|
1697
1728
|
if (low === null || high === null) return numericValue(null);
|
|
1698
1729
|
let end = (raw) => format ? displayedValueText(numericValue(raw, unit, format), locale) : derivedValueText(numericValue(raw, unit), decimals, !1, locale);
|
|
1699
|
-
return textValue(
|
|
1730
|
+
return textValue(chartString7({ locale: { language: locale } }, "spanText", { v1: end(low), v2: end(high) }));
|
|
1700
1731
|
}
|
|
1701
1732
|
function boxRecords(ctx) {
|
|
1702
1733
|
let data = ctx.request.data, marks = ctx.geometry.marks, derived2 = ctx.geometry.derived, { unit, format } = ctx.request.options, locale = ctx.request.locale?.language, decimals = marks.labelDecimals;
|
|
@@ -1704,11 +1735,11 @@ function boxRecords(ctx) {
|
|
|
1704
1735
|
let mark = marks.rows.find((row) => row.id === group.id), input = data.groups.find((row) => row.id === group.id), members = observations(input?.observations ?? [], { categoryId: group.id }), observed = new Set(input?.observations ?? []), stat = (key) => computedValue(group[key], observed), span = (low, high) => spanValue(low, high, decimals, unit, format, locale);
|
|
1705
1736
|
return makeRecord(ctx, { categoryId: group.id }, numericValue(stat("median"), unit, format), {
|
|
1706
1737
|
label: group.label,
|
|
1707
|
-
valueLabel:
|
|
1738
|
+
valueLabel: chartString7(ctx.request.options, "medianName"),
|
|
1708
1739
|
...mark ? { anchor: mark.rect } : {},
|
|
1709
1740
|
fields: [
|
|
1710
|
-
field2("quartiles",
|
|
1711
|
-
field2("whiskers",
|
|
1741
|
+
field2("quartiles", chartString7(ctx.request.options, "quartiles"), span(stat("q1"), stat("q3"))),
|
|
1742
|
+
field2("whiskers", chartString7(ctx.request.options, "whiskers"), span(stat("whiskerLow"), stat("whiskerHigh"))),
|
|
1712
1743
|
field2("n", "n", numericValue(group.n)),
|
|
1713
1744
|
...members.map((item) => numberField(item.owner.pointId, item.value, unit, format))
|
|
1714
1745
|
],
|
|
@@ -1717,7 +1748,7 @@ function boxRecords(ctx) {
|
|
|
1717
1748
|
});
|
|
1718
1749
|
}
|
|
1719
1750
|
function histogramRecords(ctx) {
|
|
1720
|
-
let data = ctx.request.data, marks = ctx.geometry.marks, derived2 = ctx.geometry.derived, { unit, format } = ctx.request.options, noun = ctx.request.options.axisTitles?.y?.trim().toLowerCase() ||
|
|
1751
|
+
let data = ctx.request.data, marks = ctx.geometry.marks, derived2 = ctx.geometry.derived, { unit, format } = ctx.request.options, noun = ctx.request.options.axisTitles?.y?.trim().toLowerCase() || chartString7(ctx.request.options, "observationsLower"), observationsByBin = /* @__PURE__ */ new Map();
|
|
1721
1752
|
for (let item of observations(data.observations)) {
|
|
1722
1753
|
let firstHigher = derived2.binning.edges.slice(1, -1).findIndex((edge) => item.value < edge), index = firstHigher < 0 ? derived2.counts.length - 1 : firstHigher, members = observationsByBin.get(index) ?? [];
|
|
1723
1754
|
members.push(item), observationsByBin.set(index, members);
|
|
@@ -1728,7 +1759,7 @@ function histogramRecords(ctx) {
|
|
|
1728
1759
|
return makeRecord(ctx, { categoryId: JSON.stringify(["bin", bin.lo, bin.hi]) }, numericValue(bin.count, counted), {
|
|
1729
1760
|
// One bin per whole value names that value, "3 days", not "2.5 to under 3.5".
|
|
1730
1761
|
// The open last bin reads "1,600 or more", its upper edge is only the largest observation.
|
|
1731
|
-
label: last && derived2.binning.openAbove !== void 0 ?
|
|
1762
|
+
label: last && derived2.binning.openAbove !== void 0 ? chartString7(ctx.request.options, "intervalAtLeast", { v1: edge(void 0, derived2.binning.perValue ? Math.ceil(derived2.binning.openAbove) : bin.lo, !0) }) : derived2.binning.perValue ? edge(derived2.binLabels[bin.index], (bin.lo + bin.hi) / 2, !0) : intervalText(edge(low, bin.lo, !1), edge(high, bin.hi, !0), last, ctx.request.options),
|
|
1732
1763
|
anchor: bin.rect,
|
|
1733
1764
|
annotations: makeRecord(ctx, { categoryId: bin.id }, numericValue(bin.count)).annotations,
|
|
1734
1765
|
nodeIds: bin.nodeId ? [bin.nodeId] : [],
|
|
@@ -1750,7 +1781,7 @@ function retentionValue(value, observed, options) {
|
|
|
1750
1781
|
format: DERIVED_PERCENT_FORMAT,
|
|
1751
1782
|
derived: "percent",
|
|
1752
1783
|
state: observed ? "nm" : "missing",
|
|
1753
|
-
reason: observed ?
|
|
1784
|
+
reason: observed ? chartString7(options, "retentionNotMeaningful") : chartString7(options, "periodObservationMissing")
|
|
1754
1785
|
};
|
|
1755
1786
|
}
|
|
1756
1787
|
function missingCohortRate(row, period, basis) {
|
|
@@ -1771,7 +1802,7 @@ function cohortCell(ctx, mark, derived2, displayed) {
|
|
|
1771
1802
|
numberField("active", observed && !(aggregate && missing) ? numerator : null, "count"),
|
|
1772
1803
|
numberField("denominator", observed && !(aggregate && missing) ? den : null, "count"),
|
|
1773
1804
|
numberField("base", row?.base ?? (aggregate && !missing ? contributors.reduce((sum, item) => sum + item.base, 0) : void 0), "count"),
|
|
1774
|
-
field2("basis",
|
|
1805
|
+
field2("basis", chartString7(ctx.request.options, "basis"), textValue(derived2.basis)),
|
|
1775
1806
|
...aggregate ? [numberField("support", contributors.length)] : []
|
|
1776
1807
|
],
|
|
1777
1808
|
...aggregate ? { members: contributors.map((item) => ({ seriesId: item.id, categoryId: mark.periodId })) } : {}
|
|
@@ -1783,7 +1814,7 @@ function cohortRecords(ctx) {
|
|
|
1783
1814
|
{ seriesId: mark.rowId, categoryId: "cohort-size" },
|
|
1784
1815
|
numericValue(mark.value, "count"),
|
|
1785
1816
|
{
|
|
1786
|
-
label:
|
|
1817
|
+
label: chartString7(ctx.request.options, "cohortSizeLabel", { v1: mark.rowLabel }),
|
|
1787
1818
|
anchor: mark.rect,
|
|
1788
1819
|
...mark.kind === "total" ? { members: derived2.cohorts.map((row) => ({ seriesId: row.id, categoryId: "cohort-size" })) } : {}
|
|
1789
1820
|
}
|
|
@@ -1792,7 +1823,7 @@ function cohortRecords(ctx) {
|
|
|
1792
1823
|
}
|
|
1793
1824
|
function overlayRecord(ctx, input, mark) {
|
|
1794
1825
|
let fields = [];
|
|
1795
|
-
"lon" in input.at ? fields.push(numberField("longitude", input.at.lon, "degrees"), numberField("latitude", input.at.lat, "degrees")) : fields.push(field2("region",
|
|
1826
|
+
"lon" in input.at ? fields.push(numberField("longitude", input.at.lon, "degrees"), numberField("latitude", input.at.lat, "degrees")) : fields.push(field2("region", chartString7(ctx.request.options, "region"), textValue(input.at.region)));
|
|
1796
1827
|
let glyph = input.glyph, value = textValue(input.label);
|
|
1797
1828
|
return glyph.kind === "harvey" && (value = numericValue(glyph.value, "fraction")), glyph.kind === "status" && (value = textValue(glyph.status)), glyph.kind === "pie" && pushAll(fields, glyph.shares.map((share2) => numberField(`share:${share2.label}`, share2.value))), makeRecord(ctx, { categoryId: `overlay:${input.id}` }, value, {
|
|
1798
1829
|
label: input.label,
|