@tabler/charts 0.2.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 +74 -4
- package/dist/{annotations-D0YQ0IoA.js → annotations-BQ8l-qHs.js} +3 -3
- package/dist/{annotations-D0YQ0IoA.js.map → annotations-BQ8l-qHs.js.map} +1 -1
- package/dist/{annotations-DdRdeBUB.cjs → annotations-CpCWA29b.cjs} +3 -3
- package/dist/{annotations-DdRdeBUB.cjs.map → annotations-CpCWA29b.cjs.map} +1 -1
- package/dist/annotations.cjs +2 -2
- package/dist/annotations.js +2 -2
- package/dist/{area-d11XePuw.d.ts → area-DEFQm_SQ.d.ts} +2 -2
- package/dist/{area-4eRs3c0K.cjs → area-DYdQ_sMV.cjs} +3 -3
- package/dist/{area-4eRs3c0K.cjs.map → area-DYdQ_sMV.cjs.map} +1 -1
- package/dist/{area-0-L1bG9B.js → area-WdtfqvhX.js} +3 -3
- package/dist/{area-0-L1bG9B.js.map → area-WdtfqvhX.js.map} +1 -1
- package/dist/{area-CJX9219z.d.cts → area-h_FvieFb.d.cts} +2 -2
- package/dist/area.cjs +1 -1
- package/dist/area.d.cts +1 -1
- package/dist/area.d.ts +1 -1
- package/dist/area.js +1 -1
- 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/{bar-BNZ3GhIw.js → bar-BOcRcArc.js} +74 -56
- package/dist/bar-BOcRcArc.js.map +1 -0
- package/dist/{bar-Da6dE_nI.cjs → bar-CVkOJ7WA.cjs} +76 -58
- package/dist/bar-CVkOJ7WA.cjs.map +1 -0
- package/dist/{bar-B5n2oq9-.js → bar-CgpC2EpX.js} +2 -2
- package/dist/{bar-B5n2oq9-.js.map → bar-CgpC2EpX.js.map} +1 -1
- package/dist/{bar-XwzM6Pb0.d.ts → bar-D9B_arKf.d.ts} +1 -1
- package/dist/{bar-BDLR4p9c.d.cts → bar-DZCQ-kyf.d.cts} +2 -2
- package/dist/{bar-LYIF8MEz.cjs → bar-wVykm1us.cjs} +2 -2
- package/dist/{bar-LYIF8MEz.cjs.map → bar-wVykm1us.cjs.map} +1 -1
- package/dist/bar.cjs +1 -1
- package/dist/bar.d.cts +1 -1
- package/dist/bar.d.ts +1 -1
- package/dist/bar.js +1 -1
- 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-D0xKkdqd.d.ts → candlestick-B3WcLzph.d.ts} +1 -1
- package/dist/{candlestick-Dq7qp-F0.d.cts → candlestick-BcomxeVG.d.cts} +1 -1
- package/dist/{candlestick-BHQkQfxH.js → candlestick-BtT9glp9.js} +16 -14
- package/dist/{candlestick-BHQkQfxH.js.map → candlestick-BtT9glp9.js.map} +1 -1
- package/dist/{candlestick-CYCQXgky.cjs → candlestick-CSmRuZ4v.cjs} +16 -14
- package/dist/{candlestick-CYCQXgky.cjs.map → candlestick-CSmRuZ4v.cjs.map} +1 -1
- package/dist/candlestick.cjs +3 -3
- package/dist/candlestick.d.cts +1 -1
- package/dist/candlestick.d.ts +1 -1
- package/dist/candlestick.js +3 -3
- package/dist/{cartesian-CI2x6N7N.js → cartesian-BrPqb5Qn.js} +122 -248
- package/dist/cartesian-BrPqb5Qn.js.map +1 -0
- package/dist/{cartesian-DV02PsBe.cjs → cartesian-DRSXHxWe.cjs} +146 -308
- package/dist/cartesian-DRSXHxWe.cjs.map +1 -0
- package/dist/{chart-DWn9v6qw.js → chart-B6TTY4Kr.js} +94 -62
- package/dist/chart-B6TTY4Kr.js.map +1 -0
- package/dist/{chart-QilhWP8Z.d.ts → chart-CYrrUCi3.d.ts} +193 -56
- package/dist/{chart-kqFMEwDo.d.cts → chart-CbPzP5Dp.d.cts} +193 -56
- package/dist/{chart-e2VqomCI.cjs → chart-D_lyOy-M.cjs} +106 -68
- package/dist/chart-D_lyOy-M.cjs.map +1 -0
- package/dist/{core-PAX5ogLk.d.cts → core-9BnLEW4K.d.cts} +24 -20
- package/dist/{core-DRUCk67j.d.ts → core-C3qEppSm.d.ts} +7 -6
- package/dist/{core-BKRQvPAT.js → core-CQ0FaJ4G.js} +112 -65
- package/dist/core-CQ0FaJ4G.js.map +1 -0
- package/dist/{core-DIOC61up.cjs → core-D2PSked3.cjs} +113 -66
- package/dist/core-D2PSked3.cjs.map +1 -0
- package/dist/core.cjs +41 -31
- package/dist/core.d.cts +20 -17
- package/dist/core.d.ts +20 -17
- package/dist/core.js +27 -23
- package/dist/{dates-C2RzY3rE.js → dates-DLe2Ww64.js} +2 -2
- package/dist/{dates-C2RzY3rE.js.map → dates-DLe2Ww64.js.map} +1 -1
- package/dist/{dates-DurEr9WT.cjs → dates-DerXTb1J.cjs} +2 -2
- package/dist/{dates-DurEr9WT.cjs.map → dates-DerXTb1J.cjs.map} +1 -1
- package/dist/decimate.cjs +1 -1
- package/dist/decimate.js +1 -1
- package/dist/{dom-D_g13XWY.cjs → dom-C33zvtPo.cjs} +3 -7
- package/dist/dom-C33zvtPo.cjs.map +1 -0
- package/dist/{dom-CuceR8gt.js → dom-CTse6Rvd.js} +3 -7
- package/dist/dom-CTse6Rvd.js.map +1 -0
- package/dist/{export-chart-mYgEfK-L.cjs → export-chart-CPtXmZvi.cjs} +17 -12
- package/dist/export-chart-CPtXmZvi.cjs.map +1 -0
- package/dist/{export-chart-83UYH48t.js → export-chart-DoeiAyR2.js} +17 -12
- package/dist/export-chart-DoeiAyR2.js.map +1 -0
- package/dist/export.cjs +2 -2
- package/dist/export.d.cts +1 -1
- package/dist/export.d.ts +1 -1
- package/dist/export.js +2 -2
- package/dist/{fade-GGxcBdss.js → fade-CDrQjnDz.js} +56 -78
- package/dist/fade-CDrQjnDz.js.map +1 -0
- package/dist/{fade-DVTkhrFU.cjs → fade-CRqcKMWY.cjs} +56 -78
- package/dist/fade-CRqcKMWY.cjs.map +1 -0
- package/dist/{features-BMxkqCyS.js → features-B55rwpQC.js} +4 -2
- package/dist/features-B55rwpQC.js.map +1 -0
- package/dist/{features-DCXEvoya.cjs → features-DEDP5CEQ.cjs} +9 -1
- 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/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-DXkjXNCD.cjs → gauge-6HfDcLMJ.cjs} +28 -28
- package/dist/gauge-6HfDcLMJ.cjs.map +1 -0
- package/dist/{gauge-ts0kqN1-.js → gauge-DiTk5aWO.js} +28 -28
- package/dist/gauge-DiTk5aWO.js.map +1 -0
- package/dist/{gauge-BSist7My.d.cts → gauge-Ds9k1UV2.d.cts} +1 -1
- package/dist/{gauge-0VJuAHWF.d.ts → gauge-Zy25jfps.d.ts} +1 -1
- package/dist/gauge.cjs +1 -1
- package/dist/gauge.d.cts +1 -1
- package/dist/gauge.d.ts +1 -1
- package/dist/gauge.js +1 -1
- package/dist/{heatmap-19BGJTKF.js → heatmap-C1v8bwpq.js} +35 -33
- package/dist/heatmap-C1v8bwpq.js.map +1 -0
- package/dist/{heatmap-Dp_oyEe0.d.cts → heatmap-CJ-0dfhJ.d.cts} +1 -1
- package/dist/{heatmap-CXhlrLTl.cjs → heatmap-Dcc_bsoQ.cjs} +39 -37
- package/dist/heatmap-Dcc_bsoQ.cjs.map +1 -0
- package/dist/{heatmap-59lmClj9.d.ts → heatmap-Jp5sHRTo.d.ts} +1 -1
- package/dist/heatmap.cjs +1 -1
- package/dist/heatmap.d.cts +1 -1
- package/dist/heatmap.d.ts +1 -1
- package/dist/heatmap.js +1 -1
- package/dist/{hydrate-OA6R2_Pn.js → hydrate-BB3MlR36.js} +2 -2
- package/dist/{hydrate-OA6R2_Pn.js.map → hydrate-BB3MlR36.js.map} +1 -1
- package/dist/{hydrate-CmN1k8Mo.cjs → hydrate-m0I5m6ue.cjs} +2 -2
- package/dist/{hydrate-CmN1k8Mo.cjs.map → hydrate-m0I5m6ue.cjs.map} +1 -1
- package/dist/hydrate.cjs +2 -2
- package/dist/hydrate.js +2 -2
- package/dist/index.cjs +55 -42
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +21 -18
- package/dist/index.d.ts +21 -18
- package/dist/index.js +41 -34
- 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-JY2aR-yE.cjs → layout-Cfg9x1k2.cjs} +32 -1
- package/dist/layout-Cfg9x1k2.cjs.map +1 -0
- package/dist/{layout-DmrrLjwN.js → layout-DqAte3H8.js} +27 -2
- package/dist/layout-DqAte3H8.js.map +1 -0
- package/dist/{line-DtSh7HQU.d.ts → line-Bpr5uVLQ.d.ts} +1 -1
- package/dist/{line-DO66LtwH.js → line-CxR4tg1Q.js} +46 -34
- package/dist/line-CxR4tg1Q.js.map +1 -0
- package/dist/{line-Dbt6KFRK.cjs → line-YiCuhVMI.cjs} +46 -34
- package/dist/line-YiCuhVMI.cjs.map +1 -0
- package/dist/{line-_rNdeKmS.d.cts → line-vyWO030v.d.cts} +2 -3
- package/dist/line.cjs +3 -3
- package/dist/line.d.cts +1 -1
- package/dist/line.d.ts +1 -1
- package/dist/line.js +3 -3
- package/dist/log.cjs +1 -1
- package/dist/log.js +1 -1
- 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-9_LJL0ra.cjs → morph-3I1Nf_tR.cjs} +2 -2
- package/dist/{morph-9_LJL0ra.cjs.map → morph-3I1Nf_tR.cjs.map} +1 -1
- package/dist/{morph-DnRxuwR-.js → morph-GfBab-b3.js} +2 -2
- package/dist/{morph-DnRxuwR-.js.map → morph-GfBab-b3.js.map} +1 -1
- package/dist/morph.cjs +2 -2
- package/dist/morph.js +2 -2
- package/dist/{others-J7NCAMA0.js → others-DBIGE6jr.js} +11 -3
- package/dist/others-DBIGE6jr.js.map +1 -0
- package/dist/others-DBO4Kjwl.d.ts +29 -0
- package/dist/{others-DWdK7vKp.cjs → others-WfjCsjqT.cjs} +14 -6
- package/dist/others-WfjCsjqT.cjs.map +1 -0
- package/dist/others-ls5eKtZ4.d.cts +31 -0
- package/dist/{parliament-Cru4IcuM.js → parliament-BKN6ikBJ.js} +30 -29
- package/dist/parliament-BKN6ikBJ.js.map +1 -0
- package/dist/{parliament-CgsVnWEe.d.cts → parliament-C7V8UJj1.d.cts} +1 -1
- package/dist/{parliament-CLCI7tUO.d.ts → parliament-Cz9n_DoK.d.ts} +1 -1
- package/dist/{parliament-x5hcFaQ3.cjs → parliament-DhxAaIZ3.cjs} +30 -29
- package/dist/parliament-DhxAaIZ3.cjs.map +1 -0
- package/dist/parliament.cjs +1 -1
- package/dist/parliament.d.cts +1 -1
- package/dist/parliament.d.ts +1 -1
- package/dist/parliament.js +1 -1
- package/dist/{patterns-CufKZYhm.js → patterns-BMUINoka.js} +2 -2
- package/dist/{patterns-CufKZYhm.js.map → patterns-BMUINoka.js.map} +1 -1
- package/dist/{patterns-D3-wQagb.cjs → patterns-Dw7OMD_2.cjs} +2 -2
- package/dist/{patterns-D3-wQagb.cjs.map → patterns-Dw7OMD_2.cjs.map} +1 -1
- package/dist/patterns.cjs +2 -2
- package/dist/patterns.d.cts +1 -1
- package/dist/patterns.d.ts +1 -1
- package/dist/patterns.js +2 -2
- package/dist/{percentage-bar-ybNS3goo.cjs → percentage-bar-BChkTRoz.cjs} +37 -35
- package/dist/percentage-bar-BChkTRoz.cjs.map +1 -0
- package/dist/{percentage-bar-B6tNOqNn.js → percentage-bar-CaInxrL8.js} +37 -35
- package/dist/percentage-bar-CaInxrL8.js.map +1 -0
- package/dist/{percentage-bar-tepMr7Hd.d.cts → percentage-bar-R1--2grK.d.cts} +10 -14
- package/dist/{percentage-bar-nhTeakD_.d.ts → percentage-bar-cSeiLdwU.d.ts} +10 -14
- package/dist/percentage-bar.cjs +1 -1
- package/dist/percentage-bar.d.cts +1 -1
- package/dist/percentage-bar.d.ts +1 -1
- package/dist/percentage-bar.js +1 -1
- package/dist/{pie-CFptILSm.d.ts → pie-BQQkvy1N.d.ts} +7 -13
- package/dist/{pie-CVsc-6qD.js → pie-Bd8wyrtY.js} +45 -44
- package/dist/pie-Bd8wyrtY.js.map +1 -0
- package/dist/{pie-BpjvSPnz.cjs → pie-BseZlCgP.cjs} +45 -44
- package/dist/pie-BseZlCgP.cjs.map +1 -0
- package/dist/{pie-BXg2gNpb.d.cts → pie-vD5-g8je.d.cts} +7 -13
- package/dist/pie.cjs +1 -1
- package/dist/pie.d.cts +1 -1
- package/dist/pie.d.ts +1 -1
- package/dist/pie.js +1 -1
- package/dist/{point-shapes--_gmdTyK.cjs → point-shapes-BRawRM78.cjs} +23 -22
- package/dist/point-shapes-BRawRM78.cjs.map +1 -0
- package/dist/{point-shapes-DD2Ektzm.js → point-shapes-DI6GhcI7.js} +18 -23
- package/dist/point-shapes-DI6GhcI7.js.map +1 -0
- package/dist/point-shapes.cjs +6 -4
- package/dist/point-shapes.cjs.map +1 -1
- package/dist/point-shapes.d.cts +2 -2
- package/dist/point-shapes.d.ts +2 -2
- package/dist/point-shapes.js +7 -5
- package/dist/point-shapes.js.map +1 -1
- package/dist/{radar-D1-lItDy.d.cts → radar-7I6hsY_h.d.cts} +1 -1
- package/dist/{radar-BR-mumDd.js → radar-D6XqkFWQ.js} +21 -22
- package/dist/radar-D6XqkFWQ.js.map +1 -0
- package/dist/{radar-HPDrIdzc.cjs → radar-DjISDnSf.cjs} +22 -23
- package/dist/radar-DjISDnSf.cjs.map +1 -0
- package/dist/{radar-BC9Skgpj.d.ts → radar-vLxilcr4.d.ts} +1 -1
- package/dist/radar.cjs +1 -1
- package/dist/radar.d.cts +1 -1
- package/dist/radar.d.ts +1 -1
- package/dist/radar.js +1 -1
- package/dist/{rect-DSVmUZrD.js → rect-CZTNvMlf.js} +2 -2
- package/dist/{rect-DSVmUZrD.js.map → rect-CZTNvMlf.js.map} +1 -1
- package/dist/{rect-D6VhynBM.cjs → rect-DPr9QRxl.cjs} +2 -2
- package/dist/{rect-D6VhynBM.cjs.map → rect-DPr9QRxl.cjs.map} +1 -1
- package/dist/{sankey-fCoo1cpz.cjs → sankey-0CSp_Er9.cjs} +72 -71
- package/dist/sankey-0CSp_Er9.cjs.map +1 -0
- package/dist/{sankey-D_v7KxnJ.d.ts → sankey-7As41Fo4.d.ts} +1 -1
- package/dist/{sankey-D6JeZfK5.js → sankey-Dp4CuLVe.js} +72 -71
- package/dist/sankey-Dp4CuLVe.js.map +1 -0
- package/dist/{sankey-Dk7jUt8x.d.cts → sankey-DqiuxUx7.d.cts} +1 -1
- package/dist/sankey.cjs +1 -1
- package/dist/sankey.d.cts +1 -1
- package/dist/sankey.d.ts +1 -1
- package/dist/sankey.js +1 -1
- package/dist/{scatter-CXEsioOJ.d.ts → scatter-BXkXGgM_.d.ts} +7 -1
- package/dist/{scatter-DVqB_fP9.cjs → scatter-Bwkblr4L.cjs} +40 -38
- package/dist/scatter-Bwkblr4L.cjs.map +1 -0
- package/dist/{scatter-C0TWjFpW.js → scatter-DCMAtt5L.js} +38 -36
- package/dist/scatter-DCMAtt5L.js.map +1 -0
- package/dist/{scatter-DZeEIfyo.d.cts → scatter-DL0zAV09.d.cts} +7 -1
- package/dist/scatter.cjs +1 -1
- package/dist/scatter.d.cts +1 -1
- package/dist/scatter.d.ts +1 -1
- package/dist/scatter.js +1 -1
- package/dist/{sparkline-cbvRkWqS.d.ts → sparkline-BElUSd0r.d.ts} +1 -1
- package/dist/{sparkline-B39NA0Mi.cjs → sparkline-BMSuEPHP.cjs} +13 -15
- package/dist/sparkline-BMSuEPHP.cjs.map +1 -0
- package/dist/{sparkline-XO_TqCNP.js → sparkline-NDmq90kP.js} +13 -15
- package/dist/sparkline-NDmq90kP.js.map +1 -0
- package/dist/{sparkline-DAP6jtzw.d.cts → sparkline-RYly7bR0.d.cts} +1 -1
- package/dist/sparkline.cjs +1 -1
- package/dist/sparkline.d.cts +1 -1
- package/dist/sparkline.d.ts +1 -1
- package/dist/sparkline.js +1 -1
- package/dist/{stack-BgPzoQmv.cjs → stack-BO4624CY.cjs} +2 -2
- package/dist/{stack-BgPzoQmv.cjs.map → stack-BO4624CY.cjs.map} +1 -1
- package/dist/{stack-Dagxq7l2.d.cts → stack-BTWYIwLO.d.cts} +1 -1
- package/dist/{stack-2H2Gfs1Q.js → stack-jVKvg2x_.js} +2 -2
- package/dist/{stack-2H2Gfs1Q.js.map → stack-jVKvg2x_.js.map} +1 -1
- package/dist/style.css +1 -1
- package/dist/{time-axis-BjZ1bYTK.cjs → time-axis-B3VekUfX.cjs} +4 -3
- package/dist/{time-axis-BjZ1bYTK.cjs.map → time-axis-B3VekUfX.cjs.map} +1 -1
- package/dist/{time-axis-FLONo54E.js → time-axis-CLjqOakA.js} +3 -2
- package/dist/{time-axis-FLONo54E.js.map → time-axis-CLjqOakA.js.map} +1 -1
- package/dist/time.cjs +3 -3
- package/dist/time.js +3 -3
- package/dist/{treemap-BAkhmVQc.d.cts → treemap-25vHO_UK.d.cts} +12 -2
- package/dist/{treemap-BNpxFBao.d.ts → treemap-BCXUbixd.d.ts} +12 -2
- package/dist/{treemap-CQdavQ9u.js → treemap-C4glsx-g.js} +20 -25
- package/dist/treemap-C4glsx-g.js.map +1 -0
- package/dist/{treemap-BWpEUlDh.cjs → treemap-CZk8kKFD.cjs} +21 -26
- package/dist/treemap-CZk8kKFD.cjs.map +1 -0
- package/dist/treemap.cjs +1 -1
- package/dist/treemap.d.cts +1 -1
- package/dist/treemap.d.ts +1 -1
- package/dist/treemap.js +1 -1
- package/dist/{value-labels-BBuSi4i0.js → value-labels-C7GrhOXJ.js} +25 -5
- package/dist/value-labels-C7GrhOXJ.js.map +1 -0
- package/dist/{value-labels-BV9keAuL.cjs → value-labels-DzaKIWKp.cjs} +25 -5
- package/dist/value-labels-DzaKIWKp.cjs.map +1 -0
- package/dist/value-labels.cjs +2 -2
- package/dist/value-labels.d.cts +1 -1
- package/dist/value-labels.d.ts +1 -1
- package/dist/value-labels.js +2 -2
- package/package.json +93 -233
- package/dist/bar-BNZ3GhIw.js.map +0 -1
- package/dist/bar-Da6dE_nI.cjs.map +0 -1
- package/dist/cartesian-CI2x6N7N.js.map +0 -1
- package/dist/cartesian-DV02PsBe.cjs.map +0 -1
- package/dist/chart-DWn9v6qw.js.map +0 -1
- package/dist/chart-e2VqomCI.cjs.map +0 -1
- package/dist/core-BKRQvPAT.js.map +0 -1
- package/dist/core-DIOC61up.cjs.map +0 -1
- package/dist/dom-CuceR8gt.js.map +0 -1
- package/dist/dom-D_g13XWY.cjs.map +0 -1
- package/dist/export-chart-83UYH48t.js.map +0 -1
- package/dist/export-chart-mYgEfK-L.cjs.map +0 -1
- package/dist/fade-DVTkhrFU.cjs.map +0 -1
- package/dist/fade-GGxcBdss.js.map +0 -1
- package/dist/features-BMxkqCyS.js.map +0 -1
- package/dist/features-DCXEvoya.cjs.map +0 -1
- package/dist/gauge-DXkjXNCD.cjs.map +0 -1
- package/dist/gauge-ts0kqN1-.js.map +0 -1
- package/dist/heatmap-19BGJTKF.js.map +0 -1
- package/dist/heatmap-CXhlrLTl.cjs.map +0 -1
- package/dist/layout-DmrrLjwN.js.map +0 -1
- package/dist/layout-JY2aR-yE.cjs.map +0 -1
- package/dist/line-DO66LtwH.js.map +0 -1
- package/dist/line-Dbt6KFRK.cjs.map +0 -1
- package/dist/others-DWdK7vKp.cjs.map +0 -1
- package/dist/others-J7NCAMA0.js.map +0 -1
- package/dist/parliament-Cru4IcuM.js.map +0 -1
- package/dist/parliament-x5hcFaQ3.cjs.map +0 -1
- package/dist/percentage-bar-B6tNOqNn.js.map +0 -1
- package/dist/percentage-bar-ybNS3goo.cjs.map +0 -1
- package/dist/pie-BpjvSPnz.cjs.map +0 -1
- package/dist/pie-CVsc-6qD.js.map +0 -1
- package/dist/point-shapes--_gmdTyK.cjs.map +0 -1
- package/dist/point-shapes-DD2Ektzm.js.map +0 -1
- package/dist/radar-BR-mumDd.js.map +0 -1
- package/dist/radar-HPDrIdzc.cjs.map +0 -1
- package/dist/sankey-D6JeZfK5.js.map +0 -1
- package/dist/sankey-fCoo1cpz.cjs.map +0 -1
- package/dist/scatter-C0TWjFpW.js.map +0 -1
- package/dist/scatter-DVqB_fP9.cjs.map +0 -1
- package/dist/sparkline-B39NA0Mi.cjs.map +0 -1
- package/dist/sparkline-XO_TqCNP.js.map +0 -1
- package/dist/treemap-BWpEUlDh.cjs.map +0 -1
- package/dist/treemap-CQdavQ9u.js.map +0 -1
- package/dist/value-labels-BBuSi4i0.js.map +0 -1
- package/dist/value-labels-BV9keAuL.cjs.map +0 -1
|
@@ -39,37 +39,46 @@ interface Hit {
|
|
|
39
39
|
axis?: "x" | "y";
|
|
40
40
|
/** Center of the category along y, when categories run along y. */
|
|
41
41
|
y?: number;
|
|
42
|
-
/** The category's band in chart pixels, for band scales (bars). */
|
|
43
|
-
band?: {
|
|
44
|
-
x: number;
|
|
45
|
-
y: number;
|
|
46
|
-
width: number;
|
|
47
|
-
height: number;
|
|
48
|
-
};
|
|
49
42
|
/** Every series' value at this category. */
|
|
50
43
|
items: HitItem[];
|
|
51
44
|
/** Series of the mark directly under the pointer (e.g. a bar), if any. */
|
|
52
45
|
seriesIndex?: number;
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
* spoke). Tooltips from the keyboard then anchor on the value itself.
|
|
56
|
-
*/
|
|
57
|
-
guide?: {
|
|
58
|
-
x1: number;
|
|
59
|
-
y1: number;
|
|
60
|
-
x2: number;
|
|
61
|
-
y2: number;
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* A shape to highlight instead of a crosshair or band (e.g. a halo around a
|
|
65
|
-
* pie slice): path data `d`, drawn translated by `x` / `y`.
|
|
66
|
-
*/
|
|
67
|
-
mark?: {
|
|
68
|
-
d: string;
|
|
69
|
-
x: number;
|
|
70
|
-
y: number;
|
|
71
|
-
};
|
|
46
|
+
/** The shape that marks the hit; a crosshair when left out. */
|
|
47
|
+
highlight?: Highlight;
|
|
72
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
|
+
};
|
|
73
82
|
/** Maps a point in chart pixels to what lies there. */
|
|
74
83
|
type HitTester = (x: number, y: number) => Hit | null;
|
|
75
84
|
/** How a rendered chart answers pointer and keyboard interaction. */
|
|
@@ -80,6 +89,11 @@ interface Interaction {
|
|
|
80
89
|
hitIndex(index: number, seriesIndex?: number): Hit | null;
|
|
81
90
|
/** Number of categories. */
|
|
82
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;
|
|
83
97
|
/** Categories run from the right: the left arrow key goes to the next one. */
|
|
84
98
|
reversed?: boolean;
|
|
85
99
|
}
|
|
@@ -174,10 +188,23 @@ interface Series {
|
|
|
174
188
|
* (`@tabler/charts/line`, or `@tabler/charts`). Defaults to `'bar'`.
|
|
175
189
|
*/
|
|
176
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";
|
|
177
198
|
/** Extra classes on the series group. */
|
|
178
199
|
class?: ClassValue;
|
|
179
200
|
/** Start hidden (toggle it back from the legend). */
|
|
180
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;
|
|
181
208
|
}
|
|
182
209
|
interface CartesianData {
|
|
183
210
|
/** Categories along x. Defaults to `1…n` for the longest series. */
|
|
@@ -188,6 +215,11 @@ interface CartesianData {
|
|
|
188
215
|
interface ValueAxisOptions {
|
|
189
216
|
/** Render the axis labels. Defaults to `true`. */
|
|
190
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;
|
|
191
223
|
/** Render horizontal grid lines. Defaults to `true`. */
|
|
192
224
|
grid?: boolean;
|
|
193
225
|
/** Fixed lower bound; overrides data and `zero`. */
|
|
@@ -208,6 +240,8 @@ interface ValueAxisOptions {
|
|
|
208
240
|
interface CategoryAxisOptions {
|
|
209
241
|
/** Render the axis labels. Defaults to `true`. */
|
|
210
242
|
show?: boolean;
|
|
243
|
+
/** Title of the axis, below its labels. */
|
|
244
|
+
title?: string;
|
|
211
245
|
/** Render vertical grid lines. Defaults to `false`. */
|
|
212
246
|
grid?: boolean;
|
|
213
247
|
/** Draw the axis line along the bottom edge. Defaults to `false`. */
|
|
@@ -229,6 +263,12 @@ interface CategoryAxisOptions {
|
|
|
229
263
|
interface CartesianOptions {
|
|
230
264
|
data: CartesianData;
|
|
231
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;
|
|
232
272
|
x?: CategoryAxisOptions;
|
|
233
273
|
/** Reference lines and bands: targets, normal ranges, events and periods. */
|
|
234
274
|
annotations?: readonly Annotation[];
|
|
@@ -242,10 +282,14 @@ interface CartesianLayout {
|
|
|
242
282
|
x: BandScale;
|
|
243
283
|
/** Value scale (along y, or along x when `horizontal`). */
|
|
244
284
|
y: LinearScale;
|
|
285
|
+
/** Scale of the second value axis, when a series uses it. */
|
|
286
|
+
y2?: LinearScale;
|
|
245
287
|
/** Whether categories run along y. */
|
|
246
288
|
horizontal: boolean;
|
|
247
289
|
xTicks: Tick[];
|
|
248
290
|
yTicks: Tick[];
|
|
291
|
+
/** Ticks of the second value axis (with `y2`). */
|
|
292
|
+
y2Ticks?: Tick[];
|
|
249
293
|
/** Grid lines, drawn below the marks. */
|
|
250
294
|
background: VNode[];
|
|
251
295
|
/** Axes, drawn above the marks. */
|
|
@@ -286,7 +330,7 @@ declare function categoryInteraction(layout: CartesianLayout, options: Cartesian
|
|
|
286
330
|
box?: Rect;
|
|
287
331
|
}, markAt?: (x: number, y: number, index: number) => number | undefined): Interaction;
|
|
288
332
|
/** Accessible table of series values: one row per category, one column per visible series. */
|
|
289
|
-
declare function seriesTable(options: CartesianOptions, ctx:
|
|
333
|
+
declare function seriesTable(options: CartesianOptions, ctx: TableContext, limit?: number): DataTable;
|
|
290
334
|
/**
|
|
291
335
|
* Formatter for date labels on a time axis (tooltips, tables, band axes):
|
|
292
336
|
* the date, with the time of day when the labels span less than a few days.
|
|
@@ -309,14 +353,21 @@ interface LegendItem {
|
|
|
309
353
|
hidden?: boolean;
|
|
310
354
|
}
|
|
311
355
|
interface LegendOptions {
|
|
312
|
-
/**
|
|
313
|
-
|
|
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";
|
|
314
364
|
}
|
|
315
365
|
/**
|
|
316
366
|
* Legend content: one toggle button per entry. Buttons are native, so they
|
|
317
367
|
* are focusable and work with Enter/Space; `aria-pressed` reflects visibility.
|
|
368
|
+
* `shape` gives the swatches the point shapes of their slots.
|
|
318
369
|
*/
|
|
319
|
-
declare function legendContent(items: readonly LegendItem[], hidden: ReadonlySet<string
|
|
370
|
+
declare function legendContent(items: readonly LegendItem[], hidden: ReadonlySet<string>, shape?: SwatchShape): VNode;
|
|
320
371
|
/** Keys hidden by default, from the entries' own `hidden` flags. */
|
|
321
372
|
declare function defaultHidden(items: readonly LegendItem[]): Set<string>;
|
|
322
373
|
/** `<pattern>` elements for the legend entries of a chart. */
|
|
@@ -332,7 +383,16 @@ declare function patternVars(items: readonly LegendItem[], id: string): Record<s
|
|
|
332
383
|
declare function patternFills(config: ChartConfig<object>, id: string): [string, Record<string, string>, VNode] | undefined;
|
|
333
384
|
/** The path of slot `slot`'s marker of radius `r` around (`x`, `y`). */
|
|
334
385
|
declare function markerPath(slot: number, x: number, y: number, r: number): string;
|
|
335
|
-
/**
|
|
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
|
+
*/
|
|
336
396
|
declare const shapesStep: PostStep;
|
|
337
397
|
/**
|
|
338
398
|
* A time category axis: points at their real distance in time, ticks on
|
|
@@ -427,7 +487,7 @@ interface Features {
|
|
|
427
487
|
hydrate?: typeof hydrate;
|
|
428
488
|
/** Path morphing on data updates where CSS cannot transition `d` (Safari). */
|
|
429
489
|
morph?: typeof morph;
|
|
430
|
-
/** Arcs turning to their new angles on data updates (
|
|
490
|
+
/** Arcs turning to their new angles on data updates (installed by a chart whose type has `sweep`). */
|
|
431
491
|
sweep?: typeof sweep;
|
|
432
492
|
/** Line and area paths behind `series.type: 'line' | 'area'` in bar charts. */
|
|
433
493
|
line?: {
|
|
@@ -448,12 +508,19 @@ interface Features {
|
|
|
448
508
|
post?: PostStep;
|
|
449
509
|
/** Point shapes by color slot, behind `shapes`. */
|
|
450
510
|
"point-shapes"?: typeof markerPath;
|
|
511
|
+
/** The same shapes for legend and tooltip swatches, as CSS shapes. */
|
|
512
|
+
swatch?: typeof markerClip;
|
|
451
513
|
/** Saving a chart as a file, behind the `download` menu. */
|
|
452
514
|
export?: typeof downloadChart;
|
|
453
515
|
}
|
|
454
516
|
declare const features: Features;
|
|
455
517
|
/** Register optional features (idempotent). */
|
|
456
518
|
declare function register(added: Features): void;
|
|
519
|
+
/**
|
|
520
|
+
* Inline style that gives the swatch of a legend or tooltip entry the point
|
|
521
|
+
* shape of its color slot (the stylesheet applies it when points are drawn).
|
|
522
|
+
*/
|
|
523
|
+
type SwatchShape = (slot: number) => Record<string, string | number> | undefined;
|
|
457
524
|
/** A step that finishes rendered chart content, e.g. by adding value labels. */
|
|
458
525
|
type PostStep = (config: ChartConfig<object>, content: ChildInput, interaction: Interaction | undefined, ctx: RenderContext) => ChildInput;
|
|
459
526
|
/** The registered feature, or a helpful error naming the import that provides it. */
|
|
@@ -488,6 +555,8 @@ interface PluginInstance {
|
|
|
488
555
|
beforeRender?(state: BeforeRenderState): void;
|
|
489
556
|
/** Vertical space the plugin takes from the container in `height: 'container'` mode. */
|
|
490
557
|
reservedHeight?(): number;
|
|
558
|
+
/** Horizontal space the plugin takes from the container, e.g. a legend beside the chart. */
|
|
559
|
+
reservedWidth?(): number;
|
|
491
560
|
/** Extra attributes for the root `<svg>`. */
|
|
492
561
|
svgAttrs?(config: ChartConfig<object>): Props | undefined;
|
|
493
562
|
/** SVG drawn below (`under`) and above (`over`) the chart content for the active hit. */
|
|
@@ -569,8 +638,11 @@ interface TooltipOptions {
|
|
|
569
638
|
/** Extra content below the default rows (e.g. a total), in `.tc-tooltip-footer`. */
|
|
570
639
|
footer?: (hit: Hit) => ChildInput;
|
|
571
640
|
}
|
|
572
|
-
/**
|
|
573
|
-
|
|
641
|
+
/**
|
|
642
|
+
* Default tooltip content: the category title and one row per series
|
|
643
|
+
* (`shape` gives their swatches the point shapes of their slots).
|
|
644
|
+
*/
|
|
645
|
+
declare function tooltipContent(hit: Hit, options?: TooltipOptions, shape?: SwatchShape): VNode;
|
|
574
646
|
interface TooltipPlacement {
|
|
575
647
|
x: number;
|
|
576
648
|
y: number;
|
|
@@ -603,18 +675,32 @@ interface RenderContext {
|
|
|
603
675
|
locale: Locale;
|
|
604
676
|
/** Unique, stable prefix for ids inside this chart. */
|
|
605
677
|
id: string;
|
|
606
|
-
/** Register how pointer and keyboard map to data (ignored in SSR). */
|
|
607
|
-
onHitTest(interaction: Interaction): void;
|
|
608
678
|
/** Keys of legend entries (series) currently hidden. */
|
|
609
679
|
hidden: ReadonlySet<string>;
|
|
610
680
|
/** Lay the chart out right to left (the `rtl` option, resolved). */
|
|
611
681
|
rtl?: boolean;
|
|
612
682
|
}
|
|
683
|
+
/** What a chart type's `table()` sees: no size, since a table has none. */
|
|
684
|
+
type TableContext = Pick<RenderContext, "locale" | "hidden" | "rtl">;
|
|
685
|
+
/**
|
|
686
|
+
* What a chart type renders for one size: the content of the root `<svg>`,
|
|
687
|
+
* and how pointer and keyboard map to its data (none, when left out).
|
|
688
|
+
*/
|
|
689
|
+
interface RenderResult {
|
|
690
|
+
content: ChildInput;
|
|
691
|
+
interaction?: Interaction;
|
|
692
|
+
}
|
|
613
693
|
/**
|
|
614
|
-
* A chart type plugin (`line`, `bar`, …).
|
|
615
|
-
*
|
|
694
|
+
* A chart type plugin (`line`, `bar`, …). Works out its model from the chart
|
|
695
|
+
* options and renders it into the content of the root `<svg>`.
|
|
696
|
+
*
|
|
697
|
+
* `M` is the chart model, what `prepare()` works out from the options alone
|
|
698
|
+
* (the options themselves for a type without `prepare()`): `render()`,
|
|
699
|
+
* `legend()`, `table()` and `height()` all read it, so a type groups or sorts
|
|
700
|
+
* its data once per config, not once for each of them. `ChartType<never>`
|
|
701
|
+
* stands for any chart type.
|
|
616
702
|
*/
|
|
617
|
-
interface ChartType<O extends object = object> {
|
|
703
|
+
interface ChartType<O extends object = object, M extends object = [O] extends [never] ? object : O> {
|
|
618
704
|
readonly name: string;
|
|
619
705
|
/**
|
|
620
706
|
* Clean options that may come from outside (data, annotations, axis
|
|
@@ -622,14 +708,27 @@ interface ChartType<O extends object = object> {
|
|
|
622
708
|
* as the config comes in, before anything reads it.
|
|
623
709
|
*/
|
|
624
710
|
clean?(options: O): unknown;
|
|
625
|
-
|
|
711
|
+
/**
|
|
712
|
+
* The chart model of the (cleaned) options: whatever the legend, the table
|
|
713
|
+
* and every render share. It knows neither the size nor the hidden series
|
|
714
|
+
* (the legend that hides them reads it). Called once per config.
|
|
715
|
+
*/
|
|
716
|
+
prepare?(options: O): M;
|
|
717
|
+
/** The chart content for a size: bare content, or with its interaction. */
|
|
718
|
+
render(model: M, context: RenderContext): ChildInput | RenderResult;
|
|
719
|
+
/**
|
|
720
|
+
* Height in pixels at a width, for a type whose proportions are not one
|
|
721
|
+
* ratio (parts of it keep their size as it narrows). Asked when `height`
|
|
722
|
+
* is not set; `undefined` leaves it to `aspectRatio`.
|
|
723
|
+
*/
|
|
724
|
+
height?(model: M, width: number): number | undefined;
|
|
626
725
|
/** Entries for the legend (series, slices); charts without it get no legend. */
|
|
627
|
-
legend?(
|
|
726
|
+
legend?(model: M): LegendItem[];
|
|
628
727
|
/**
|
|
629
728
|
* The data as a text table, for screen readers and the visible table
|
|
630
729
|
* option. `limit` is the most rows wanted; report the real count in `total`.
|
|
631
730
|
*/
|
|
632
|
-
table?(
|
|
731
|
+
table?(model: M, context: TableContext, limit: number): DataTable;
|
|
633
732
|
/**
|
|
634
733
|
* Whether the chart should be focusable and keyboard-navigable by default
|
|
635
734
|
* (`keyboard` in the config overrides it). Decorative types such as
|
|
@@ -643,10 +742,22 @@ interface ChartType<O extends object = object> {
|
|
|
643
742
|
* names the number format of the values in the options (by default a label
|
|
644
743
|
* shows the text of the tooltip).
|
|
645
744
|
*/
|
|
745
|
+
/**
|
|
746
|
+
* How the chart's marks turn to new data in the DOM, where CSS cannot
|
|
747
|
+
* animate them (arcs sweeping to their new angles). A chart in the page
|
|
748
|
+
* installs it; it is part of the type, not of a module that loads, so it
|
|
749
|
+
* ships only with the types that use it.
|
|
750
|
+
*/
|
|
751
|
+
readonly sweep?: Features["sweep"];
|
|
646
752
|
readonly valueLabels?: {
|
|
647
753
|
marks?: "slice" | "cell";
|
|
648
|
-
format?(
|
|
754
|
+
format?(model: M): NumberFormat | undefined;
|
|
649
755
|
};
|
|
756
|
+
/**
|
|
757
|
+
* Plugins the chart type brings along (the zoom of a map), installed after
|
|
758
|
+
* the default ones when a chart is created with this type.
|
|
759
|
+
*/
|
|
760
|
+
readonly plugins?: readonly ChartPlugin[];
|
|
650
761
|
}
|
|
651
762
|
/** Options shared by every chart type. */
|
|
652
763
|
interface BaseOptions {
|
|
@@ -672,7 +783,8 @@ interface BaseOptions {
|
|
|
672
783
|
* and categories running from the right (`x.reverse` overrides the latter).
|
|
673
784
|
* `'auto'` follows the `direction` of the container (left to right in SSR).
|
|
674
785
|
* The legend, the tooltip and the download menu read right to left with it.
|
|
675
|
-
* Cartesian charts, heatmaps, sparklines
|
|
786
|
+
* Cartesian charts, heatmaps, sparklines, sankey diagrams and percentage
|
|
787
|
+
* bars. Defaults to `false`.
|
|
676
788
|
*/
|
|
677
789
|
rtl?: boolean | "auto";
|
|
678
790
|
/**
|
|
@@ -708,8 +820,10 @@ interface BaseOptions {
|
|
|
708
820
|
* Write the values on the marks: bars at their end, stacked segments,
|
|
709
821
|
* cells and slices inside (slices show their share), lines and points
|
|
710
822
|
* above their last point (`points: 'all'` for every one). Labels that do
|
|
711
|
-
* not fit are left out.
|
|
712
|
-
*
|
|
823
|
+
* not fit are left out. A series' own `valueLabels` overrides this for
|
|
824
|
+
* that series, and each label carries its series classes
|
|
825
|
+
* (`tc-series tc-series-{n}`). Needs `@tabler/charts/value-labels` on the
|
|
826
|
+
* core (`@tabler/charts` includes it).
|
|
713
827
|
*/
|
|
714
828
|
valueLabels?: boolean | ValueLabelOptions;
|
|
715
829
|
/**
|
|
@@ -754,7 +868,7 @@ interface BaseOptions {
|
|
|
754
868
|
}
|
|
755
869
|
/** Full chart configuration: base options, the chart type and its options. */
|
|
756
870
|
type ChartConfig<O extends object = object> = BaseOptions & O & {
|
|
757
|
-
type: ChartType<O>;
|
|
871
|
+
type: ChartType<O, object>;
|
|
758
872
|
};
|
|
759
873
|
interface Size {
|
|
760
874
|
width: number;
|
|
@@ -762,13 +876,29 @@ interface Size {
|
|
|
762
876
|
}
|
|
763
877
|
/** Resolve the final pixel size from options and the measured container size. */
|
|
764
878
|
declare function resolveSize(options: BaseOptions, measured?: Partial<Size>): Size;
|
|
765
|
-
/**
|
|
766
|
-
|
|
879
|
+
/**
|
|
880
|
+
* The chart model of a config: what its type's `prepare()` works out from
|
|
881
|
+
* it, once per config object, or the config itself for a type without one.
|
|
882
|
+
*/
|
|
883
|
+
declare function chartModel(config: ChartConfig<object>): object;
|
|
884
|
+
/** What a render context is made for, besides the config. */
|
|
885
|
+
interface ContextOptions {
|
|
886
|
+
size: Size;
|
|
887
|
+
/** Id prefix of the chart. */
|
|
888
|
+
id: string;
|
|
889
|
+
hidden: ReadonlySet<string>;
|
|
890
|
+
/** Measured font size, used when the config sets none. */
|
|
891
|
+
fontSize?: number;
|
|
892
|
+
/** The resolved `rtl` option; by default `rtl: true` in the config. */
|
|
893
|
+
rtl?: boolean;
|
|
894
|
+
}
|
|
895
|
+
/** Render context for a config and size. */
|
|
896
|
+
declare function renderContext<O extends object>(config: ChartConfig<O>, { size, id, hidden, fontSize, rtl }: ContextOptions): RenderContext;
|
|
767
897
|
/** Legend entries of a config, whether a legend is shown and where. */
|
|
768
898
|
interface ResolvedLegend {
|
|
769
899
|
items: LegendItem[];
|
|
770
900
|
show: boolean;
|
|
771
|
-
position: "
|
|
901
|
+
position: NonNullable<LegendOptions["position"]>;
|
|
772
902
|
}
|
|
773
903
|
/** Legend entries of a config, and whether the legend is shown. */
|
|
774
904
|
declare function resolveLegend<O extends object>(config: ChartConfig<O>): ResolvedLegend;
|
|
@@ -779,11 +909,18 @@ declare function resolveLegend<O extends object>(config: ChartConfig<O>): Resolv
|
|
|
779
909
|
* page's language.
|
|
780
910
|
*/
|
|
781
911
|
declare function chartLabel(config: ChartConfig<object>): string;
|
|
912
|
+
/** A chart built without the DOM: its root `<svg>`, and how it answers interaction. */
|
|
913
|
+
interface BuiltChart {
|
|
914
|
+
svg: VNode;
|
|
915
|
+
interaction?: Interaction;
|
|
916
|
+
}
|
|
782
917
|
/**
|
|
783
|
-
* Build
|
|
784
|
-
*
|
|
918
|
+
* Build a chart for a size: a pure function of the config and size, shared
|
|
919
|
+
* by the DOM chart and server-side rendering. `buildChart()` keeps the svg.
|
|
785
920
|
*/
|
|
786
|
-
declare function
|
|
921
|
+
declare function renderChart<O extends object>(config: ChartConfig<O>, size: Size, id?: string): BuiltChart;
|
|
922
|
+
/** Build the VNode tree of a chart for a size (see `renderChart()`). */
|
|
923
|
+
declare function buildChart<O extends object>(config: ChartConfig<O>, size: Size, id?: string): VNode;
|
|
787
924
|
/**
|
|
788
925
|
* Render a chart to an SVG string, e.g. on the server.
|
|
789
926
|
*
|
|
@@ -837,10 +974,10 @@ type Handler<T> = (event: T) => void;
|
|
|
837
974
|
declare class Chart<O extends object = object> {
|
|
838
975
|
#private;
|
|
839
976
|
/** Element the chart renders into. */
|
|
840
|
-
readonly element:
|
|
977
|
+
readonly element: HTMLElement;
|
|
841
978
|
/** Id prefix used for elements inside the chart. */
|
|
842
979
|
readonly id: string;
|
|
843
|
-
constructor(target:
|
|
980
|
+
constructor(target: HTMLElement | string, config: ChartConfig<O>, defaultPlugins?: readonly ChartPlugin[]);
|
|
844
981
|
/** Current configuration. */
|
|
845
982
|
get config(): ChartConfig<O>;
|
|
846
983
|
/** Size of the last render. */
|
|
@@ -913,4 +1050,4 @@ declare class Chart<O extends object = object> {
|
|
|
913
1050
|
/** Call the handlers of an event (plugins emit `click`, for instance). */
|
|
914
1051
|
emit<K extends keyof ChartEvents>(name: K, event: ChartEvents[K]): void;
|
|
915
1052
|
}
|
|
916
|
-
export {
|
|
1053
|
+
export { patternFills as $, download as A, HitItem as At, features as B, TooltipPlacement as C, linearTicks as Ct, DownloadFormat as D, tableContent as Dt, tooltipContent as E, describeHit as Et, ValueLabelOptions as F, ImageOptions as G, DownloadOptions as H, labelsStep as I, exportSVG as J, downloadChart as K, valueLabels as L, BeforeRenderState as M, Interaction as Mt, ChartPlugin as N, DownloadMenuOptions as O, Highlight as Ot, PluginInstance as P, patternDefs as Q, Features as R, TooltipOptions as S, bandTicks as St, placeTooltip as T, DataTable as Tt, ExportOptions as U, register as V, ExportTarget as W, markerPath as X, markerClip as Y, shapesStep as Z, chartToString as _, AxisPosition as _t, ChartEvents as a, CartesianData as at, resolveLegend as b, axis as bt, RenderContext as c, Label as ct, Size as d, categoryInteraction as dt, patternVars as et, TableContext as f, domainOf as ft, chartModel as g, AxisOptions as gt, chartLabel as h, seriesTable as ht, ChartConfig as i, legendContent as it, AfterRenderState as j, HitTester as jt, DownloadOption as k, Hit as kt, RenderResult as l, Series as lt, chartEvents as m, seriesLegend as mt, BuiltChart as n, LegendOptions as nt, ChartType as o, CartesianOptions as ot, buildChart as p, seriesKey as pt, exportImage as q, Chart as r, defaultHidden as rt, ContextOptions as s, CategoryAxisOptions as st, BaseOptions as t, LegendItem as tt, ResolvedLegend as u, ValueAxisOptions as ut, renderChart as v, LinearTicksOptions as vt, hitAnchor as w, thinTicks as wt, resolveSize as x, axisSize as xt, renderContext as y, Tick as yt, feature as z };
|