@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
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
const
|
|
1
|
+
const require_axis = require("./axis-YfAerNBA.cjs");
|
|
2
2
|
const require_format = require("./format-CAE5ruy6.cjs");
|
|
3
|
-
const require_layout = require("./layout-
|
|
3
|
+
const require_layout = require("./layout-Cfg9x1k2.cjs");
|
|
4
|
+
const require_cartesian = require("./cartesian-DRSXHxWe.cjs");
|
|
4
5
|
const require_extent = require("./extent-DuYDcvM9.cjs");
|
|
5
|
-
const require_rect = require("./rect-
|
|
6
|
+
const require_rect = require("./rect-DPr9QRxl.cjs");
|
|
6
7
|
const require_vnode = require("./vnode-ClAiw28x.cjs");
|
|
7
8
|
const require_clean = require("./clean-Die2iCNc.cjs");
|
|
8
9
|
// src/charts/heatmap.ts
|
|
@@ -18,7 +19,7 @@ const rangeOf = (ranges, v) => ranges.findIndex((r) => (r.from === void 0 || v >
|
|
|
18
19
|
/** Color of a palette slot by series index, as the CSS classes would pick it. */
|
|
19
20
|
const slotColor = (series, index) => series.color ?? (index < 8 ? `var(--tc-color-${index + 1})` : "var(--tc-color-other)");
|
|
20
21
|
function renderHeatmap(options, ctx) {
|
|
21
|
-
const { width,
|
|
22
|
+
const { width, fontSize, locale } = ctx;
|
|
22
23
|
const { gap = 2, radius = 3 } = options;
|
|
23
24
|
const labels = require_cartesian.resolveLabels(options.data);
|
|
24
25
|
const formatLabel = options.x?.format ?? ((label) => String(label));
|
|
@@ -73,7 +74,6 @@ function renderHeatmap(options, ctx) {
|
|
|
73
74
|
};
|
|
74
75
|
};
|
|
75
76
|
const { rtl } = ctx;
|
|
76
|
-
const pad = require_layout.mirrorSides(require_layout.insets(options.padding, 0), rtl);
|
|
77
77
|
const showX = options.x?.show !== false && labels.length > 0;
|
|
78
78
|
const showY = options.y?.show !== false && rows.length > 0;
|
|
79
79
|
const rowTicks = rows.map((s, i) => ({
|
|
@@ -81,22 +81,23 @@ function renderHeatmap(options, ctx) {
|
|
|
81
81
|
position: 0,
|
|
82
82
|
label: s.name
|
|
83
83
|
}));
|
|
84
|
-
const left = showY ?
|
|
85
|
-
const bottom = showX ?
|
|
84
|
+
const left = showY ? require_axis.axisSize("left", rowTicks, fontSize) : 0;
|
|
85
|
+
const bottom = showX ? require_axis.axisSize("bottom", [{
|
|
86
86
|
value: 0,
|
|
87
87
|
position: 0,
|
|
88
88
|
label: "M"
|
|
89
89
|
}], fontSize) : 0;
|
|
90
90
|
const lastLabel = showX ? require_layout.estimateTextWidth(formatLabel(labels[labels.length - 1], labels.length - 1), fontSize) : 0;
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
91
|
+
const { area, side, range } = require_layout.plotFrame(ctx, options.padding, (pad) => {
|
|
92
|
+
const halfColumn = (width - pad.start - pad.end - left) / Math.max(1, labels.length) / 2;
|
|
93
|
+
return {
|
|
94
|
+
top: pad.top,
|
|
95
|
+
bottom: pad.bottom + bottom,
|
|
96
|
+
start: pad.start + left,
|
|
97
|
+
end: pad.end + Math.max(0, Math.ceil(lastLabel / 2 - halfColumn))
|
|
98
|
+
};
|
|
99
|
+
});
|
|
100
|
+
const x = require_cartesian.band(labels.map((_, i) => i), range());
|
|
100
101
|
const y = require_cartesian.band(rows.map((_, i) => i), [area.y, area.y + area.height]);
|
|
101
102
|
const cellW = Math.max(0, x.bandwidth - gap);
|
|
102
103
|
const cellH = Math.max(0, y.bandwidth - gap);
|
|
@@ -136,10 +137,9 @@ function renderHeatmap(options, ctx) {
|
|
|
136
137
|
area,
|
|
137
138
|
items,
|
|
138
139
|
seriesIndex: j,
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
y: 0
|
|
140
|
+
highlight: {
|
|
141
|
+
kind: "halo",
|
|
142
|
+
d: require_rect.rectPath(cellX(i) - 2, cellY(j) - 2, cellW + 4, cellH + 4, radius + 2)
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
};
|
|
@@ -155,7 +155,6 @@ function renderHeatmap(options, ctx) {
|
|
|
155
155
|
return hitAt(i, j);
|
|
156
156
|
}
|
|
157
157
|
};
|
|
158
|
-
ctx.onHitTest(interaction);
|
|
159
158
|
const cells = rows.map((s, j) => require_vnode.h("g", {
|
|
160
159
|
key: require_cartesian.seriesKey(s),
|
|
161
160
|
class: ["tc-heatmap-row", bySeries && ["tc-series", `tc-series-${slot(s) + 1}`]],
|
|
@@ -175,21 +174,24 @@ function renderHeatmap(options, ctx) {
|
|
|
175
174
|
style: painted?.style
|
|
176
175
|
});
|
|
177
176
|
})));
|
|
178
|
-
const xTicks = showX ?
|
|
179
|
-
const yTicks = showY ?
|
|
180
|
-
return
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
177
|
+
const xTicks = showX ? require_axis.thinTicks(require_axis.bandTicks(x, (_, i) => formatLabel(labels[i], i)), "bottom", fontSize) : [];
|
|
178
|
+
const yTicks = showY ? require_axis.bandTicks(y, (_, j) => rows[j]?.name ?? "") : [];
|
|
179
|
+
return {
|
|
180
|
+
content: [
|
|
181
|
+
require_vnode.h("g", { class: "tc-heatmap-cells" }, cells),
|
|
182
|
+
showX && require_axis.axis({
|
|
183
|
+
position: "bottom",
|
|
184
|
+
ticks: xTicks,
|
|
185
|
+
area
|
|
186
|
+
}),
|
|
187
|
+
showY && require_axis.axis({
|
|
188
|
+
position: side,
|
|
189
|
+
ticks: yTicks,
|
|
190
|
+
area
|
|
191
|
+
})
|
|
192
|
+
],
|
|
193
|
+
interaction
|
|
194
|
+
};
|
|
193
195
|
}
|
|
194
196
|
/** Legend: the ranges, or the rows when colored by series; none for a single scale. */
|
|
195
197
|
function heatmapLegend(options) {
|
|
@@ -242,4 +244,4 @@ Object.defineProperty(exports, "heatmap", {
|
|
|
242
244
|
}
|
|
243
245
|
});
|
|
244
246
|
|
|
245
|
-
//# sourceMappingURL=heatmap-
|
|
247
|
+
//# sourceMappingURL=heatmap-Dcc_bsoQ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heatmap-Dcc_bsoQ.cjs","names":["round","resolveLabels","formatNumber","extent","seriesKey","axisSize","estimateTextWidth","plotFrame","band","labelKey","rectPath","h","thinTicks","bandTicks","axis","seriesLegend","cleanData","cleanSeries","seriesTable"],"sources":["../src/charts/heatmap.ts"],"sourcesContent":["import type { ChartType, LegendItem, RenderContext } from '../chart.ts'\nimport { axis, axisSize, bandTicks, thinTicks } from '../components/axis.ts'\nimport { formatNumber, type Locale, type NumberFormat } from '../format.ts'\nimport type { Hit, HitItem, Interaction } from '../interaction.ts'\nimport { estimateTextWidth, type InsetsInput, plotFrame, round } from '../layout.ts'\nimport { band } from '../scales/band.ts'\nimport { extent } from '../scales/extent.ts'\nimport { rectPath } from '../shapes/rect.ts'\nimport { h, type StyleValue } from '../vnode.ts'\nimport {\n type CartesianData,\n type Label,\n labelKey,\n resolveLabels,\n type Series,\n seriesKey,\n seriesLegend,\n seriesTable,\n} from './cartesian.ts'\nimport { cleanData, cleanSeries } from './clean.ts'\n\n/** A band of values drawn in one color, with its own legend entry. */\nexport interface HeatmapRange {\n /** Lowest value in the band (inclusive). Leave it out for \"everything below `to`\". */\n from?: number\n /** Value where the band ends (exclusive). Leave it out on the last band. */\n to?: number\n /**\n * Any CSS color, including `var(--tc-color-3)`.\n * Values that could inject CSS (`;`, quotes, `url()` …) are ignored, so colors from user data are safe.\n */\n color: string\n /** Legend and tooltip name, e.g. `'High'`. Defaults to the range, e.g. `10–30`. */\n name?: string\n}\n\nexport interface HeatmapOptions {\n /** Columns are the labels, rows are the series (first series on top). */\n data: CartesianData\n /** Value shown with the lightest shade (or the first color). Defaults to the smaller of `0` and the data minimum. */\n min?: number\n /** Value shown with the full color (or the last color). Defaults to the data maximum. */\n max?: number\n /**\n * Discrete bands of values, each in its own color and legend entry (which\n * also hides the band's cells). Takes precedence over `colors` and `colorBy`.\n */\n ranges?: readonly HeatmapRange[]\n /**\n * A continuous scale through two or more colors (any CSS color, including\n * `var(--tc-…)`), from `min` to `max`. For values around a reference\n * point, use two hues with a neutral middle, e.g.\n * `['var(--tc-color-1)', 'var(--tc-grid-color)', 'var(--tc-color-8)']`.\n * Values that could inject CSS are ignored, as for series colors.\n */\n colors?: readonly string[]\n /** Value placed on the middle color of `colors` (e.g. `0` for changes). Defaults to halfway. */\n mid?: number\n /**\n * `'series'` shades every row in its own palette color (with a legend of\n * the rows); `'value'` (the default) uses one hue, `--tc-heat-color`.\n */\n colorBy?: 'value' | 'series'\n /** Space between cells in pixels, drawn as surface. Defaults to `2`. */\n gap?: number\n /** Corner radius of the cells. Defaults to `3`. */\n radius?: number\n /** Format of the values (tooltip, table). */\n format?: NumberFormat\n /** Column labels along the bottom. */\n x?: { show?: boolean; format?: (label: Label, index: number) => string }\n /** Row names on the left. */\n y?: { show?: boolean }\n /** Extra space around the grid, in pixels. */\n padding?: InsetsInput\n}\n\n/** Share of the full color at the minimum, so zero still reads as a value, not a gap. */\nconst FLOOR = 0.08\n\nconst EMPTY = 'var(--tc-heat-empty,var(--tc-grid-color))'\n\n/** Cell color at `share` (0…1) of the way from the empty shade to `color`. */\nconst shade = (share: number, color = 'var(--tc-heat-color,var(--tc-color-1))'): string =>\n `color-mix(in oklab,${color} ${round(share * 100)}%,${EMPTY})`\n\n/** Legend key of a range. */\nconst rangeKey = (range: HeatmapRange, index: number): string => range.name ?? `range-${index + 1}`\n\n/** The first range containing `v` (`from` inclusive, `to` exclusive). */\nconst rangeOf = (ranges: readonly HeatmapRange[], v: number): number =>\n ranges.findIndex((r) => (r.from === undefined || v >= r.from) && (r.to === undefined || v < r.to))\n\n/** Color of a palette slot by series index, as the CSS classes would pick it. */\nconst slotColor = (series: Series, index: number): string =>\n series.color ?? (index < 8 ? `var(--tc-color-${index + 1})` : 'var(--tc-color-other)')\n\n/** How one cell is painted: inline style, the tooltip swatch, and whether it is drawn empty. */\ninterface Paint {\n style?: StyleValue\n color: string\n empty?: boolean\n}\n\nfunction renderHeatmap(options: HeatmapOptions, ctx: RenderContext) {\n const { width, fontSize, locale } = ctx\n const { gap = 2, radius = 3 } = options\n const labels = resolveLabels(options.data)\n const formatLabel = options.x?.format ?? ((label: Label) => String(label))\n const value = formatNumber(options.format, locale)\n\n // Color domain.\n const all = options.data.series.flatMap((s) => s.values)\n const [dataMin, dataMax] = extent(all) ?? [0, 1]\n const lo = options.min ?? Math.min(0, dataMin)\n const hi = options.max ?? dataMax\n /** Position of a value in the domain, 0…1 (through `mid` for a scale with a middle). */\n const position = (v: number) => {\n const { mid } = options\n let t: number\n if (mid !== undefined && options.colors && lo < mid && mid < hi) {\n t = v <= mid ? ((v - lo) / (mid - lo)) * 0.5 : 0.5 + ((v - mid) / (hi - mid)) * 0.5\n } else {\n t = hi > lo ? (v - lo) / (hi - lo) : v > lo ? 1 : 0\n }\n return Math.min(1, Math.max(0, t))\n }\n const share = (v: number) => FLOOR + (1 - FLOOR) * position(v)\n\n const ranges = options.ranges?.length ? options.ranges : undefined\n const stops = !ranges && options.colors && options.colors.length >= 2 ? options.colors : undefined\n const bySeries = !ranges && !stops && options.colorBy === 'series'\n // Rows hidden from the legend (rows are legend entries when colored by series).\n const rows = bySeries\n ? options.data.series.filter((s) => !ctx.hidden.has(seriesKey(s)))\n : options.data.series\n const slot = (row: Series) => options.data.series.indexOf(row)\n\n /** How the cell of `row` with value `v` is painted in the active color mode. */\n const paint = (v: number, row: Series): Paint => {\n if (ranges) {\n const index = rangeOf(ranges, v)\n const range = ranges[index]\n if (!range || ctx.hidden.has(rangeKey(range, index))) return { color: EMPTY, empty: true }\n return { style: { '--tc-cell-fill': range.color }, color: range.color }\n }\n if (stops) {\n const at = position(v) * (stops.length - 1)\n const k = Math.min(stops.length - 2, Math.floor(at))\n const u = round((at - k) * 100)\n const from = stops[k] as string\n const color =\n u <= 0\n ? from\n : u >= 100\n ? (stops[k + 1] as string)\n : `color-mix(in oklab,${stops[k + 1]} ${u}%,${from})`\n return { style: { '--tc-cell-fill': color }, color }\n }\n const pct = share(v)\n return {\n style: `--tc-heat:${round(pct * 100)}%`,\n color: bySeries ? shade(pct, slotColor(row, slot(row))) : shade(pct),\n }\n }\n\n // Margins for the labels, then one band per column and per row.\n const { rtl } = ctx\n const showX = options.x?.show !== false && labels.length > 0\n const showY = options.y?.show !== false && rows.length > 0\n const rowTicks = rows.map((s, i) => ({ value: i, position: 0, label: s.name }))\n const left = showY ? axisSize('left', rowTicks, fontSize) : 0\n const bottom = showX ? axisSize('bottom', [{ value: 0, position: 0, label: 'M' }], fontSize) : 0\n // The last column label is centered on its column: what is wider than half a\n // column needs room on the right.\n const lastLabel = showX\n ? estimateTextWidth(\n formatLabel(labels[labels.length - 1] as Label, labels.length - 1),\n fontSize,\n )\n : 0\n const { area, side, range } = plotFrame(ctx, options.padding, (pad) => {\n const halfColumn = (width - pad.start - pad.end - left) / Math.max(1, labels.length) / 2\n return {\n top: pad.top,\n bottom: pad.bottom + bottom,\n start: pad.start + left,\n end: pad.end + Math.max(0, Math.ceil(lastLabel / 2 - halfColumn)),\n }\n })\n const x = band(\n labels.map((_, i) => i),\n range(),\n )\n const y = band(\n rows.map((_, i) => i),\n [area.y, area.y + area.height],\n )\n const cellW = Math.max(0, x.bandwidth - gap)\n const cellH = Math.max(0, y.bandwidth - gap)\n const cellX = (i: number) => x.at(i) + gap / 2\n const cellY = (j: number) => y.at(j) + gap / 2\n const valueAt = (i: number, j: number) => {\n const v = rows[j]?.values[i]\n return v != null && Number.isFinite(v) ? v : null\n }\n\n // One hit per column; every row is an item, the hovered row is active.\n const hitAt = (i: number, row = 0): Hit | null => {\n if (i < 0 || i >= labels.length || rows.length === 0) return null\n const j = Math.max(0, Math.min(rows.length - 1, row))\n const items: HitItem[] = rows.map((s, r) => {\n const v = valueAt(i, r)\n const range = ranges && v !== null ? ranges[rangeOf(ranges, v)] : undefined\n return {\n name: s.name,\n seriesIndex: r,\n value: v,\n // With ranges, the band's name says what the value means.\n text: v === null ? '–' : range?.name ? `${value(v)} · ${range.name}` : value(v),\n x: cellX(i) + cellW / 2,\n y: cellY(r) + cellH / 2,\n box: { x: cellX(i), y: cellY(r), width: cellW, height: cellH },\n color: v === null ? 'var(--tc-grid-color)' : paint(v, s).color,\n }\n })\n return {\n index: i,\n label: labelKey(labels[i] as Label),\n title: formatLabel(labels[i] as Label, i),\n x: cellX(i) + cellW / 2,\n area,\n items,\n seriesIndex: j,\n // A ring just outside the hovered cell.\n highlight: {\n kind: 'halo',\n d: rectPath(cellX(i) - 2, cellY(j) - 2, cellW + 4, cellH + 4, radius + 2),\n },\n }\n }\n\n const interaction: Interaction = {\n count: labels.length,\n reversed: rtl === true,\n hitIndex: (i, row) => hitAt(i, row),\n hitTest(px, py) {\n if (px < area.x || px > area.x + area.width || py < area.y || py > area.y + area.height) {\n return null\n }\n const column = Math.min(labels.length - 1, Math.floor((px - area.x) / (x.step || 1)))\n const i = rtl ? labels.length - 1 - column : column\n const j = Math.min(rows.length - 1, Math.floor((py - area.y) / (y.step || 1)))\n return hitAt(i, j)\n },\n }\n\n const cells = rows.map((s, j) =>\n h(\n 'g',\n {\n key: seriesKey(s),\n // Colored by series, a row takes its palette slot like any series.\n class: ['tc-heatmap-row', bySeries && ['tc-series', `tc-series-${slot(s) + 1}`]],\n 'data-series': s.name,\n style: bySeries ? { '--tc-series-color': s.color } : undefined,\n },\n labels.map((label, i) => {\n const v = valueAt(i, j)\n const painted = v === null ? undefined : paint(v, s)\n return h('rect', {\n key: labelKey(label),\n class: ['tc-cell', (v === null || painted?.empty) && 'tc-cell-empty'],\n x: round(cellX(i)),\n y: round(cellY(j)),\n width: round(cellW),\n height: round(cellH),\n rx: round(Math.min(radius, cellW / 2, cellH / 2)),\n style: painted?.style,\n })\n }),\n ),\n )\n\n const xTicks = showX\n ? thinTicks(\n bandTicks(x, (_, i) => formatLabel(labels[i] as Label, i)),\n 'bottom',\n fontSize,\n )\n : []\n const yTicks = showY ? bandTicks(y, (_, j) => rows[j]?.name ?? '') : []\n\n const content = [\n h('g', { class: 'tc-heatmap-cells' }, cells),\n showX && axis({ position: 'bottom', ticks: xTicks, area }),\n showY && axis({ position: side, ticks: yTicks, area }),\n ]\n return { content, interaction }\n}\n\n/** Legend: the ranges, or the rows when colored by series; none for a single scale. */\nfunction heatmapLegend(options: HeatmapOptions): LegendItem[] {\n const { ranges } = options\n if (ranges?.length) {\n // The legend is asked with the whole config, so the names follow its locale.\n const value = formatNumber(options.format, (options as { locale?: Locale }).locale)\n return ranges.map((range, index) => ({\n key: rangeKey(range, index),\n name:\n range.name ??\n (range.from === undefined\n ? `< ${value(range.to ?? 0)}`\n : range.to === undefined\n ? `≥ ${value(range.from)}`\n : `${value(range.from)}–${value(range.to)}`),\n index,\n color: range.color,\n }))\n }\n if (options.colors && options.colors.length >= 2) return []\n return options.colorBy === 'series' ? seriesLegend(options.data) : []\n}\n\n/**\n * Heatmap: a grid of cells, one row per series and one column per label,\n * shaded from light to the full color by value (a single hue, so it reads\n * as magnitude). Set the hue with `--tc-heat-color`, or color the cells by\n * `ranges` of values, a `colors` scale (with a `mid` for diverging data),\n * or one palette color per row with `colorBy: 'series'`.\n *\n * ```ts\n * new Chart('#el', {\n * type: heatmap,\n * data: { labels: ['W1', 'W2', 'W3'], series: [{ name: 'Mon', values: [2, 4, 0] }] },\n * })\n * ```\n */\nexport const heatmap: ChartType<HeatmapOptions> = {\n name: 'heatmap',\n clean: cleanData(cleanSeries),\n render: renderHeatmap,\n legend: heatmapLegend,\n valueLabels: { marks: 'cell', format: (options) => options.format },\n // Cells are formatted as in the tooltip: `format` is the value format here, not `y.format`.\n table: (options, ctx, limit) =>\n seriesTable(\n { data: options.data, ...(options.x ? { x: options.x } : {}), y: { format: options.format } },\n ctx,\n limit,\n ),\n}\n"],"mappings":";;;;;;;;;;AA8EA,MAAM,QAAQ;AAEd,MAAM,QAAQ;;AAGd,MAAM,SAAS,OAAe,QAAQ,6CACpC,sBAAsB,MAAM,GAAGA,eAAAA,MAAM,QAAQ,GAAG,EAAE,IAAI,MAAM;;AAG9D,MAAM,YAAY,OAAqB,UAA0B,MAAM,QAAQ,SAAS,QAAQ;;AAGhG,MAAM,WAAW,QAAiC,MAChD,OAAO,WAAW,OAAO,EAAE,SAAS,KAAA,KAAa,KAAK,EAAE,UAAU,EAAE,OAAO,KAAA,KAAa,IAAI,EAAE,GAAG;;AAGnG,MAAM,aAAa,QAAgB,UACjC,OAAO,UAAU,QAAQ,IAAI,kBAAkB,QAAQ,EAAE,KAAK;AAShE,SAAS,cAAc,SAAyB,KAAoB;CAClE,MAAM,EAAE,OAAO,UAAU,WAAW;CACpC,MAAM,EAAE,MAAM,GAAG,SAAS,MAAM;CAChC,MAAM,SAASC,kBAAAA,cAAc,QAAQ,IAAI;CACzC,MAAM,cAAc,QAAQ,GAAG,YAAY,UAAiB,OAAO,KAAK;CACxE,MAAM,QAAQC,eAAAA,aAAa,QAAQ,QAAQ,MAAM;CAGjD,MAAM,MAAM,QAAQ,KAAK,OAAO,SAAS,MAAM,EAAE,MAAM;CACvD,MAAM,CAAC,SAAS,WAAWC,eAAAA,OAAO,GAAG,KAAK,CAAC,GAAG,CAAC;CAC/C,MAAM,KAAK,QAAQ,OAAO,KAAK,IAAI,GAAG,OAAO;CAC7C,MAAM,KAAK,QAAQ,OAAO;;CAE1B,MAAM,YAAY,MAAc;EAC9B,MAAM,EAAE,QAAQ;EAChB,IAAI;EACJ,IAAI,QAAQ,KAAA,KAAa,QAAQ,UAAU,KAAK,OAAO,MAAM,IAC3D,IAAI,KAAK,OAAQ,IAAI,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AAM,EAAE;GAC9C;GACA,OAAO,MAAM;EACf,EAAE;CACJ;CACA,IAAI,QAAQ,UAAU,QAAQ,OAAO,UAAU,GAAG,OAAO,CAAC;CAC1D,OAAO,QAAQ,YAAY,WAAWa,kBAAAA,aAAa,QAAQ,IAAI,IAAI,CAAC;AACtE;;;;;;;;;;;;;;;AAgBA,MAAa,UAAqC;CAChD,MAAM;CACN,OAAOC,cAAAA,UAAUC,cAAAA,WAAW;CAC5B,QAAQ;CACR,QAAQ;CACR,aAAa;EAAE,OAAO;EAAQ,SAAS,YAAY,QAAQ;CAAO;CAElE,QAAQ,SAAS,KAAK,UACpBC,kBAAAA,YACE;EAAE,MAAM,QAAQ;EAAM,GAAI,QAAQ,IAAI,EAAE,GAAG,QAAQ,EAAE,IAAI,CAAC;EAAI,GAAG,EAAE,QAAQ,QAAQ,OAAO;CAAE,GAC5F,KACA,KACF;AACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { at as CartesianData, ct as Label, o as ChartType } from "./chart-CYrrUCi3.js";
|
|
2
2
|
import { c as NumberFormat } from "./time-DRIDgv2a.js";
|
|
3
3
|
import { a as InsetsInput } from "./annotations-B02GR_KU.js";
|
|
4
4
|
/** A band of values drawn in one color, with its own legend entry. */
|
package/dist/heatmap.cjs
CHANGED
package/dist/heatmap.d.cts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Standalone entry: `import { heatmap } from '@tabler/charts/heatmap'`. */
|
|
2
|
-
import { n as HeatmapRange, r as heatmap, t as HeatmapOptions } from "./heatmap-
|
|
2
|
+
import { n as HeatmapRange, r as heatmap, t as HeatmapOptions } from "./heatmap-CJ-0dfhJ.cjs";
|
|
3
3
|
export { type HeatmapOptions, type HeatmapRange, heatmap };
|
package/dist/heatmap.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** Standalone entry: `import { heatmap } from '@tabler/charts/heatmap'`. */
|
|
2
|
-
import { n as HeatmapRange, r as heatmap, t as HeatmapOptions } from "./heatmap-
|
|
2
|
+
import { n as HeatmapRange, r as heatmap, t as HeatmapOptions } from "./heatmap-Jp5sHRTo.js";
|
|
3
3
|
export { type HeatmapOptions, type HeatmapRange, heatmap };
|
package/dist/heatmap.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as heatmap } from "./heatmap-
|
|
1
|
+
export { t as heatmap } from "./heatmap-C1v8bwpq.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as patchAttrs, n as childNamespace, o as rendered, r as createNode } from "./dom-
|
|
1
|
+
import { i as patchAttrs, n as childNamespace, o as rendered, r as createNode } from "./dom-CTse6Rvd.js";
|
|
2
2
|
// src/render/hydrate.ts
|
|
3
3
|
/** Whether existing DOM `node` can stand for `vnode` in namespace `ns`. */
|
|
4
4
|
function matches(node, vnode, ns) {
|
|
@@ -51,4 +51,4 @@ function hydrate(el, vnode, ns) {
|
|
|
51
51
|
}
|
|
52
52
|
export { hydrate as t };
|
|
53
53
|
|
|
54
|
-
//# sourceMappingURL=hydrate-
|
|
54
|
+
//# sourceMappingURL=hydrate-BB3MlR36.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hydrate-
|
|
1
|
+
{"version":3,"file":"hydrate-BB3MlR36.js","names":[],"sources":["../src/render/hydrate.ts"],"sourcesContent":["import type { Attrs, VNode } from '../vnode.ts'\nimport { childNamespace, createNode, patchAttrs, rendered, SVG_NS } from './dom.ts'\n\n/** Whether existing DOM `node` can stand for `vnode` in namespace `ns`. */\nfunction matches(node: Node, vnode: VNode, ns: string): node is Element {\n return (\n node.nodeType === 1 &&\n (node as Element).localName === vnode.tag &&\n (node as Element).namespaceURI === ns\n )\n}\n\n/**\n * Claim server-rendered DOM for a tree: the element takes the vnode's\n * attributes (extra ones are removed), and its children are matched by\n * position: text with text, elements with the same tag (hydrated in turn).\n * Anything that does not match is created in place, leftovers are removed.\n * Afterwards the nodes are tracked like freshly rendered ones.\n */\nexport function hydrateElement(el: Element, vnode: VNode): void {\n // The server attributes are the previous state to patch from.\n const current: Attrs = {}\n for (const name of el.getAttributeNames()) current[name] = el.getAttribute(name) as string\n // A strict CSP ignores style attributes in markup: set them again, through the CSSOM.\n if (current.style) current.style = ''\n patchAttrs(el, current, vnode.attrs)\n\n // Comments never stand for anything, and neither does text where the tree has none\n // (whitespace between elements). Text only ever sits in leaf elements here.\n const texts = vnode.children.some((child) => typeof child === 'string')\n for (const node of Array.from(el.childNodes)) {\n if (node.nodeType === 8 || (!texts && node.nodeType === 3)) el.removeChild(node)\n }\n\n const ns = childNamespace(el)\n let node: Node | null = el.firstChild\n for (const child of vnode.children) {\n const next: Node | null = node ? node.nextSibling : null\n if (\n typeof child === 'string'\n ? node?.nodeType === 3\n : node && matches(node, child, child.tag === 'svg' ? SVG_NS : ns)\n ) {\n if (typeof child === 'string') {\n if ((node as Text).data !== child) (node as Text).data = child\n rendered.set(node as Node, child)\n } else {\n hydrateElement(node as Element, child)\n }\n node = next\n } else {\n const created = createNode(child, ns, el.ownerDocument)\n if (created) el.insertBefore(created, node)\n }\n }\n while (node) {\n const extra: Node = node\n node = node.nextSibling\n el.removeChild(extra)\n }\n rendered.set(el, vnode)\n}\n\n/**\n * Hydrate `el` for the root `vnode` when it is foreign markup (not rendered\n * here) with the root's tag in namespace `ns`. Returns whether it did.\n */\nexport function hydrate(el: Element, vnode: VNode, ns: string): boolean {\n if (rendered.has(el) || !matches(el, vnode, ns)) return false\n hydrateElement(el, vnode)\n return true\n}\n"],"mappings":";;;AAIA,SAAS,QAAQ,MAAY,OAAc,IAA6B;CACtE,OACE,KAAK,aAAa,KACjB,KAAiB,cAAc,MAAM,OACrC,KAAiB,iBAAiB;AAEvC;;;;;;;;AASA,SAAgB,eAAe,IAAa,OAAoB;CAE9D,MAAM,UAAiB,CAAC;CACxB,KAAK,MAAM,QAAQ,GAAG,kBAAkB,GAAG,QAAQ,QAAQ,GAAG,aAAa,IAAI;CAE/E,IAAI,QAAQ,OAAO,QAAQ,QAAQ;CACnC,WAAW,IAAI,SAAS,MAAM,KAAK;CAInC,MAAM,QAAQ,MAAM,SAAS,MAAM,UAAU,OAAO,UAAU,QAAQ;CACtE,KAAK,MAAM,QAAQ,MAAM,KAAK,GAAG,UAAU,GACzC,IAAI,KAAK,aAAa,KAAM,CAAC,SAAS,KAAK,aAAa,GAAI,GAAG,YAAY,IAAI;CAGjF,MAAM,KAAK,eAAe,EAAE;CAC5B,IAAI,OAAoB,GAAG;CAC3B,KAAK,MAAM,SAAS,MAAM,UAAU;EAClC,MAAM,OAAoB,OAAO,KAAK,cAAc;EACpD,IACE,OAAO,UAAU,WACb,MAAM,aAAa,IACnB,QAAQ,QAAQ,MAAM,OAAO,MAAM,QAAQ,QAAA,+BAAiB,EAAE,GAClE;GACA,IAAI,OAAO,UAAU,UAAU;IAC7B,IAAK,KAAc,SAAS,OAAQ,KAAc,OAAO;IACzD,SAAS,IAAI,MAAc,KAAK;GAClC,OACE,eAAe,MAAiB,KAAK;GAEvC,OAAO;EACT,OAAO;GACL,MAAM,UAAU,WAAW,OAAO,IAAI,GAAG,aAAa;GACtD,IAAI,SAAS,GAAG,aAAa,SAAS,IAAI;EAC5C;CACF;CACA,OAAO,MAAM;EACX,MAAM,QAAc;EACpB,OAAO,KAAK;EACZ,GAAG,YAAY,KAAK;CACtB;CACA,SAAS,IAAI,IAAI,KAAK;AACxB;;;;;AAMA,SAAgB,QAAQ,IAAa,OAAc,IAAqB;CACtE,IAAI,SAAS,IAAI,EAAE,KAAK,CAAC,QAAQ,IAAI,OAAO,EAAE,GAAG,OAAO;CACxD,eAAe,IAAI,KAAK;CACxB,OAAO;AACT"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_dom = require("./dom-
|
|
1
|
+
const require_dom = require("./dom-C33zvtPo.cjs");
|
|
2
2
|
// src/render/hydrate.ts
|
|
3
3
|
/** Whether existing DOM `node` can stand for `vnode` in namespace `ns`. */
|
|
4
4
|
function matches(node, vnode, ns) {
|
|
@@ -56,4 +56,4 @@ Object.defineProperty(exports, "hydrate", {
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
//# sourceMappingURL=hydrate-
|
|
59
|
+
//# sourceMappingURL=hydrate-m0I5m6ue.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hydrate-
|
|
1
|
+
{"version":3,"file":"hydrate-m0I5m6ue.cjs","names":["patchAttrs","childNamespace","rendered","createNode"],"sources":["../src/render/hydrate.ts"],"sourcesContent":["import type { Attrs, VNode } from '../vnode.ts'\nimport { childNamespace, createNode, patchAttrs, rendered, SVG_NS } from './dom.ts'\n\n/** Whether existing DOM `node` can stand for `vnode` in namespace `ns`. */\nfunction matches(node: Node, vnode: VNode, ns: string): node is Element {\n return (\n node.nodeType === 1 &&\n (node as Element).localName === vnode.tag &&\n (node as Element).namespaceURI === ns\n )\n}\n\n/**\n * Claim server-rendered DOM for a tree: the element takes the vnode's\n * attributes (extra ones are removed), and its children are matched by\n * position: text with text, elements with the same tag (hydrated in turn).\n * Anything that does not match is created in place, leftovers are removed.\n * Afterwards the nodes are tracked like freshly rendered ones.\n */\nexport function hydrateElement(el: Element, vnode: VNode): void {\n // The server attributes are the previous state to patch from.\n const current: Attrs = {}\n for (const name of el.getAttributeNames()) current[name] = el.getAttribute(name) as string\n // A strict CSP ignores style attributes in markup: set them again, through the CSSOM.\n if (current.style) current.style = ''\n patchAttrs(el, current, vnode.attrs)\n\n // Comments never stand for anything, and neither does text where the tree has none\n // (whitespace between elements). Text only ever sits in leaf elements here.\n const texts = vnode.children.some((child) => typeof child === 'string')\n for (const node of Array.from(el.childNodes)) {\n if (node.nodeType === 8 || (!texts && node.nodeType === 3)) el.removeChild(node)\n }\n\n const ns = childNamespace(el)\n let node: Node | null = el.firstChild\n for (const child of vnode.children) {\n const next: Node | null = node ? node.nextSibling : null\n if (\n typeof child === 'string'\n ? node?.nodeType === 3\n : node && matches(node, child, child.tag === 'svg' ? SVG_NS : ns)\n ) {\n if (typeof child === 'string') {\n if ((node as Text).data !== child) (node as Text).data = child\n rendered.set(node as Node, child)\n } else {\n hydrateElement(node as Element, child)\n }\n node = next\n } else {\n const created = createNode(child, ns, el.ownerDocument)\n if (created) el.insertBefore(created, node)\n }\n }\n while (node) {\n const extra: Node = node\n node = node.nextSibling\n el.removeChild(extra)\n }\n rendered.set(el, vnode)\n}\n\n/**\n * Hydrate `el` for the root `vnode` when it is foreign markup (not rendered\n * here) with the root's tag in namespace `ns`. Returns whether it did.\n */\nexport function hydrate(el: Element, vnode: VNode, ns: string): boolean {\n if (rendered.has(el) || !matches(el, vnode, ns)) return false\n hydrateElement(el, vnode)\n return true\n}\n"],"mappings":";;;AAIA,SAAS,QAAQ,MAAY,OAAc,IAA6B;CACtE,OACE,KAAK,aAAa,KACjB,KAAiB,cAAc,MAAM,OACrC,KAAiB,iBAAiB;AAEvC;;;;;;;;AASA,SAAgB,eAAe,IAAa,OAAoB;CAE9D,MAAM,UAAiB,CAAC;CACxB,KAAK,MAAM,QAAQ,GAAG,kBAAkB,GAAG,QAAQ,QAAQ,GAAG,aAAa,IAAI;CAE/E,IAAI,QAAQ,OAAO,QAAQ,QAAQ;CACnCA,YAAAA,WAAW,IAAI,SAAS,MAAM,KAAK;CAInC,MAAM,QAAQ,MAAM,SAAS,MAAM,UAAU,OAAO,UAAU,QAAQ;CACtE,KAAK,MAAM,QAAQ,MAAM,KAAK,GAAG,UAAU,GACzC,IAAI,KAAK,aAAa,KAAM,CAAC,SAAS,KAAK,aAAa,GAAI,GAAG,YAAY,IAAI;CAGjF,MAAM,KAAKC,YAAAA,eAAe,EAAE;CAC5B,IAAI,OAAoB,GAAG;CAC3B,KAAK,MAAM,SAAS,MAAM,UAAU;EAClC,MAAM,OAAoB,OAAO,KAAK,cAAc;EACpD,IACE,OAAO,UAAU,WACb,MAAM,aAAa,IACnB,QAAQ,QAAQ,MAAM,OAAO,MAAM,QAAQ,QAAA,+BAAiB,EAAE,GAClE;GACA,IAAI,OAAO,UAAU,UAAU;IAC7B,IAAK,KAAc,SAAS,OAAQ,KAAc,OAAO;IACzDC,YAAAA,SAAS,IAAI,MAAc,KAAK;GAClC,OACE,eAAe,MAAiB,KAAK;GAEvC,OAAO;EACT,OAAO;GACL,MAAM,UAAUC,YAAAA,WAAW,OAAO,IAAI,GAAG,aAAa;GACtD,IAAI,SAAS,GAAG,aAAa,SAAS,IAAI;EAC5C;CACF;CACA,OAAO,MAAM;EACX,MAAM,QAAc;EACpB,OAAO,KAAK;EACZ,GAAG,YAAY,KAAK;CACtB;CACAD,YAAAA,SAAS,IAAI,IAAI,KAAK;AACxB;;;;;AAMA,SAAgB,QAAQ,IAAa,OAAc,IAAqB;CACtE,IAAIA,YAAAA,SAAS,IAAI,EAAE,KAAK,CAAC,QAAQ,IAAI,OAAO,EAAE,GAAG,OAAO;CACxD,eAAe,IAAI,KAAK;CACxB,OAAO;AACT"}
|
package/dist/hydrate.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_features = require("./features-
|
|
3
|
-
const require_hydrate = require("./hydrate-
|
|
2
|
+
const require_features = require("./features-DEDP5CEQ.cjs");
|
|
3
|
+
const require_hydrate = require("./hydrate-m0I5m6ue.cjs");
|
|
4
4
|
// src/hydrate.ts
|
|
5
5
|
/**
|
|
6
6
|
* Standalone entry: `import '@tabler/charts/hydrate'` lets a chart take over
|
package/dist/hydrate.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as register } from "./features-
|
|
2
|
-
import { t as hydrate } from "./hydrate-
|
|
1
|
+
import { i as register } from "./features-B55rwpQC.js";
|
|
2
|
+
import { t as hydrate } from "./hydrate-BB3MlR36.js";
|
|
3
3
|
// src/hydrate.ts
|
|
4
4
|
/**
|
|
5
5
|
* Standalone entry: `import '@tabler/charts/hydrate'` lets a chart take over
|
package/dist/index.cjs
CHANGED
|
@@ -1,41 +1,45 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_layout = require("./layout-
|
|
2
|
+
const require_layout = require("./layout-Cfg9x1k2.cjs");
|
|
3
3
|
const require_vnode = require("./vnode-ClAiw28x.cjs");
|
|
4
4
|
const require_format = require("./format-CAE5ruy6.cjs");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const require_axis = require("./axis-YfAerNBA.cjs");
|
|
6
|
+
const require_cartesian = require("./cartesian-DRSXHxWe.cjs");
|
|
7
|
+
const require_annotations = require("./annotations-CpCWA29b.cjs");
|
|
7
8
|
const require_extent = require("./extent-DuYDcvM9.cjs");
|
|
8
|
-
const require_dates = require("./dates-
|
|
9
|
+
const require_dates = require("./dates-DerXTb1J.cjs");
|
|
9
10
|
const require_log_axis = require("./log-axis-DdRNyAq8.cjs");
|
|
10
|
-
const require_patterns = require("./patterns-
|
|
11
|
-
const require_point_shapes = require("./point-shapes
|
|
12
|
-
const require_dom = require("./dom-
|
|
13
|
-
const require_time_axis = require("./time-axis-
|
|
14
|
-
const require_value_labels = require("./value-labels-
|
|
15
|
-
const require_features = require("./features-
|
|
16
|
-
const require_hydrate = require("./hydrate-
|
|
17
|
-
const require_morph = require("./morph-
|
|
11
|
+
const require_patterns = require("./patterns-Dw7OMD_2.cjs");
|
|
12
|
+
const require_point_shapes = require("./point-shapes-BRawRM78.cjs");
|
|
13
|
+
const require_dom = require("./dom-C33zvtPo.cjs");
|
|
14
|
+
const require_time_axis = require("./time-axis-B3VekUfX.cjs");
|
|
15
|
+
const require_value_labels = require("./value-labels-DzaKIWKp.cjs");
|
|
16
|
+
const require_features = require("./features-DEDP5CEQ.cjs");
|
|
17
|
+
const require_hydrate = require("./hydrate-m0I5m6ue.cjs");
|
|
18
|
+
const require_morph = require("./morph-3I1Nf_tR.cjs");
|
|
18
19
|
const require_decimate = require("./decimate-BS3x8g-f.cjs");
|
|
19
|
-
const require_fade = require("./fade-
|
|
20
|
-
const require_chart = require("./chart-
|
|
21
|
-
const require_core = require("./core-
|
|
22
|
-
const require_area = require("./area-
|
|
23
|
-
const require_bar = require("./bar-
|
|
24
|
-
const require_bar$1 = require("./bar-
|
|
25
|
-
const
|
|
26
|
-
const
|
|
20
|
+
const require_fade = require("./fade-CRqcKMWY.cjs");
|
|
21
|
+
const require_chart = require("./chart-D_lyOy-M.cjs");
|
|
22
|
+
const require_core = require("./core-D2PSked3.cjs");
|
|
23
|
+
const require_area = require("./area-DYdQ_sMV.cjs");
|
|
24
|
+
const require_bar = require("./bar-CVkOJ7WA.cjs");
|
|
25
|
+
const require_bar$1 = require("./bar-wVykm1us.cjs");
|
|
26
|
+
const require_calendar = require("./calendar-DAFXjV99.cjs");
|
|
27
|
+
const require_candlestick = require("./candlestick-CSmRuZ4v.cjs");
|
|
28
|
+
const require_funnel = require("./funnel-CFEEulw_.cjs");
|
|
29
|
+
const require_gauge = require("./gauge-6HfDcLMJ.cjs");
|
|
27
30
|
const require_arc = require("./arc-CYhI62kO.cjs");
|
|
28
|
-
const require_heatmap = require("./heatmap-
|
|
29
|
-
const require_line = require("./line-
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
31
|
+
const require_heatmap = require("./heatmap-Dcc_bsoQ.cjs");
|
|
32
|
+
const require_line = require("./line-YiCuhVMI.cjs");
|
|
33
|
+
const require_map = require("./map-BqrZ80vT.cjs");
|
|
34
|
+
const require_parliament = require("./parliament-DhxAaIZ3.cjs");
|
|
35
|
+
const require_percentage_bar = require("./percentage-bar-BChkTRoz.cjs");
|
|
36
|
+
const require_pie = require("./pie-BseZlCgP.cjs");
|
|
37
|
+
const require_radar = require("./radar-DjISDnSf.cjs");
|
|
38
|
+
const require_sankey = require("./sankey-0CSp_Er9.cjs");
|
|
39
|
+
const require_scatter = require("./scatter-Bwkblr4L.cjs");
|
|
40
|
+
const require_sparkline = require("./sparkline-BMSuEPHP.cjs");
|
|
41
|
+
const require_treemap = require("./treemap-CZk8kKFD.cjs");
|
|
42
|
+
const require_export_chart = require("./export-chart-CPtXmZvi.cjs");
|
|
39
43
|
// src/chart-default.ts
|
|
40
44
|
/**
|
|
41
45
|
* A chart with every built-in plugin installed: hover highlight, legend,
|
|
@@ -68,12 +72,15 @@ const types = {
|
|
|
68
72
|
sparkline: require_sparkline.sparkline,
|
|
69
73
|
gauge: require_gauge.gauge,
|
|
70
74
|
heatmap: require_heatmap.heatmap,
|
|
75
|
+
calendar: require_calendar.calendar,
|
|
76
|
+
map: require_map.map,
|
|
71
77
|
candlestick: require_candlestick.candlestick,
|
|
72
78
|
radar: require_radar.radar,
|
|
73
79
|
sankey: require_sankey.sankey,
|
|
74
80
|
parliament: require_parliament.parliament,
|
|
75
81
|
treemap: require_treemap.treemap,
|
|
76
|
-
"percentage-bar": require_percentage_bar.percentageBar
|
|
82
|
+
"percentage-bar": require_percentage_bar.percentageBar,
|
|
83
|
+
funnel: require_funnel.funnel
|
|
77
84
|
};
|
|
78
85
|
// src/index.ts
|
|
79
86
|
/**
|
|
@@ -107,30 +114,33 @@ require_features.register({
|
|
|
107
114
|
},
|
|
108
115
|
patterns: require_patterns.patternFills,
|
|
109
116
|
"point-shapes": require_point_shapes.markerPath,
|
|
117
|
+
swatch: require_point_shapes.markerClip,
|
|
110
118
|
hydrate: require_hydrate.hydrate,
|
|
111
119
|
morph: require_morph.morph
|
|
112
120
|
});
|
|
113
|
-
require_features.addPost(require_point_shapes.shapesStep);
|
|
114
121
|
require_features.addPost(require_value_labels.labelsStep);
|
|
115
122
|
exports.Chart = Chart;
|
|
116
123
|
exports.LINE_HEIGHT = require_layout.LINE_HEIGHT;
|
|
117
124
|
exports.VERSION = require_core.VERSION;
|
|
125
|
+
exports.addMap = require_map.addMap;
|
|
118
126
|
exports.arcCentroid = require_arc.arcCentroid;
|
|
119
127
|
exports.arcPathStable = require_arc.arcPathStable;
|
|
120
128
|
exports.area = require_area.area;
|
|
121
129
|
exports.areaPath = require_fade.areaPath;
|
|
122
|
-
exports.axis =
|
|
123
|
-
exports.axisSize =
|
|
130
|
+
exports.axis = require_axis.axis;
|
|
131
|
+
exports.axisSize = require_axis.axisSize;
|
|
124
132
|
exports.band = require_cartesian.band;
|
|
125
|
-
exports.bandTicks =
|
|
133
|
+
exports.bandTicks = require_axis.bandTicks;
|
|
126
134
|
exports.bar = require_bar.bar;
|
|
127
135
|
exports.barPath = require_bar$1.barPath;
|
|
128
136
|
exports.buildChart = require_chart.buildChart;
|
|
137
|
+
exports.calendar = require_calendar.calendar;
|
|
129
138
|
exports.cancel = require_chart.cancel;
|
|
130
139
|
exports.candlestick = require_candlestick.candlestick;
|
|
131
140
|
exports.categoryInteraction = require_cartesian.categoryInteraction;
|
|
132
141
|
exports.chartEvents = require_chart.chartEvents;
|
|
133
142
|
exports.chartLabel = require_chart.chartLabel;
|
|
143
|
+
exports.chartModel = require_chart.chartModel;
|
|
134
144
|
exports.chartToString = require_chart.chartToString;
|
|
135
145
|
exports.dataTable = require_core.dataTable;
|
|
136
146
|
exports.defaultHidden = require_chart.defaultHidden;
|
|
@@ -153,6 +163,7 @@ exports.formatDate = require_format.formatDate;
|
|
|
153
163
|
exports.formatDetail = require_format.formatDetail;
|
|
154
164
|
exports.formatNumber = require_format.formatNumber;
|
|
155
165
|
exports.formatTicks = require_format.formatTicks;
|
|
166
|
+
exports.funnel = require_funnel.funnel;
|
|
156
167
|
exports.gauge = require_gauge.gauge;
|
|
157
168
|
exports.getDateFormat = require_format.getDateFormat;
|
|
158
169
|
exports.getNumberFormat = require_format.getNumberFormat;
|
|
@@ -172,11 +183,12 @@ exports.legendContent = require_chart.legendContent;
|
|
|
172
183
|
exports.line = require_line.line;
|
|
173
184
|
exports.linePath = require_fade.linePath;
|
|
174
185
|
exports.linear = require_cartesian.linear;
|
|
175
|
-
exports.linearTicks =
|
|
186
|
+
exports.linearTicks = require_axis.linearTicks;
|
|
176
187
|
exports.log = require_log_axis.log;
|
|
177
188
|
exports.lttb = require_decimate.lttb;
|
|
178
189
|
exports.lttbIndices = require_decimate.lttbIndices;
|
|
179
|
-
exports.
|
|
190
|
+
exports.map = require_map.map;
|
|
191
|
+
exports.niceDomain = require_axis.niceDomain;
|
|
180
192
|
exports.normalizeClass = require_vnode.normalizeClass;
|
|
181
193
|
exports.normalizeStyle = require_vnode.normalizeStyle;
|
|
182
194
|
exports.padAngleForGap = require_arc.padAngleForGap;
|
|
@@ -189,6 +201,7 @@ exports.pointer = require_core.pointer;
|
|
|
189
201
|
exports.radar = require_radar.radar;
|
|
190
202
|
exports.register = require_features.register;
|
|
191
203
|
exports.render = require_dom.render;
|
|
204
|
+
exports.renderChart = require_chart.renderChart;
|
|
192
205
|
exports.renderContext = require_chart.renderContext;
|
|
193
206
|
exports.renderToString = require_chart.renderToString;
|
|
194
207
|
exports.resolveLegend = require_chart.resolveLegend;
|
|
@@ -203,10 +216,10 @@ exports.sparkline = require_sparkline.sparkline;
|
|
|
203
216
|
exports.stepPrecision = require_format.stepPrecision;
|
|
204
217
|
exports.sync = require_core.sync;
|
|
205
218
|
exports.tableContent = require_core.tableContent;
|
|
206
|
-
exports.thinTicks =
|
|
207
|
-
exports.tickIncrement =
|
|
208
|
-
exports.tickStep =
|
|
209
|
-
exports.ticks =
|
|
219
|
+
exports.thinTicks = require_axis.thinTicks;
|
|
220
|
+
exports.tickIncrement = require_axis.tickIncrement;
|
|
221
|
+
exports.tickStep = require_axis.tickStep;
|
|
222
|
+
exports.ticks = require_axis.ticks;
|
|
210
223
|
exports.time = require_time_axis.time;
|
|
211
224
|
exports.timePointScale = require_time_axis.timePointScale;
|
|
212
225
|
exports.tooltip = require_core.tooltip;
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["CoreChart","defaultPlugins","line","area","bar","pie","donut","scatter","sparkline","gauge","heatmap","candlestick","radar","sankey","parliament","treemap","percentageBar","register","time","timePointScale","timeAxis","dateLabels","log","logDomain","logTicks","lttbIndices","linePath","areaPath","annotationLayers","annotationValues","patternFills","markerPath","hydrate","morph","addPost","
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["CoreChart","defaultPlugins","line","area","bar","pie","donut","scatter","sparkline","gauge","heatmap","calendar","map","candlestick","radar","sankey","parliament","treemap","percentageBar","funnel","register","time","timePointScale","timeAxis","dateLabels","log","logDomain","logTicks","lttbIndices","linePath","areaPath","annotationLayers","annotationValues","patternFills","markerPath","markerClip","hydrate","morph","addPost","labelsStep"],"sources":["../src/chart-default.ts","../src/chart-types.ts","../src/index.ts"],"sourcesContent":["import { type ChartConfig, Chart as CoreChart } from './chart.ts'\nimport { defaultPlugins } from './plugins/index.ts'\n\n/**\n * A chart with every built-in plugin installed: hover highlight, legend,\n * tooltip, data table and keyboard navigation. Each can be switched off in\n * the config (`tooltip: false`, …). For the smallest bundle, use the bare\n * `Chart` from `@tabler/charts/core` and pick plugins explicitly.\n *\n * ```ts\n * const chart = new Chart('#sales', { type: line, data })\n * ```\n */\nexport class Chart<O extends object = object> extends CoreChart<O> {\n constructor(target: HTMLElement | string, config: ChartConfig<O>) {\n super(target, config, defaultPlugins())\n }\n}\n","import type { ChartType } from './chart.ts'\nimport { area } from './charts/area.ts'\nimport { bar } from './charts/bar.ts'\nimport { calendar } from './charts/calendar.ts'\nimport { candlestick } from './charts/candlestick.ts'\nimport { funnel } from './charts/funnel.ts'\nimport { gauge } from './charts/gauge.ts'\nimport { heatmap } from './charts/heatmap.ts'\nimport { line } from './charts/line.ts'\nimport { map } from './charts/map.ts'\nimport { parliament } from './charts/parliament.ts'\nimport { percentageBar } from './charts/percentage-bar.ts'\nimport { donut, pie } from './charts/pie.ts'\nimport { radar } from './charts/radar.ts'\nimport { sankey } from './charts/sankey.ts'\nimport { scatter } from './charts/scatter.ts'\nimport { sparkline } from './charts/sparkline.ts'\nimport { treemap } from './charts/treemap.ts'\n\n/**\n * Every built-in chart type by its name, for charts declared in markup\n * (`<tabler-chart type=\"line\">`, `data-tc-chart=\"line\"`). Importing it\n * brings every type along: code that knows its types imports them directly.\n */\nexport const types: Readonly<Record<string, ChartType<never>>> = {\n line,\n area,\n bar,\n pie,\n donut,\n scatter,\n sparkline,\n gauge,\n heatmap,\n calendar,\n map,\n candlestick,\n radar,\n sankey,\n parliament,\n treemap,\n 'percentage-bar': percentageBar,\n funnel,\n} as Record<string, ChartType<never>>\n","/**\n * `@tabler/charts`: everything from `@tabler/charts/core`, with a `Chart`\n * that installs the built-in plugins (tooltip, legend, keyboard, …) and\n * every optional feature registered (time and log axes, decimation,\n * annotations, pattern fills, value labels, point shapes). The one exception\n * is the `download` menu's saver: `import '@tabler/charts/export'` adds it,\n * so charts that never offer a download do not carry the export code.\n */\n\nimport { annotationLayers, annotationValues } from './charts/annotations.ts'\nimport { dateLabels } from './charts/dates.ts'\nimport { logDomain, logTicks } from './charts/log-axis.ts'\nimport { patternFills } from './charts/patterns.ts'\nimport { markerClip, markerPath } from './charts/point-shapes.ts'\nimport { timeAxis } from './charts/time-axis.ts'\nimport { labelsStep } from './charts/value-labels.ts'\nimport { addPost, register } from './features.ts'\nimport { hydrate } from './render/hydrate.ts'\nimport { morph } from './render/morph.ts'\nimport { log } from './scales/log.ts'\nimport { time, timePointScale } from './scales/time.ts'\nimport { lttb, lttbIndices } from './shapes/decimate.ts'\nimport { areaPath, linePath } from './shapes/path.ts'\n\n// Registered here, in the entry itself, so no bundler can shake it away.\nregister({\n time: { scale: time, points: timePointScale, axis: timeAxis },\n dates: dateLabels,\n log: { scale: log, domain: logDomain, ticks: logTicks },\n decimate: lttbIndices,\n line: { linePath, areaPath },\n annotations: { layers: annotationLayers, values: annotationValues },\n patterns: patternFills,\n 'point-shapes': markerPath,\n swatch: markerClip,\n hydrate,\n morph,\n})\n\n// The step that finishes the content: value labels over the marks.\naddPost(labelsStep)\n\nexport { Chart } from './chart-default.ts'\nexport { types } from './chart-types.ts'\nexport * from './core.ts'\nexport type { DownloadOptions, ExportOptions, ExportTarget, ImageOptions } from './export-chart.ts'\nexport { downloadChart, exportImage, exportSVG } from './export-chart.ts'\nexport type { LogScaleOptions } from './scales/log.ts'\nexport type { TimeScale, TimeScaleOptions, TimeValue } from './scales/time.ts'\nexport { log, lttb, lttbIndices, time, timePointScale }\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAaA,IAAa,QAAb,cAAsDA,cAAAA,MAAa;CACjE,YAAY,QAA8B,QAAwB;EAChE,MAAM,QAAQ,QAAQC,aAAAA,eAAe,CAAC;CACxC;AACF;;;;;;;ACOA,MAAa,QAAoD;CAC/DC,MAAAA,aAAAA;CACAC,MAAAA,aAAAA;CACAC,KAAAA,YAAAA;CACAC,KAAAA,YAAAA;CACAC,OAAAA,YAAAA;CACAC,SAAAA,gBAAAA;CACAC,WAAAA,kBAAAA;CACAC,OAAAA,cAAAA;CACAC,SAAAA,gBAAAA;CACAC,UAAAA,iBAAAA;CACAC,KAAAA,YAAAA;CACAC,aAAAA,oBAAAA;CACAC,OAAAA,cAAAA;CACAC,QAAAA,eAAAA;CACAC,YAAAA,mBAAAA;CACAC,SAAAA,gBAAAA;CACA,kBAAkBC,uBAAAA;CAClBC,QAAAA,eAAAA;AACF;;;;;;;;;;AClBAC,iBAAAA,SAAS;CACP,MAAM;EAAE,OAAOC,kBAAAA;EAAM,QAAQC,kBAAAA;EAAgB,MAAMC,kBAAAA;CAAS;CAC5D,OAAOC,cAAAA;CACP,KAAK;EAAE,OAAOC,iBAAAA;EAAK,QAAQC,iBAAAA;EAAW,OAAOC,iBAAAA;CAAS;CACtD,UAAUC,iBAAAA;CACV,MAAM;EAAEC,UAAAA,aAAAA;EAAUC,UAAAA,aAAAA;CAAS;CAC3B,aAAa;EAAE,QAAQC,oBAAAA;EAAkB,QAAQC,oBAAAA;CAAiB;CAClE,UAAUC,iBAAAA;CACV,gBAAgBC,qBAAAA;CAChB,QAAQC,qBAAAA;CACRC,SAAAA,gBAAAA;CACAC,OAAAA,cAAAA;AACF,CAAC;AAGDC,iBAAAA,QAAQC,qBAAAA,UAAU"}
|
package/dist/index.d.cts
CHANGED
|
@@ -4,23 +4,26 @@ import { a as point, i as band, n as BandScale, r as BandScaleOptions, t as Band
|
|
|
4
4
|
import { a as linePath, i as areaPath, n as PathOptions, r as Point, t as Curve } from "./path-YeUiOfG8.cjs";
|
|
5
5
|
import { n as lttbIndices, t as lttb } from "./decimate-BxxYBJJk.cjs";
|
|
6
6
|
import { a as InsetsInput, c as estimateTextWidth, i as Insets, l as innerRect, o as LINE_HEIGHT, s as Rect, t as Annotation, u as insets } from "./annotations-CHafaGd4.cjs";
|
|
7
|
-
import {
|
|
7
|
+
import { A as download, At as describeHit, B as features, C as TooltipPlacement, Ct as Tick, D as DownloadFormat, Dt as linearTicks, E as tooltipContent, Et as bandTicks, Ft as HitTester, G as padAngleForGap, H as ArcOptions, It as Interaction, J as ExportTarget, K as DownloadOptions, M as BeforeRenderState, Mt as Highlight, N as ChartPlugin, Nt as Hit, O as DownloadMenuOptions, Ot as thinTicks, P as PluginInstance, Pt as HitItem, Q as exportSVG, R as Features, S as TooltipOptions, St as LinearTicksOptions, T as placeTooltip, Tt as axisSize, U as arcCentroid, V as register, W as arcPathStable, X as downloadChart, Y as ImageOptions, Z as exportImage, _ as chartToString, _t as seriesKey, a as ChartEvents, at as LegendItem, b as resolveLegend, bt as AxisOptions, c as RenderContext, ct as legendContent, d as Size, dt as CategoryAxisOptions, f as TableContext, ft as Label, g as chartModel, gt as domainOf, h as chartLabel, ht as categoryInteraction, i as ChartConfig, j as AfterRenderState, jt as tableContent, k as DownloadOption, kt as DataTable, l as RenderResult, lt as CartesianData, m as chartEvents, mt as ValueAxisOptions, n as BuiltChart, o as ChartType, ot as LegendOptions, p as buildChart, pt as Series, q as ExportOptions, r as Chart$1, s as ContextOptions, st as defaultHidden, t as BaseOptions, u as ResolvedLegend, ut as CartesianOptions, v as renderChart, vt as seriesLegend, w as hitAnchor, wt as axis, x as resolveSize, xt as AxisPosition, y as renderContext, yt as seriesTable, z as feature } from "./chart-CbPzP5Dp.cjs";
|
|
8
8
|
import { a as ClassValue, c as StyleValue, d as normalizeClass, f as normalizeStyle, i as ChildInput, l as VNode, n as Attrs, o as Key, r as Child, s as Props, t as AttrValue, u as h } from "./vnode-Du2cC8Fm.cjs";
|
|
9
|
-
import { n as line, t as LineOptions } from "./line-
|
|
10
|
-
import { n as area, t as AreaOptions } from "./area-
|
|
11
|
-
import { n as bar, t as BarOptions } from "./bar-
|
|
12
|
-
import { n as
|
|
13
|
-
import { n as
|
|
14
|
-
import { n as
|
|
15
|
-
import { n as
|
|
16
|
-
import { n as
|
|
17
|
-
import { i as
|
|
18
|
-
import { n as
|
|
19
|
-
import {
|
|
20
|
-
import { i as
|
|
21
|
-
import { n as
|
|
22
|
-
import { n as
|
|
23
|
-
import {
|
|
9
|
+
import { n as line, t as LineOptions } from "./line-vyWO030v.cjs";
|
|
10
|
+
import { n as area, t as AreaOptions } from "./area-h_FvieFb.cjs";
|
|
11
|
+
import { n as bar, t as BarOptions } from "./bar-DZCQ-kyf.cjs";
|
|
12
|
+
import { a as calendar, i as CalendarSeries, n as CalendarEntry, r as CalendarOptions, t as CalendarData } from "./calendar-BSvO8nRb.cjs";
|
|
13
|
+
import { n as CandlestickOptions, r as candlestick, t as Candle } from "./candlestick-BcomxeVG.cjs";
|
|
14
|
+
import { n as FunnelStage, r as funnel, t as FunnelOptions } from "./funnel-CarOh8w_.cjs";
|
|
15
|
+
import { n as GaugeRing, r as gauge, t as GaugeOptions } from "./gauge-Ds9k1UV2.cjs";
|
|
16
|
+
import { n as HeatmapRange, r as heatmap, t as HeatmapOptions } from "./heatmap-CJ-0dfhJ.cjs";
|
|
17
|
+
import { a as MapOptions, c as map, i as MapMarker, l as MapLayout, n as MapHit, o as MapRegion, r as MapLine, s as addMap, t as MapData, u as MapView } from "./map-49FcfdmJ.cjs";
|
|
18
|
+
import { n as ParliamentParty, r as parliament, t as ParliamentOptions } from "./parliament-C7V8UJj1.cjs";
|
|
19
|
+
import { n as PercentageBarSegment, r as percentageBar, t as PercentageBarOptions } from "./percentage-bar-R1--2grK.cjs";
|
|
20
|
+
import { i as pie, n as PieSlice, r as donut, t as PieOptions } from "./pie-vD5-g8je.cjs";
|
|
21
|
+
import { n as RadialAxisOptions, r as radar, t as RadarOptions } from "./radar-7I6hsY_h.cjs";
|
|
22
|
+
import { a as sankey, i as SankeyOptions, n as SankeyLink, r as SankeyNode, t as SankeyData } from "./sankey-DqiuxUx7.cjs";
|
|
23
|
+
import { i as scatter, n as ScatterPoint, r as ScatterSeries, t as ScatterOptions } from "./scatter-DL0zAV09.cjs";
|
|
24
|
+
import { n as sparkline, t as SparklineOptions } from "./sparkline-RYly7bR0.cjs";
|
|
25
|
+
import { n as TreemapOptions, r as treemap, t as TreemapNode } from "./treemap-25vHO_UK.cjs";
|
|
26
|
+
import { C as keyboard, D as GridOptions, E as hoverUnderlay, O as grid, S as legend, T as hoverOverlay, _ as defaultPlugins, a as flush, b as sync, c as tickIncrement, d as extent, f as RenderToStringOptions, g as render, h as renderToString, i as cancel, l as tickStep, m as escapeText, n as barPath, o as schedule, p as escapeAttr, r as hbarPath, s as niceDomain, t as VERSION, u as ticks, v as tooltip, w as highlight, x as pointer, y as dataTable } from "./core-9BnLEW4K.cjs";
|
|
24
27
|
/**
|
|
25
28
|
* A chart with every built-in plugin installed: hover highlight, legend,
|
|
26
29
|
* tooltip, data table and keyboard navigation. Each can be switched off in
|
|
@@ -32,7 +35,7 @@ import { C as keyboard, D as GridOptions, E as hoverUnderlay, O as grid, S as le
|
|
|
32
35
|
* ```
|
|
33
36
|
*/
|
|
34
37
|
export declare class Chart<O extends object = object> extends Chart$1<O> {
|
|
35
|
-
constructor(target:
|
|
38
|
+
constructor(target: HTMLElement | string, config: ChartConfig<O>);
|
|
36
39
|
}
|
|
37
40
|
/**
|
|
38
41
|
* Every built-in chart type by its name, for charts declared in markup
|
|
@@ -40,4 +43,4 @@ export declare class Chart<O extends object = object> extends Chart$1<O> {
|
|
|
40
43
|
* brings every type along: code that knows its types imports them directly.
|
|
41
44
|
*/
|
|
42
45
|
export declare const types: Readonly<Record<string, ChartType<never>>>;
|
|
43
|
-
export { type AfterRenderState, type Annotation, type ArcOptions, type AreaOptions, type AttrValue, type Attrs, type AxisOptions, type AxisPosition, type BandKey, type BandScale, type BandScaleOptions, type BarOptions, type BaseOptions, type BeforeRenderState, type Candle, type CandlestickOptions, type CartesianData, type CartesianOptions, type CategoryAxisOptions, type ChartConfig, type ChartEvents, type ChartPlugin, type ChartType, type Child, type ChildInput, type ClassValue, type Curve, type DataTable, type DateFormat, type DownloadFormat, type DownloadMenuOptions, type DownloadOption, type DownloadOptions, type ExportOptions, type ExportTarget, type Features, type GaugeOptions, type GaugeRing, type GridOptions, type HeatmapOptions, type HeatmapRange, type Hit, type HitItem, type HitTester, type ImageOptions, type Insets, type InsetsInput, type Interaction, type Key, LINE_HEIGHT, type Label, type LegendItem, type LegendOptions, type LineOptions, type LinearScale, type LinearScaleOptions, type LinearTicksOptions, type Locale, type LogScaleOptions, type NumberFormat, type NumberFormatOptions, type ParliamentOptions, type ParliamentParty, type PathOptions, type PercentageBarOptions, type PercentageBarSegment, type PieOptions, type PieSlice, type PluginInstance, type Point, type Props, type RadarOptions, type RadialAxisOptions, type Rect, type RenderContext, type RenderToStringOptions, type ResolvedLegend, type SankeyData, type SankeyLink, type SankeyNode, type SankeyOptions, type ScatterOptions, type ScatterPoint, type ScatterSeries, type Series, type Size, type SparklineOptions, type StyleValue, type Tick, type TimeScale, type TimeScaleOptions, type TimeValue, type TooltipOptions, type TooltipPlacement, type TreemapNode, type TreemapOptions, VERSION, type VNode, type ValueAxisOptions, arcCentroid, arcPathStable, area, areaPath, axis, axisSize, band, bandTicks, bar, barPath, buildChart, cancel, candlestick, categoryInteraction, chartEvents, chartLabel, chartToString, dataTable, defaultHidden, defaultPlugins, describeHit, domainOf, donut, download, downloadChart, escapeAttr, escapeText, estimateTextWidth, exportImage, exportSVG, extent, feature, features, flush, formatDate, formatDetail, formatNumber, formatTicks, gauge, getDateFormat, getNumberFormat, grid, h, hbarPath, heatmap, highlight, hitAnchor, hoverOverlay, hoverUnderlay, innerRect, insets, keyboard, legend, legendContent, line, linePath, linear, linearTicks, log, lttb, lttbIndices, niceDomain, normalizeClass, normalizeStyle, padAngleForGap, parliament, percentageBar, pie, placeTooltip, point, pointer, radar, register, render, renderContext, renderToString, resolveLegend, resolveSize, sankey, scatter, schedule, seriesKey, seriesLegend, seriesTable, sparkline, stepPrecision, sync, tableContent, thinTicks, tickIncrement, tickStep, ticks, time, timePointScale, tooltip, tooltipContent, treemap };
|
|
46
|
+
export { type AfterRenderState, type Annotation, type ArcOptions, type AreaOptions, type AttrValue, type Attrs, type AxisOptions, type AxisPosition, type BandKey, type BandScale, type BandScaleOptions, type BarOptions, type BaseOptions, type BeforeRenderState, type BuiltChart, type CalendarData, type CalendarEntry, type CalendarOptions, type CalendarSeries, type Candle, type CandlestickOptions, type CartesianData, type CartesianOptions, type CategoryAxisOptions, type ChartConfig, type ChartEvents, type ChartPlugin, type ChartType, type Child, type ChildInput, type ClassValue, type ContextOptions, type Curve, type DataTable, type DateFormat, type DownloadFormat, type DownloadMenuOptions, type DownloadOption, type DownloadOptions, type ExportOptions, type ExportTarget, type Features, type FunnelOptions, type FunnelStage, type GaugeOptions, type GaugeRing, type GridOptions, type HeatmapOptions, type HeatmapRange, type Highlight, type Hit, type HitItem, type HitTester, type ImageOptions, type Insets, type InsetsInput, type Interaction, type Key, LINE_HEIGHT, type Label, type LegendItem, type LegendOptions, type LineOptions, type LinearScale, type LinearScaleOptions, type LinearTicksOptions, type Locale, type LogScaleOptions, type MapData, type MapHit, type MapLayout, type MapLine, type MapMarker, type MapOptions, type MapRegion, type MapView, type NumberFormat, type NumberFormatOptions, type ParliamentOptions, type ParliamentParty, type PathOptions, type PercentageBarOptions, type PercentageBarSegment, type PieOptions, type PieSlice, type PluginInstance, type Point, type Props, type RadarOptions, type RadialAxisOptions, type Rect, type RenderContext, type RenderResult, type RenderToStringOptions, type ResolvedLegend, type SankeyData, type SankeyLink, type SankeyNode, type SankeyOptions, type ScatterOptions, type ScatterPoint, type ScatterSeries, type Series, type Size, type SparklineOptions, type StyleValue, type TableContext, type Tick, type TimeScale, type TimeScaleOptions, type TimeValue, type TooltipOptions, type TooltipPlacement, type TreemapNode, type TreemapOptions, VERSION, type VNode, type ValueAxisOptions, addMap, arcCentroid, arcPathStable, area, areaPath, axis, axisSize, band, bandTicks, bar, barPath, buildChart, calendar, cancel, candlestick, categoryInteraction, chartEvents, chartLabel, chartModel, chartToString, dataTable, defaultHidden, defaultPlugins, describeHit, domainOf, donut, download, downloadChart, escapeAttr, escapeText, estimateTextWidth, exportImage, exportSVG, extent, feature, features, flush, formatDate, formatDetail, formatNumber, formatTicks, funnel, gauge, getDateFormat, getNumberFormat, grid, h, hbarPath, heatmap, highlight, hitAnchor, hoverOverlay, hoverUnderlay, innerRect, insets, keyboard, legend, legendContent, line, linePath, linear, linearTicks, log, lttb, lttbIndices, map, niceDomain, normalizeClass, normalizeStyle, padAngleForGap, parliament, percentageBar, pie, placeTooltip, point, pointer, radar, register, render, renderChart, renderContext, renderToString, resolveLegend, resolveSize, sankey, scatter, schedule, seriesKey, seriesLegend, seriesTable, sparkline, stepPrecision, sync, tableContent, thinTicks, tickIncrement, tickStep, ticks, time, timePointScale, tooltip, tooltipContent, treemap };
|