@salmonui/charts 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +61 -2
- package/dist/barcode/Barcode.d.ts +48 -0
- package/dist/barcode/Barcode.d.ts.map +1 -0
- package/dist/barcode/Barcode.js +31 -0
- package/dist/barcode/Barcode.js.map +1 -0
- package/dist/barcode/DotCode.d.ts +12 -0
- package/dist/barcode/DotCode.d.ts.map +1 -0
- package/dist/barcode/DotCode.js +21 -0
- package/dist/barcode/DotCode.js.map +1 -0
- package/dist/barcode/Gs1DataBar.d.ts +16 -0
- package/dist/barcode/Gs1DataBar.d.ts.map +1 -0
- package/dist/barcode/Gs1DataBar.js +27 -0
- package/dist/barcode/Gs1DataBar.js.map +1 -0
- package/dist/barcode/Pdf417.d.ts +24 -0
- package/dist/barcode/Pdf417.d.ts.map +1 -0
- package/dist/barcode/Pdf417.js +21 -0
- package/dist/barcode/Pdf417.js.map +1 -0
- package/dist/barcode/QRCode.d.ts +39 -0
- package/dist/barcode/QRCode.d.ts.map +1 -0
- package/dist/barcode/QRCode.js +24 -0
- package/dist/barcode/QRCode.js.map +1 -0
- package/dist/barcode/SymbolSvg.d.ts +44 -0
- package/dist/barcode/SymbolSvg.d.ts.map +1 -0
- package/dist/barcode/SymbolSvg.js +62 -0
- package/dist/barcode/SymbolSvg.js.map +1 -0
- package/dist/barcode/encode/databar.d.ts +18 -0
- package/dist/barcode/encode/databar.d.ts.map +1 -0
- package/dist/barcode/encode/databar.js +506 -0
- package/dist/barcode/encode/databar.js.map +1 -0
- package/dist/barcode/encode/datamatrix.d.ts +41 -0
- package/dist/barcode/encode/datamatrix.d.ts.map +1 -0
- package/dist/barcode/encode/datamatrix.js +300 -0
- package/dist/barcode/encode/datamatrix.js.map +1 -0
- package/dist/barcode/encode/dotcode.d.ts +31 -0
- package/dist/barcode/encode/dotcode.d.ts.map +1 -0
- package/dist/barcode/encode/dotcode.js +470 -0
- package/dist/barcode/encode/dotcode.js.map +1 -0
- package/dist/barcode/encode/fail.d.ts +10 -0
- package/dist/barcode/encode/fail.d.ts.map +1 -0
- package/dist/barcode/encode/fail.js +6 -0
- package/dist/barcode/encode/fail.js.map +1 -0
- package/dist/barcode/encode/index.d.ts +15 -0
- package/dist/barcode/encode/index.d.ts.map +1 -0
- package/dist/barcode/encode/index.js +31 -0
- package/dist/barcode/encode/index.js.map +1 -0
- package/dist/barcode/encode/linear.d.ts +85 -0
- package/dist/barcode/encode/linear.d.ts.map +1 -0
- package/dist/barcode/encode/linear.js +516 -0
- package/dist/barcode/encode/linear.js.map +1 -0
- package/dist/barcode/encode/pdf417.d.ts +26 -0
- package/dist/barcode/encode/pdf417.d.ts.map +1 -0
- package/dist/barcode/encode/pdf417.js +371 -0
- package/dist/barcode/encode/pdf417.js.map +1 -0
- package/dist/barcode/encode/qr.d.ts +51 -0
- package/dist/barcode/encode/qr.d.ts.map +1 -0
- package/dist/barcode/encode/qr.js +454 -0
- package/dist/barcode/encode/qr.js.map +1 -0
- package/dist/barcode/encode/svg.d.ts +5 -0
- package/dist/barcode/encode/svg.d.ts.map +1 -0
- package/dist/barcode/encode/svg.js +40 -0
- package/dist/barcode/encode/svg.js.map +1 -0
- package/dist/barcode/props.d.ts +59 -0
- package/dist/barcode/props.d.ts.map +1 -0
- package/dist/barcode/props.js +14 -0
- package/dist/barcode/props.js.map +1 -0
- package/dist/barcode/render.d.ts +60 -0
- package/dist/barcode/render.d.ts.map +1 -0
- package/dist/barcode/render.js +95 -0
- package/dist/barcode/render.js.map +1 -0
- package/dist/barcode/rows.d.ts +27 -0
- package/dist/barcode/rows.d.ts.map +1 -0
- package/dist/barcode/rows.js +31 -0
- package/dist/barcode/rows.js.map +1 -0
- package/dist/barcode-dotcode.d.ts +7 -0
- package/dist/barcode-dotcode.d.ts.map +1 -0
- package/dist/barcode-dotcode.js +8 -0
- package/dist/barcode-dotcode.js.map +1 -0
- package/dist/barcode-gs1-databar.d.ts +7 -0
- package/dist/barcode-gs1-databar.d.ts.map +1 -0
- package/dist/barcode-gs1-databar.js +7 -0
- package/dist/barcode-gs1-databar.js.map +1 -0
- package/dist/barcode-pdf417.d.ts +7 -0
- package/dist/barcode-pdf417.d.ts.map +1 -0
- package/dist/barcode-pdf417.js +8 -0
- package/dist/barcode-pdf417.js.map +1 -0
- package/dist/barcode.css +30 -0
- package/dist/barcode.d.ts +10 -0
- package/dist/barcode.d.ts.map +1 -0
- package/dist/barcode.js +13 -0
- package/dist/barcode.js.map +1 -0
- package/dist/chart/BulletChart.d.ts +59 -0
- package/dist/chart/BulletChart.d.ts.map +1 -0
- package/dist/chart/BulletChart.js +107 -0
- package/dist/chart/BulletChart.js.map +1 -0
- package/dist/chart/Chart.d.ts +41 -0
- package/dist/chart/Chart.d.ts.map +1 -0
- package/dist/chart/Chart.js +572 -0
- package/dist/chart/Chart.js.map +1 -0
- package/dist/chart/ChartSeries.d.ts +14 -0
- package/dist/chart/ChartSeries.d.ts.map +1 -0
- package/dist/chart/ChartSeries.js +13 -0
- package/dist/chart/ChartSeries.js.map +1 -0
- package/dist/chart/ChartSyncGroup.d.ts +37 -0
- package/dist/chart/ChartSyncGroup.d.ts.map +1 -0
- package/dist/chart/ChartSyncGroup.js +19 -0
- package/dist/chart/ChartSyncGroup.js.map +1 -0
- package/dist/chart/features.d.ts +11 -0
- package/dist/chart/features.d.ts.map +1 -0
- package/dist/chart/features.js +10 -0
- package/dist/chart/features.js.map +1 -0
- package/dist/chart/indicators.d.ts +17 -0
- package/dist/chart/indicators.d.ts.map +1 -0
- package/dist/chart/indicators.js +121 -0
- package/dist/chart/indicators.js.map +1 -0
- package/dist/chart/interact.d.ts +65 -0
- package/dist/chart/interact.d.ts.map +1 -0
- package/dist/chart/interact.js +249 -0
- package/dist/chart/interact.js.map +1 -0
- package/dist/chart/model.d.ts +239 -0
- package/dist/chart/model.d.ts.map +1 -0
- package/dist/chart/model.js +1300 -0
- package/dist/chart/model.js.map +1 -0
- package/dist/chart/overlay.d.ts +50 -0
- package/dist/chart/overlay.d.ts.map +1 -0
- package/dist/chart/overlay.js +221 -0
- package/dist/chart/overlay.js.map +1 -0
- package/dist/chart/polar.d.ts +5 -0
- package/dist/chart/polar.d.ts.map +1 -0
- package/dist/chart/polar.js +164 -0
- package/dist/chart/polar.js.map +1 -0
- package/dist/chart/render.d.ts +23 -0
- package/dist/chart/render.d.ts.map +1 -0
- package/dist/chart/render.js +81 -0
- package/dist/chart/render.js.map +1 -0
- package/dist/chart/types.d.ts +616 -0
- package/dist/chart/types.d.ts.map +1 -0
- package/dist/chart/types.js +5 -0
- package/dist/chart/types.js.map +1 -0
- package/dist/chart/zoom-toolbar.d.ts +14 -0
- package/dist/chart/zoom-toolbar.d.ts.map +1 -0
- package/dist/chart/zoom-toolbar.js +11 -0
- package/dist/chart/zoom-toolbar.js.map +1 -0
- package/dist/chart-bullet.d.ts +3 -0
- package/dist/chart-bullet.d.ts.map +1 -0
- package/dist/chart-bullet.js +9 -0
- package/dist/chart-bullet.js.map +1 -0
- package/dist/chart-export.d.ts +3 -0
- package/dist/chart-export.d.ts.map +1 -0
- package/dist/chart-export.js +6 -0
- package/dist/chart-export.js.map +1 -0
- package/dist/chart.css +552 -0
- package/dist/chart.d.ts +7 -0
- package/dist/chart.d.ts.map +1 -0
- package/dist/chart.js +12 -0
- package/dist/chart.js.map +1 -0
- package/dist/gauge/Gauge.d.ts +139 -0
- package/dist/gauge/Gauge.d.ts.map +1 -0
- package/dist/gauge/Gauge.js +254 -0
- package/dist/gauge/Gauge.js.map +1 -0
- package/dist/gauge/animate.d.ts +4 -0
- package/dist/gauge/animate.d.ts.map +1 -0
- package/dist/gauge/animate.js +41 -0
- package/dist/gauge/animate.js.map +1 -0
- package/dist/gauge/drag.d.ts +9 -0
- package/dist/gauge/drag.d.ts.map +1 -0
- package/dist/gauge/drag.js +28 -0
- package/dist/gauge/drag.js.map +1 -0
- package/dist/gauge/layout.d.ts +257 -0
- package/dist/gauge/layout.d.ts.map +1 -0
- package/dist/gauge/layout.js +399 -0
- package/dist/gauge/layout.js.map +1 -0
- package/dist/gauge/tooltip.d.ts +20 -0
- package/dist/gauge/tooltip.d.ts.map +1 -0
- package/dist/gauge/tooltip.js +19 -0
- package/dist/gauge/tooltip.js.map +1 -0
- package/dist/gauge.css +379 -0
- package/dist/gauge.d.ts +5 -0
- package/dist/gauge.d.ts.map +1 -0
- package/dist/gauge.js +9 -0
- package/dist/gauge.js.map +1 -0
- package/dist/geo-map/GeoMap.d.ts +198 -0
- package/dist/geo-map/GeoMap.d.ts.map +1 -0
- package/dist/geo-map/GeoMap.js +621 -0
- package/dist/geo-map/GeoMap.js.map +1 -0
- package/dist/geo-map/model.d.ts +270 -0
- package/dist/geo-map/model.d.ts.map +1 -0
- package/dist/geo-map/model.js +265 -0
- package/dist/geo-map/model.js.map +1 -0
- package/dist/geo-map/tiles.d.ts +13 -0
- package/dist/geo-map/tiles.d.ts.map +1 -0
- package/dist/geo-map/tiles.js +13 -0
- package/dist/geo-map/tiles.js.map +1 -0
- package/dist/geo-map.css +522 -0
- package/dist/geo-map.d.ts +6 -0
- package/dist/geo-map.d.ts.map +1 -0
- package/dist/geo-map.js +11 -0
- package/dist/geo-map.js.map +1 -0
- package/dist/heat-map/HeatMap.d.ts +6 -0
- package/dist/heat-map/HeatMap.d.ts.map +1 -0
- package/dist/heat-map/HeatMap.js +329 -0
- package/dist/heat-map/HeatMap.js.map +1 -0
- package/dist/heat-map/canvas.d.ts +12 -0
- package/dist/heat-map/canvas.d.ts.map +1 -0
- package/dist/heat-map/canvas.js +71 -0
- package/dist/heat-map/canvas.js.map +1 -0
- package/dist/heat-map/model.d.ts +41 -0
- package/dist/heat-map/model.d.ts.map +1 -0
- package/dist/heat-map/model.js +194 -0
- package/dist/heat-map/model.js.map +1 -0
- package/dist/heat-map/types.d.ts +168 -0
- package/dist/heat-map/types.d.ts.map +1 -0
- package/dist/heat-map/types.js +2 -0
- package/dist/heat-map/types.js.map +1 -0
- package/dist/heat-map.css +362 -0
- package/dist/heat-map.d.ts +5 -0
- package/dist/heat-map.d.ts.map +1 -0
- package/dist/heat-map.js +11 -0
- package/dist/heat-map.js.map +1 -0
- package/dist/internal/data-colors.d.ts +11 -0
- package/dist/internal/data-colors.d.ts.map +1 -0
- package/dist/internal/data-colors.js +60 -0
- package/dist/internal/data-colors.js.map +1 -0
- package/dist/internal/message.d.ts +7 -0
- package/dist/internal/message.d.ts.map +1 -0
- package/dist/internal/message.js +12 -0
- package/dist/internal/message.js.map +1 -0
- package/dist/internal/viz/animate.d.ts +10 -0
- package/dist/internal/viz/animate.d.ts.map +1 -0
- package/dist/internal/viz/animate.js +21 -0
- package/dist/internal/viz/animate.js.map +1 -0
- package/dist/internal/viz/canvas.d.ts +14 -0
- package/dist/internal/viz/canvas.d.ts.map +1 -0
- package/dist/internal/viz/canvas.js +34 -0
- package/dist/internal/viz/canvas.js.map +1 -0
- package/dist/internal/viz/children.d.ts +4 -0
- package/dist/internal/viz/children.d.ts.map +1 -0
- package/dist/internal/viz/children.js +11 -0
- package/dist/internal/viz/children.js.map +1 -0
- package/dist/internal/viz/export-all.d.ts +27 -0
- package/dist/internal/viz/export-all.d.ts.map +1 -0
- package/dist/internal/viz/export-all.js +8 -0
- package/dist/internal/viz/export-all.js.map +1 -0
- package/dist/internal/viz/export-data.d.ts +32 -0
- package/dist/internal/viz/export-data.d.ts.map +1 -0
- package/dist/internal/viz/export-data.js +100 -0
- package/dist/internal/viz/export-data.js.map +1 -0
- package/dist/internal/viz/export.d.ts +48 -0
- package/dist/internal/viz/export.d.ts.map +1 -0
- package/dist/internal/viz/export.js +199 -0
- package/dist/internal/viz/export.js.map +1 -0
- package/dist/internal/viz/fields.d.ts +2 -0
- package/dist/internal/viz/fields.d.ts.map +1 -0
- package/dist/internal/viz/fields.js +5 -0
- package/dist/internal/viz/fields.js.map +1 -0
- package/dist/internal/viz/figure.d.ts +48 -0
- package/dist/internal/viz/figure.d.ts.map +1 -0
- package/dist/internal/viz/figure.js +28 -0
- package/dist/internal/viz/figure.js.map +1 -0
- package/dist/internal/viz/format.d.ts +21 -0
- package/dist/internal/viz/format.d.ts.map +1 -0
- package/dist/internal/viz/format.js +77 -0
- package/dist/internal/viz/format.js.map +1 -0
- package/dist/internal/viz/frame.d.ts +81 -0
- package/dist/internal/viz/frame.d.ts.map +1 -0
- package/dist/internal/viz/frame.js +78 -0
- package/dist/internal/viz/frame.js.map +1 -0
- package/dist/internal/viz/instance-run.d.ts +6 -0
- package/dist/internal/viz/instance-run.d.ts.map +1 -0
- package/dist/internal/viz/instance-run.js +43 -0
- package/dist/internal/viz/instance-run.js.map +1 -0
- package/dist/internal/viz/instance.d.ts +59 -0
- package/dist/internal/viz/instance.d.ts.map +1 -0
- package/dist/internal/viz/instance.js +23 -0
- package/dist/internal/viz/instance.js.map +1 -0
- package/dist/internal/viz/keyboard.d.ts +21 -0
- package/dist/internal/viz/keyboard.d.ts.map +1 -0
- package/dist/internal/viz/keyboard.js +78 -0
- package/dist/internal/viz/keyboard.js.map +1 -0
- package/dist/internal/viz/legend.d.ts +63 -0
- package/dist/internal/viz/legend.d.ts.map +1 -0
- package/dist/internal/viz/legend.js +76 -0
- package/dist/internal/viz/legend.js.map +1 -0
- package/dist/internal/viz/plot-canvas.d.ts +16 -0
- package/dist/internal/viz/plot-canvas.d.ts.map +1 -0
- package/dist/internal/viz/plot-canvas.js +62 -0
- package/dist/internal/viz/plot-canvas.js.map +1 -0
- package/dist/internal/viz/size.d.ts +20 -0
- package/dist/internal/viz/size.d.ts.map +1 -0
- package/dist/internal/viz/size.js +61 -0
- package/dist/internal/viz/size.js.map +1 -0
- package/dist/internal/viz/store.d.ts +20 -0
- package/dist/internal/viz/store.d.ts.map +1 -0
- package/dist/internal/viz/store.js +74 -0
- package/dist/internal/viz/store.js.map +1 -0
- package/dist/internal/viz/svg-server.d.ts +15 -0
- package/dist/internal/viz/svg-server.d.ts.map +1 -0
- package/dist/internal/viz/svg-server.js +105 -0
- package/dist/internal/viz/svg-server.js.map +1 -0
- package/dist/internal/viz/tooltip.d.ts +14 -0
- package/dist/internal/viz/tooltip.d.ts.map +1 -0
- package/dist/internal/viz/tooltip.js +34 -0
- package/dist/internal/viz/tooltip.js.map +1 -0
- package/dist/pie-chart/Accumulation.d.ts +93 -0
- package/dist/pie-chart/Accumulation.d.ts.map +1 -0
- package/dist/pie-chart/Accumulation.js +243 -0
- package/dist/pie-chart/Accumulation.js.map +1 -0
- package/dist/pie-chart/FunnelChart.d.ts +4 -0
- package/dist/pie-chart/FunnelChart.d.ts.map +1 -0
- package/dist/pie-chart/FunnelChart.js +47 -0
- package/dist/pie-chart/FunnelChart.js.map +1 -0
- package/dist/pie-chart/PieChart.d.ts +4 -0
- package/dist/pie-chart/PieChart.d.ts.map +1 -0
- package/dist/pie-chart/PieChart.js +87 -0
- package/dist/pie-chart/PieChart.js.map +1 -0
- package/dist/pie-chart/types.d.ts +243 -0
- package/dist/pie-chart/types.d.ts.map +1 -0
- package/dist/pie-chart/types.js +2 -0
- package/dist/pie-chart/types.js.map +1 -0
- package/dist/pie-chart.css +389 -0
- package/dist/pie-chart.d.ts +6 -0
- package/dist/pie-chart.d.ts.map +1 -0
- package/dist/pie-chart.js +12 -0
- package/dist/pie-chart.js.map +1 -0
- package/dist/range-selector/PeriodSelector.d.ts +19 -0
- package/dist/range-selector/PeriodSelector.d.ts.map +1 -0
- package/dist/range-selector/PeriodSelector.js +11 -0
- package/dist/range-selector/PeriodSelector.js.map +1 -0
- package/dist/range-selector/RangeSelector.d.ts +71 -0
- package/dist/range-selector/RangeSelector.d.ts.map +1 -0
- package/dist/range-selector/RangeSelector.js +220 -0
- package/dist/range-selector/RangeSelector.js.map +1 -0
- package/dist/range-selector/model.d.ts +77 -0
- package/dist/range-selector/model.d.ts.map +1 -0
- package/dist/range-selector/model.js +162 -0
- package/dist/range-selector/model.js.map +1 -0
- package/dist/range-selector/period.d.ts +17 -0
- package/dist/range-selector/period.d.ts.map +1 -0
- package/dist/range-selector/period.js +31 -0
- package/dist/range-selector/period.js.map +1 -0
- package/dist/range-selector.css +407 -0
- package/dist/range-selector.d.ts +8 -0
- package/dist/range-selector.d.ts.map +1 -0
- package/dist/range-selector.js +11 -0
- package/dist/range-selector.js.map +1 -0
- package/dist/sankey-chart/SankeyChart.d.ts +4 -0
- package/dist/sankey-chart/SankeyChart.d.ts.map +1 -0
- package/dist/sankey-chart/SankeyChart.js +308 -0
- package/dist/sankey-chart/SankeyChart.js.map +1 -0
- package/dist/sankey-chart/types.d.ts +131 -0
- package/dist/sankey-chart/types.d.ts.map +1 -0
- package/dist/sankey-chart/types.js +2 -0
- package/dist/sankey-chart/types.js.map +1 -0
- package/dist/sankey-chart.css +344 -0
- package/dist/sankey-chart.d.ts +5 -0
- package/dist/sankey-chart.d.ts.map +1 -0
- package/dist/sankey-chart.js +10 -0
- package/dist/sankey-chart.js.map +1 -0
- package/dist/server-visualization.d.ts +3 -0
- package/dist/server-visualization.d.ts.map +1 -0
- package/dist/server-visualization.js +7 -0
- package/dist/server-visualization.js.map +1 -0
- package/dist/sparkline/Sparkline.d.ts +4 -0
- package/dist/sparkline/Sparkline.d.ts.map +1 -0
- package/dist/sparkline/Sparkline.js +103 -0
- package/dist/sparkline/Sparkline.js.map +1 -0
- package/dist/sparkline/canvas.d.ts +4 -0
- package/dist/sparkline/canvas.d.ts.map +1 -0
- package/dist/sparkline/canvas.js +68 -0
- package/dist/sparkline/canvas.js.map +1 -0
- package/dist/sparkline/model.d.ts +29 -0
- package/dist/sparkline/model.d.ts.map +1 -0
- package/dist/sparkline/model.js +116 -0
- package/dist/sparkline/model.js.map +1 -0
- package/dist/sparkline/tooltip.d.ts +15 -0
- package/dist/sparkline/tooltip.d.ts.map +1 -0
- package/dist/sparkline/tooltip.js +138 -0
- package/dist/sparkline/tooltip.js.map +1 -0
- package/dist/sparkline/types.d.ts +119 -0
- package/dist/sparkline/types.d.ts.map +1 -0
- package/dist/sparkline/types.js +2 -0
- package/dist/sparkline/types.js.map +1 -0
- package/dist/sparkline.css +70 -0
- package/dist/sparkline.d.ts +3 -0
- package/dist/sparkline.d.ts.map +1 -0
- package/dist/sparkline.js +10 -0
- package/dist/sparkline.js.map +1 -0
- package/dist/stock-chart/StockChart.d.ts +118 -0
- package/dist/stock-chart/StockChart.d.ts.map +1 -0
- package/dist/stock-chart/StockChart.js +223 -0
- package/dist/stock-chart/StockChart.js.map +1 -0
- package/dist/stock-chart.css +54 -0
- package/dist/stock-chart.d.ts +3 -0
- package/dist/stock-chart.d.ts.map +1 -0
- package/dist/stock-chart.js +10 -0
- package/dist/stock-chart.js.map +1 -0
- package/dist/styles.css +1284 -0
- package/dist/tree-map/TreeMap.d.ts +4 -0
- package/dist/tree-map/TreeMap.d.ts.map +1 -0
- package/dist/tree-map/TreeMap.js +309 -0
- package/dist/tree-map/TreeMap.js.map +1 -0
- package/dist/tree-map/types.d.ts +158 -0
- package/dist/tree-map/types.d.ts.map +1 -0
- package/dist/tree-map/types.js +2 -0
- package/dist/tree-map/types.js.map +1 -0
- package/dist/tree-map.css +425 -0
- package/dist/tree-map.d.ts +5 -0
- package/dist/tree-map.d.ts.map +1 -0
- package/dist/tree-map.js +10 -0
- package/dist/tree-map.js.map +1 -0
- package/dist/viz/accumulation.d.ts +135 -0
- package/dist/viz/accumulation.d.ts.map +1 -0
- package/dist/viz/accumulation.js +233 -0
- package/dist/viz/accumulation.js.map +1 -0
- package/dist/viz/cluster.d.ts +13 -0
- package/dist/viz/cluster.d.ts.map +1 -0
- package/dist/viz/cluster.js +26 -0
- package/dist/viz/cluster.js.map +1 -0
- package/dist/viz/color.d.ts +33 -0
- package/dist/viz/color.d.ts.map +1 -0
- package/dist/viz/color.js +77 -0
- package/dist/viz/color.js.map +1 -0
- package/dist/viz/decimate.d.ts +41 -0
- package/dist/viz/decimate.d.ts.map +1 -0
- package/dist/viz/decimate.js +205 -0
- package/dist/viz/decimate.js.map +1 -0
- package/dist/viz/field.d.ts +5 -0
- package/dist/viz/field.d.ts.map +1 -0
- package/dist/viz/field.js +23 -0
- package/dist/viz/field.js.map +1 -0
- package/dist/viz/format.d.ts +11 -0
- package/dist/viz/format.d.ts.map +1 -0
- package/dist/viz/format.js +45 -0
- package/dist/viz/format.js.map +1 -0
- package/dist/viz/geometry.d.ts +36 -0
- package/dist/viz/geometry.d.ts.map +1 -0
- package/dist/viz/geometry.js +290 -0
- package/dist/viz/geometry.js.map +1 -0
- package/dist/viz/heatmap.d.ts +37 -0
- package/dist/viz/heatmap.d.ts.map +1 -0
- package/dist/viz/heatmap.js +131 -0
- package/dist/viz/heatmap.js.map +1 -0
- package/dist/viz/hit-test.d.ts +30 -0
- package/dist/viz/hit-test.d.ts.map +1 -0
- package/dist/viz/hit-test.js +116 -0
- package/dist/viz/hit-test.js.map +1 -0
- package/dist/viz/index.d.ts +27 -0
- package/dist/viz/index.d.ts.map +1 -0
- package/dist/viz/index.js +32 -0
- package/dist/viz/index.js.map +1 -0
- package/dist/viz/indicators.d.ts +26 -0
- package/dist/viz/indicators.d.ts.map +1 -0
- package/dist/viz/indicators.js +166 -0
- package/dist/viz/indicators.js.map +1 -0
- package/dist/viz/labels.d.ts +48 -0
- package/dist/viz/labels.d.ts.map +1 -0
- package/dist/viz/labels.js +136 -0
- package/dist/viz/labels.js.map +1 -0
- package/dist/viz/layout.d.ts +134 -0
- package/dist/viz/layout.d.ts.map +1 -0
- package/dist/viz/layout.js +243 -0
- package/dist/viz/layout.js.map +1 -0
- package/dist/viz/palette.d.ts +40 -0
- package/dist/viz/palette.d.ts.map +1 -0
- package/dist/viz/palette.js +89 -0
- package/dist/viz/palette.js.map +1 -0
- package/dist/viz/polygon.d.ts +3 -0
- package/dist/viz/polygon.d.ts.map +1 -0
- package/dist/viz/polygon.js +18 -0
- package/dist/viz/polygon.js.map +1 -0
- package/dist/viz/polyline.d.ts +21 -0
- package/dist/viz/polyline.d.ts.map +1 -0
- package/dist/viz/polyline.js +52 -0
- package/dist/viz/polyline.js.map +1 -0
- package/dist/viz/projection.d.ts +63 -0
- package/dist/viz/projection.d.ts.map +1 -0
- package/dist/viz/projection.js +252 -0
- package/dist/viz/projection.js.map +1 -0
- package/dist/viz/sankey.d.ts +75 -0
- package/dist/viz/sankey.d.ts.map +1 -0
- package/dist/viz/sankey.js +292 -0
- package/dist/viz/sankey.js.map +1 -0
- package/dist/viz/scale.d.ts +95 -0
- package/dist/viz/scale.d.ts.map +1 -0
- package/dist/viz/scale.js +157 -0
- package/dist/viz/scale.js.map +1 -0
- package/dist/viz/stack.d.ts +25 -0
- package/dist/viz/stack.d.ts.map +1 -0
- package/dist/viz/stack.js +62 -0
- package/dist/viz/stack.js.map +1 -0
- package/dist/viz/stats.d.ts +52 -0
- package/dist/viz/stats.d.ts.map +1 -0
- package/dist/viz/stats.js +198 -0
- package/dist/viz/stats.js.map +1 -0
- package/dist/viz/summary.d.ts +30 -0
- package/dist/viz/summary.d.ts.map +1 -0
- package/dist/viz/summary.js +61 -0
- package/dist/viz/summary.js.map +1 -0
- package/dist/viz/text.d.ts +21 -0
- package/dist/viz/text.d.ts.map +1 -0
- package/dist/viz/text.js +99 -0
- package/dist/viz/text.js.map +1 -0
- package/dist/viz/ticks.d.ts +23 -0
- package/dist/viz/ticks.d.ts.map +1 -0
- package/dist/viz/ticks.js +146 -0
- package/dist/viz/ticks.js.map +1 -0
- package/dist/viz/time-ticks.d.ts +44 -0
- package/dist/viz/time-ticks.d.ts.map +1 -0
- package/dist/viz/time-ticks.js +246 -0
- package/dist/viz/time-ticks.js.map +1 -0
- package/dist/viz/treemap.d.ts +61 -0
- package/dist/viz/treemap.d.ts.map +1 -0
- package/dist/viz/treemap.js +171 -0
- package/dist/viz/treemap.js.map +1 -0
- package/dist/viz/trend.d.ts +31 -0
- package/dist/viz/trend.d.ts.map +1 -0
- package/dist/viz/trend.js +130 -0
- package/dist/viz/trend.js.map +1 -0
- package/dist/viz-animations.css +40 -0
- package/dist/viz-rtl.css +31 -0
- package/package.json +146 -4
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
import type { CSSProperties, DOMAttributes, MouseEvent, PointerEvent, ReactNode, Ref } from 'react';
|
|
2
|
+
import type { LocaleMessage } from '../internal/message.js';
|
|
3
|
+
import type { VizExportWriters } from '../internal/viz/instance.js';
|
|
4
|
+
export type ChartSeriesType = 'line' | 'area' | 'column' | 'bar' | 'scatter' | 'bubble' | 'hilo' | 'ohlc' | 'candle' | 'waterfall' | 'histogram' | 'boxPlot' | 'pareto' | 'bullet';
|
|
5
|
+
export type ChartCurve = 'linear' | 'natural' | 'monotone' | 'cardinal' | 'clamped' | 'step';
|
|
6
|
+
export type ChartLineStyle = 'solid' | 'dashed' | 'dotted';
|
|
7
|
+
export type ChartMarkerShape = 'circle' | 'rectangle' | 'triangle' | 'invertedTriangle' | 'diamond' | 'cross' | 'plus' | 'multiply' | 'horizontalLine' | 'verticalLine' | 'pentagon' | 'star' | 'none';
|
|
8
|
+
export type ChartLegendShape = ChartMarkerShape | 'seriesType';
|
|
9
|
+
/** A number preset (`'n2'`, `'c0'`, `'p1'`), a `{value}` template (`'{value} °C'`), or `Intl` options. */
|
|
10
|
+
export type ChartFormat = string | Intl.NumberFormatOptions | Intl.DateTimeFormatOptions;
|
|
11
|
+
/** A datum: a plain record read by field names (nested paths allowed, `'price.close'`). */
|
|
12
|
+
export type ChartDatum = Readonly<Record<string, unknown>>;
|
|
13
|
+
export interface ChartPointContext {
|
|
14
|
+
readonly seriesId: string;
|
|
15
|
+
readonly seriesName: string;
|
|
16
|
+
readonly index: number;
|
|
17
|
+
readonly datum: ChartDatum;
|
|
18
|
+
readonly x: unknown;
|
|
19
|
+
readonly y: number;
|
|
20
|
+
/** Formatted x and y as shown in tooltips and the table. */
|
|
21
|
+
readonly xText: string;
|
|
22
|
+
readonly yText: string;
|
|
23
|
+
readonly color: string;
|
|
24
|
+
}
|
|
25
|
+
export interface ChartMarkers {
|
|
26
|
+
readonly shape?: ChartMarkerShape | undefined;
|
|
27
|
+
readonly size?: number | undefined;
|
|
28
|
+
readonly filled?: boolean | undefined;
|
|
29
|
+
}
|
|
30
|
+
export interface ChartDataLabels {
|
|
31
|
+
readonly position?: 'outside' | 'top' | 'bottom' | 'middle' | 'auto' | undefined;
|
|
32
|
+
readonly format?: ChartFormat | ((ctx: ChartPointContext) => string) | undefined;
|
|
33
|
+
readonly angle?: number | undefined;
|
|
34
|
+
readonly showZero?: boolean | undefined;
|
|
35
|
+
/** Smart labels: what a label that collides with an earlier one does (series order is priority). */
|
|
36
|
+
readonly overlap?: 'none' | 'hide' | 'rotate90' | 'shiftY' | 'shiftX' | undefined;
|
|
37
|
+
/** Drops a label whose text repeats the previous label of the series. */
|
|
38
|
+
readonly dedupe?: boolean | undefined;
|
|
39
|
+
/** SVG content in place of the label text, placed at the label anchor. */
|
|
40
|
+
readonly render?: ((ctx: ChartPointContext) => ReactNode) | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface ChartErrorBars {
|
|
43
|
+
readonly kind: 'fixed' | 'percent' | 'standardDeviation' | 'standardError' | 'custom';
|
|
44
|
+
readonly amount?: number | undefined;
|
|
45
|
+
readonly plusField?: string | undefined;
|
|
46
|
+
readonly minusField?: string | undefined;
|
|
47
|
+
readonly direction?: 'both' | 'plus' | 'minus' | undefined;
|
|
48
|
+
readonly caps?: boolean | undefined;
|
|
49
|
+
/** Error along y (default), x (continuous x axes) or both, with the same kind and amount. */
|
|
50
|
+
readonly axis?: 'y' | 'x' | 'both' | undefined;
|
|
51
|
+
}
|
|
52
|
+
export interface ChartSegment {
|
|
53
|
+
/** Segment applies to values (x or y per `segmentAxis`) up to and including `until`; the last segment has none. */
|
|
54
|
+
readonly until?: number | undefined;
|
|
55
|
+
readonly color: string;
|
|
56
|
+
readonly lineStyle?: ChartLineStyle | undefined;
|
|
57
|
+
}
|
|
58
|
+
export interface ChartTrendline {
|
|
59
|
+
readonly kind: 'linear' | 'exponential' | 'logarithmic' | 'polynomial' | 'power' | 'movingAverage';
|
|
60
|
+
readonly order?: number | undefined;
|
|
61
|
+
readonly period?: number | undefined;
|
|
62
|
+
readonly forecast?: {
|
|
63
|
+
readonly forward?: number | undefined;
|
|
64
|
+
readonly backward?: number | undefined;
|
|
65
|
+
} | undefined;
|
|
66
|
+
readonly intercept?: number | undefined;
|
|
67
|
+
readonly name?: string | undefined;
|
|
68
|
+
readonly color?: string | undefined;
|
|
69
|
+
/** Markers on the fitted line (default off); a fitted line then samples one point per data point, up to 256. */
|
|
70
|
+
readonly markers?: boolean | ChartMarkers | undefined;
|
|
71
|
+
/** Tooltip and keyboard focus on the line (default: the series' `tooltip`). */
|
|
72
|
+
readonly tooltip?: boolean | undefined;
|
|
73
|
+
}
|
|
74
|
+
export interface ChartSeriesOptions {
|
|
75
|
+
/** Stable id (default: `name`, then `yField`, then the index). */
|
|
76
|
+
readonly id?: string | undefined;
|
|
77
|
+
readonly type?: ChartSeriesType | undefined;
|
|
78
|
+
readonly name?: string | undefined;
|
|
79
|
+
/** Per-series data (default: the chart `data`). */
|
|
80
|
+
readonly data?: readonly ChartDatum[] | undefined;
|
|
81
|
+
readonly xField?: string | undefined;
|
|
82
|
+
readonly yField?: string | undefined;
|
|
83
|
+
readonly lowField?: string | undefined;
|
|
84
|
+
readonly highField?: string | undefined;
|
|
85
|
+
readonly openField?: string | undefined;
|
|
86
|
+
readonly closeField?: string | undefined;
|
|
87
|
+
readonly volumeField?: string | undefined;
|
|
88
|
+
readonly sizeField?: string | undefined;
|
|
89
|
+
readonly colorField?: string | undefined;
|
|
90
|
+
readonly tooltipField?: string | undefined;
|
|
91
|
+
/** Bullet target field(s). */
|
|
92
|
+
readonly targetField?: string | readonly string[] | undefined;
|
|
93
|
+
/** Bullet target glyphs per target field. */
|
|
94
|
+
readonly targetShapes?: readonly ('line' | 'circle' | 'cross')[] | undefined;
|
|
95
|
+
/** Bullet target data color. */
|
|
96
|
+
readonly targetColor?: string | undefined;
|
|
97
|
+
/** Bullet feature glyph: a bar from zero (default) or a dot at the value. */
|
|
98
|
+
readonly valueShape?: 'bar' | 'dot' | undefined;
|
|
99
|
+
readonly xAxis?: string | undefined;
|
|
100
|
+
readonly yAxis?: string | undefined;
|
|
101
|
+
readonly curve?: ChartCurve | undefined;
|
|
102
|
+
readonly tension?: number | undefined;
|
|
103
|
+
readonly stepPosition?: 'start' | 'center' | 'end' | undefined;
|
|
104
|
+
readonly risers?: boolean | undefined;
|
|
105
|
+
readonly stack?: boolean | 'percent' | undefined;
|
|
106
|
+
readonly stackGroup?: string | undefined;
|
|
107
|
+
/** Band width as a fraction (0..1) of the category or as px (> 1). */
|
|
108
|
+
readonly bandWidth?: number | undefined;
|
|
109
|
+
readonly gap?: number | undefined;
|
|
110
|
+
/** Columns with the same group share a slot (overlap). */
|
|
111
|
+
readonly group?: string | undefined;
|
|
112
|
+
readonly radius?: readonly [number, number] | undefined;
|
|
113
|
+
readonly closed?: boolean | undefined;
|
|
114
|
+
readonly upColor?: string | undefined;
|
|
115
|
+
readonly downColor?: string | undefined;
|
|
116
|
+
readonly hollow?: boolean | undefined;
|
|
117
|
+
readonly totals?: readonly number[] | ((index: number) => boolean) | undefined;
|
|
118
|
+
readonly subtotals?: readonly number[] | ((index: number) => boolean) | undefined;
|
|
119
|
+
readonly connectors?: boolean | undefined;
|
|
120
|
+
readonly binWidth?: number | undefined;
|
|
121
|
+
readonly normalCurve?: boolean | undefined;
|
|
122
|
+
readonly quartileMethod?: 'exclusive' | 'inclusive' | 'normal' | undefined;
|
|
123
|
+
readonly mean?: boolean | undefined;
|
|
124
|
+
readonly outliers?: boolean | undefined;
|
|
125
|
+
readonly errorBars?: ChartErrorBars | undefined;
|
|
126
|
+
/** Pareto cumulative line options (`type: 'pareto'`). */
|
|
127
|
+
readonly pareto?: {
|
|
128
|
+
readonly line?: boolean | undefined;
|
|
129
|
+
readonly markers?: boolean | undefined;
|
|
130
|
+
readonly color?: string | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
readonly segments?: readonly ChartSegment[] | undefined;
|
|
133
|
+
readonly segmentAxis?: 'x' | 'y' | undefined;
|
|
134
|
+
readonly trendlines?: readonly ChartTrendline[] | undefined;
|
|
135
|
+
readonly hidden?: boolean | undefined;
|
|
136
|
+
readonly order?: number | undefined;
|
|
137
|
+
readonly opacity?: number | undefined;
|
|
138
|
+
/** Data color (not a theme token); default: the palette slot. */
|
|
139
|
+
readonly color?: string | undefined;
|
|
140
|
+
readonly lineStyle?: ChartLineStyle | undefined;
|
|
141
|
+
readonly markers?: boolean | ChartMarkers | undefined;
|
|
142
|
+
/** SVG content in place of each marker, centered on the point (`<image>`, any shape). */
|
|
143
|
+
readonly renderMarker?: ((ctx: ChartPointContext) => ReactNode) | undefined;
|
|
144
|
+
readonly labels?: boolean | ChartDataLabels | undefined;
|
|
145
|
+
readonly legendShape?: ChartLegendShape | undefined;
|
|
146
|
+
readonly tooltip?: boolean | undefined;
|
|
147
|
+
/** Point drag and keyboard editing of y values; the change is reported, the application updates `data`. */
|
|
148
|
+
readonly editable?: boolean | {
|
|
149
|
+
readonly min?: number | undefined;
|
|
150
|
+
readonly max?: number | undefined;
|
|
151
|
+
readonly step?: number | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
readonly description?: string | undefined;
|
|
154
|
+
readonly emptyPoints?: 'gap' | 'zero' | 'drop' | 'average' | undefined;
|
|
155
|
+
readonly lastValue?: boolean | {
|
|
156
|
+
readonly format?: ChartFormat | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
readonly inlineLabel?: boolean | undefined;
|
|
159
|
+
/** Per-point style: data color or hidden. Called only for drawn points. */
|
|
160
|
+
readonly getPointStyle?: ((ctx: ChartPointContext) => {
|
|
161
|
+
readonly color?: string;
|
|
162
|
+
readonly hidden?: boolean;
|
|
163
|
+
} | undefined) | undefined;
|
|
164
|
+
}
|
|
165
|
+
/** A pane row height or column width: px, `'n%'` of the plot, or `{ size }`; unsized panes share the rest. */
|
|
166
|
+
export type ChartPaneSize = number | string | {
|
|
167
|
+
readonly size?: number | string | undefined;
|
|
168
|
+
};
|
|
169
|
+
export type ChartScale = 'linear' | 'log' | 'time' | 'category' | 'timeCategory';
|
|
170
|
+
export type ChartLabelOverlap = 'none' | 'hide' | 'trim' | 'wrap' | 'stagger' | 'rotate45' | 'rotate90';
|
|
171
|
+
export interface ChartAxisBand {
|
|
172
|
+
readonly from: number;
|
|
173
|
+
readonly to: number;
|
|
174
|
+
readonly every?: number | undefined;
|
|
175
|
+
readonly until?: number | undefined;
|
|
176
|
+
readonly layer?: 'behind' | 'over' | undefined;
|
|
177
|
+
readonly label?: string | undefined;
|
|
178
|
+
readonly color?: string | undefined;
|
|
179
|
+
/** Limits the band to a segment of the crossing axis (values on it). */
|
|
180
|
+
readonly crossFrom?: number | undefined;
|
|
181
|
+
readonly crossTo?: number | undefined;
|
|
182
|
+
}
|
|
183
|
+
export interface ChartAxisLine {
|
|
184
|
+
readonly value: number;
|
|
185
|
+
readonly label?: string | undefined;
|
|
186
|
+
readonly lineStyle?: ChartLineStyle | undefined;
|
|
187
|
+
readonly color?: string | undefined;
|
|
188
|
+
}
|
|
189
|
+
export interface ChartAxisOptions {
|
|
190
|
+
readonly id?: string | undefined;
|
|
191
|
+
readonly scale?: ChartScale | undefined;
|
|
192
|
+
readonly title?: string | undefined;
|
|
193
|
+
readonly min?: number | Date | undefined;
|
|
194
|
+
readonly max?: number | Date | undefined;
|
|
195
|
+
/** Numeric step, or a calendar interval on time axes. */
|
|
196
|
+
readonly interval?: number | {
|
|
197
|
+
readonly unit: 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year';
|
|
198
|
+
readonly step: number;
|
|
199
|
+
} | undefined;
|
|
200
|
+
readonly tickCount?: number | undefined;
|
|
201
|
+
readonly includeZero?: boolean | undefined;
|
|
202
|
+
readonly padding?: 'auto' | 'none' | 'normal' | 'additional' | 'round' | undefined;
|
|
203
|
+
readonly base?: number | undefined;
|
|
204
|
+
/** `'start'` (left / bottom) or `'end'` (right / top). */
|
|
205
|
+
readonly position?: 'start' | 'end' | undefined;
|
|
206
|
+
readonly reversed?: boolean | undefined;
|
|
207
|
+
readonly hidden?: boolean | undefined;
|
|
208
|
+
readonly gridLines?: boolean | 'major' | 'both' | undefined;
|
|
209
|
+
readonly minorTicks?: number | undefined;
|
|
210
|
+
readonly labelOverlap?: ChartLabelOverlap | undefined;
|
|
211
|
+
readonly labelAngle?: number | undefined;
|
|
212
|
+
readonly maxLabelWidth?: number | undefined;
|
|
213
|
+
readonly labelPlacement?: 'between' | 'on' | undefined;
|
|
214
|
+
readonly edgeLabels?: 'none' | 'hide' | 'shift' | undefined;
|
|
215
|
+
readonly labelPosition?: 'inside' | 'outside' | undefined;
|
|
216
|
+
readonly tickPosition?: 'inside' | 'outside' | undefined;
|
|
217
|
+
/** Padding in px between the axis ends and the first and last data positions. */
|
|
218
|
+
readonly plotOffset?: number | undefined;
|
|
219
|
+
/** Category axis by point index: duplicate categories stay separate. */
|
|
220
|
+
readonly indexed?: boolean | undefined;
|
|
221
|
+
/** `false` hides the tick marks. */
|
|
222
|
+
readonly ticks?: boolean | undefined;
|
|
223
|
+
/** `false` hides the axis line. */
|
|
224
|
+
readonly line?: boolean | undefined;
|
|
225
|
+
/** Title rotation in degrees (default 0 on horizontal axes, -90 / 90 on vertical ones). */
|
|
226
|
+
readonly titleAngle?: number | undefined;
|
|
227
|
+
readonly format?: ChartFormat | undefined;
|
|
228
|
+
readonly formatLabel?: ((value: unknown) => string) | undefined;
|
|
229
|
+
/** SVG text content for a tick label (a string or `<tspan>`s). */
|
|
230
|
+
readonly renderLabel?: ((ctx: ChartAxisLabelContext) => ReactNode) | undefined;
|
|
231
|
+
/** Grouped labels below the tick labels (multi-level labels). */
|
|
232
|
+
readonly labelGroups?: readonly ChartAxisLabelGroup[] | undefined;
|
|
233
|
+
readonly bands?: readonly ChartAxisBand[] | undefined;
|
|
234
|
+
readonly lines?: readonly ChartAxisLine[] | undefined;
|
|
235
|
+
/** Adjust the computed numeric domain (pure). */
|
|
236
|
+
readonly domain?: ((computed: readonly [number, number]) => readonly [number, number]) | undefined;
|
|
237
|
+
readonly pane?: {
|
|
238
|
+
readonly row?: number;
|
|
239
|
+
readonly column?: number;
|
|
240
|
+
readonly span?: number;
|
|
241
|
+
} | undefined;
|
|
242
|
+
/** Polar and radar x axis: the angle of the first category or value, in degrees clockwise from 12 o'clock. */
|
|
243
|
+
readonly startAngle?: number | undefined;
|
|
244
|
+
/** Draws the axis line where the crossing axis (default: the primary one) has `value`. */
|
|
245
|
+
readonly crossAt?: {
|
|
246
|
+
readonly value: number | Date;
|
|
247
|
+
readonly axis?: string | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
/** With `crossAt`, the labels move with the line (default: they stay at the plot edge). */
|
|
250
|
+
readonly labelsAtCross?: boolean | undefined;
|
|
251
|
+
}
|
|
252
|
+
export interface ChartAxisLabelContext {
|
|
253
|
+
readonly axisId: string;
|
|
254
|
+
readonly value: unknown;
|
|
255
|
+
readonly text: string;
|
|
256
|
+
readonly index: number;
|
|
257
|
+
}
|
|
258
|
+
export interface ChartAxisLabelGroup {
|
|
259
|
+
readonly levels: readonly {
|
|
260
|
+
readonly from: number | string;
|
|
261
|
+
readonly to: number | string;
|
|
262
|
+
readonly label: string;
|
|
263
|
+
}[];
|
|
264
|
+
readonly border?: 'rectangle' | 'brace' | 'curlyBrace' | 'none' | 'noTop' | 'noTopBottom' | undefined;
|
|
265
|
+
}
|
|
266
|
+
export interface ChartLegendOptions {
|
|
267
|
+
readonly position?: 'auto' | 'top' | 'bottom' | 'start' | 'end' | undefined;
|
|
268
|
+
readonly title?: string | undefined;
|
|
269
|
+
readonly toggle?: boolean | undefined;
|
|
270
|
+
readonly highlight?: boolean | undefined;
|
|
271
|
+
readonly maxLabelWidth?: number | undefined;
|
|
272
|
+
readonly overflow?: 'wrap' | 'page' | undefined;
|
|
273
|
+
readonly columns?: number | undefined;
|
|
274
|
+
readonly reverse?: boolean | undefined;
|
|
275
|
+
/** Placement along the legend's edge (default `'center'`). */
|
|
276
|
+
readonly align?: 'start' | 'center' | 'end' | undefined;
|
|
277
|
+
/** `'vertical'` lays a top or bottom legend out in one column; side legends are always one column. */
|
|
278
|
+
readonly orientation?: 'horizontal' | 'vertical' | undefined;
|
|
279
|
+
/** `'series'` (default, toggles series), `'point'` (the points of the first series, named by its `tooltipField`, else its x value), `'range'` / `'gradient'` (`colorRanges`); the last three are keys, not toggles. */
|
|
280
|
+
readonly mode?: 'series' | 'point' | 'range' | 'gradient' | undefined;
|
|
281
|
+
/** Custom item content (HTML over the drawing; not part of the exported SVG). */
|
|
282
|
+
readonly renderItem?: ((item: ChartLegendItem) => ReactNode) | undefined;
|
|
283
|
+
}
|
|
284
|
+
export interface ChartLegendItem {
|
|
285
|
+
readonly id: string;
|
|
286
|
+
readonly label: string;
|
|
287
|
+
readonly color: string;
|
|
288
|
+
readonly hidden: boolean;
|
|
289
|
+
/** The series of a series or point item. */
|
|
290
|
+
readonly seriesId?: string | undefined;
|
|
291
|
+
readonly index?: number | undefined;
|
|
292
|
+
}
|
|
293
|
+
/** A y value range with its data colors: one color, or several spread across the range. */
|
|
294
|
+
export interface ChartColorRange {
|
|
295
|
+
readonly from: number;
|
|
296
|
+
readonly to: number;
|
|
297
|
+
readonly colors: readonly string[];
|
|
298
|
+
readonly label?: string | undefined;
|
|
299
|
+
}
|
|
300
|
+
export interface ChartTooltipContext {
|
|
301
|
+
readonly header: string;
|
|
302
|
+
readonly points: readonly ChartPointContext[];
|
|
303
|
+
}
|
|
304
|
+
export interface ChartTooltipOptions {
|
|
305
|
+
/** `'shared'`: one box for every series at the x; `'split'`: one box per series at its own point. */
|
|
306
|
+
readonly mode?: 'point' | 'shared' | 'split' | undefined;
|
|
307
|
+
/** `'nearest'` (default): above the nearest point; `'pointer'`: follows the pointer; `{ x, y }`: fixed drawing px. */
|
|
308
|
+
readonly position?: 'nearest' | 'pointer' | {
|
|
309
|
+
readonly x: number;
|
|
310
|
+
readonly y: number;
|
|
311
|
+
} | undefined;
|
|
312
|
+
/** Gap between the anchor and the box, px (default 10). */
|
|
313
|
+
readonly offset?: number | undefined;
|
|
314
|
+
readonly format?: ((ctx: ChartPointContext) => string) | undefined;
|
|
315
|
+
readonly header?: string | ((ctx: ChartTooltipContext) => string) | undefined;
|
|
316
|
+
readonly render?: ((ctx: ChartTooltipContext) => ReactNode) | undefined;
|
|
317
|
+
}
|
|
318
|
+
export interface ChartCrosshairOptions {
|
|
319
|
+
readonly lines?: 'both' | 'x' | 'y' | undefined;
|
|
320
|
+
readonly snap?: boolean | undefined;
|
|
321
|
+
/** Shades the hovered category band of a category x axis. */
|
|
322
|
+
readonly highlightCategory?: boolean | undefined;
|
|
323
|
+
/** Value labels on the axes at the crosshair lines. */
|
|
324
|
+
readonly axisLabels?: boolean | undefined;
|
|
325
|
+
/** Axis label text; the axis format otherwise. */
|
|
326
|
+
readonly formatLabel?: ((value: unknown, axisId: string) => string) | undefined;
|
|
327
|
+
}
|
|
328
|
+
export type ChartZoomTool = 'zoom' | 'zoomIn' | 'zoomOut' | 'pan' | 'reset';
|
|
329
|
+
export interface ChartZoomOptions {
|
|
330
|
+
readonly wheel?: boolean | undefined;
|
|
331
|
+
readonly selection?: boolean | undefined;
|
|
332
|
+
readonly pan?: boolean | undefined;
|
|
333
|
+
/** Two-finger pinch on touch screens. */
|
|
334
|
+
readonly pinch?: boolean | undefined;
|
|
335
|
+
readonly mode?: 'x' | 'y' | 'xy' | undefined;
|
|
336
|
+
/** Pan moves the drawn series and commits on release instead of laying out every frame. */
|
|
337
|
+
readonly deferred?: boolean | undefined;
|
|
338
|
+
/** Zoom toolbar: `true` for every tool, or the tools to show. */
|
|
339
|
+
readonly toolbar?: boolean | readonly ChartZoomTool[] | undefined;
|
|
340
|
+
readonly toolbarPosition?: 'topEnd' | 'topStart' | 'bottomEnd' | 'bottomStart' | undefined;
|
|
341
|
+
}
|
|
342
|
+
export type ChartZoomRange = Readonly<Record<string, readonly [number, number]>>;
|
|
343
|
+
export interface ChartPointRef {
|
|
344
|
+
readonly seriesId: string;
|
|
345
|
+
readonly index: number;
|
|
346
|
+
}
|
|
347
|
+
/** A plot position in drawing px with its data values on the x axis and the first y axis. */
|
|
348
|
+
export interface ChartPlotPoint {
|
|
349
|
+
readonly x: number;
|
|
350
|
+
readonly y: number;
|
|
351
|
+
/** A category, a `Date` (time axes) or a number; undefined before the chart is interactive. */
|
|
352
|
+
readonly xValue: unknown;
|
|
353
|
+
readonly yValue: unknown;
|
|
354
|
+
}
|
|
355
|
+
export interface ChartChangeEvent<R extends string = string> {
|
|
356
|
+
readonly source: 'pointer' | 'keyboard' | 'touch' | 'api';
|
|
357
|
+
readonly reason: R;
|
|
358
|
+
}
|
|
359
|
+
export interface ChartAnnotation {
|
|
360
|
+
readonly x: number | string | Date;
|
|
361
|
+
readonly y: number;
|
|
362
|
+
readonly units?: 'data' | 'pixel' | undefined;
|
|
363
|
+
readonly xAxis?: string | undefined;
|
|
364
|
+
readonly yAxis?: string | undefined;
|
|
365
|
+
readonly content: ReactNode;
|
|
366
|
+
}
|
|
367
|
+
/** A technical indicator over a series, drawn by the analysis layer. */
|
|
368
|
+
export interface ChartIndicator {
|
|
369
|
+
readonly id?: string | undefined;
|
|
370
|
+
readonly kind: 'sma' | 'ema' | 'tma' | 'momentum' | 'rsi' | 'atr' | 'accumulationDistribution' | 'bollinger' | 'macd' | 'stochastic';
|
|
371
|
+
/** The source series (its id, name or yField). */
|
|
372
|
+
readonly seriesId: string;
|
|
373
|
+
/** Default 14 (Bollinger 20). */
|
|
374
|
+
readonly period?: number | undefined;
|
|
375
|
+
/** Value column of an OHLC series; default `'close'` (the y values of other series). */
|
|
376
|
+
readonly field?: 'close' | 'open' | 'high' | 'low' | undefined;
|
|
377
|
+
/** Bollinger band width in standard deviations (default 2). */
|
|
378
|
+
readonly deviations?: number | undefined;
|
|
379
|
+
readonly fastPeriod?: number | undefined;
|
|
380
|
+
readonly slowPeriod?: number | undefined;
|
|
381
|
+
readonly signalPeriod?: number | undefined;
|
|
382
|
+
readonly kPeriod?: number | undefined;
|
|
383
|
+
readonly dPeriod?: number | undefined;
|
|
384
|
+
/** MACD parts (default `'both'`). */
|
|
385
|
+
readonly display?: 'line' | 'histogram' | 'both' | undefined;
|
|
386
|
+
/** RSI and Stochastic overbought / oversold lines and band (default 70 / 30 and 80 / 20). */
|
|
387
|
+
readonly zones?: boolean | {
|
|
388
|
+
readonly upper?: number | undefined;
|
|
389
|
+
readonly lower?: number | undefined;
|
|
390
|
+
} | undefined;
|
|
391
|
+
/** Axis for the values: an `axes` entry, usually in its own pane. Oscillators get a secondary axis otherwise. */
|
|
392
|
+
readonly yAxis?: string | undefined;
|
|
393
|
+
readonly name?: string | undefined;
|
|
394
|
+
/** Data color, not a theme token. */
|
|
395
|
+
readonly color?: string | undefined;
|
|
396
|
+
}
|
|
397
|
+
export interface ChartExportOptions {
|
|
398
|
+
/** Image, table (`csv`; `xlsx` through `exportWriters.xlsx`) or vector PDF (through `exportWriters.pdf`). */
|
|
399
|
+
readonly format?: 'png' | 'jpeg' | 'svg' | 'csv' | 'xlsx' | 'pdf' | undefined;
|
|
400
|
+
readonly fileName?: string | undefined;
|
|
401
|
+
readonly scale?: number | undefined;
|
|
402
|
+
/** PDF page orientation; default landscape when the drawing is wider than tall. */
|
|
403
|
+
readonly orientation?: 'portrait' | 'landscape' | undefined;
|
|
404
|
+
/** PDF page size (`a4`, `letter`, ...). Default `a4`. */
|
|
405
|
+
readonly pageSize?: string | undefined;
|
|
406
|
+
/** CSV: neutralize spreadsheet formulas in text cells. Default true; `false` writes raw text. */
|
|
407
|
+
readonly escapeFormulas?: boolean | undefined;
|
|
408
|
+
}
|
|
409
|
+
/** Writer loaders of `api.export`: dynamic imports of `@salmonui/export` subpaths. */
|
|
410
|
+
export type ChartExportWriters = VizExportWriters;
|
|
411
|
+
/** A feature value from `@salmonui/charts/chart/features`. */
|
|
412
|
+
export interface ChartFeature {
|
|
413
|
+
readonly name: string;
|
|
414
|
+
}
|
|
415
|
+
export interface ChartApi {
|
|
416
|
+
readonly element: HTMLElement | null;
|
|
417
|
+
export(options?: ChartExportOptions): Promise<void>;
|
|
418
|
+
toBlob(format?: 'png' | 'jpeg' | 'svg'): Promise<Blob>;
|
|
419
|
+
toDataURL(format?: 'png' | 'jpeg' | 'svg'): Promise<string>;
|
|
420
|
+
toSVGString(): string;
|
|
421
|
+
print(): Promise<void>;
|
|
422
|
+
focus(): void;
|
|
423
|
+
resetZoom(): void;
|
|
424
|
+
showTooltip(point: ChartPointRef): void;
|
|
425
|
+
hideTooltip(): void;
|
|
426
|
+
/** Shows the crosshair at a point, or at data values (`x` an axis value, `y` a y value). */
|
|
427
|
+
showCrosshair(at: ChartPointRef | {
|
|
428
|
+
readonly x: unknown;
|
|
429
|
+
readonly y?: number | undefined;
|
|
430
|
+
}): void;
|
|
431
|
+
hideCrosshair(): void;
|
|
432
|
+
/** Streams points into a series without a React render (`maxPoints` keeps a window). */
|
|
433
|
+
appendPoints(seriesId: string, points: readonly ChartDatum[], options?: {
|
|
434
|
+
readonly maxPoints?: number;
|
|
435
|
+
}): void;
|
|
436
|
+
}
|
|
437
|
+
/**
|
|
438
|
+
* Built-in text of a Chart (`text` prop; the `chart` entry of a `LocaleProvider` catalog).
|
|
439
|
+
* The series type keys name the kind of chart in the summary (`line`: `"Line chart"`, the type
|
|
440
|
+
* of the first visible series), the trendline kinds (`linear`, default the kind itself) and the
|
|
441
|
+
* indicator kinds (`sma`: `"SMA"`) name their generated series.
|
|
442
|
+
*/
|
|
443
|
+
export interface ChartText extends Partial<Readonly<Record<ChartSeriesType | ChartTrendline['kind'] | ChartIndicator['kind'], string>>> {
|
|
444
|
+
/** The kind without a visible series. */
|
|
445
|
+
readonly chart: string;
|
|
446
|
+
readonly noData: string;
|
|
447
|
+
readonly legend: string;
|
|
448
|
+
readonly table: string;
|
|
449
|
+
/** Row of a capped data table; `plural` is the plural category of `count` in the chart's locale. */
|
|
450
|
+
moreRows(count: number, plural?: Intl.LDMLPluralRule): string;
|
|
451
|
+
/** `{chart}` (the kind, and the title if any), `{count}`: first sentence of the summary, `count` series. */
|
|
452
|
+
readonly summary?: LocaleMessage;
|
|
453
|
+
/** The same with the x axis extent: `{axis}`, `{from}`, `{to}`. */
|
|
454
|
+
readonly summaryRange?: LocaleMessage;
|
|
455
|
+
/** `{chart}`, `{noData}`: the summary without data. */
|
|
456
|
+
readonly summaryEmpty?: string;
|
|
457
|
+
/** `{series}`, `{count}`, `{min}`, `{max}`, `{trend}`: the summary sentence of a series with `count` points. */
|
|
458
|
+
readonly seriesSummary?: LocaleMessage;
|
|
459
|
+
/** `{trend}` of a series. */
|
|
460
|
+
readonly up?: string;
|
|
461
|
+
readonly down?: string;
|
|
462
|
+
readonly flat?: string;
|
|
463
|
+
/** Name of an x axis without a title: the summary and the first data table header. Default `"x"`. */
|
|
464
|
+
readonly xAxis?: string;
|
|
465
|
+
/** `{series}`, `{x}`, `{value}`, `{index}`, `{count}`: announced on keyboard moves between points. */
|
|
466
|
+
readonly point?: LocaleMessage;
|
|
467
|
+
/** `{value}`: the parts of a price point (tooltip, data table, announcements). Default `"O {value}"`, ... */
|
|
468
|
+
readonly open?: string;
|
|
469
|
+
readonly high?: string;
|
|
470
|
+
readonly low?: string;
|
|
471
|
+
readonly close?: string;
|
|
472
|
+
readonly volume?: string;
|
|
473
|
+
/** `{min}`, `{q1}`, `{median}`, `{q3}`, `{max}`: the value of a box plot point. */
|
|
474
|
+
readonly box?: string;
|
|
475
|
+
/** `{series}`, `{kind}`: name of a trendline without a `name`. Default `"{series} {kind}"`. */
|
|
476
|
+
readonly trendline?: string;
|
|
477
|
+
/** `{name}`, `{period}`: name of a moving average or the Bollinger middle line. Default `"{name} {period}"`. */
|
|
478
|
+
readonly indicatorPeriod?: string;
|
|
479
|
+
/** `{name}`: names of the other series an indicator generates. Default `"{name} band"`, ... */
|
|
480
|
+
readonly indicatorBand?: string;
|
|
481
|
+
readonly indicatorHistogram?: string;
|
|
482
|
+
readonly indicatorSignal?: string;
|
|
483
|
+
readonly indicatorK?: string;
|
|
484
|
+
readonly indicatorD?: string;
|
|
485
|
+
/** Zoom toolbar names. */
|
|
486
|
+
readonly zoomToolbar: string;
|
|
487
|
+
readonly zoomTool: string;
|
|
488
|
+
readonly zoomIn: string;
|
|
489
|
+
readonly zoomOut: string;
|
|
490
|
+
readonly pan: string;
|
|
491
|
+
readonly resetZoom: string;
|
|
492
|
+
/** Legend page buttons. */
|
|
493
|
+
readonly previousLegendPage: string;
|
|
494
|
+
readonly nextLegendPage: string;
|
|
495
|
+
}
|
|
496
|
+
export type {} from '@salmonui/core/locale';
|
|
497
|
+
declare module '@salmonui/core/locale' {
|
|
498
|
+
interface LocaleCatalog {
|
|
499
|
+
readonly chart?: Partial<ChartText> | undefined;
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
/** DOM handlers passed to the `<figure>` root. */
|
|
503
|
+
export type ChartRootHandlers = Pick<DOMAttributes<HTMLElement>, 'onClick' | 'onDoubleClick' | 'onContextMenu' | 'onPointerDown' | 'onPointerUp' | 'onPointerMove' | 'onPointerLeave'>;
|
|
504
|
+
export interface ChartProps extends ChartRootHandlers {
|
|
505
|
+
/** Accessible name of the chart; wins over `title` and the generated summary. */
|
|
506
|
+
readonly 'aria-label'?: string | undefined;
|
|
507
|
+
/** Id of the element naming the chart; wins over `aria-label`. */
|
|
508
|
+
readonly 'aria-labelledby'?: string | undefined;
|
|
509
|
+
readonly data?: readonly ChartDatum[] | undefined;
|
|
510
|
+
readonly series?: readonly ChartSeriesOptions[] | undefined;
|
|
511
|
+
readonly xAxis?: ChartAxisOptions | undefined;
|
|
512
|
+
readonly yAxis?: ChartAxisOptions | undefined;
|
|
513
|
+
/** Additional axes referenced by `series.xAxis` / `series.yAxis` (id required). */
|
|
514
|
+
readonly axes?: readonly (ChartAxisOptions & {
|
|
515
|
+
readonly id: string;
|
|
516
|
+
readonly direction: 'x' | 'y';
|
|
517
|
+
})[] | undefined;
|
|
518
|
+
readonly panes?: {
|
|
519
|
+
readonly rows?: readonly ChartPaneSize[];
|
|
520
|
+
readonly columns?: readonly ChartPaneSize[];
|
|
521
|
+
} | undefined;
|
|
522
|
+
readonly orientation?: 'vertical' | 'horizontal' | undefined;
|
|
523
|
+
/** Polar (circles) or radar (polygons) coordinates; x is the angle, y the radius. */
|
|
524
|
+
readonly coordinate?: 'cartesian' | 'polar' | 'radar' | undefined;
|
|
525
|
+
/** Polar radius as a fraction (0..1) of the largest circle that fits. */
|
|
526
|
+
readonly radius?: number | undefined;
|
|
527
|
+
/** Preloaded features from `@salmonui/charts/chart/features`: `polar` renders polar charts on the server. */
|
|
528
|
+
readonly features?: readonly ChartFeature[] | undefined;
|
|
529
|
+
readonly grouping?: 'sideBySide' | 'overlap' | undefined;
|
|
530
|
+
readonly title?: string | undefined;
|
|
531
|
+
readonly subtitle?: string | undefined;
|
|
532
|
+
readonly description?: string | undefined;
|
|
533
|
+
readonly legend?: boolean | ChartLegendOptions | undefined;
|
|
534
|
+
readonly tooltip?: boolean | ChartTooltipOptions | undefined;
|
|
535
|
+
readonly crosshair?: boolean | ChartCrosshairOptions | undefined;
|
|
536
|
+
readonly zoom?: boolean | ChartZoomOptions | undefined;
|
|
537
|
+
readonly zoomRange?: ChartZoomRange | undefined;
|
|
538
|
+
readonly defaultZoomRange?: ChartZoomRange | undefined;
|
|
539
|
+
readonly onZoomRangeChange?: ((range: ChartZoomRange, event: ChartChangeEvent<'wheel' | 'selection' | 'pan' | 'pinch' | 'keyboard' | 'toolbar' | 'scrollbar' | 'reset'>) => void) | undefined;
|
|
540
|
+
/** The committed visible range of a continuous axis changed: fetch data for it. Fires on commit, never per frame. */
|
|
541
|
+
readonly onVisibleRangeChange?: ((change: {
|
|
542
|
+
readonly axisId: string;
|
|
543
|
+
readonly range: readonly [number, number];
|
|
544
|
+
}) => void) | undefined;
|
|
545
|
+
readonly hiddenSeries?: readonly string[] | undefined;
|
|
546
|
+
readonly defaultHiddenSeries?: readonly string[] | undefined;
|
|
547
|
+
readonly onHiddenSeriesChange?: ((ids: readonly string[], event: ChartChangeEvent<'legend'>) => void) | undefined;
|
|
548
|
+
readonly selection?: boolean | {
|
|
549
|
+
readonly mode?: 'point' | 'series' | 'cluster' | 'range' | 'lasso';
|
|
550
|
+
readonly multiple?: boolean;
|
|
551
|
+
readonly axis?: 'x' | 'y' | 'xy';
|
|
552
|
+
} | undefined;
|
|
553
|
+
/** Range and lasso selection finished: `ranges` per axis id (range mode) and the enclosed points. */
|
|
554
|
+
readonly onRangeSelect?: ((selection: {
|
|
555
|
+
readonly ranges: ChartZoomRange;
|
|
556
|
+
readonly points: readonly ChartPointRef[];
|
|
557
|
+
}, event: ChartChangeEvent<'range' | 'lasso'>) => void) | undefined;
|
|
558
|
+
readonly selectedPoints?: readonly ChartPointRef[] | undefined;
|
|
559
|
+
readonly defaultSelectedPoints?: readonly ChartPointRef[] | undefined;
|
|
560
|
+
readonly onSelectedPointsChange?: ((points: readonly ChartPointRef[], event: ChartChangeEvent<'click' | 'keyboard' | 'range' | 'lasso' | 'sync'>) => void) | undefined;
|
|
561
|
+
readonly highlight?: 'series' | 'point' | 'cluster' | false | undefined;
|
|
562
|
+
readonly onPointClick?: ((ctx: ChartPointContext, event: MouseEvent) => void) | undefined;
|
|
563
|
+
/** Any click on the plot, with data coordinates. */
|
|
564
|
+
readonly onPlotClick?: ((point: ChartPlotPoint, event: MouseEvent) => void) | undefined;
|
|
565
|
+
/** Pointer moves over the plot, with data coordinates; called per move (keep it cheap). */
|
|
566
|
+
readonly onPlotPointerMove?: ((point: ChartPlotPoint, event: PointerEvent) => void) | undefined;
|
|
567
|
+
readonly onPointHover?: ((ctx: ChartPointContext | null) => void) | undefined;
|
|
568
|
+
/** An editable point was dragged or moved by keyboard. */
|
|
569
|
+
readonly onPointChange?: ((change: {
|
|
570
|
+
readonly seriesId: string;
|
|
571
|
+
readonly index: number;
|
|
572
|
+
readonly value: number;
|
|
573
|
+
}, event: ChartChangeEvent<'drag' | 'keyboard'>) => void) | undefined;
|
|
574
|
+
readonly onPointDoubleClick?: ((ctx: ChartPointContext, event: MouseEvent) => void) | undefined;
|
|
575
|
+
/** A tick label was clicked. */
|
|
576
|
+
readonly onAxisLabelClick?: ((ctx: ChartAxisLabelContext, event: MouseEvent) => void) | undefined;
|
|
577
|
+
/** A multi-level label cell was clicked. */
|
|
578
|
+
readonly onAxisLabelGroupClick?: ((ctx: {
|
|
579
|
+
readonly axisId: string;
|
|
580
|
+
readonly group: number;
|
|
581
|
+
readonly level: number;
|
|
582
|
+
readonly label: string;
|
|
583
|
+
}, event: MouseEvent) => void) | undefined;
|
|
584
|
+
readonly onResize?: ((size: {
|
|
585
|
+
readonly width: number;
|
|
586
|
+
readonly height: number;
|
|
587
|
+
}) => void) | undefined;
|
|
588
|
+
readonly annotations?: readonly ChartAnnotation[] | undefined;
|
|
589
|
+
/** Technical indicators; needs `features={[technicalIndicators]}` from `@salmonui/charts/chart/indicators`. */
|
|
590
|
+
readonly indicators?: readonly ChartIndicator[] | undefined;
|
|
591
|
+
readonly stackLabels?: boolean | {
|
|
592
|
+
readonly format?: ChartFormat | undefined;
|
|
593
|
+
} | undefined;
|
|
594
|
+
readonly palette?: readonly string[] | undefined;
|
|
595
|
+
/** Point colors by y value range, shared with `legend.mode: 'range' | 'gradient'`. */
|
|
596
|
+
readonly colorRanges?: readonly ChartColorRange[] | undefined;
|
|
597
|
+
readonly renderer?: 'svg' | 'canvas' | 'auto' | undefined;
|
|
598
|
+
readonly decimation?: 'auto' | 'lttb' | 'minMax' | false | undefined;
|
|
599
|
+
readonly accessibleTable?: boolean | undefined;
|
|
600
|
+
readonly showDataTable?: boolean | undefined;
|
|
601
|
+
readonly renderEmpty?: (() => ReactNode) | undefined;
|
|
602
|
+
readonly animated?: boolean | undefined;
|
|
603
|
+
readonly locale?: string | undefined;
|
|
604
|
+
readonly timeZone?: string | undefined;
|
|
605
|
+
readonly text?: Partial<ChartText> | undefined;
|
|
606
|
+
readonly width?: number | undefined;
|
|
607
|
+
/** Drawing height in px (default 300). */
|
|
608
|
+
readonly height?: number | undefined;
|
|
609
|
+
readonly className?: string | undefined;
|
|
610
|
+
readonly style?: CSSProperties | undefined;
|
|
611
|
+
/** Loaders of the PDF and XLSX writers: dynamic imports of @salmonui/export `graphics` and `xlsx` subpaths. */
|
|
612
|
+
readonly exportWriters?: ChartExportWriters | undefined;
|
|
613
|
+
readonly ref?: Ref<ChartApi> | undefined;
|
|
614
|
+
readonly children?: ReactNode;
|
|
615
|
+
}
|
|
616
|
+
//# sourceMappingURL=types.d.ts.map
|