@tabler/charts 0.1.0 → 0.3.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/README.md +92 -4
- package/dist/{annotations-Bp7HwtF5.d.ts → annotations-B02GR_KU.d.ts} +3 -8
- package/dist/{annotations-BszTTjf9.js → annotations-BQ8l-qHs.js} +6 -7
- package/dist/{annotations-BszTTjf9.js.map → annotations-BQ8l-qHs.js.map} +1 -1
- package/dist/{annotations-lyt0I3HU.d.cts → annotations-CHafaGd4.d.cts} +3 -8
- package/dist/{annotations-DpETO8dE.cjs → annotations-CpCWA29b.cjs} +6 -7
- package/dist/{annotations-DpETO8dE.cjs.map → annotations-CpCWA29b.cjs.map} +1 -1
- package/dist/annotations.cjs +3 -5
- package/dist/annotations.cjs.map +1 -1
- package/dist/annotations.d.cts +2 -1
- package/dist/annotations.d.ts +2 -1
- package/dist/annotations.js +3 -4
- package/dist/{arc-a1tRTEw7.js → arc-B3V5IR0w.js} +2 -3
- package/dist/{arc-a1tRTEw7.js.map → arc-B3V5IR0w.js.map} +1 -1
- package/dist/{arc-BXpLrt9b.cjs → arc-CYhI62kO.cjs} +2 -3
- package/dist/{arc-BXpLrt9b.cjs.map → arc-CYhI62kO.cjs.map} +1 -1
- package/dist/{area-CF__HOwL.d.ts → area-DEFQm_SQ.d.ts} +3 -6
- package/dist/{area-sHCE3pg5.cjs → area-DYdQ_sMV.cjs} +5 -6
- package/dist/{area-sHCE3pg5.cjs.map → area-DYdQ_sMV.cjs.map} +1 -1
- package/dist/{area-DQsLERhx.js → area-WdtfqvhX.js} +5 -6
- package/dist/{area-DQsLERhx.js.map → area-WdtfqvhX.js.map} +1 -1
- package/dist/{area-DIxaAbYZ.d.cts → area-h_FvieFb.d.cts} +3 -6
- package/dist/area.cjs +1 -1
- package/dist/area.d.cts +2 -1
- package/dist/area.d.ts +2 -1
- package/dist/area.js +1 -2
- package/dist/axis-MMaVoSWB.js +235 -0
- package/dist/axis-MMaVoSWB.js.map +1 -0
- package/dist/axis-YfAerNBA.cjs +300 -0
- package/dist/axis-YfAerNBA.cjs.map +1 -0
- package/dist/{band-DTcNDAFO.d.ts → band-CNKvdnTC.d.cts} +1 -4
- package/dist/{band-DTcNDAFO.d.cts → band-CNKvdnTC.d.ts} +1 -4
- package/dist/{bar-jZEoao74.js → bar-BOcRcArc.js} +80 -62
- package/dist/bar-BOcRcArc.js.map +1 -0
- package/dist/{bar-C-7zR2qp.cjs → bar-CVkOJ7WA.cjs} +82 -64
- package/dist/bar-CVkOJ7WA.cjs.map +1 -0
- package/dist/{bar-DM16NUvV.js → bar-CgpC2EpX.js} +3 -4
- package/dist/{bar-DM16NUvV.js.map → bar-CgpC2EpX.js.map} +1 -1
- package/dist/{bar-BBM8RhoL.d.ts → bar-D9B_arKf.d.ts} +4 -7
- package/dist/{bar-CRKLDg98.d.cts → bar-DZCQ-kyf.d.cts} +4 -7
- package/dist/{bar-DGuUN3nc.cjs → bar-wVykm1us.cjs} +3 -4
- package/dist/{bar-DGuUN3nc.cjs.map → bar-wVykm1us.cjs.map} +1 -1
- package/dist/bar.cjs +1 -1
- package/dist/bar.d.cts +2 -1
- package/dist/bar.d.ts +2 -1
- package/dist/bar.js +1 -2
- package/dist/calendar-BSvO8nRb.d.cts +106 -0
- package/dist/calendar-BXgIX5H1.js +502 -0
- package/dist/calendar-BXgIX5H1.js.map +1 -0
- package/dist/calendar-Bq3vFzPl.d.ts +106 -0
- package/dist/calendar-DAFXjV99.cjs +507 -0
- package/dist/calendar-DAFXjV99.cjs.map +1 -0
- package/dist/calendar.cjs +3 -0
- package/dist/calendar.d.cts +3 -0
- package/dist/calendar.d.ts +3 -0
- package/dist/calendar.js +1 -0
- package/dist/{candlestick-D_vV0_XZ.d.ts → candlestick-B3WcLzph.d.ts} +3 -6
- package/dist/{candlestick-__pXl_pV.d.cts → candlestick-BcomxeVG.d.cts} +3 -6
- package/dist/{candlestick-DuXwAFID.js → candlestick-BtT9glp9.js} +19 -18
- package/dist/{candlestick-DuXwAFID.js.map → candlestick-BtT9glp9.js.map} +1 -1
- package/dist/{candlestick-B5r1w3kc.cjs → candlestick-CSmRuZ4v.cjs} +19 -18
- package/dist/{candlestick-B5r1w3kc.cjs.map → candlestick-CSmRuZ4v.cjs.map} +1 -1
- package/dist/candlestick.cjs +4 -5
- package/dist/candlestick.d.cts +1 -1
- package/dist/candlestick.d.ts +1 -1
- package/dist/candlestick.js +4 -6
- package/dist/{cartesian-Cr0AF0nG.js → cartesian-BrPqb5Qn.js} +138 -264
- package/dist/cartesian-BrPqb5Qn.js.map +1 -0
- package/dist/{cartesian-BoDfgBCV.cjs → cartesian-DRSXHxWe.cjs} +162 -324
- package/dist/cartesian-DRSXHxWe.cjs.map +1 -0
- package/dist/{chart-BF2CK9I_.js → chart-B6TTY4Kr.js} +120 -77
- package/dist/chart-B6TTY4Kr.js.map +1 -0
- package/dist/{chart-DyN7bcx8.d.ts → chart-CYrrUCi3.d.ts} +222 -102
- package/dist/{chart-D7ooEFnk.d.cts → chart-CbPzP5Dp.d.cts} +248 -102
- package/dist/{chart-CowF_lWY.cjs → chart-D_lyOy-M.cjs} +132 -83
- package/dist/chart-D_lyOy-M.cjs.map +1 -0
- package/dist/{circle-BQMuAfls.cjs → circle-Bwxy5j7B.cjs} +2 -3
- package/dist/{circle-BQMuAfls.cjs.map → circle-Bwxy5j7B.cjs.map} +1 -1
- package/dist/{circle-Z7YfCoCM.js → circle-YRDaOBpk.js} +2 -3
- package/dist/{circle-Z7YfCoCM.js.map → circle-YRDaOBpk.js.map} +1 -1
- package/dist/{clean-o1vDEhFV.js → clean-CkoQobGv.js} +3 -4
- package/dist/{clean-o1vDEhFV.js.map → clean-CkoQobGv.js.map} +1 -1
- package/dist/{clean-Byl6kzf0.cjs → clean-Die2iCNc.cjs} +8 -3
- package/dist/{clean-Byl6kzf0.cjs.map → clean-Die2iCNc.cjs.map} +1 -1
- package/dist/{core-D1vO1LrC.d.cts → core-9BnLEW4K.d.cts} +31 -72
- package/dist/{core-DcbemzGf.d.ts → core-C3qEppSm.d.ts} +10 -46
- package/dist/{core-CegR_j55.js → core-CQ0FaJ4G.js} +138 -99
- package/dist/core-CQ0FaJ4G.js.map +1 -0
- package/dist/{core-RzS9IQO5.cjs → core-D2PSked3.cjs} +139 -100
- package/dist/core-D2PSked3.cjs.map +1 -0
- package/dist/core.cjs +47 -33
- package/dist/core.d.cts +26 -21
- package/dist/core.d.ts +26 -21
- package/dist/core.js +31 -25
- package/dist/{dates-CG-FvioW.js → dates-DLe2Ww64.js} +4 -5
- package/dist/{dates-CG-FvioW.js.map → dates-DLe2Ww64.js.map} +1 -1
- package/dist/{dates-Btm7Zm6W.cjs → dates-DerXTb1J.cjs} +4 -5
- package/dist/{dates-Btm7Zm6W.cjs.map → dates-DerXTb1J.cjs.map} +1 -1
- package/dist/{decimate-tLhDk1ys.cjs → decimate-BS3x8g-f.cjs} +2 -3
- package/dist/{decimate-tLhDk1ys.cjs.map → decimate-BS3x8g-f.cjs.map} +1 -1
- package/dist/{decimate-BGg9XgF0.d.ts → decimate-BxxYBJJk.d.cts} +2 -5
- package/dist/{decimate-C87cl_Sp.js → decimate-CapfgiDY.js} +2 -3
- package/dist/{decimate-C87cl_Sp.js.map → decimate-CapfgiDY.js.map} +1 -1
- package/dist/{decimate-CNSpgGa5.d.cts → decimate-Du87fMLG.d.ts} +2 -5
- package/dist/decimate.cjs +3 -4
- package/dist/decimate.d.cts +1 -1
- package/dist/decimate.d.ts +1 -1
- package/dist/decimate.js +3 -4
- package/dist/{dom-CLF868Qs.cjs → dom-C33zvtPo.cjs} +5 -11
- package/dist/dom-C33zvtPo.cjs.map +1 -0
- package/dist/{dom-vP3IcMak.js → dom-CTse6Rvd.js} +5 -11
- package/dist/dom-CTse6Rvd.js.map +1 -0
- package/dist/{export-chart-BhhYgksr.cjs → export-chart-CPtXmZvi.cjs} +18 -14
- package/dist/export-chart-CPtXmZvi.cjs.map +1 -0
- package/dist/{export-chart-9w8t3rjZ.js → export-chart-DoeiAyR2.js} +18 -14
- package/dist/export-chart-DoeiAyR2.js.map +1 -0
- package/dist/export.cjs +3 -5
- package/dist/export.cjs.map +1 -1
- package/dist/export.d.cts +8 -1
- package/dist/export.d.ts +8 -1
- package/dist/export.js +3 -4
- package/dist/{extent-BAMZo0Nq.js → extent-DOV8rs-6.js} +2 -3
- package/dist/{extent-BAMZo0Nq.js.map → extent-DOV8rs-6.js.map} +1 -1
- package/dist/{extent-DsFWvAHJ.cjs → extent-DuYDcvM9.cjs} +2 -3
- package/dist/{extent-DsFWvAHJ.cjs.map → extent-DuYDcvM9.cjs.map} +1 -1
- package/dist/{fade-D3NxH5Qg.js → fade-CDrQjnDz.js} +59 -83
- package/dist/fade-CDrQjnDz.js.map +1 -0
- package/dist/{fade-Cs74puQS.cjs → fade-CRqcKMWY.cjs} +59 -83
- package/dist/fade-CRqcKMWY.cjs.map +1 -0
- package/dist/{features-wASyHGic.js → features-B55rwpQC.js} +5 -4
- package/dist/features-B55rwpQC.js.map +1 -0
- package/dist/{features-BclHgg2W.cjs → features-DEDP5CEQ.cjs} +10 -3
- package/dist/features-DEDP5CEQ.cjs.map +1 -0
- package/dist/fit-BPyPRnsK.js +16 -0
- package/dist/fit-BPyPRnsK.js.map +1 -0
- package/dist/fit-D4MIIQQz.cjs +21 -0
- package/dist/fit-D4MIIQQz.cjs.map +1 -0
- package/dist/{format-B0yKXBTH.cjs → format-CAE5ruy6.cjs} +2 -3
- package/dist/{format-B0yKXBTH.cjs.map → format-CAE5ruy6.cjs.map} +1 -1
- package/dist/{format-lStwuc1L.js → format-it1kepFG.js} +2 -3
- package/dist/{format-lStwuc1L.js.map → format-it1kepFG.js.map} +1 -1
- package/dist/funnel-BdcfUkb5.d.ts +50 -0
- package/dist/funnel-CFEEulw_.cjs +244 -0
- package/dist/funnel-CFEEulw_.cjs.map +1 -0
- package/dist/funnel-CYCv8cq2.js +239 -0
- package/dist/funnel-CYCv8cq2.js.map +1 -0
- package/dist/funnel-CarOh8w_.d.cts +50 -0
- package/dist/funnel.cjs +3 -0
- package/dist/funnel.d.cts +3 -0
- package/dist/funnel.d.ts +3 -0
- package/dist/funnel.js +1 -0
- package/dist/{gauge-D-FYhuds.cjs → gauge-6HfDcLMJ.cjs} +35 -36
- package/dist/gauge-6HfDcLMJ.cjs.map +1 -0
- package/dist/{gauge-Dh423FHh.js → gauge-DiTk5aWO.js} +35 -36
- package/dist/gauge-DiTk5aWO.js.map +1 -0
- package/dist/{gauge-zpia05t2.d.ts → gauge-Ds9k1UV2.d.cts} +5 -8
- package/dist/{gauge-DP_EB2z3.d.cts → gauge-Zy25jfps.d.ts} +5 -8
- package/dist/gauge.cjs +1 -1
- package/dist/gauge.d.cts +2 -1
- package/dist/gauge.d.ts +2 -1
- package/dist/gauge.js +1 -2
- package/dist/{heatmap-DSZ2bVIa.js → heatmap-C1v8bwpq.js} +43 -43
- package/dist/heatmap-C1v8bwpq.js.map +1 -0
- package/dist/{heatmap-BectCEeE.d.ts → heatmap-CJ-0dfhJ.d.cts} +4 -7
- package/dist/{heatmap-BK18EBgJ.cjs → heatmap-Dcc_bsoQ.cjs} +47 -47
- package/dist/heatmap-Dcc_bsoQ.cjs.map +1 -0
- package/dist/{heatmap-CCso6m61.d.cts → heatmap-Jp5sHRTo.d.ts} +4 -7
- package/dist/heatmap.cjs +1 -1
- package/dist/heatmap.d.cts +2 -1
- package/dist/heatmap.d.ts +2 -1
- package/dist/heatmap.js +1 -2
- package/dist/{hydrate-DDNIHYv_.js → hydrate-BB3MlR36.js} +3 -4
- package/dist/{hydrate-DDNIHYv_.js.map → hydrate-BB3MlR36.js.map} +1 -1
- package/dist/{hydrate-CzfxLfTv.d.ts → hydrate-BtAZf_5K.d.cts} +2 -5
- package/dist/{hydrate-CTTmQy0x.d.cts → hydrate-OjM1pIUG.d.ts} +2 -5
- package/dist/{hydrate-CxwTXDqO.cjs → hydrate-m0I5m6ue.cjs} +3 -4
- package/dist/hydrate-m0I5m6ue.cjs.map +1 -0
- package/dist/hydrate.cjs +3 -4
- package/dist/hydrate.cjs.map +1 -1
- package/dist/hydrate.d.cts +1 -1
- package/dist/hydrate.d.ts +1 -1
- package/dist/hydrate.js +3 -4
- package/dist/index.cjs +72 -56
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -28
- package/dist/index.d.ts +28 -28
- package/dist/index.js +52 -44
- package/dist/index.js.map +1 -1
- package/dist/interaction-DXYSjgnP.cjs +32 -0
- package/dist/interaction-DXYSjgnP.cjs.map +1 -0
- package/dist/interaction-En1KlwFO.js +21 -0
- package/dist/interaction-En1KlwFO.js.map +1 -0
- package/dist/{layout-CtMBhNd9.cjs → layout-Cfg9x1k2.cjs} +45 -3
- package/dist/layout-Cfg9x1k2.cjs.map +1 -0
- package/dist/{layout-B3hiqVEw.js → layout-DqAte3H8.js} +34 -4
- package/dist/layout-DqAte3H8.js.map +1 -0
- package/dist/{line-CN4uZ9ZX.d.ts → line-Bpr5uVLQ.d.ts} +4 -7
- package/dist/{line-B3Ed6u7j.js → line-CxR4tg1Q.js} +49 -38
- package/dist/line-CxR4tg1Q.js.map +1 -0
- package/dist/{line-fQbtP_jL.cjs → line-YiCuhVMI.cjs} +49 -38
- package/dist/line-YiCuhVMI.cjs.map +1 -0
- package/dist/{line-W7VD_qs1.d.cts → line-vyWO030v.d.cts} +4 -7
- package/dist/line.cjs +4 -5
- package/dist/line.cjs.map +1 -1
- package/dist/line.d.cts +1 -1
- package/dist/line.d.ts +1 -1
- package/dist/line.js +4 -6
- package/dist/{log-CaofN3-n.d.ts → log-CI41TmcU.d.cts} +1 -6
- package/dist/{log-CaofN3-n.d.cts → log-CI41TmcU.d.ts} +1 -6
- package/dist/{log-axis-83rSpvL5.cjs → log-axis-DdRNyAq8.cjs} +6 -8
- package/dist/{log-axis-83rSpvL5.cjs.map → log-axis-DdRNyAq8.cjs.map} +1 -1
- package/dist/{log-axis-B_uvvOFc.js → log-axis-DhthtHFk.js} +6 -8
- package/dist/{log-axis-B_uvvOFc.js.map → log-axis-DhthtHFk.js.map} +1 -1
- package/dist/log.cjs +3 -5
- package/dist/log.cjs.map +1 -1
- package/dist/log.d.cts +1 -1
- package/dist/log.d.ts +1 -1
- package/dist/log.js +3 -4
- package/dist/map-49FcfdmJ.d.cts +156 -0
- package/dist/map-BMC61J-P.d.ts +156 -0
- package/dist/map-BqrZ80vT.cjs +818 -0
- package/dist/map-BqrZ80vT.cjs.map +1 -0
- package/dist/map-C15NC7kW.js +807 -0
- package/dist/map-C15NC7kW.js.map +1 -0
- package/dist/map.cjs +4 -0
- package/dist/map.d.cts +3 -0
- package/dist/map.d.ts +3 -0
- package/dist/map.js +1 -0
- package/dist/maps/world.cjs +875 -0
- package/dist/maps/world.cjs.map +1 -0
- package/dist/maps/world.d.cts +2 -0
- package/dist/maps/world.d.ts +2 -0
- package/dist/maps/world.js +874 -0
- package/dist/maps/world.js.map +1 -0
- package/dist/{morph-CqYDu1bY.cjs → morph-3I1Nf_tR.cjs} +4 -5
- package/dist/morph-3I1Nf_tR.cjs.map +1 -0
- package/dist/{morph-BMxz3X2b.d.ts → morph-Dh7gJkV4.d.cts} +1 -4
- package/dist/{morph-BMxz3X2b.d.cts → morph-Dh7gJkV4.d.ts} +1 -4
- package/dist/{morph-Bgg-24l8.js → morph-GfBab-b3.js} +4 -5
- package/dist/{morph-Bgg-24l8.js.map → morph-GfBab-b3.js.map} +1 -1
- package/dist/morph.cjs +3 -4
- package/dist/morph.cjs.map +1 -1
- package/dist/morph.d.cts +1 -1
- package/dist/morph.d.ts +1 -1
- package/dist/morph.js +3 -4
- package/dist/{named-BWWb5LQJ.cjs → named-BBASc8dW.cjs} +2 -3
- package/dist/{named-BWWb5LQJ.cjs.map → named-BBASc8dW.cjs.map} +1 -1
- package/dist/{named-DE15TOgh.js → named-BOiBah6I.js} +2 -3
- package/dist/{named-DE15TOgh.js.map → named-BOiBah6I.js.map} +1 -1
- package/dist/others-DBIGE6jr.js +57 -0
- package/dist/others-DBIGE6jr.js.map +1 -0
- package/dist/others-DBO4Kjwl.d.ts +29 -0
- package/dist/others-WfjCsjqT.cjs +68 -0
- package/dist/others-WfjCsjqT.cjs.map +1 -0
- package/dist/others-ls5eKtZ4.d.cts +31 -0
- package/dist/{parliament-Dw0sOERi.js → parliament-BKN6ikBJ.js} +36 -36
- package/dist/parliament-BKN6ikBJ.js.map +1 -0
- package/dist/{parliament-1Zv2Xh0D.d.ts → parliament-C7V8UJj1.d.cts} +5 -8
- package/dist/{parliament-DdrLVZwt.d.cts → parliament-Cz9n_DoK.d.ts} +5 -8
- package/dist/{parliament-CpWnoEvG.cjs → parliament-DhxAaIZ3.cjs} +36 -36
- package/dist/parliament-DhxAaIZ3.cjs.map +1 -0
- package/dist/parliament.cjs +1 -1
- package/dist/parliament.d.cts +2 -1
- package/dist/parliament.d.ts +2 -1
- package/dist/parliament.js +1 -2
- package/dist/{path-CwB28da0.d.ts → path-YeUiOfG8.d.cts} +1 -4
- package/dist/{path-CwB28da0.d.cts → path-YeUiOfG8.d.ts} +1 -4
- package/dist/{patterns-DtgcnA8o.js → patterns-BMUINoka.js} +4 -5
- package/dist/{patterns-DtgcnA8o.js.map → patterns-BMUINoka.js.map} +1 -1
- package/dist/{patterns-LfcQAWCy.cjs → patterns-Dw7OMD_2.cjs} +4 -5
- package/dist/{patterns-LfcQAWCy.cjs.map → patterns-Dw7OMD_2.cjs.map} +1 -1
- package/dist/patterns.cjs +3 -5
- package/dist/patterns.cjs.map +1 -1
- package/dist/patterns.d.cts +5 -1
- package/dist/patterns.d.ts +5 -1
- package/dist/patterns.js +3 -4
- package/dist/percentage-bar-BChkTRoz.cjs +164 -0
- package/dist/percentage-bar-BChkTRoz.cjs.map +1 -0
- package/dist/percentage-bar-CaInxrL8.js +159 -0
- package/dist/percentage-bar-CaInxrL8.js.map +1 -0
- package/dist/percentage-bar-R1--2grK.d.cts +58 -0
- package/dist/percentage-bar-cSeiLdwU.d.ts +58 -0
- package/dist/percentage-bar.cjs +3 -0
- package/dist/percentage-bar.d.cts +3 -0
- package/dist/percentage-bar.d.ts +3 -0
- package/dist/percentage-bar.js +1 -0
- package/dist/{pie-BF9yI5mE.d.cts → pie-BQQkvy1N.d.ts} +11 -11
- package/dist/{pie-DzUXDTcn.js → pie-Bd8wyrtY.js} +52 -55
- package/dist/pie-Bd8wyrtY.js.map +1 -0
- package/dist/{pie-BxTZt6Go.cjs → pie-BseZlCgP.cjs} +52 -55
- package/dist/pie-BseZlCgP.cjs.map +1 -0
- package/dist/{pie-5z1fDdKO.d.ts → pie-vD5-g8je.d.cts} +11 -11
- package/dist/pie.cjs +1 -1
- package/dist/pie.d.cts +2 -1
- package/dist/pie.d.ts +2 -1
- package/dist/pie.js +1 -2
- package/dist/{point-shapes-CGl4dugc.cjs → point-shapes-BRawRM78.cjs} +24 -24
- package/dist/point-shapes-BRawRM78.cjs.map +1 -0
- package/dist/{point-shapes-DI84NNpI.js → point-shapes-DI6GhcI7.js} +19 -25
- package/dist/point-shapes-DI6GhcI7.js.map +1 -0
- package/dist/point-shapes.cjs +7 -6
- package/dist/point-shapes.cjs.map +1 -1
- package/dist/point-shapes.d.cts +6 -2
- package/dist/point-shapes.d.ts +6 -2
- package/dist/point-shapes.js +8 -7
- package/dist/point-shapes.js.map +1 -1
- package/dist/{radar-1-EryihA.d.ts → radar-7I6hsY_h.d.cts} +4 -7
- package/dist/{radar-CYPab_I4.js → radar-D6XqkFWQ.js} +25 -27
- package/dist/radar-D6XqkFWQ.js.map +1 -0
- package/dist/{radar-CoGUNNSb.cjs → radar-DjISDnSf.cjs} +26 -28
- package/dist/radar-DjISDnSf.cjs.map +1 -0
- package/dist/{radar-DBW4O0Vt.d.cts → radar-vLxilcr4.d.ts} +4 -7
- package/dist/radar.cjs +1 -1
- package/dist/radar.d.cts +2 -1
- package/dist/radar.d.ts +2 -1
- package/dist/radar.js +1 -2
- package/dist/rect-CZTNvMlf.js +11 -0
- package/dist/rect-CZTNvMlf.js.map +1 -0
- package/dist/rect-DPr9QRxl.cjs +16 -0
- package/dist/rect-DPr9QRxl.cjs.map +1 -0
- package/dist/{sankey-Bacx4fVe.cjs → sankey-0CSp_Er9.cjs} +100 -95
- package/dist/sankey-0CSp_Er9.cjs.map +1 -0
- package/dist/{sankey-OV_WoPrl.d.ts → sankey-7As41Fo4.d.ts} +4 -7
- package/dist/{sankey-B4PNKusJ.js → sankey-Dp4CuLVe.js} +100 -95
- package/dist/sankey-Dp4CuLVe.js.map +1 -0
- package/dist/{sankey-DuGI3Qc5.d.cts → sankey-DqiuxUx7.d.cts} +4 -7
- package/dist/sankey.cjs +1 -1
- package/dist/sankey.d.cts +2 -1
- package/dist/sankey.d.ts +2 -1
- package/dist/sankey.js +1 -2
- package/dist/{scatter-DbxLyZX0.d.cts → scatter-BXkXGgM_.d.ts} +14 -9
- package/dist/{scatter-DgMN9zRy.cjs → scatter-Bwkblr4L.cjs} +47 -42
- package/dist/scatter-Bwkblr4L.cjs.map +1 -0
- package/dist/{scatter-kgtgR318.js → scatter-DCMAtt5L.js} +45 -40
- package/dist/scatter-DCMAtt5L.js.map +1 -0
- package/dist/{scatter-BqzgJqdX.d.ts → scatter-DL0zAV09.d.cts} +14 -9
- package/dist/scatter.cjs +1 -1
- package/dist/scatter.d.cts +2 -1
- package/dist/scatter.d.ts +2 -1
- package/dist/scatter.js +1 -2
- package/dist/{sparkline-BfyO_oNM.d.ts → sparkline-BElUSd0r.d.ts} +5 -8
- package/dist/{sparkline-BS9-hltA.cjs → sparkline-BMSuEPHP.cjs} +22 -23
- package/dist/sparkline-BMSuEPHP.cjs.map +1 -0
- package/dist/{sparkline-BQzt27Fr.js → sparkline-NDmq90kP.js} +22 -23
- package/dist/sparkline-NDmq90kP.js.map +1 -0
- package/dist/{sparkline-CWlJDKyh.d.cts → sparkline-RYly7bR0.d.cts} +5 -8
- package/dist/sparkline.cjs +1 -1
- package/dist/sparkline.d.cts +2 -1
- package/dist/sparkline.d.ts +2 -1
- package/dist/sparkline.js +1 -2
- package/dist/{stack-DVhJWaki.cjs → stack-BO4624CY.cjs} +3 -4
- package/dist/{stack-DVhJWaki.cjs.map → stack-BO4624CY.cjs.map} +1 -1
- package/dist/{stack-CpR6RGKd.d.ts → stack-BTWYIwLO.d.cts} +2 -4
- package/dist/{stack-CpR6RGKd.d.cts → stack-DR0eQTsB.d.ts} +1 -4
- package/dist/{stack-DRbwTeF3.js → stack-jVKvg2x_.js} +3 -4
- package/dist/{stack-DRbwTeF3.js.map → stack-jVKvg2x_.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{sweep-CbfR7--d.js → sweep-BpRPlhs6.js} +5 -6
- package/dist/{sweep-CbfR7--d.js.map → sweep-BpRPlhs6.js.map} +1 -1
- package/dist/{sweep-DaTEDDuC.cjs → sweep-Dnp6LDBz.cjs} +5 -6
- package/dist/sweep-Dnp6LDBz.cjs.map +1 -0
- package/dist/{time-CNVnt-B2.d.cts → time-B4oxWHQI.d.cts} +2 -7
- package/dist/{time-CHjiY9Q4.d.ts → time-DRIDgv2a.d.ts} +2 -7
- package/dist/{time-axis-VSX34_Tb.cjs → time-axis-B3VekUfX.cjs} +11 -11
- package/dist/{time-axis-VSX34_Tb.cjs.map → time-axis-B3VekUfX.cjs.map} +1 -1
- package/dist/{time-axis-Bc9eHX1r.js → time-axis-CLjqOakA.js} +10 -10
- package/dist/{time-axis-Bc9eHX1r.js.map → time-axis-CLjqOakA.js.map} +1 -1
- package/dist/time.cjs +4 -6
- package/dist/time.cjs.map +1 -1
- package/dist/time.d.cts +1 -1
- package/dist/time.d.ts +1 -1
- package/dist/time.js +4 -5
- package/dist/treemap-25vHO_UK.d.cts +65 -0
- package/dist/treemap-BCXUbixd.d.ts +65 -0
- package/dist/treemap-C4glsx-g.js +293 -0
- package/dist/treemap-C4glsx-g.js.map +1 -0
- package/dist/treemap-CZk8kKFD.cjs +298 -0
- package/dist/treemap-CZk8kKFD.cjs.map +1 -0
- package/dist/treemap.cjs +3 -0
- package/dist/treemap.d.cts +3 -0
- package/dist/treemap.d.ts +3 -0
- package/dist/treemap.js +1 -0
- package/dist/{tween-BCYd0RTY.js → tween-BdQqUmmv.js} +2 -3
- package/dist/{tween-BCYd0RTY.js.map → tween-BdQqUmmv.js.map} +1 -1
- package/dist/{tween-CIGBlryn.cjs → tween-c3aOmfKE.cjs} +2 -3
- package/dist/{tween-CIGBlryn.cjs.map → tween-c3aOmfKE.cjs.map} +1 -1
- package/dist/{value-labels-IZIQPhfk.js → value-labels-C7GrhOXJ.js} +30 -10
- package/dist/value-labels-C7GrhOXJ.js.map +1 -0
- package/dist/{value-labels-B0WJoJ7x.cjs → value-labels-DzaKIWKp.cjs} +30 -10
- package/dist/value-labels-DzaKIWKp.cjs.map +1 -0
- package/dist/value-labels.cjs +3 -5
- package/dist/value-labels.cjs.map +1 -1
- package/dist/value-labels.d.cts +5 -1
- package/dist/value-labels.d.ts +5 -1
- package/dist/value-labels.js +3 -4
- package/dist/{vnode-CkQ27Cxe.cjs → vnode-ClAiw28x.cjs} +2 -3
- package/dist/{vnode-CkQ27Cxe.cjs.map → vnode-ClAiw28x.cjs.map} +1 -1
- package/dist/{vnode-BUflsBsa.d.ts → vnode-Du2cC8Fm.d.cts} +1 -4
- package/dist/{vnode-BUflsBsa.d.cts → vnode-Du2cC8Fm.d.ts} +1 -4
- package/dist/{vnode-tCWItoUH.js → vnode-_EMUqysL.js} +2 -3
- package/dist/{vnode-tCWItoUH.js.map → vnode-_EMUqysL.js.map} +1 -1
- package/package.json +94 -214
- package/dist/bar-C-7zR2qp.cjs.map +0 -1
- package/dist/bar-jZEoao74.js.map +0 -1
- package/dist/cartesian-BoDfgBCV.cjs.map +0 -1
- package/dist/cartesian-Cr0AF0nG.js.map +0 -1
- package/dist/chart-BF2CK9I_.js.map +0 -1
- package/dist/chart-CowF_lWY.cjs.map +0 -1
- package/dist/core-CegR_j55.js.map +0 -1
- package/dist/core-RzS9IQO5.cjs.map +0 -1
- package/dist/dom-CLF868Qs.cjs.map +0 -1
- package/dist/dom-vP3IcMak.js.map +0 -1
- package/dist/export-chart-9w8t3rjZ.js.map +0 -1
- package/dist/export-chart-BhhYgksr.cjs.map +0 -1
- package/dist/fade-Cs74puQS.cjs.map +0 -1
- package/dist/fade-D3NxH5Qg.js.map +0 -1
- package/dist/features-BclHgg2W.cjs.map +0 -1
- package/dist/features-wASyHGic.js.map +0 -1
- package/dist/gauge-D-FYhuds.cjs.map +0 -1
- package/dist/gauge-Dh423FHh.js.map +0 -1
- package/dist/heatmap-BK18EBgJ.cjs.map +0 -1
- package/dist/heatmap-DSZ2bVIa.js.map +0 -1
- package/dist/hydrate-CxwTXDqO.cjs.map +0 -1
- package/dist/layout-B3hiqVEw.js.map +0 -1
- package/dist/layout-CtMBhNd9.cjs.map +0 -1
- package/dist/line-B3Ed6u7j.js.map +0 -1
- package/dist/line-fQbtP_jL.cjs.map +0 -1
- package/dist/morph-CqYDu1bY.cjs.map +0 -1
- package/dist/parliament-CpWnoEvG.cjs.map +0 -1
- package/dist/parliament-Dw0sOERi.js.map +0 -1
- package/dist/pie-BxTZt6Go.cjs.map +0 -1
- package/dist/pie-DzUXDTcn.js.map +0 -1
- package/dist/point-shapes-CGl4dugc.cjs.map +0 -1
- package/dist/point-shapes-DI84NNpI.js.map +0 -1
- package/dist/radar-CYPab_I4.js.map +0 -1
- package/dist/radar-CoGUNNSb.cjs.map +0 -1
- package/dist/sankey-B4PNKusJ.js.map +0 -1
- package/dist/sankey-Bacx4fVe.cjs.map +0 -1
- package/dist/scatter-DgMN9zRy.cjs.map +0 -1
- package/dist/scatter-kgtgR318.js.map +0 -1
- package/dist/sparkline-BQzt27Fr.js.map +0 -1
- package/dist/sparkline-BS9-hltA.cjs.map +0 -1
- package/dist/sweep-DaTEDDuC.cjs.map +0 -1
- package/dist/value-labels-B0WJoJ7x.cjs.map +0 -1
- package/dist/value-labels-IZIQPhfk.js.map +0 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { a as InsetsInput, n as annotationLayers, r as annotationValues, s as Rect, t as Annotation } from "./annotations-
|
|
2
|
-
import { n as
|
|
3
|
-
import { a as
|
|
4
|
-
import {
|
|
5
|
-
import { n as log, r as LinearScale } from "./log-
|
|
6
|
-
import { t as hydrate } from "./hydrate-
|
|
7
|
-
import { t as morph } from "./morph-
|
|
8
|
-
import { a as linePath, i as areaPath, r as Point } from "./path-
|
|
9
|
-
//#region src/interaction.d.ts
|
|
1
|
+
import { a as InsetsInput, n as annotationLayers, r as annotationValues, s as Rect, t as Annotation } from "./annotations-CHafaGd4.cjs";
|
|
2
|
+
import { a as ClassValue, i as ChildInput, l as VNode, n as Attrs, s as Props } from "./vnode-Du2cC8Fm.cjs";
|
|
3
|
+
import { a as timePointScale, c as NumberFormat, i as time, s as Locale } from "./time-B4oxWHQI.cjs";
|
|
4
|
+
import { n as BandScale, t as BandKey } from "./band-CNKvdnTC.cjs";
|
|
5
|
+
import { n as log, r as LinearScale } from "./log-CI41TmcU.cjs";
|
|
6
|
+
import { t as hydrate } from "./hydrate-BtAZf_5K.cjs";
|
|
7
|
+
import { t as morph } from "./morph-Dh7gJkV4.cjs";
|
|
8
|
+
import { a as linePath, i as areaPath, r as Point } from "./path-YeUiOfG8.cjs";
|
|
10
9
|
/** One series' value at a hovered position. */
|
|
11
10
|
interface HitItem {
|
|
12
11
|
/** Series name. */
|
|
@@ -40,37 +39,46 @@ interface Hit {
|
|
|
40
39
|
axis?: "x" | "y";
|
|
41
40
|
/** Center of the category along y, when categories run along y. */
|
|
42
41
|
y?: number;
|
|
43
|
-
/** The category's band in chart pixels, for band scales (bars). */
|
|
44
|
-
band?: {
|
|
45
|
-
x: number;
|
|
46
|
-
y: number;
|
|
47
|
-
width: number;
|
|
48
|
-
height: number;
|
|
49
|
-
};
|
|
50
42
|
/** Every series' value at this category. */
|
|
51
43
|
items: HitItem[];
|
|
52
44
|
/** Series of the mark directly under the pointer (e.g. a bar), if any. */
|
|
53
45
|
seriesIndex?: number;
|
|
54
|
-
/**
|
|
55
|
-
|
|
56
|
-
* spoke). Tooltips from the keyboard then anchor on the value itself.
|
|
57
|
-
*/
|
|
58
|
-
guide?: {
|
|
59
|
-
x1: number;
|
|
60
|
-
y1: number;
|
|
61
|
-
x2: number;
|
|
62
|
-
y2: number;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* A shape to highlight instead of a crosshair or band (e.g. a halo around a
|
|
66
|
-
* pie slice): path data `d`, drawn translated by `x` / `y`.
|
|
67
|
-
*/
|
|
68
|
-
mark?: {
|
|
69
|
-
d: string;
|
|
70
|
-
x: number;
|
|
71
|
-
y: number;
|
|
72
|
-
};
|
|
46
|
+
/** The shape that marks the hit; a crosshair when left out. */
|
|
47
|
+
highlight?: Highlight;
|
|
73
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* The one shape drawn to mark a hit, in chart pixels:
|
|
51
|
+
*
|
|
52
|
+
* - `crosshair`: a vertical line through the category across the plot, and
|
|
53
|
+
* a dot on every value (point charts);
|
|
54
|
+
* - `band`: the category's band behind the series (bars);
|
|
55
|
+
* - `spoke`: a line from `x1, y1` to `x2, y2` (a radar spoke), and a dot on
|
|
56
|
+
* every value; keyboard tooltips anchor on the value itself;
|
|
57
|
+
* - `halo`: path data `d` drawn translated by `x` / `y` in the color of the
|
|
58
|
+
* hit's series (a ring around a pie slice); `under` draws it below the
|
|
59
|
+
* chart instead of above, so it never covers the labels.
|
|
60
|
+
*/
|
|
61
|
+
type Highlight = {
|
|
62
|
+
kind: "crosshair";
|
|
63
|
+
} | {
|
|
64
|
+
kind: "band";
|
|
65
|
+
x: number;
|
|
66
|
+
y: number;
|
|
67
|
+
width: number;
|
|
68
|
+
height: number;
|
|
69
|
+
} | {
|
|
70
|
+
kind: "spoke";
|
|
71
|
+
x1: number;
|
|
72
|
+
y1: number;
|
|
73
|
+
x2: number;
|
|
74
|
+
y2: number;
|
|
75
|
+
} | {
|
|
76
|
+
kind: "halo";
|
|
77
|
+
d: string;
|
|
78
|
+
x?: number;
|
|
79
|
+
y?: number;
|
|
80
|
+
under?: boolean;
|
|
81
|
+
};
|
|
74
82
|
/** Maps a point in chart pixels to what lies there. */
|
|
75
83
|
type HitTester = (x: number, y: number) => Hit | null;
|
|
76
84
|
/** How a rendered chart answers pointer and keyboard interaction. */
|
|
@@ -81,9 +89,14 @@ interface Interaction {
|
|
|
81
89
|
hitIndex(index: number, seriesIndex?: number): Hit | null;
|
|
82
90
|
/** Number of categories. */
|
|
83
91
|
count: number;
|
|
92
|
+
/**
|
|
93
|
+
* Categories fill a grid column by column, this many to a column (the days
|
|
94
|
+
* of a calendar in weeks): left and right move by a column, up and down by one.
|
|
95
|
+
*/
|
|
96
|
+
rows?: number;
|
|
97
|
+
/** Categories run from the right: the left arrow key goes to the next one. */
|
|
98
|
+
reversed?: boolean;
|
|
84
99
|
}
|
|
85
|
-
//#endregion
|
|
86
|
-
//#region src/a11y.d.ts
|
|
87
100
|
/** The data behind a chart as text: header cells and one row per category. */
|
|
88
101
|
interface DataTable {
|
|
89
102
|
/** Column headers; the first one labels the row headers (may be empty). */
|
|
@@ -100,8 +113,6 @@ interface DataTable {
|
|
|
100
113
|
declare function tableContent(table: DataTable, caption?: string): VNode;
|
|
101
114
|
/** Short sentence describing a hit, announced during keyboard navigation. */
|
|
102
115
|
declare function describeHit(hit: Hit): string;
|
|
103
|
-
//#endregion
|
|
104
|
-
//#region src/components/axis.d.ts
|
|
105
116
|
type AxisPosition = "top" | "right" | "bottom" | "left";
|
|
106
117
|
/** A single axis tick: its data value, pixel position along the axis and label. */
|
|
107
118
|
interface Tick {
|
|
@@ -148,8 +159,6 @@ declare function axisSize(position: AxisPosition, ticks: readonly Tick[], fontSi
|
|
|
148
159
|
* transition when the scale changes.
|
|
149
160
|
*/
|
|
150
161
|
declare function axis(options: AxisOptions): VNode;
|
|
151
|
-
//#endregion
|
|
152
|
-
//#region src/charts/cartesian.d.ts
|
|
153
162
|
/** Category label on the x axis. */
|
|
154
163
|
type Label = string | number | Date;
|
|
155
164
|
/** One data series. `null` values are gaps. */
|
|
@@ -179,10 +188,23 @@ interface Series {
|
|
|
179
188
|
* (`@tabler/charts/line`, or `@tabler/charts`). Defaults to `'bar'`.
|
|
180
189
|
*/
|
|
181
190
|
type?: "bar" | "line" | "area";
|
|
191
|
+
/**
|
|
192
|
+
* Value axis of the series: `'y2'` draws it against the second axis
|
|
193
|
+
* (options in `y2`), on the right of the plot (on the left in a
|
|
194
|
+
* right-to-left chart), and leaves it out of stacks. Line, area and
|
|
195
|
+
* vertical bar charts. Defaults to `'y'`.
|
|
196
|
+
*/
|
|
197
|
+
axis?: "y" | "y2";
|
|
182
198
|
/** Extra classes on the series group. */
|
|
183
199
|
class?: ClassValue;
|
|
184
200
|
/** Start hidden (toggle it back from the legend). */
|
|
185
201
|
hidden?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Write values on this series' marks, whatever the chart's `valueLabels`
|
|
204
|
+
* says: `true` labels it even when the chart option is off, `false` leaves
|
|
205
|
+
* it out. Needs `@tabler/charts/value-labels` on the core.
|
|
206
|
+
*/
|
|
207
|
+
valueLabels?: boolean;
|
|
186
208
|
}
|
|
187
209
|
interface CartesianData {
|
|
188
210
|
/** Categories along x. Defaults to `1…n` for the longest series. */
|
|
@@ -193,6 +215,11 @@ interface CartesianData {
|
|
|
193
215
|
interface ValueAxisOptions {
|
|
194
216
|
/** Render the axis labels. Defaults to `true`. */
|
|
195
217
|
show?: boolean;
|
|
218
|
+
/**
|
|
219
|
+
* Title of the axis (e.g. a unit), beside its labels: turned 90° on the
|
|
220
|
+
* left of the plot, or on the right in a right-to-left chart.
|
|
221
|
+
*/
|
|
222
|
+
title?: string;
|
|
196
223
|
/** Render horizontal grid lines. Defaults to `true`. */
|
|
197
224
|
grid?: boolean;
|
|
198
225
|
/** Fixed lower bound; overrides data and `zero`. */
|
|
@@ -213,6 +240,8 @@ interface ValueAxisOptions {
|
|
|
213
240
|
interface CategoryAxisOptions {
|
|
214
241
|
/** Render the axis labels. Defaults to `true`. */
|
|
215
242
|
show?: boolean;
|
|
243
|
+
/** Title of the axis, below its labels. */
|
|
244
|
+
title?: string;
|
|
216
245
|
/** Render vertical grid lines. Defaults to `false`. */
|
|
217
246
|
grid?: boolean;
|
|
218
247
|
/** Draw the axis line along the bottom edge. Defaults to `false`. */
|
|
@@ -228,10 +257,18 @@ interface CategoryAxisOptions {
|
|
|
228
257
|
type?: "category" | "time";
|
|
229
258
|
/** Align time ticks to UTC instead of local time (use it for SSR). */
|
|
230
259
|
utc?: boolean;
|
|
260
|
+
/** Run the categories from the right. Defaults to the chart's `rtl`. */
|
|
261
|
+
reverse?: boolean;
|
|
231
262
|
}
|
|
232
263
|
interface CartesianOptions {
|
|
233
264
|
data: CartesianData;
|
|
234
265
|
y?: ValueAxisOptions;
|
|
266
|
+
/**
|
|
267
|
+
* The second value axis, for series with `axis: 'y2'` (it is drawn only
|
|
268
|
+
* when a series uses it). Its labels and title stand on the other side of
|
|
269
|
+
* the plot; the grid lines follow `y`.
|
|
270
|
+
*/
|
|
271
|
+
y2?: ValueAxisOptions;
|
|
235
272
|
x?: CategoryAxisOptions;
|
|
236
273
|
/** Reference lines and bands: targets, normal ranges, events and periods. */
|
|
237
274
|
annotations?: readonly Annotation[];
|
|
@@ -245,10 +282,14 @@ interface CartesianLayout {
|
|
|
245
282
|
x: BandScale;
|
|
246
283
|
/** Value scale (along y, or along x when `horizontal`). */
|
|
247
284
|
y: LinearScale;
|
|
285
|
+
/** Scale of the second value axis, when a series uses it. */
|
|
286
|
+
y2?: LinearScale;
|
|
248
287
|
/** Whether categories run along y. */
|
|
249
288
|
horizontal: boolean;
|
|
250
289
|
xTicks: Tick[];
|
|
251
290
|
yTicks: Tick[];
|
|
291
|
+
/** Ticks of the second value axis (with `y2`). */
|
|
292
|
+
y2Ticks?: Tick[];
|
|
252
293
|
/** Grid lines, drawn below the marks. */
|
|
253
294
|
background: VNode[];
|
|
254
295
|
/** Axes, drawn above the marks. */
|
|
@@ -289,22 +330,16 @@ declare function categoryInteraction(layout: CartesianLayout, options: Cartesian
|
|
|
289
330
|
box?: Rect;
|
|
290
331
|
}, markAt?: (x: number, y: number, index: number) => number | undefined): Interaction;
|
|
291
332
|
/** Accessible table of series values: one row per category, one column per visible series. */
|
|
292
|
-
declare function seriesTable(options: CartesianOptions, ctx:
|
|
293
|
-
//#endregion
|
|
294
|
-
//#region src/charts/dates.d.ts
|
|
333
|
+
declare function seriesTable(options: CartesianOptions, ctx: TableContext, limit?: number): DataTable;
|
|
295
334
|
/**
|
|
296
335
|
* Formatter for date labels on a time axis (tooltips, tables, band axes):
|
|
297
336
|
* the date, with the time of day when the labels span less than a few days.
|
|
298
337
|
*/
|
|
299
338
|
declare function dateLabels(labels: readonly Label[], utc: boolean | undefined, locale: Locale): (label: Label) => string;
|
|
300
|
-
//#endregion
|
|
301
|
-
//#region src/charts/log-axis.d.ts
|
|
302
339
|
/** Domain of a log axis: positive values only, niced to whole powers of ten. */
|
|
303
340
|
declare function logDomain(values: readonly (number | null | undefined)[], options: ValueAxisOptions): [number, number];
|
|
304
341
|
/** Ticks of a log axis, each power formatted as is. */
|
|
305
342
|
declare function logTicks(scale: LinearScale, count: number, format: NumberFormat | undefined, locale: Locale): Tick[];
|
|
306
|
-
//#endregion
|
|
307
|
-
//#region src/legend.d.ts
|
|
308
343
|
/** One legend entry: a series (or a slice, for part-to-whole charts). */
|
|
309
344
|
interface LegendItem {
|
|
310
345
|
/** Stable identity, used to toggle it. */
|
|
@@ -318,18 +353,23 @@ interface LegendItem {
|
|
|
318
353
|
hidden?: boolean;
|
|
319
354
|
}
|
|
320
355
|
interface LegendOptions {
|
|
321
|
-
/**
|
|
322
|
-
|
|
356
|
+
/**
|
|
357
|
+
* Where the legend goes: above or below the chart, or beside it (`'left'`,
|
|
358
|
+
* `'right'`, mirrored in a right-to-left chart) with its entries stacked
|
|
359
|
+
* and the chart in the remaining width. `'auto'` puts it on the right when
|
|
360
|
+
* the chart keeps two thirds of the container that way, and below
|
|
361
|
+
* otherwise. Defaults to `'top'`.
|
|
362
|
+
*/
|
|
363
|
+
position?: "top" | "bottom" | "left" | "right" | "auto";
|
|
323
364
|
}
|
|
324
365
|
/**
|
|
325
366
|
* Legend content: one toggle button per entry. Buttons are native, so they
|
|
326
367
|
* are focusable and work with Enter/Space; `aria-pressed` reflects visibility.
|
|
368
|
+
* `shape` gives the swatches the point shapes of their slots.
|
|
327
369
|
*/
|
|
328
|
-
declare function legendContent(items: readonly LegendItem[], hidden: ReadonlySet<string
|
|
370
|
+
declare function legendContent(items: readonly LegendItem[], hidden: ReadonlySet<string>, shape?: SwatchShape): VNode;
|
|
329
371
|
/** Keys hidden by default, from the entries' own `hidden` flags. */
|
|
330
372
|
declare function defaultHidden(items: readonly LegendItem[]): Set<string>;
|
|
331
|
-
//#endregion
|
|
332
|
-
//#region src/charts/patterns.d.ts
|
|
333
373
|
/** `<pattern>` elements for the legend entries of a chart. */
|
|
334
374
|
declare function patternDefs(items: readonly LegendItem[], id: string): VNode[];
|
|
335
375
|
/** The `--tc-pattern-{n}` references for the chart root. */
|
|
@@ -341,21 +381,24 @@ declare function patternVars(items: readonly LegendItem[], id: string): Record<s
|
|
|
341
381
|
* `undefined` for a chart without legend entries.
|
|
342
382
|
*/
|
|
343
383
|
declare function patternFills(config: ChartConfig<object>, id: string): [string, Record<string, string>, VNode] | undefined;
|
|
344
|
-
//#endregion
|
|
345
|
-
//#region src/charts/point-shapes.d.ts
|
|
346
384
|
/** The path of slot `slot`'s marker of radius `r` around (`x`, `y`). */
|
|
347
385
|
declare function markerPath(slot: number, x: number, y: number, r: number): string;
|
|
348
|
-
/**
|
|
386
|
+
/**
|
|
387
|
+
* Inline style for the legend or tooltip swatch of slot `slot`: its marker as
|
|
388
|
+
* a CSS shape (`--tc-shape`, a `clip-path`) in a box without rounded corners;
|
|
389
|
+
* `undefined` for the slots that stay a circle.
|
|
390
|
+
*/
|
|
391
|
+
declare function markerClip(slot: number): Record<string, string | number> | undefined;
|
|
392
|
+
/**
|
|
393
|
+
* @deprecated Points are drawn in their shapes as the chart renders: this
|
|
394
|
+
* step leaves the content as it is. It will be removed in the next major.
|
|
395
|
+
*/
|
|
349
396
|
declare const shapesStep: PostStep;
|
|
350
|
-
//#endregion
|
|
351
|
-
//#region src/charts/time-axis.d.ts
|
|
352
397
|
/**
|
|
353
398
|
* A time category axis: points at their real distance in time, ticks on
|
|
354
399
|
* calendar boundaries labelled for the span (or with `x.format`).
|
|
355
400
|
*/
|
|
356
401
|
declare function timeAxis(labels: readonly Label[], keys: readonly BandKey[], options: CategoryAxisOptions, count: number, locale: Locale): CategoryAxis;
|
|
357
|
-
//#endregion
|
|
358
|
-
//#region src/export-chart.d.ts
|
|
359
402
|
interface ExportOptions {
|
|
360
403
|
/**
|
|
361
404
|
* Background color, `'auto'` for the chart's surface (`--tc-surface`), or
|
|
@@ -407,8 +450,32 @@ declare function exportImage(target: ExportTarget, options?: ImageOptions): Prom
|
|
|
407
450
|
* ```
|
|
408
451
|
*/
|
|
409
452
|
declare function downloadChart(target: ExportTarget, options?: DownloadOptions): Promise<void>;
|
|
410
|
-
|
|
411
|
-
|
|
453
|
+
interface ArcOptions {
|
|
454
|
+
innerRadius: number;
|
|
455
|
+
outerRadius: number;
|
|
456
|
+
startAngle: number;
|
|
457
|
+
endAngle: number;
|
|
458
|
+
/** Angle removed between adjacent arcs, split between both ends. Defaults to `0`. */
|
|
459
|
+
padAngle?: number;
|
|
460
|
+
/** Radius the pad angle is measured at. Defaults to `sqrt(inner² + outer²)` like d3. */
|
|
461
|
+
padRadius?: number;
|
|
462
|
+
/** Radius of the rounded corners, clamped to half the ring thickness. Defaults to `0`. */
|
|
463
|
+
cornerRadius?: number;
|
|
464
|
+
/** Decimal places kept in the path data. Defaults to `2`. */
|
|
465
|
+
precision?: number;
|
|
466
|
+
}
|
|
467
|
+
/** Midpoint of an arc, e.g. to anchor a tooltip or label (like d3's `arc.centroid`). */
|
|
468
|
+
declare function arcCentroid(options: ArcOptions): [number, number];
|
|
469
|
+
/** Pad angle giving a constant `gap` (in pixels) between arcs of a ring. */
|
|
470
|
+
declare function padAngleForGap(gap: number, innerRadius: number, outerRadius: number): number;
|
|
471
|
+
/**
|
|
472
|
+
* The same sector as {@link arcPath}, drawn with a fixed command structure:
|
|
473
|
+
* every corner is always present (zero length when there is none) and each
|
|
474
|
+
* ring is split into two half arcs, so the large-arc flag never flips.
|
|
475
|
+
* Paths of different angles therefore keep their commands while an arc is
|
|
476
|
+
* redrawn frame by frame, turning to its new angles (see `sweep`).
|
|
477
|
+
*/
|
|
478
|
+
declare function arcPathStable(options: ArcOptions): string;
|
|
412
479
|
/**
|
|
413
480
|
* Take `el` from the arc of its last render, `prev`, to the arc of `next`.
|
|
414
481
|
* Returns the attributes left for the caller to patch (all but `d`, set
|
|
@@ -416,8 +483,6 @@ declare function downloadChart(target: ExportTarget, options?: DownloadOptions):
|
|
|
416
483
|
* same path, no arc to come from, or a chart without transitions.
|
|
417
484
|
*/
|
|
418
485
|
declare function sweep(el: Element, prev: VNode, next: VNode): Attrs | undefined;
|
|
419
|
-
//#endregion
|
|
420
|
-
//#region src/features.d.ts
|
|
421
486
|
/**
|
|
422
487
|
* Optional features that chart types look up at render time. Each lives in
|
|
423
488
|
* its own module (`@tabler/charts/time`, `/log`, `/decimate`, `/line`, `/annotations`) and registers
|
|
@@ -448,7 +513,7 @@ interface Features {
|
|
|
448
513
|
hydrate?: typeof hydrate;
|
|
449
514
|
/** Path morphing on data updates where CSS cannot transition `d` (Safari). */
|
|
450
515
|
morph?: typeof morph;
|
|
451
|
-
/** Arcs turning to their new angles on data updates (
|
|
516
|
+
/** Arcs turning to their new angles on data updates (installed by a chart whose type has `sweep`). */
|
|
452
517
|
sweep?: typeof sweep;
|
|
453
518
|
/** Line and area paths behind `series.type: 'line' | 'area'` in bar charts. */
|
|
454
519
|
line?: {
|
|
@@ -469,18 +534,23 @@ interface Features {
|
|
|
469
534
|
post?: PostStep;
|
|
470
535
|
/** Point shapes by color slot, behind `shapes`. */
|
|
471
536
|
"point-shapes"?: typeof markerPath;
|
|
537
|
+
/** The same shapes for legend and tooltip swatches, as CSS shapes. */
|
|
538
|
+
swatch?: typeof markerClip;
|
|
472
539
|
/** Saving a chart as a file, behind the `download` menu. */
|
|
473
540
|
export?: typeof downloadChart;
|
|
474
541
|
}
|
|
475
542
|
declare const features: Features;
|
|
476
543
|
/** Register optional features (idempotent). */
|
|
477
544
|
declare function register(added: Features): void;
|
|
545
|
+
/**
|
|
546
|
+
* Inline style that gives the swatch of a legend or tooltip entry the point
|
|
547
|
+
* shape of its color slot (the stylesheet applies it when points are drawn).
|
|
548
|
+
*/
|
|
549
|
+
type SwatchShape = (slot: number) => Record<string, string | number> | undefined;
|
|
478
550
|
/** A step that finishes rendered chart content, e.g. by adding value labels. */
|
|
479
551
|
type PostStep = (config: ChartConfig<object>, content: ChildInput, interaction: Interaction | undefined, ctx: RenderContext) => ChildInput;
|
|
480
552
|
/** The registered feature, or a helpful error naming the import that provides it. */
|
|
481
553
|
declare function feature<K extends keyof Features>(name: K): NonNullable<Features[K]>;
|
|
482
|
-
//#endregion
|
|
483
|
-
//#region src/charts/value-labels.d.ts
|
|
484
554
|
interface ValueLabelOptions {
|
|
485
555
|
/** Format of the values. Defaults to the value axis format (slices: their share in percent). */
|
|
486
556
|
format?: NumberFormat;
|
|
@@ -491,8 +561,6 @@ interface ValueLabelOptions {
|
|
|
491
561
|
declare function valueLabels(config: ChartConfig<object>, interaction: Interaction, ctx: RenderContext): VNode | null;
|
|
492
562
|
/** The step that adds the labels over the content of charts with `valueLabels`. */
|
|
493
563
|
declare const labelsStep: PostStep;
|
|
494
|
-
//#endregion
|
|
495
|
-
//#region src/plugin.d.ts
|
|
496
564
|
/** What a plugin sees before the chart measures itself and renders. */
|
|
497
565
|
interface BeforeRenderState {
|
|
498
566
|
config: ChartConfig<object>;
|
|
@@ -513,6 +581,8 @@ interface PluginInstance {
|
|
|
513
581
|
beforeRender?(state: BeforeRenderState): void;
|
|
514
582
|
/** Vertical space the plugin takes from the container in `height: 'container'` mode. */
|
|
515
583
|
reservedHeight?(): number;
|
|
584
|
+
/** Horizontal space the plugin takes from the container, e.g. a legend beside the chart. */
|
|
585
|
+
reservedWidth?(): number;
|
|
516
586
|
/** Extra attributes for the root `<svg>`. */
|
|
517
587
|
svgAttrs?(config: ChartConfig<object>): Props | undefined;
|
|
518
588
|
/** SVG drawn below (`under`) and above (`over`) the chart content for the active hit. */
|
|
@@ -538,8 +608,6 @@ interface ChartPlugin {
|
|
|
538
608
|
readonly name: string;
|
|
539
609
|
install(chart: Chart<object>): PluginInstance;
|
|
540
610
|
}
|
|
541
|
-
//#endregion
|
|
542
|
-
//#region src/plugins/download.d.ts
|
|
543
611
|
/** A file format of the download menu. */
|
|
544
612
|
type DownloadFormat = "png" | "svg" | "jpeg" | "webp";
|
|
545
613
|
/** The `download` option as an object. */
|
|
@@ -570,8 +638,6 @@ type DownloadOption = boolean | readonly DownloadFormat[] | DownloadMenuOptions;
|
|
|
570
638
|
* carry the export code.
|
|
571
639
|
*/
|
|
572
640
|
declare function download(): ChartPlugin;
|
|
573
|
-
//#endregion
|
|
574
|
-
//#region src/tooltip.d.ts
|
|
575
641
|
/**
|
|
576
642
|
* Where a tooltip for `hit` belongs, in chart pixels: the pointer when it
|
|
577
643
|
* drives the highlight, otherwise the focused value (keyboard).
|
|
@@ -598,8 +664,11 @@ interface TooltipOptions {
|
|
|
598
664
|
/** Extra content below the default rows (e.g. a total), in `.tc-tooltip-footer`. */
|
|
599
665
|
footer?: (hit: Hit) => ChildInput;
|
|
600
666
|
}
|
|
601
|
-
/**
|
|
602
|
-
|
|
667
|
+
/**
|
|
668
|
+
* Default tooltip content: the category title and one row per series
|
|
669
|
+
* (`shape` gives their swatches the point shapes of their slots).
|
|
670
|
+
*/
|
|
671
|
+
declare function tooltipContent(hit: Hit, options?: TooltipOptions, shape?: SwatchShape): VNode;
|
|
603
672
|
interface TooltipPlacement {
|
|
604
673
|
x: number;
|
|
605
674
|
y: number;
|
|
@@ -608,7 +677,8 @@ interface TooltipPlacement {
|
|
|
608
677
|
/**
|
|
609
678
|
* Place a `width × height` tooltip next to an anchor within `bounds` (from
|
|
610
679
|
* `bounds.x`, `bounds.y`, 0 by default): right of the anchor, or left when it
|
|
611
|
-
* would overflow, vertically centered on the
|
|
680
|
+
* would overflow (the other way round with `rtl`), vertically centered on the
|
|
681
|
+
* pointer and clamped.
|
|
612
682
|
*/
|
|
613
683
|
declare function placeTooltip(anchor: {
|
|
614
684
|
x: number;
|
|
@@ -621,9 +691,7 @@ declare function placeTooltip(anchor: {
|
|
|
621
691
|
y?: number;
|
|
622
692
|
width: number;
|
|
623
693
|
height: number;
|
|
624
|
-
}, offset?: number): TooltipPlacement;
|
|
625
|
-
//#endregion
|
|
626
|
-
//#region src/chart.d.ts
|
|
694
|
+
}, offset?: number, rtl?: boolean): TooltipPlacement;
|
|
627
695
|
/** Size and environment a chart type renders into. */
|
|
628
696
|
interface RenderContext {
|
|
629
697
|
width: number;
|
|
@@ -633,16 +701,32 @@ interface RenderContext {
|
|
|
633
701
|
locale: Locale;
|
|
634
702
|
/** Unique, stable prefix for ids inside this chart. */
|
|
635
703
|
id: string;
|
|
636
|
-
/** Register how pointer and keyboard map to data (ignored in SSR). */
|
|
637
|
-
onHitTest(interaction: Interaction): void;
|
|
638
704
|
/** Keys of legend entries (series) currently hidden. */
|
|
639
705
|
hidden: ReadonlySet<string>;
|
|
706
|
+
/** Lay the chart out right to left (the `rtl` option, resolved). */
|
|
707
|
+
rtl?: boolean;
|
|
640
708
|
}
|
|
709
|
+
/** What a chart type's `table()` sees: no size, since a table has none. */
|
|
710
|
+
type TableContext = Pick<RenderContext, "locale" | "hidden" | "rtl">;
|
|
641
711
|
/**
|
|
642
|
-
*
|
|
643
|
-
*
|
|
712
|
+
* What a chart type renders for one size: the content of the root `<svg>`,
|
|
713
|
+
* and how pointer and keyboard map to its data (none, when left out).
|
|
714
|
+
*/
|
|
715
|
+
interface RenderResult {
|
|
716
|
+
content: ChildInput;
|
|
717
|
+
interaction?: Interaction;
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* A chart type plugin (`line`, `bar`, …). Works out its model from the chart
|
|
721
|
+
* options and renders it into the content of the root `<svg>`.
|
|
722
|
+
*
|
|
723
|
+
* `M` is the chart model, what `prepare()` works out from the options alone
|
|
724
|
+
* (the options themselves for a type without `prepare()`): `render()`,
|
|
725
|
+
* `legend()`, `table()` and `height()` all read it, so a type groups or sorts
|
|
726
|
+
* its data once per config, not once for each of them. `ChartType<never>`
|
|
727
|
+
* stands for any chart type.
|
|
644
728
|
*/
|
|
645
|
-
interface ChartType<O extends object = object> {
|
|
729
|
+
interface ChartType<O extends object = object, M extends object = [O] extends [never] ? object : O> {
|
|
646
730
|
readonly name: string;
|
|
647
731
|
/**
|
|
648
732
|
* Clean options that may come from outside (data, annotations, axis
|
|
@@ -650,14 +734,27 @@ interface ChartType<O extends object = object> {
|
|
|
650
734
|
* as the config comes in, before anything reads it.
|
|
651
735
|
*/
|
|
652
736
|
clean?(options: O): unknown;
|
|
653
|
-
|
|
737
|
+
/**
|
|
738
|
+
* The chart model of the (cleaned) options: whatever the legend, the table
|
|
739
|
+
* and every render share. It knows neither the size nor the hidden series
|
|
740
|
+
* (the legend that hides them reads it). Called once per config.
|
|
741
|
+
*/
|
|
742
|
+
prepare?(options: O): M;
|
|
743
|
+
/** The chart content for a size: bare content, or with its interaction. */
|
|
744
|
+
render(model: M, context: RenderContext): ChildInput | RenderResult;
|
|
745
|
+
/**
|
|
746
|
+
* Height in pixels at a width, for a type whose proportions are not one
|
|
747
|
+
* ratio (parts of it keep their size as it narrows). Asked when `height`
|
|
748
|
+
* is not set; `undefined` leaves it to `aspectRatio`.
|
|
749
|
+
*/
|
|
750
|
+
height?(model: M, width: number): number | undefined;
|
|
654
751
|
/** Entries for the legend (series, slices); charts without it get no legend. */
|
|
655
|
-
legend?(
|
|
752
|
+
legend?(model: M): LegendItem[];
|
|
656
753
|
/**
|
|
657
754
|
* The data as a text table, for screen readers and the visible table
|
|
658
755
|
* option. `limit` is the most rows wanted; report the real count in `total`.
|
|
659
756
|
*/
|
|
660
|
-
table?(
|
|
757
|
+
table?(model: M, context: TableContext, limit: number): DataTable;
|
|
661
758
|
/**
|
|
662
759
|
* Whether the chart should be focusable and keyboard-navigable by default
|
|
663
760
|
* (`keyboard` in the config overrides it). Decorative types such as
|
|
@@ -671,10 +768,22 @@ interface ChartType<O extends object = object> {
|
|
|
671
768
|
* names the number format of the values in the options (by default a label
|
|
672
769
|
* shows the text of the tooltip).
|
|
673
770
|
*/
|
|
771
|
+
/**
|
|
772
|
+
* How the chart's marks turn to new data in the DOM, where CSS cannot
|
|
773
|
+
* animate them (arcs sweeping to their new angles). A chart in the page
|
|
774
|
+
* installs it; it is part of the type, not of a module that loads, so it
|
|
775
|
+
* ships only with the types that use it.
|
|
776
|
+
*/
|
|
777
|
+
readonly sweep?: Features["sweep"];
|
|
674
778
|
readonly valueLabels?: {
|
|
675
779
|
marks?: "slice" | "cell";
|
|
676
|
-
format?(
|
|
780
|
+
format?(model: M): NumberFormat | undefined;
|
|
677
781
|
};
|
|
782
|
+
/**
|
|
783
|
+
* Plugins the chart type brings along (the zoom of a map), installed after
|
|
784
|
+
* the default ones when a chart is created with this type.
|
|
785
|
+
*/
|
|
786
|
+
readonly plugins?: readonly ChartPlugin[];
|
|
678
787
|
}
|
|
679
788
|
/** Options shared by every chart type. */
|
|
680
789
|
interface BaseOptions {
|
|
@@ -695,6 +804,15 @@ interface BaseOptions {
|
|
|
695
804
|
class?: ClassValue;
|
|
696
805
|
/** Locale for number and date formatting. Set it explicitly for SSR. */
|
|
697
806
|
locale?: Locale;
|
|
807
|
+
/**
|
|
808
|
+
* Mirror the layout for right-to-left pages: the value axis on the right
|
|
809
|
+
* and categories running from the right (`x.reverse` overrides the latter).
|
|
810
|
+
* `'auto'` follows the `direction` of the container (left to right in SSR).
|
|
811
|
+
* The legend, the tooltip and the download menu read right to left with it.
|
|
812
|
+
* Cartesian charts, heatmaps, sparklines, sankey diagrams and percentage
|
|
813
|
+
* bars. Defaults to `false`.
|
|
814
|
+
*/
|
|
815
|
+
rtl?: boolean | "auto";
|
|
698
816
|
/**
|
|
699
817
|
* Font size used to lay out labels. In the browser it is read from the
|
|
700
818
|
* `--tc-font-size` custom property of the container when not set; set it
|
|
@@ -728,8 +846,10 @@ interface BaseOptions {
|
|
|
728
846
|
* Write the values on the marks: bars at their end, stacked segments,
|
|
729
847
|
* cells and slices inside (slices show their share), lines and points
|
|
730
848
|
* above their last point (`points: 'all'` for every one). Labels that do
|
|
731
|
-
* not fit are left out.
|
|
732
|
-
*
|
|
849
|
+
* not fit are left out. A series' own `valueLabels` overrides this for
|
|
850
|
+
* that series, and each label carries its series classes
|
|
851
|
+
* (`tc-series tc-series-{n}`). Needs `@tabler/charts/value-labels` on the
|
|
852
|
+
* core (`@tabler/charts` includes it).
|
|
733
853
|
*/
|
|
734
854
|
valueLabels?: boolean | ValueLabelOptions;
|
|
735
855
|
/**
|
|
@@ -774,7 +894,7 @@ interface BaseOptions {
|
|
|
774
894
|
}
|
|
775
895
|
/** Full chart configuration: base options, the chart type and its options. */
|
|
776
896
|
type ChartConfig<O extends object = object> = BaseOptions & O & {
|
|
777
|
-
type: ChartType<O>;
|
|
897
|
+
type: ChartType<O, object>;
|
|
778
898
|
};
|
|
779
899
|
interface Size {
|
|
780
900
|
width: number;
|
|
@@ -782,13 +902,29 @@ interface Size {
|
|
|
782
902
|
}
|
|
783
903
|
/** Resolve the final pixel size from options and the measured container size. */
|
|
784
904
|
declare function resolveSize(options: BaseOptions, measured?: Partial<Size>): Size;
|
|
785
|
-
/**
|
|
786
|
-
|
|
905
|
+
/**
|
|
906
|
+
* The chart model of a config: what its type's `prepare()` works out from
|
|
907
|
+
* it, once per config object, or the config itself for a type without one.
|
|
908
|
+
*/
|
|
909
|
+
declare function chartModel(config: ChartConfig<object>): object;
|
|
910
|
+
/** What a render context is made for, besides the config. */
|
|
911
|
+
interface ContextOptions {
|
|
912
|
+
size: Size;
|
|
913
|
+
/** Id prefix of the chart. */
|
|
914
|
+
id: string;
|
|
915
|
+
hidden: ReadonlySet<string>;
|
|
916
|
+
/** Measured font size, used when the config sets none. */
|
|
917
|
+
fontSize?: number;
|
|
918
|
+
/** The resolved `rtl` option; by default `rtl: true` in the config. */
|
|
919
|
+
rtl?: boolean;
|
|
920
|
+
}
|
|
921
|
+
/** Render context for a config and size. */
|
|
922
|
+
declare function renderContext<O extends object>(config: ChartConfig<O>, { size, id, hidden, fontSize, rtl }: ContextOptions): RenderContext;
|
|
787
923
|
/** Legend entries of a config, whether a legend is shown and where. */
|
|
788
924
|
interface ResolvedLegend {
|
|
789
925
|
items: LegendItem[];
|
|
790
926
|
show: boolean;
|
|
791
|
-
position: "
|
|
927
|
+
position: NonNullable<LegendOptions["position"]>;
|
|
792
928
|
}
|
|
793
929
|
/** Legend entries of a config, and whether the legend is shown. */
|
|
794
930
|
declare function resolveLegend<O extends object>(config: ChartConfig<O>): ResolvedLegend;
|
|
@@ -799,11 +935,18 @@ declare function resolveLegend<O extends object>(config: ChartConfig<O>): Resolv
|
|
|
799
935
|
* page's language.
|
|
800
936
|
*/
|
|
801
937
|
declare function chartLabel(config: ChartConfig<object>): string;
|
|
938
|
+
/** A chart built without the DOM: its root `<svg>`, and how it answers interaction. */
|
|
939
|
+
interface BuiltChart {
|
|
940
|
+
svg: VNode;
|
|
941
|
+
interaction?: Interaction;
|
|
942
|
+
}
|
|
802
943
|
/**
|
|
803
|
-
* Build
|
|
804
|
-
*
|
|
944
|
+
* Build a chart for a size: a pure function of the config and size, shared
|
|
945
|
+
* by the DOM chart and server-side rendering. `buildChart()` keeps the svg.
|
|
805
946
|
*/
|
|
806
|
-
declare function
|
|
947
|
+
declare function renderChart<O extends object>(config: ChartConfig<O>, size: Size, id?: string): BuiltChart;
|
|
948
|
+
/** Build the VNode tree of a chart for a size (see `renderChart()`). */
|
|
949
|
+
declare function buildChart<O extends object>(config: ChartConfig<O>, size: Size, id?: string): VNode;
|
|
807
950
|
/**
|
|
808
951
|
* Render a chart to an SVG string, e.g. on the server.
|
|
809
952
|
*
|
|
@@ -857,14 +1000,19 @@ type Handler<T> = (event: T) => void;
|
|
|
857
1000
|
declare class Chart<O extends object = object> {
|
|
858
1001
|
#private;
|
|
859
1002
|
/** Element the chart renders into. */
|
|
860
|
-
readonly element:
|
|
1003
|
+
readonly element: HTMLElement;
|
|
861
1004
|
/** Id prefix used for elements inside the chart. */
|
|
862
1005
|
readonly id: string;
|
|
863
|
-
constructor(target:
|
|
1006
|
+
constructor(target: HTMLElement | string, config: ChartConfig<O>, defaultPlugins?: readonly ChartPlugin[]);
|
|
864
1007
|
/** Current configuration. */
|
|
865
1008
|
get config(): ChartConfig<O>;
|
|
866
1009
|
/** Size of the last render. */
|
|
867
1010
|
get size(): Size;
|
|
1011
|
+
/**
|
|
1012
|
+
* Whether the chart is laid out right to left: the `rtl` option, with
|
|
1013
|
+
* `'auto'` read from the container (together with the font size).
|
|
1014
|
+
*/
|
|
1015
|
+
get rtl(): boolean;
|
|
868
1016
|
/** Font size used by the last render (explicit, measured, or the default). */
|
|
869
1017
|
get fontSize(): number;
|
|
870
1018
|
/** How pointer and keyboard map to data for the current render. */
|
|
@@ -928,6 +1076,4 @@ declare class Chart<O extends object = object> {
|
|
|
928
1076
|
/** Call the handlers of an event (plugins emit `click`, for instance). */
|
|
929
1077
|
emit<K extends keyof ChartEvents>(name: K, event: ChartEvents[K]): void;
|
|
930
1078
|
}
|
|
931
|
-
|
|
932
|
-
export { CartesianOptions as $, labelsStep as A, downloadChart as B, DownloadOption as C, HitTester as Ct, ChartPlugin as D, BeforeRenderState as E, register as F, patternDefs as G, exportSVG as H, DownloadOptions as I, LegendItem as J, patternFills as K, ExportOptions as L, Features as M, feature as N, PluginInstance as O, features as P, CartesianData as Q, ExportTarget as R, DownloadMenuOptions as S, HitItem as St, AfterRenderState as T, markerPath as U, exportImage as V, shapesStep as W, defaultHidden as X, LegendOptions as Y, legendContent as Z, TooltipPlacement as _, thinTicks as _t, ChartType as a, domainOf as at, tooltipContent as b, tableContent as bt, Size as c, seriesTable as ct, chartLabel as d, LinearTicksOptions as dt, CategoryAxisOptions as et, chartToString as f, Tick as ft, TooltipOptions as g, linearTicks as gt, resolveSize as h, bandTicks as ht, ChartEvents as i, categoryInteraction as it, valueLabels as j, ValueLabelOptions as k, buildChart as l, AxisOptions as lt, resolveLegend as m, axisSize as mt, Chart as n, Series as nt, RenderContext as o, seriesKey as ot, renderContext as p, axis as pt, patternVars as q, ChartConfig as r, ValueAxisOptions as rt, ResolvedLegend as s, seriesLegend as st, BaseOptions as t, Label as tt, chartEvents as u, AxisPosition as ut, hitAnchor as v, DataTable as vt, download as w, Interaction as wt, DownloadFormat as x, Hit as xt, placeTooltip as y, describeHit as yt, ImageOptions as z };
|
|
933
|
-
//# sourceMappingURL=chart-D7ooEFnk.d.cts.map
|
|
1079
|
+
export { markerClip as $, download as A, describeHit as At, features as B, TooltipPlacement as C, Tick as Ct, DownloadFormat as D, linearTicks as Dt, tooltipContent as E, bandTicks as Et, ValueLabelOptions as F, HitTester as Ft, padAngleForGap as G, ArcOptions as H, labelsStep as I, Interaction as It, ExportTarget as J, DownloadOptions as K, valueLabels as L, BeforeRenderState as M, Highlight as Mt, ChartPlugin as N, Hit as Nt, DownloadMenuOptions as O, thinTicks as Ot, PluginInstance as P, HitItem as Pt, exportSVG as Q, Features as R, TooltipOptions as S, LinearTicksOptions as St, placeTooltip as T, axisSize as Tt, arcCentroid as U, register as V, arcPathStable as W, downloadChart as X, ImageOptions as Y, exportImage as Z, chartToString as _, seriesKey as _t, ChartEvents as a, LegendItem as at, resolveLegend as b, AxisOptions as bt, RenderContext as c, legendContent as ct, Size as d, CategoryAxisOptions as dt, markerPath as et, TableContext as f, Label as ft, chartModel as g, domainOf as gt, chartLabel as h, categoryInteraction as ht, ChartConfig as i, patternVars as it, AfterRenderState as j, tableContent as jt, DownloadOption as k, DataTable as kt, RenderResult as l, CartesianData as lt, chartEvents as m, ValueAxisOptions as mt, BuiltChart as n, patternDefs as nt, ChartType as o, LegendOptions as ot, buildChart as p, Series as pt, ExportOptions as q, Chart as r, patternFills as rt, ContextOptions as s, defaultHidden as st, BaseOptions as t, shapesStep as tt, ResolvedLegend as u, CartesianOptions as ut, renderChart as v, seriesLegend as vt, hitAnchor as w, axis as wt, resolveSize as x, AxisPosition as xt, renderContext as y, seriesTable as yt, feature as z };
|