minerva-design 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +9 -0
- package/README.md +21 -21
- package/custom-elements.json +4047 -1703
- package/dist/angular/fesm2022/minerva-angular.mjs +1436 -5
- package/dist/angular/fesm2022/minerva-angular.mjs.map +1 -1
- package/dist/angular/types/minerva-angular.d.ts +573 -4
- package/dist/charts/canvas.d.cts +2 -2
- package/dist/charts/canvas.d.ts +2 -2
- package/dist/charts/core.cjs +1 -1
- package/dist/charts/core.d.cts +6 -4
- package/dist/charts/core.d.ts +6 -4
- package/dist/charts/core.js +24 -16
- package/dist/charts/engine/axis.cjs +1 -1
- package/dist/charts/engine/axis.cjs.map +1 -1
- package/dist/charts/engine/axis.js +42 -19
- package/dist/charts/engine/axis.js.map +1 -1
- package/dist/charts/engine/canvas.cjs +1 -1
- package/dist/charts/engine/canvas.cjs.map +1 -1
- package/dist/charts/engine/canvas.js +154 -127
- package/dist/charts/engine/canvas.js.map +1 -1
- package/dist/charts/engine/chart.cjs +1 -1
- package/dist/charts/engine/chart.cjs.map +1 -1
- package/dist/charts/engine/chart.js +365 -251
- package/dist/charts/engine/chart.js.map +1 -1
- package/dist/charts/engine/color.cjs +1 -1
- package/dist/charts/engine/color.cjs.map +1 -1
- package/dist/charts/engine/color.d.cts +18 -0
- package/dist/charts/engine/color.d.ts +18 -0
- package/dist/charts/engine/color.js +48 -2
- package/dist/charts/engine/color.js.map +1 -1
- package/dist/charts/engine/controller.cjs +2 -2
- package/dist/charts/engine/controller.cjs.map +1 -1
- package/dist/charts/engine/controller.d.cts +32 -1
- package/dist/charts/engine/controller.d.ts +32 -1
- package/dist/charts/engine/controller.js +310 -263
- package/dist/charts/engine/controller.js.map +1 -1
- package/dist/charts/engine/data.cjs +1 -1
- package/dist/charts/engine/data.cjs.map +1 -1
- package/dist/charts/engine/data.d.cts +3 -1
- package/dist/charts/engine/data.d.ts +3 -1
- package/dist/charts/engine/data.js +6 -4
- package/dist/charts/engine/data.js.map +1 -1
- package/dist/charts/engine/defaults.cjs +2 -0
- package/dist/charts/engine/defaults.cjs.map +1 -0
- package/dist/charts/engine/defaults.d.cts +20 -0
- package/dist/charts/engine/defaults.d.ts +20 -0
- package/dist/charts/engine/defaults.js +35 -0
- package/dist/charts/engine/defaults.js.map +1 -0
- package/dist/charts/engine/format.cjs +1 -1
- package/dist/charts/engine/format.cjs.map +1 -1
- package/dist/charts/engine/format.d.cts +6 -0
- package/dist/charts/engine/format.d.ts +6 -0
- package/dist/charts/engine/format.js +15 -2
- package/dist/charts/engine/format.js.map +1 -1
- package/dist/charts/engine/graph/chart.cjs +2 -0
- package/dist/charts/engine/graph/chart.cjs.map +1 -0
- package/dist/charts/engine/graph/chart.d.cts +3 -0
- package/dist/charts/engine/graph/chart.d.ts +3 -0
- package/dist/charts/engine/graph/chart.js +1565 -0
- package/dist/charts/engine/graph/chart.js.map +1 -0
- package/dist/charts/engine/graph/circular.cjs +2 -0
- package/dist/charts/engine/graph/circular.cjs.map +1 -0
- package/dist/charts/engine/graph/circular.d.cts +16 -0
- package/dist/charts/engine/graph/circular.d.ts +16 -0
- package/dist/charts/engine/graph/circular.js +62 -0
- package/dist/charts/engine/graph/circular.js.map +1 -0
- package/dist/charts/engine/graph/dag.cjs +2 -0
- package/dist/charts/engine/graph/dag.cjs.map +1 -0
- package/dist/charts/engine/graph/dag.d.cts +34 -0
- package/dist/charts/engine/graph/dag.d.ts +34 -0
- package/dist/charts/engine/graph/dag.js +314 -0
- package/dist/charts/engine/graph/dag.js.map +1 -0
- package/dist/charts/engine/graph/dom.cjs +2 -0
- package/dist/charts/engine/graph/dom.cjs.map +1 -0
- package/dist/charts/engine/graph/dom.d.cts +23 -0
- package/dist/charts/engine/graph/dom.d.ts +23 -0
- package/dist/charts/engine/graph/dom.js +158 -0
- package/dist/charts/engine/graph/dom.js.map +1 -0
- package/dist/charts/engine/graph/force.cjs +2 -0
- package/dist/charts/engine/graph/force.cjs.map +1 -0
- package/dist/charts/engine/graph/force.d.cts +67 -0
- package/dist/charts/engine/graph/force.d.ts +67 -0
- package/dist/charts/engine/graph/force.js +325 -0
- package/dist/charts/engine/graph/force.js.map +1 -0
- package/dist/charts/engine/graph/geometry.cjs +2 -0
- package/dist/charts/engine/graph/geometry.cjs.map +1 -0
- package/dist/charts/engine/graph/geometry.d.cts +37 -0
- package/dist/charts/engine/graph/geometry.d.ts +37 -0
- package/dist/charts/engine/graph/geometry.js +144 -0
- package/dist/charts/engine/graph/geometry.js.map +1 -0
- package/dist/charts/engine/graph/index.cjs +1 -0
- package/dist/charts/engine/graph/index.d.cts +6 -0
- package/dist/charts/engine/graph/index.d.ts +6 -0
- package/dist/charts/engine/graph/index.js +6 -0
- package/dist/charts/engine/graph/labels.cjs +2 -0
- package/dist/charts/engine/graph/labels.cjs.map +1 -0
- package/dist/charts/engine/graph/labels.d.cts +12 -0
- package/dist/charts/engine/graph/labels.d.ts +12 -0
- package/dist/charts/engine/graph/labels.js +128 -0
- package/dist/charts/engine/graph/labels.js.map +1 -0
- package/dist/charts/engine/graph/model.cjs +2 -0
- package/dist/charts/engine/graph/model.cjs.map +1 -0
- package/dist/charts/engine/graph/model.d.cts +43 -0
- package/dist/charts/engine/graph/model.d.ts +43 -0
- package/dist/charts/engine/graph/model.js +88 -0
- package/dist/charts/engine/graph/model.js.map +1 -0
- package/dist/charts/engine/graph/sizing.cjs +2 -0
- package/dist/charts/engine/graph/sizing.cjs.map +1 -0
- package/dist/charts/engine/graph/sizing.d.cts +33 -0
- package/dist/charts/engine/graph/sizing.d.ts +33 -0
- package/dist/charts/engine/graph/sizing.js +60 -0
- package/dist/charts/engine/graph/sizing.js.map +1 -0
- package/dist/charts/engine/graph/tree.cjs +2 -0
- package/dist/charts/engine/graph/tree.cjs.map +1 -0
- package/dist/charts/engine/graph/tree.d.cts +30 -0
- package/dist/charts/engine/graph/tree.d.ts +30 -0
- package/dist/charts/engine/graph/tree.js +218 -0
- package/dist/charts/engine/graph/tree.js.map +1 -0
- package/dist/charts/engine/graph/types.d.cts +626 -0
- package/dist/charts/engine/graph/types.d.ts +626 -0
- package/dist/charts/engine/graph/worker.cjs +46 -0
- package/dist/charts/engine/graph/worker.cjs.map +1 -0
- package/dist/charts/engine/graph/worker.d.cts +36 -0
- package/dist/charts/engine/graph/worker.d.ts +36 -0
- package/dist/charts/engine/graph/worker.js +129 -0
- package/dist/charts/engine/graph/worker.js.map +1 -0
- package/dist/charts/engine/items.cjs +1 -1
- package/dist/charts/engine/items.cjs.map +1 -1
- package/dist/charts/engine/items.d.cts +15 -2
- package/dist/charts/engine/items.d.ts +15 -2
- package/dist/charts/engine/items.js +131 -112
- package/dist/charts/engine/items.js.map +1 -1
- package/dist/charts/engine/labels.cjs +1 -1
- package/dist/charts/engine/labels.cjs.map +1 -1
- package/dist/charts/engine/labels.js +28 -4
- package/dist/charts/engine/labels.js.map +1 -1
- package/dist/charts/engine/layout.cjs +1 -1
- package/dist/charts/engine/layout.cjs.map +1 -1
- package/dist/charts/engine/layout.d.cts +9 -0
- package/dist/charts/engine/layout.d.ts +9 -0
- package/dist/charts/engine/layout.js +11 -2
- package/dist/charts/engine/layout.js.map +1 -1
- package/dist/charts/engine/model.cjs +1 -1
- package/dist/charts/engine/model.cjs.map +1 -1
- package/dist/charts/engine/model.d.cts +40 -3
- package/dist/charts/engine/model.d.ts +40 -3
- package/dist/charts/engine/model.js +246 -165
- package/dist/charts/engine/model.js.map +1 -1
- package/dist/charts/engine/orderbook/format.cjs +1 -1
- package/dist/charts/engine/orderbook/format.cjs.map +1 -1
- package/dist/charts/engine/orderbook/format.d.cts +3 -2
- package/dist/charts/engine/orderbook/format.d.ts +3 -2
- package/dist/charts/engine/orderbook/format.js +5 -5
- package/dist/charts/engine/orderbook/format.js.map +1 -1
- package/dist/charts/engine/orderbook/heatmap.cjs +1 -1
- package/dist/charts/engine/orderbook/heatmap.cjs.map +1 -1
- package/dist/charts/engine/orderbook/heatmap.js +527 -408
- package/dist/charts/engine/orderbook/heatmap.js.map +1 -1
- package/dist/charts/engine/orderbook/layout.cjs +2 -0
- package/dist/charts/engine/orderbook/layout.cjs.map +1 -0
- package/dist/charts/engine/orderbook/layout.d.cts +37 -0
- package/dist/charts/engine/orderbook/layout.d.ts +37 -0
- package/dist/charts/engine/orderbook/layout.js +70 -0
- package/dist/charts/engine/orderbook/layout.js.map +1 -0
- package/dist/charts/engine/orderbook/tape.cjs +1 -1
- package/dist/charts/engine/orderbook/tape.cjs.map +1 -1
- package/dist/charts/engine/orderbook/tape.js +1 -1
- package/dist/charts/engine/orderbook/tape.js.map +1 -1
- package/dist/charts/engine/orderbook/types.d.cts +18 -2
- package/dist/charts/engine/orderbook/types.d.ts +18 -2
- package/dist/charts/engine/overlay.cjs +1 -1
- package/dist/charts/engine/overlay.cjs.map +1 -1
- package/dist/charts/engine/overlay.d.cts +10 -0
- package/dist/charts/engine/overlay.d.ts +10 -0
- package/dist/charts/engine/overlay.js +6 -0
- package/dist/charts/engine/overlay.js.map +1 -1
- package/dist/charts/engine/presets.cjs +2 -2
- package/dist/charts/engine/presets.cjs.map +1 -1
- package/dist/charts/engine/presets.d.cts +25 -3
- package/dist/charts/engine/presets.d.ts +25 -3
- package/dist/charts/engine/presets.js +115 -101
- package/dist/charts/engine/presets.js.map +1 -1
- package/dist/charts/engine/renderers/detect.cjs +1 -1
- package/dist/charts/engine/renderers/detect.cjs.map +1 -1
- package/dist/charts/engine/renderers/detect.d.cts +2 -1
- package/dist/charts/engine/renderers/detect.d.ts +2 -1
- package/dist/charts/engine/renderers/detect.js +23 -21
- package/dist/charts/engine/renderers/detect.js.map +1 -1
- package/dist/charts/engine/scene.cjs +1 -1
- package/dist/charts/engine/scene.cjs.map +1 -1
- package/dist/charts/engine/scene.d.cts +57 -4
- package/dist/charts/engine/scene.d.ts +57 -4
- package/dist/charts/engine/scene.js +335 -182
- package/dist/charts/engine/scene.js.map +1 -1
- package/dist/charts/engine/shapes/bullet.cjs +1 -1
- package/dist/charts/engine/shapes/bullet.cjs.map +1 -1
- package/dist/charts/engine/shapes/bullet.js +110 -110
- package/dist/charts/engine/shapes/bullet.js.map +1 -1
- package/dist/charts/engine/shapes/chart.cjs +1 -1
- package/dist/charts/engine/shapes/chart.cjs.map +1 -1
- package/dist/charts/engine/shapes/chart.js +4 -1
- package/dist/charts/engine/shapes/chart.js.map +1 -1
- package/dist/charts/engine/shapes/chord.cjs +2 -0
- package/dist/charts/engine/shapes/chord.cjs.map +1 -0
- package/dist/charts/engine/shapes/chord.d.cts +18 -0
- package/dist/charts/engine/shapes/chord.d.ts +18 -0
- package/dist/charts/engine/shapes/chord.js +414 -0
- package/dist/charts/engine/shapes/chord.js.map +1 -0
- package/dist/charts/engine/shapes/draw.cjs +1 -1
- package/dist/charts/engine/shapes/draw.cjs.map +1 -1
- package/dist/charts/engine/shapes/draw.d.cts +5 -1
- package/dist/charts/engine/shapes/draw.d.ts +5 -1
- package/dist/charts/engine/shapes/draw.js +47 -17
- package/dist/charts/engine/shapes/draw.js.map +1 -1
- package/dist/charts/engine/shapes/hit.cjs +1 -1
- package/dist/charts/engine/shapes/hit.cjs.map +1 -1
- package/dist/charts/engine/shapes/hit.d.cts +3 -1
- package/dist/charts/engine/shapes/hit.d.ts +3 -1
- package/dist/charts/engine/shapes/hit.js +75 -46
- package/dist/charts/engine/shapes/hit.js.map +1 -1
- package/dist/charts/engine/shapes/index.d.cts +3 -2
- package/dist/charts/engine/shapes/index.d.ts +3 -2
- package/dist/charts/engine/shapes/labels.cjs +1 -1
- package/dist/charts/engine/shapes/labels.cjs.map +1 -1
- package/dist/charts/engine/shapes/labels.js +12 -4
- package/dist/charts/engine/shapes/labels.js.map +1 -1
- package/dist/charts/engine/shapes/layout.cjs +2 -2
- package/dist/charts/engine/shapes/layout.cjs.map +1 -1
- package/dist/charts/engine/shapes/layout.d.cts +3 -1
- package/dist/charts/engine/shapes/layout.d.ts +3 -1
- package/dist/charts/engine/shapes/layout.js +106 -78
- package/dist/charts/engine/shapes/layout.js.map +1 -1
- package/dist/charts/engine/shapes/scene.cjs +1 -1
- package/dist/charts/engine/shapes/scene.cjs.map +1 -1
- package/dist/charts/engine/shapes/scene.d.cts +33 -3
- package/dist/charts/engine/shapes/scene.d.ts +33 -3
- package/dist/charts/engine/shapes/scene.js +62 -19
- package/dist/charts/engine/shapes/scene.js.map +1 -1
- package/dist/charts/engine/shapes/types.d.cts +119 -8
- package/dist/charts/engine/shapes/types.d.ts +119 -8
- package/dist/charts/engine/signature.cjs +1 -1
- package/dist/charts/engine/signature.cjs.map +1 -1
- package/dist/charts/engine/signature.js +1 -1
- package/dist/charts/engine/signature.js.map +1 -1
- package/dist/charts/engine/three-d/canvas2d.cjs +1 -1
- package/dist/charts/engine/three-d/canvas2d.cjs.map +1 -1
- package/dist/charts/engine/three-d/canvas2d.d.cts +5 -2
- package/dist/charts/engine/three-d/canvas2d.d.ts +5 -2
- package/dist/charts/engine/three-d/canvas2d.js +89 -65
- package/dist/charts/engine/three-d/canvas2d.js.map +1 -1
- package/dist/charts/engine/three-d/detect.cjs +1 -1
- package/dist/charts/engine/three-d/detect.cjs.map +1 -1
- package/dist/charts/engine/three-d/detect.d.cts +3 -2
- package/dist/charts/engine/three-d/detect.d.ts +3 -2
- package/dist/charts/engine/three-d/detect.js +22 -20
- package/dist/charts/engine/three-d/detect.js.map +1 -1
- package/dist/charts/engine/three-d/geometry.cjs +1 -1
- package/dist/charts/engine/three-d/geometry.cjs.map +1 -1
- package/dist/charts/engine/three-d/geometry.d.cts +6 -0
- package/dist/charts/engine/three-d/geometry.d.ts +6 -0
- package/dist/charts/engine/three-d/geometry.js +106 -90
- package/dist/charts/engine/three-d/geometry.js.map +1 -1
- package/dist/charts/engine/three-d/model.cjs +1 -1
- package/dist/charts/engine/three-d/model.cjs.map +1 -1
- package/dist/charts/engine/three-d/model.d.cts +2 -0
- package/dist/charts/engine/three-d/model.d.ts +2 -0
- package/dist/charts/engine/three-d/model.js +2 -0
- package/dist/charts/engine/three-d/model.js.map +1 -1
- package/dist/charts/engine/three-d/overlay.cjs +1 -1
- package/dist/charts/engine/three-d/overlay.cjs.map +1 -1
- package/dist/charts/engine/three-d/overlay.js +43 -36
- package/dist/charts/engine/three-d/overlay.js.map +1 -1
- package/dist/charts/engine/three-d/render-types.cjs +1 -1
- package/dist/charts/engine/three-d/render-types.cjs.map +1 -1
- package/dist/charts/engine/three-d/render-types.d.cts +24 -3
- package/dist/charts/engine/three-d/render-types.d.ts +24 -3
- package/dist/charts/engine/three-d/render-types.js +6 -7
- package/dist/charts/engine/three-d/render-types.js.map +1 -1
- package/dist/charts/engine/three-d/shaders.cjs +63 -28
- package/dist/charts/engine/three-d/shaders.cjs.map +1 -1
- package/dist/charts/engine/three-d/shaders.d.cts +2 -3
- package/dist/charts/engine/three-d/shaders.d.ts +2 -3
- package/dist/charts/engine/three-d/shaders.js +41 -22
- package/dist/charts/engine/three-d/shaders.js.map +1 -1
- package/dist/charts/engine/three-d/sort.cjs +1 -1
- package/dist/charts/engine/three-d/sort.cjs.map +1 -1
- package/dist/charts/engine/three-d/sort.d.cts +15 -4
- package/dist/charts/engine/three-d/sort.d.ts +15 -4
- package/dist/charts/engine/three-d/sort.js +117 -43
- package/dist/charts/engine/three-d/sort.js.map +1 -1
- package/dist/charts/engine/three-d/types.d.cts +27 -0
- package/dist/charts/engine/three-d/types.d.ts +27 -0
- package/dist/charts/engine/three-d/webgl.cjs +1 -1
- package/dist/charts/engine/three-d/webgl.cjs.map +1 -1
- package/dist/charts/engine/three-d/webgl.js +15 -13
- package/dist/charts/engine/three-d/webgl.js.map +1 -1
- package/dist/charts/engine/three-d/webgpu.cjs +1 -1
- package/dist/charts/engine/three-d/webgpu.cjs.map +1 -1
- package/dist/charts/engine/three-d/webgpu.js +50 -39
- package/dist/charts/engine/three-d/webgpu.js.map +1 -1
- package/dist/charts/engine/trading/chart.cjs +1 -1
- package/dist/charts/engine/trading/chart.cjs.map +1 -1
- package/dist/charts/engine/trading/chart.d.cts +10 -0
- package/dist/charts/engine/trading/chart.d.ts +10 -0
- package/dist/charts/engine/trading/chart.js +1475 -776
- package/dist/charts/engine/trading/chart.js.map +1 -1
- package/dist/charts/engine/trading/drawings.cjs +2 -1
- package/dist/charts/engine/trading/drawings.cjs.map +1 -1
- package/dist/charts/engine/trading/drawings.d.cts +47 -9
- package/dist/charts/engine/trading/drawings.d.ts +47 -9
- package/dist/charts/engine/trading/drawings.js +338 -75
- package/dist/charts/engine/trading/drawings.js.map +1 -1
- package/dist/charts/engine/trading/format.cjs +1 -1
- package/dist/charts/engine/trading/format.cjs.map +1 -1
- package/dist/charts/engine/trading/format.d.cts +13 -0
- package/dist/charts/engine/trading/format.d.ts +13 -0
- package/dist/charts/engine/trading/format.js +51 -19
- package/dist/charts/engine/trading/format.js.map +1 -1
- package/dist/charts/engine/trading/index.cjs +1 -1
- package/dist/charts/engine/trading/index.d.cts +2 -1
- package/dist/charts/engine/trading/index.d.ts +2 -1
- package/dist/charts/engine/trading/index.js +4 -3
- package/dist/charts/engine/trading/indicators.cjs +1 -1
- package/dist/charts/engine/trading/indicators.cjs.map +1 -1
- package/dist/charts/engine/trading/indicators.d.cts +180 -10
- package/dist/charts/engine/trading/indicators.d.ts +180 -10
- package/dist/charts/engine/trading/indicators.js +449 -173
- package/dist/charts/engine/trading/indicators.js.map +1 -1
- package/dist/charts/engine/trading/labels.cjs +1 -1
- package/dist/charts/engine/trading/labels.cjs.map +1 -1
- package/dist/charts/engine/trading/labels.js +84 -4
- package/dist/charts/engine/trading/labels.js.map +1 -1
- package/dist/charts/engine/trading/store.cjs +1 -1
- package/dist/charts/engine/trading/store.cjs.map +1 -1
- package/dist/charts/engine/trading/store.d.cts +21 -0
- package/dist/charts/engine/trading/store.d.ts +21 -0
- package/dist/charts/engine/trading/store.js +22 -1
- package/dist/charts/engine/trading/store.js.map +1 -1
- package/dist/charts/engine/trading/studies.cjs +1 -1
- package/dist/charts/engine/trading/studies.cjs.map +1 -1
- package/dist/charts/engine/trading/studies.d.cts +41 -8
- package/dist/charts/engine/trading/studies.d.ts +41 -8
- package/dist/charts/engine/trading/studies.js +349 -93
- package/dist/charts/engine/trading/studies.js.map +1 -1
- package/dist/charts/engine/trading/sync.cjs +2 -0
- package/dist/charts/engine/trading/sync.cjs.map +1 -0
- package/dist/charts/engine/trading/sync.d.cts +8 -0
- package/dist/charts/engine/trading/sync.d.ts +8 -0
- package/dist/charts/engine/trading/sync.js +25 -0
- package/dist/charts/engine/trading/sync.js.map +1 -0
- package/dist/charts/engine/trading/types.d.cts +484 -9
- package/dist/charts/engine/trading/types.d.ts +484 -9
- package/dist/charts/engine/types.d.cts +82 -8
- package/dist/charts/engine/types.d.ts +82 -8
- package/dist/charts/index.cjs +1 -1
- package/dist/charts/index.d.cts +3 -2
- package/dist/charts/index.d.ts +3 -2
- package/dist/charts/index.js +30 -22
- package/dist/charts/react/charts.cjs +1 -1
- package/dist/charts/react/charts.cjs.map +1 -1
- package/dist/charts/react/charts.js +46 -34
- package/dist/charts/react/charts.js.map +1 -1
- package/dist/charts/react/graph.cjs +2 -0
- package/dist/charts/react/graph.cjs.map +1 -0
- package/dist/charts/react/graph.d.cts +213 -0
- package/dist/charts/react/graph.d.ts +213 -0
- package/dist/charts/react/graph.js +159 -0
- package/dist/charts/react/graph.js.map +1 -0
- package/dist/charts/react/shapes.cjs +1 -1
- package/dist/charts/react/shapes.cjs.map +1 -1
- package/dist/charts/react/shapes.d.cts +87 -4
- package/dist/charts/react/shapes.d.ts +87 -4
- package/dist/charts/react/shapes.js +55 -12
- package/dist/charts/react/shapes.js.map +1 -1
- package/dist/charts/react/trading.cjs +1 -1
- package/dist/charts/react/trading.cjs.map +1 -1
- package/dist/charts/react/trading.d.cts +53 -1
- package/dist/charts/react/trading.d.ts +53 -1
- package/dist/charts/react/trading.js +68 -37
- package/dist/charts/react/trading.js.map +1 -1
- package/dist/charts/react/types.d.cts +11 -0
- package/dist/charts/react/types.d.ts +11 -0
- package/dist/core/contracts.cjs +1 -1
- package/dist/core/contracts.cjs.map +1 -1
- package/dist/core/contracts.js +1 -1
- package/dist/core/contracts.js.map +1 -1
- package/dist/native/charts/src/canvas.cjs +1 -1
- package/dist/native/charts/src/canvas.js +3 -3
- package/dist/native/charts/src/engine/axis.cjs +1 -1
- package/dist/native/charts/src/engine/axis.cjs.map +1 -1
- package/dist/native/charts/src/engine/axis.js +42 -19
- package/dist/native/charts/src/engine/axis.js.map +1 -1
- package/dist/native/charts/src/engine/color.cjs +1 -1
- package/dist/native/charts/src/engine/color.cjs.map +1 -1
- package/dist/native/charts/src/engine/color.js +47 -5
- package/dist/native/charts/src/engine/color.js.map +1 -1
- package/dist/native/charts/src/engine/controller.cjs +2 -2
- package/dist/native/charts/src/engine/controller.cjs.map +1 -1
- package/dist/native/charts/src/engine/controller.js +300 -253
- package/dist/native/charts/src/engine/controller.js.map +1 -1
- package/dist/native/charts/src/engine/data.cjs +1 -1
- package/dist/native/charts/src/engine/data.cjs.map +1 -1
- package/dist/native/charts/src/engine/data.js +6 -4
- package/dist/native/charts/src/engine/data.js.map +1 -1
- package/dist/native/charts/src/engine/format.cjs +1 -1
- package/dist/native/charts/src/engine/format.cjs.map +1 -1
- package/dist/native/charts/src/engine/format.js +15 -2
- package/dist/native/charts/src/engine/format.js.map +1 -1
- package/dist/native/charts/src/engine/labels.cjs +1 -1
- package/dist/native/charts/src/engine/labels.cjs.map +1 -1
- package/dist/native/charts/src/engine/labels.js +28 -4
- package/dist/native/charts/src/engine/labels.js.map +1 -1
- package/dist/native/charts/src/engine/layout.cjs +1 -1
- package/dist/native/charts/src/engine/layout.cjs.map +1 -1
- package/dist/native/charts/src/engine/layout.js +11 -2
- package/dist/native/charts/src/engine/layout.js.map +1 -1
- package/dist/native/charts/src/engine/model.cjs +1 -1
- package/dist/native/charts/src/engine/model.cjs.map +1 -1
- package/dist/native/charts/src/engine/model.js +252 -171
- package/dist/native/charts/src/engine/model.js.map +1 -1
- package/dist/native/charts/src/engine/overlay.cjs.map +1 -1
- package/dist/native/charts/src/engine/overlay.js.map +1 -1
- package/dist/native/charts/src/engine/presets.cjs +2 -2
- package/dist/native/charts/src/engine/presets.cjs.map +1 -1
- package/dist/native/charts/src/engine/presets.js +104 -90
- package/dist/native/charts/src/engine/presets.js.map +1 -1
- package/dist/native/charts/src/engine/scene.cjs +1 -1
- package/dist/native/charts/src/engine/scene.cjs.map +1 -1
- package/dist/native/charts/src/engine/scene.js +341 -188
- package/dist/native/charts/src/engine/scene.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/bullet.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/bullet.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/bullet.js +110 -110
- package/dist/native/charts/src/engine/shapes/bullet.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/calendar.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/calendar.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/calendar.js +21 -16
- package/dist/native/charts/src/engine/shapes/calendar.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/chord.cjs +2 -0
- package/dist/native/charts/src/engine/shapes/chord.cjs.map +1 -0
- package/dist/native/charts/src/engine/shapes/chord.js +414 -0
- package/dist/native/charts/src/engine/shapes/chord.js.map +1 -0
- package/dist/native/charts/src/engine/shapes/draw.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/draw.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/draw.js +47 -17
- package/dist/native/charts/src/engine/shapes/draw.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/hit.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/hit.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/hit.js +73 -44
- package/dist/native/charts/src/engine/shapes/hit.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/labels.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/labels.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/labels.js +12 -4
- package/dist/native/charts/src/engine/shapes/labels.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/layout.cjs +2 -2
- package/dist/native/charts/src/engine/shapes/layout.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/layout.js +117 -90
- package/dist/native/charts/src/engine/shapes/layout.js.map +1 -1
- package/dist/native/charts/src/engine/shapes/scene.cjs +1 -1
- package/dist/native/charts/src/engine/shapes/scene.cjs.map +1 -1
- package/dist/native/charts/src/engine/shapes/scene.js +62 -19
- package/dist/native/charts/src/engine/shapes/scene.js.map +1 -1
- package/dist/native/components/Chart/scene.cjs +1 -1
- package/dist/native/components/Chart/scene.cjs.map +1 -1
- package/dist/native/components/Chart/scene.js +140 -71
- package/dist/native/components/Chart/scene.js.map +1 -1
- package/dist/native/components/Charts/charts.cjs +1 -1
- package/dist/native/components/Charts/charts.cjs.map +1 -1
- package/dist/native/components/Charts/charts.js +54 -42
- package/dist/native/components/Charts/charts.js.map +1 -1
- package/dist/native/components/Charts/types.d.cts +11 -0
- package/dist/native/components/Charts/types.d.ts +11 -0
- package/dist/native/components/ShapeChart/ShapeChartBase.cjs +1 -1
- package/dist/native/components/ShapeChart/ShapeChartBase.cjs.map +1 -1
- package/dist/native/components/ShapeChart/ShapeChartBase.js +1 -0
- package/dist/native/components/ShapeChart/ShapeChartBase.js.map +1 -1
- package/dist/native/components/ShapeChart/charts.cjs +1 -1
- package/dist/native/components/ShapeChart/charts.cjs.map +1 -1
- package/dist/native/components/ShapeChart/charts.d.cts +6 -1
- package/dist/native/components/ShapeChart/charts.d.ts +6 -1
- package/dist/native/components/ShapeChart/charts.js +138 -96
- package/dist/native/components/ShapeChart/charts.js.map +1 -1
- package/dist/native/components/ShapeChart/draw.cjs +1 -1
- package/dist/native/components/ShapeChart/draw.cjs.map +1 -1
- package/dist/native/components/ShapeChart/draw.d.cts +1 -1
- package/dist/native/components/ShapeChart/draw.d.ts +1 -1
- package/dist/native/components/ShapeChart/draw.js +26 -17
- package/dist/native/components/ShapeChart/draw.js.map +1 -1
- package/dist/native/components/ShapeChart/geometry.cjs +1 -1
- package/dist/native/components/ShapeChart/geometry.cjs.map +1 -1
- package/dist/native/components/ShapeChart/geometry.js +138 -59
- package/dist/native/components/ShapeChart/geometry.js.map +1 -1
- package/dist/native/components/ShapeChart/index.cjs +1 -1
- package/dist/native/components/ShapeChart/index.d.cts +1 -1
- package/dist/native/components/ShapeChart/index.d.ts +1 -1
- package/dist/native/components/ShapeChart/index.js +2 -2
- package/dist/native/components/ShapeChart/recorder.cjs +1 -1
- package/dist/native/components/ShapeChart/recorder.cjs.map +1 -1
- package/dist/native/components/ShapeChart/recorder.d.cts +10 -1
- package/dist/native/components/ShapeChart/recorder.d.ts +10 -1
- package/dist/native/components/ShapeChart/recorder.js +19 -10
- package/dist/native/components/ShapeChart/recorder.js.map +1 -1
- package/dist/native/components/ShapeChart/types.d.cts +92 -7
- package/dist/native/components/ShapeChart/types.d.ts +92 -7
- package/dist/native/index.cjs +1 -1
- package/dist/native/index.js +2 -2
- package/dist/native/source/components/Chart/scene.tsx +158 -14
- package/dist/native/source/components/Charts/charts.tsx +30 -2
- package/dist/native/source/components/Charts/types.ts +11 -0
- package/dist/native/source/components/ShapeChart/ShapeChartBase.tsx +2 -0
- package/dist/native/source/components/ShapeChart/charts.tsx +91 -35
- package/dist/native/source/components/ShapeChart/draw.tsx +39 -8
- package/dist/native/source/components/ShapeChart/geometry.ts +189 -8
- package/dist/native/source/components/ShapeChart/index.ts +1 -0
- package/dist/native/source/components/ShapeChart/recorder.ts +20 -5
- package/dist/native/source/components/ShapeChart/types.ts +96 -5
- package/dist/native/source/manifest.ts +1 -0
- package/dist/taro/charts.d.ts +25 -5
- package/dist/taro/index.js +3900 -2836
- package/dist/taro/shape-charts.d.ts +96 -4
- package/dist/uni/AreaChart.vue.d.ts +5 -1
- package/dist/uni/Badge.vue.d.ts +1 -1
- package/dist/uni/BarChart.vue.d.ts +5 -1
- package/dist/uni/BoxPlotChart.vue.d.ts +8 -0
- package/dist/uni/BubbleChart.vue.d.ts +4 -0
- package/dist/uni/BulletChart.vue.d.ts +4 -0
- package/dist/uni/CalendarHeatmap.vue.d.ts +2 -0
- package/dist/uni/CandlestickChart.vue.d.ts +4 -0
- package/dist/uni/Chart.vue.d.ts +4 -0
- package/dist/uni/ChordChart.vue +93 -0
- package/dist/uni/ChordChart.vue.d.ts +136 -0
- package/dist/uni/DonutChart.vue.d.ts +4 -0
- package/dist/uni/FunnelChart.vue.d.ts +4 -0
- package/dist/uni/GanttChart.vue.d.ts +4 -0
- package/dist/uni/GaugeChart.vue.d.ts +4 -0
- package/dist/uni/HeatmapChart.vue.d.ts +8 -2
- package/dist/uni/HistogramChart.vue.d.ts +4 -0
- package/dist/uni/HorizontalBarChart.vue.d.ts +3 -1
- package/dist/uni/LineChart.vue.d.ts +4 -0
- package/dist/uni/MixedChart.vue.d.ts +4 -0
- package/dist/uni/PieChart.vue.d.ts +4 -0
- package/dist/uni/QuadrantChart.vue.d.ts +4 -0
- package/dist/uni/RadarChart.vue.d.ts +4 -0
- package/dist/uni/RadialBarChart.vue.d.ts +4 -0
- package/dist/uni/RangeAreaChart.vue.d.ts +4 -0
- package/dist/uni/SankeyChart.vue.d.ts +4 -0
- package/dist/uni/ScatterChart.vue.d.ts +4 -0
- package/dist/uni/Sparkline.vue.d.ts +4 -0
- package/dist/uni/SunburstChart.vue.d.ts +4 -0
- package/dist/uni/ToastProvider.vue.d.ts +1 -1
- package/dist/uni/TreemapChart.vue.d.ts +4 -0
- package/dist/uni/WaterfallChart.vue.d.ts +9 -0
- package/dist/uni/chart-canvas.d.ts +3 -0
- package/dist/uni/chart-canvas.js +4 -0
- package/dist/uni/chart-types.d.ts +28 -4
- package/dist/uni/chart-types.js +26 -2
- package/dist/uni/charts-canvas.js +1 -1
- package/dist/uni/index.d.ts +2 -1
- package/dist/uni/index.js +1 -0
- package/dist/uni/manifest.d.ts +7 -0
- package/dist/uni/manifest.js +10 -0
- package/dist/uni/named-chart-options.d.ts +9 -2
- package/dist/uni/named-chart-options.js +18 -1
- package/dist/uni/shape-chart-canvas.d.ts +3 -1
- package/dist/uni/shape-chart-canvas.js +15 -24
- package/dist/uni/shape-chart-types.d.ts +52 -2
- package/dist/uni/shape-chart-types.js +44 -0
- package/dist/vue/charts-global.d.ts +48 -0
- package/dist/vue/charts.d.ts +18 -0
- package/dist/vue/charts.js +56 -0
- package/dist/vue/charts.js.map +1 -0
- package/dist/vue/components/Chart/BoxPlotChart.vue.d.ts +8 -0
- package/dist/vue/components/Chart/BoxPlotChart.vue.js.map +1 -1
- package/dist/vue/components/Chart/BoxPlotChart.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/vue/components/Chart/BoxPlotChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/Chart/ChordChart.vue.d.ts +153 -0
- package/dist/vue/components/Chart/ChordChart.vue.js +7 -0
- package/dist/vue/components/Chart/ChordChart.vue.js.map +1 -0
- package/dist/vue/components/Chart/ChordChart.vue_vue_type_script_setup_true_lang.js +81 -0
- package/dist/vue/components/Chart/ChordChart.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/vue/components/Chart/DependencyGraph.vue.d.ts +179 -0
- package/dist/vue/components/Chart/DependencyGraph.vue.js +7 -0
- package/dist/vue/components/Chart/DependencyGraph.vue.js.map +1 -0
- package/dist/vue/components/Chart/DependencyGraph.vue_vue_type_script_setup_true_lang.js +65 -0
- package/dist/vue/components/Chart/DependencyGraph.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/vue/components/Chart/GanttChart.vue.d.ts +4 -0
- package/dist/vue/components/Chart/GanttChart.vue.js.map +1 -1
- package/dist/vue/components/Chart/GanttChart.vue_vue_type_script_setup_true_lang.js +4 -1
- package/dist/vue/components/Chart/GanttChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/Chart/GraphChart.vue.d.ts +184 -0
- package/dist/vue/components/Chart/GraphChart.vue.js +7 -0
- package/dist/vue/components/Chart/GraphChart.vue.js.map +1 -0
- package/dist/vue/components/Chart/GraphChart.vue_vue_type_script_setup_true_lang.js +62 -0
- package/dist/vue/components/Chart/GraphChart.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/vue/components/Chart/HeatmapChart.vue.d.ts +9 -5
- package/dist/vue/components/Chart/HeatmapChart.vue.js.map +1 -1
- package/dist/vue/components/Chart/HeatmapChart.vue_vue_type_script_setup_true_lang.js +3 -1
- package/dist/vue/components/Chart/HeatmapChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/Chart/OrderBookHeatmap.vue.d.ts +2 -0
- package/dist/vue/components/Chart/TimeAndSales.vue.d.ts +2 -0
- package/dist/vue/components/Chart/TradingChart.vue.d.ts +49 -1
- package/dist/vue/components/Chart/TradingChart.vue.js.map +1 -1
- package/dist/vue/components/Chart/TradingChart.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/vue/components/Chart/TradingChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/Chart/TreeChart.vue.d.ts +172 -0
- package/dist/vue/components/Chart/TreeChart.vue.js +7 -0
- package/dist/vue/components/Chart/TreeChart.vue.js.map +1 -0
- package/dist/vue/components/Chart/TreeChart.vue_vue_type_script_setup_true_lang.js +56 -0
- package/dist/vue/components/Chart/TreeChart.vue_vue_type_script_setup_true_lang.js.map +1 -0
- package/dist/vue/components/Chart/WaterfallChart.vue.d.ts +12 -1
- package/dist/vue/components/Chart/WaterfallChart.vue.js.map +1 -1
- package/dist/vue/components/Chart/WaterfallChart.vue_vue_type_script_setup_true_lang.js +8 -2
- package/dist/vue/components/Chart/WaterfallChart.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/vue/components/Chart/graph.d.ts +153 -0
- package/dist/vue/components/Chart/graph.js +135 -0
- package/dist/vue/components/Chart/graph.js.map +1 -0
- package/dist/vue/components/Chart/index.d.ts +5 -1
- package/dist/vue/components/Chart/index.js +5 -1
- package/dist/vue/components/Chart/orderbook.d.ts +5 -1
- package/dist/vue/components/Chart/orderbook.js +2 -0
- package/dist/vue/components/Chart/orderbook.js.map +1 -1
- package/dist/vue/components/Chart/trading.d.ts +24 -2
- package/dist/vue/components/Chart/trading.js +8 -0
- package/dist/vue/components/Chart/trading.js.map +1 -1
- package/dist/vue/components/Chart/types.d.ts +74 -2
- package/dist/vue/global.d.ts +2 -38
- package/dist/vue/groups/charts.js +10 -2
- package/dist/vue/groups/charts.js.map +1 -1
- package/dist/vue/index.js +6 -2
- package/dist/vue/internal/register.d.ts +7 -0
- package/dist/vue/internal/register.js +14 -0
- package/dist/vue/internal/register.js.map +1 -0
- package/dist/vue/plugin.d.ts +9 -4
- package/dist/vue/plugin.js +6 -11
- package/dist/vue/plugin.js.map +1 -1
- package/dist/weapp/charts/canvas.js +1687 -147
- package/dist/weapp/charts/core.js +1 -0
- package/dist/weapp/chord-chart/index.js +1 -0
- package/dist/weapp/chord-chart/index.json +1 -0
- package/dist/weapp/chord-chart/index.wxml +1 -0
- package/dist/weapp/chord-chart/index.wxss +1 -0
- package/dist/weapp/controls.js +92 -32
- package/dist/weapp/types.d.ts +87 -4
- package/dist/web-components/components/chart/charts.d.ts +4 -2
- package/dist/web-components/components/chart/charts.js +8 -1
- package/dist/web-components/components/chart/charts.js.map +1 -1
- package/dist/web-components/components/chart/extended.d.ts +17 -7
- package/dist/web-components/components/chart/extended.js +23 -9
- package/dist/web-components/components/chart/extended.js.map +1 -1
- package/dist/web-components/components/chart/shapes-extended.d.ts +37 -1
- package/dist/web-components/components/chart/shapes-extended.js +27 -1
- package/dist/web-components/components/chart/shapes-extended.js.map +1 -1
- package/dist/web-components/components/graph/graph.d.ts +154 -0
- package/dist/web-components/components/graph/graph.js +149 -0
- package/dist/web-components/components/graph/graph.js.map +1 -0
- package/dist/web-components/components/trading-chart/trading-chart.d.ts +49 -2
- package/dist/web-components/components/trading-chart/trading-chart.js +62 -0
- package/dist/web-components/components/trading-chart/trading-chart.js.map +1 -1
- package/dist/web-components/elements/chart.d.ts +1 -1
- package/dist/web-components/elements/chart.js +6 -5
- package/dist/web-components/elements/chart.js.map +1 -1
- package/dist/web-components/elements/graph.d.ts +2 -0
- package/dist/web-components/elements/graph.js +12 -0
- package/dist/web-components/elements/graph.js.map +1 -0
- package/dist/web-components/html-custom-data.json +273 -4
- package/dist/web-components/types/react.d.ts +63 -4
- package/dist/web-components/types/solid.d.ts +55 -8
- package/dist/web-components/types/svelte.d.ts +55 -8
- package/dist/web-components/types/vue.d.ts +55 -4
- package/package.json +16 -1
|
@@ -6,8 +6,34 @@ export type ChartRendererKind = "webgpu" | "webgl2" | "webgl" | "canvas2d";
|
|
|
6
6
|
* acceleration). A forced backend falls back along the same chain.
|
|
7
7
|
*/
|
|
8
8
|
export type ChartRendererPreference = "auto" | ChartRendererKind;
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Scale of an axis; `log` (base 10, positive values only) applies to the
|
|
11
|
+
* value axes (`yAxis`, `yAxis2`)
|
|
12
|
+
*/
|
|
13
|
+
export type ChartAxisType = "linear" | "log" | "time" | "category";
|
|
14
|
+
/**
|
|
15
|
+
* Built-in color ramps of heatmaps, theme-aware (light and dark):
|
|
16
|
+
* `sequential` goes from a tint of the surface to a deep (light theme) or
|
|
17
|
+
* bright (dark theme) series color; `diverging` from the danger color
|
|
18
|
+
* through a neutral middle to the series color
|
|
19
|
+
*/
|
|
20
|
+
export type ChartColorScheme = "sequential" | "diverging";
|
|
21
|
+
/** An extra row of the default tooltip of a point */
|
|
22
|
+
export interface ChartTooltipDetail {
|
|
23
|
+
/** Name (left column) */
|
|
24
|
+
name: string;
|
|
25
|
+
/** Value (right column) */
|
|
26
|
+
value: string;
|
|
27
|
+
}
|
|
28
|
+
/** Lines joining the end of every bar to the start of the next one */
|
|
29
|
+
export interface ChartConnectorOptions {
|
|
30
|
+
/** Line color (any CSS color) @default the secondary text color */
|
|
31
|
+
color?: string;
|
|
32
|
+
/** Dash pattern in CSS pixels; `[]` draws solid lines @default [3, 3] */
|
|
33
|
+
dash?: readonly number[];
|
|
34
|
+
/** Line width in CSS pixels @default 1 */
|
|
35
|
+
width?: number;
|
|
36
|
+
}
|
|
11
37
|
/** How a series is drawn */
|
|
12
38
|
export type ChartSeriesType = "line" | "area" | "bar" | "scatter" | "candlestick" | "heatmap" | "boxplot";
|
|
13
39
|
/** Direction of the value axis: `horizontal` puts the x (category) axis on the left */
|
|
@@ -57,6 +83,8 @@ export interface ChartPointDatum {
|
|
|
57
83
|
* a value shown in the tooltip
|
|
58
84
|
*/
|
|
59
85
|
value?: number | null;
|
|
86
|
+
/** Extra rows of the default tooltip of this point, after its values */
|
|
87
|
+
details?: readonly ChartTooltipDetail[];
|
|
60
88
|
}
|
|
61
89
|
/** Column-oriented data: the fastest form for large data sets (typed arrays are used as is) */
|
|
62
90
|
export interface ChartColumnData {
|
|
@@ -136,12 +164,19 @@ export interface ChartSeries {
|
|
|
136
164
|
/** Candlestick: color of the falling candles; `--danger-color` by default */
|
|
137
165
|
downColor?: string;
|
|
138
166
|
/**
|
|
139
|
-
* Heatmap: colors from the lowest to the highest value (two or more
|
|
140
|
-
*
|
|
167
|
+
* Heatmap: colors from the lowest to the highest value (two or more,
|
|
168
|
+
* interpolated in OKLab) or a built-in theme-aware scheme
|
|
169
|
+
* @default "sequential"
|
|
141
170
|
*/
|
|
142
|
-
colorScale?: readonly string[];
|
|
171
|
+
colorScale?: readonly string[] | ChartColorScheme;
|
|
143
172
|
/** Heatmap: values mapped to the ends of `colorScale`; the data range by default */
|
|
144
173
|
valueRange?: readonly [number, number];
|
|
174
|
+
/**
|
|
175
|
+
* Heatmap: value at the middle of the color scale (diverging data such as
|
|
176
|
+
* correlations or changes); each half of the ramp covers one side
|
|
177
|
+
* @default 0 for `diverging` ramps spanning it, else the middle of the range
|
|
178
|
+
*/
|
|
179
|
+
colorMidpoint?: number;
|
|
145
180
|
/** Bar / heatmap: corner radius in CSS pixels (bars: 3, heatmap cells: 2) */
|
|
146
181
|
radius?: number;
|
|
147
182
|
/** Formats the values of this series in the tooltip (the y axis format by default) */
|
|
@@ -161,6 +196,28 @@ export interface ChartSeries {
|
|
|
161
196
|
barWidth?: number;
|
|
162
197
|
/** Scatter: name of the `value` of the points in the tooltip (bubble charts) */
|
|
163
198
|
valueName?: string;
|
|
199
|
+
/**
|
|
200
|
+
* `false` leaves the series out of hit tests and tooltips (decorations,
|
|
201
|
+
* overlays such as the progress of Gantt tasks)
|
|
202
|
+
* @default true
|
|
203
|
+
*/
|
|
204
|
+
tooltip?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Box plot: outliers drawn as rings of the series color or as filled dots
|
|
207
|
+
* @default "hollow"
|
|
208
|
+
*/
|
|
209
|
+
outlierShape?: "hollow" | "filled";
|
|
210
|
+
/**
|
|
211
|
+
* Box plot: diameter of the outliers in CSS pixels
|
|
212
|
+
* @default 7
|
|
213
|
+
*/
|
|
214
|
+
outlierSize?: number;
|
|
215
|
+
/**
|
|
216
|
+
* Bars: thin lines from the end of every bar to the next bar (waterfall
|
|
217
|
+
* charts); `true` uses dashed lines of the secondary text color
|
|
218
|
+
* @default false
|
|
219
|
+
*/
|
|
220
|
+
connector?: boolean | ChartConnectorOptions;
|
|
164
221
|
}
|
|
165
222
|
/** Options of an axis */
|
|
166
223
|
export interface ChartAxisOptions {
|
|
@@ -301,10 +358,13 @@ export interface ChartInteractionOptions {
|
|
|
301
358
|
/** Tooltip options */
|
|
302
359
|
export interface ChartTooltipOptions {
|
|
303
360
|
/**
|
|
304
|
-
* `nearest` shows the closest point, `axis` all the series at the closest
|
|
305
|
-
*
|
|
361
|
+
* `nearest` shows the closest point, `axis` all the series at the closest
|
|
362
|
+
* x, `item` only the shape under the pointer (bar, box, cell or dot;
|
|
363
|
+
* nothing over empty space)
|
|
364
|
+
* @default "axis" ("nearest" when every series is a scatter, "item" for
|
|
365
|
+
* range bars on a time axis such as Gantt charts)
|
|
306
366
|
*/
|
|
307
|
-
mode?: "nearest" | "axis";
|
|
367
|
+
mode?: "nearest" | "axis" | "item";
|
|
308
368
|
/** Renders the tooltip content (a string is set as text) */
|
|
309
369
|
render?: (event: ChartHoverEvent) => string | Node | null;
|
|
310
370
|
/**
|
|
@@ -376,6 +436,18 @@ export interface ChartLabels {
|
|
|
376
436
|
chart: string;
|
|
377
437
|
/** Accessible name of a chart; `{series}` is the list of the series names @default "Chart: {series}" */
|
|
378
438
|
chartOf: string;
|
|
439
|
+
/** Start of a range bar on a time axis (Gantt tasks) @default "Start" */
|
|
440
|
+
start: string;
|
|
441
|
+
/** End of a range bar on a time axis @default "End" */
|
|
442
|
+
end: string;
|
|
443
|
+
/** Length of a range bar on a time axis (`4 weeks`, `26 days`) @default "Duration" */
|
|
444
|
+
duration: string;
|
|
445
|
+
/** Done share of a Gantt task @default "Progress" */
|
|
446
|
+
progress: string;
|
|
447
|
+
/** Tasks a Gantt task waits for @default "Depends on" */
|
|
448
|
+
dependencies: string;
|
|
449
|
+
/** A hovered box plot outlier @default "Outlier" */
|
|
450
|
+
outlier: string;
|
|
379
451
|
}
|
|
380
452
|
/** Legend options */
|
|
381
453
|
export interface ChartLegendOptions {
|
|
@@ -480,6 +552,8 @@ export interface ChartHoverItem {
|
|
|
480
552
|
q3?: number;
|
|
481
553
|
/** Box plot: number of outliers */
|
|
482
554
|
outliers?: number;
|
|
555
|
+
/** Box plot: value of the hovered outlier (the pointer is on an outlier) */
|
|
556
|
+
outlier?: number;
|
|
483
557
|
}
|
|
484
558
|
/** Hover / click payload */
|
|
485
559
|
export interface ChartHoverEvent {
|
|
@@ -6,8 +6,34 @@ export type ChartRendererKind = "webgpu" | "webgl2" | "webgl" | "canvas2d";
|
|
|
6
6
|
* acceleration). A forced backend falls back along the same chain.
|
|
7
7
|
*/
|
|
8
8
|
export type ChartRendererPreference = "auto" | ChartRendererKind;
|
|
9
|
-
/**
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Scale of an axis; `log` (base 10, positive values only) applies to the
|
|
11
|
+
* value axes (`yAxis`, `yAxis2`)
|
|
12
|
+
*/
|
|
13
|
+
export type ChartAxisType = "linear" | "log" | "time" | "category";
|
|
14
|
+
/**
|
|
15
|
+
* Built-in color ramps of heatmaps, theme-aware (light and dark):
|
|
16
|
+
* `sequential` goes from a tint of the surface to a deep (light theme) or
|
|
17
|
+
* bright (dark theme) series color; `diverging` from the danger color
|
|
18
|
+
* through a neutral middle to the series color
|
|
19
|
+
*/
|
|
20
|
+
export type ChartColorScheme = "sequential" | "diverging";
|
|
21
|
+
/** An extra row of the default tooltip of a point */
|
|
22
|
+
export interface ChartTooltipDetail {
|
|
23
|
+
/** Name (left column) */
|
|
24
|
+
name: string;
|
|
25
|
+
/** Value (right column) */
|
|
26
|
+
value: string;
|
|
27
|
+
}
|
|
28
|
+
/** Lines joining the end of every bar to the start of the next one */
|
|
29
|
+
export interface ChartConnectorOptions {
|
|
30
|
+
/** Line color (any CSS color) @default the secondary text color */
|
|
31
|
+
color?: string;
|
|
32
|
+
/** Dash pattern in CSS pixels; `[]` draws solid lines @default [3, 3] */
|
|
33
|
+
dash?: readonly number[];
|
|
34
|
+
/** Line width in CSS pixels @default 1 */
|
|
35
|
+
width?: number;
|
|
36
|
+
}
|
|
11
37
|
/** How a series is drawn */
|
|
12
38
|
export type ChartSeriesType = "line" | "area" | "bar" | "scatter" | "candlestick" | "heatmap" | "boxplot";
|
|
13
39
|
/** Direction of the value axis: `horizontal` puts the x (category) axis on the left */
|
|
@@ -57,6 +83,8 @@ export interface ChartPointDatum {
|
|
|
57
83
|
* a value shown in the tooltip
|
|
58
84
|
*/
|
|
59
85
|
value?: number | null;
|
|
86
|
+
/** Extra rows of the default tooltip of this point, after its values */
|
|
87
|
+
details?: readonly ChartTooltipDetail[];
|
|
60
88
|
}
|
|
61
89
|
/** Column-oriented data: the fastest form for large data sets (typed arrays are used as is) */
|
|
62
90
|
export interface ChartColumnData {
|
|
@@ -136,12 +164,19 @@ export interface ChartSeries {
|
|
|
136
164
|
/** Candlestick: color of the falling candles; `--danger-color` by default */
|
|
137
165
|
downColor?: string;
|
|
138
166
|
/**
|
|
139
|
-
* Heatmap: colors from the lowest to the highest value (two or more
|
|
140
|
-
*
|
|
167
|
+
* Heatmap: colors from the lowest to the highest value (two or more,
|
|
168
|
+
* interpolated in OKLab) or a built-in theme-aware scheme
|
|
169
|
+
* @default "sequential"
|
|
141
170
|
*/
|
|
142
|
-
colorScale?: readonly string[];
|
|
171
|
+
colorScale?: readonly string[] | ChartColorScheme;
|
|
143
172
|
/** Heatmap: values mapped to the ends of `colorScale`; the data range by default */
|
|
144
173
|
valueRange?: readonly [number, number];
|
|
174
|
+
/**
|
|
175
|
+
* Heatmap: value at the middle of the color scale (diverging data such as
|
|
176
|
+
* correlations or changes); each half of the ramp covers one side
|
|
177
|
+
* @default 0 for `diverging` ramps spanning it, else the middle of the range
|
|
178
|
+
*/
|
|
179
|
+
colorMidpoint?: number;
|
|
145
180
|
/** Bar / heatmap: corner radius in CSS pixels (bars: 3, heatmap cells: 2) */
|
|
146
181
|
radius?: number;
|
|
147
182
|
/** Formats the values of this series in the tooltip (the y axis format by default) */
|
|
@@ -161,6 +196,28 @@ export interface ChartSeries {
|
|
|
161
196
|
barWidth?: number;
|
|
162
197
|
/** Scatter: name of the `value` of the points in the tooltip (bubble charts) */
|
|
163
198
|
valueName?: string;
|
|
199
|
+
/**
|
|
200
|
+
* `false` leaves the series out of hit tests and tooltips (decorations,
|
|
201
|
+
* overlays such as the progress of Gantt tasks)
|
|
202
|
+
* @default true
|
|
203
|
+
*/
|
|
204
|
+
tooltip?: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* Box plot: outliers drawn as rings of the series color or as filled dots
|
|
207
|
+
* @default "hollow"
|
|
208
|
+
*/
|
|
209
|
+
outlierShape?: "hollow" | "filled";
|
|
210
|
+
/**
|
|
211
|
+
* Box plot: diameter of the outliers in CSS pixels
|
|
212
|
+
* @default 7
|
|
213
|
+
*/
|
|
214
|
+
outlierSize?: number;
|
|
215
|
+
/**
|
|
216
|
+
* Bars: thin lines from the end of every bar to the next bar (waterfall
|
|
217
|
+
* charts); `true` uses dashed lines of the secondary text color
|
|
218
|
+
* @default false
|
|
219
|
+
*/
|
|
220
|
+
connector?: boolean | ChartConnectorOptions;
|
|
164
221
|
}
|
|
165
222
|
/** Options of an axis */
|
|
166
223
|
export interface ChartAxisOptions {
|
|
@@ -301,10 +358,13 @@ export interface ChartInteractionOptions {
|
|
|
301
358
|
/** Tooltip options */
|
|
302
359
|
export interface ChartTooltipOptions {
|
|
303
360
|
/**
|
|
304
|
-
* `nearest` shows the closest point, `axis` all the series at the closest
|
|
305
|
-
*
|
|
361
|
+
* `nearest` shows the closest point, `axis` all the series at the closest
|
|
362
|
+
* x, `item` only the shape under the pointer (bar, box, cell or dot;
|
|
363
|
+
* nothing over empty space)
|
|
364
|
+
* @default "axis" ("nearest" when every series is a scatter, "item" for
|
|
365
|
+
* range bars on a time axis such as Gantt charts)
|
|
306
366
|
*/
|
|
307
|
-
mode?: "nearest" | "axis";
|
|
367
|
+
mode?: "nearest" | "axis" | "item";
|
|
308
368
|
/** Renders the tooltip content (a string is set as text) */
|
|
309
369
|
render?: (event: ChartHoverEvent) => string | Node | null;
|
|
310
370
|
/**
|
|
@@ -376,6 +436,18 @@ export interface ChartLabels {
|
|
|
376
436
|
chart: string;
|
|
377
437
|
/** Accessible name of a chart; `{series}` is the list of the series names @default "Chart: {series}" */
|
|
378
438
|
chartOf: string;
|
|
439
|
+
/** Start of a range bar on a time axis (Gantt tasks) @default "Start" */
|
|
440
|
+
start: string;
|
|
441
|
+
/** End of a range bar on a time axis @default "End" */
|
|
442
|
+
end: string;
|
|
443
|
+
/** Length of a range bar on a time axis (`4 weeks`, `26 days`) @default "Duration" */
|
|
444
|
+
duration: string;
|
|
445
|
+
/** Done share of a Gantt task @default "Progress" */
|
|
446
|
+
progress: string;
|
|
447
|
+
/** Tasks a Gantt task waits for @default "Depends on" */
|
|
448
|
+
dependencies: string;
|
|
449
|
+
/** A hovered box plot outlier @default "Outlier" */
|
|
450
|
+
outlier: string;
|
|
379
451
|
}
|
|
380
452
|
/** Legend options */
|
|
381
453
|
export interface ChartLegendOptions {
|
|
@@ -480,6 +552,8 @@ export interface ChartHoverItem {
|
|
|
480
552
|
q3?: number;
|
|
481
553
|
/** Box plot: number of outliers */
|
|
482
554
|
outliers?: number;
|
|
555
|
+
/** Box plot: value of the hovered outlier (the pointer is on an outlier) */
|
|
556
|
+
outlier?: number;
|
|
483
557
|
}
|
|
484
558
|
/** Hover / click payload */
|
|
485
559
|
export interface ChartHoverEvent {
|
package/dist/charts/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./engine/format.cjs"),t=require("./engine/
|
|
1
|
+
"use client";Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./engine/format.cjs"),t=require("./engine/defaults.cjs"),n=require("./engine/chart.cjs"),r=require("./react/Chart.cjs"),i=require("./engine/presets.cjs"),a=require("./react/charts.cjs"),o=require("./engine/shapes/chart.cjs"),s=require("./react/shapes.cjs"),c=require("./engine/trading/indicators.cjs"),l=require("./engine/trading/chart.cjs"),u=require("./react/trading.cjs"),d=require("./engine/orderbook/book.cjs"),f=require("./engine/orderbook/depth.cjs"),p=require("./engine/orderbook/heatmap.cjs"),m=require("./engine/orderbook/ladder.cjs"),h=require("./engine/orderbook/tape.cjs"),g=require("./react/orderbook.cjs"),_=require("./engine/three-d/chart.cjs"),v=require("./react/three-d.cjs"),y=require("./engine/graph/force.cjs"),b=require("./engine/graph/circular.cjs"),x=require("./engine/graph/dag.cjs"),S=require("./engine/graph/tree.cjs"),C=require("./engine/graph/chart.cjs"),w=require("./react/graph.cjs"),T=require("./engine/shapes/canvas.cjs"),E=require("./engine/controller.cjs"),D=require("./engine/canvas.cjs"),O=require("./engine/trading/sync.cjs");require("./core.cjs"),exports.AreaChart=a.AreaChart,exports.Bar3DChart=v.Bar3DChart,exports.BarChart=a.BarChart,exports.BoxPlotChart=a.BoxPlotChart,exports.BubbleChart=a.BubbleChart,exports.BulletChart=s.BulletChart,exports.CalendarHeatmap=s.CalendarHeatmap,exports.CandlestickChart=a.CandlestickChart,exports.Chart=r.Chart,exports.ChordChart=s.ChordChart,exports.DependencyGraph=w.DependencyGraph,exports.DepthChart=g.DepthChart,exports.DonutChart=s.DonutChart,exports.FunnelChart=s.FunnelChart,exports.GanttChart=a.GanttChart,exports.GaugeChart=s.GaugeChart,exports.GraphChart=w.GraphChart,exports.HeatmapChart=a.HeatmapChart,exports.HistogramChart=a.HistogramChart,exports.HorizontalBarChart=a.HorizontalBarChart,exports.Line3DChart=v.Line3DChart,exports.LineChart=a.LineChart,exports.MixedChart=a.MixedChart,exports.OrderBook=g.OrderBook,exports.OrderBookHeatmap=g.OrderBookHeatmap,exports.PieChart=s.PieChart,exports.QuadrantChart=a.QuadrantChart,exports.RadarChart=s.RadarChart,exports.RadialBarChart=s.RadialBarChart,exports.RangeAreaChart=a.RangeAreaChart,exports.SankeyChart=s.SankeyChart,exports.Scatter3DChart=v.Scatter3DChart,exports.ScatterChart=a.ScatterChart,exports.Sparkline=a.Sparkline,exports.SunburstChart=s.SunburstChart,exports.Surface3DChart=v.Surface3DChart,exports.TimeAndSales=g.TimeAndSales,exports.TradingChart=u.TradingChart,exports.TreeChart=w.TreeChart,exports.TreemapChart=s.TreemapChart,exports.WaterfallChart=a.WaterfallChart,exports.arcLayout=b.arcLayout,exports.areaSeries=i.areaSeries,exports.atr=c.atr,exports.barSeries=i.barSeries,exports.binValues=i.binValues,exports.bollinger=c.bollinger,exports.boxplotData=i.boxplotData,exports.boxplotSeries=i.boxplotSeries,exports.boxplotStats=i.boxplotStats,exports.bubbleSeries=i.bubbleSeries,exports.candlestickSeries=i.candlestickSeries,exports.cci=c.cci,exports.circularLayout=b.circularLayout,exports.countCrossings=x.countCrossings,exports.createCanvasChart=D.createCanvasChart,exports.createCanvasShapeChart=T.createCanvasShapeChart,exports.createChart=n.createChart,exports.createChart3D=_.createChart3D,exports.createChartController=E.createChartController,exports.createDepthChart=f.createDepthChart,exports.createForceSimulation=y.createForceSimulation,exports.createGraphChart=C.createGraphChart,exports.createOrderBook=m.createOrderBook,exports.createOrderBookHeatmap=p.createOrderBookHeatmap,exports.createOrderBookStore=d.createOrderBookStore,exports.createShapeChart=o.createShapeChart,exports.createTimeAndSales=h.createTimeAndSales,exports.createTradingChart=l.createTradingChart,exports.criticalPath=x.criticalPath,exports.dagLayout=x.dagLayout,exports.dmi=c.dmi,exports.donchian=c.donchian,exports.ema=c.ema,exports.forceLayout=y.forceLayout,exports.formatCompact=e.formatCompact,exports.formatDuration=e.formatDuration,exports.formatValue=e.formatValue,exports.ganttSeries=i.ganttSeries,exports.getDefaultChartRenderer=t.getDefaultChartRenderer,exports.heatmapChartOptions=i.heatmapChartOptions,exports.heikinAshi=c.heikinAshi,exports.histogramSeries=i.histogramSeries,exports.ichimoku=c.ichimoku,exports.kdj=c.kdj,exports.keltner=c.keltner,exports.lineSeries=i.lineSeries,exports.macd=c.macd,exports.mfi=c.mfi,exports.obv=c.obv,exports.psar=c.psar,exports.quadrantCenter=i.quadrantCenter,exports.quadrantChartOptions=i.quadrantChartOptions,exports.quadrantOf=i.quadrantOf,exports.quantiles=i.quantiles,exports.rangeAreaSeries=i.rangeAreaSeries,exports.resampleBars=c.resampleBars,exports.rsi=c.rsi,exports.scatterSeries=i.scatterSeries,exports.scenePrimitives=E.scenePrimitives,exports.setDefaultChartRenderer=t.setDefaultChartRenderer,exports.sma=c.sma,exports.sparklineOptions=i.sparklineOptions,exports.stochRsi=c.stochRsi,exports.subscribeDefaultChartRenderer=t.subscribeDefaultChartRenderer,exports.supertrend=c.supertrend,exports.syncCharts=O.syncCharts,exports.treeLayout=S.treeLayout,exports.volumeProfile=c.volumeProfile,exports.vwap=c.vwap,exports.waterfallSeries=i.waterfallSeries,exports.williamsR=c.williamsR,exports.withSeriesType=i.withSeriesType,exports.wma=c.wma;
|
package/dist/charts/index.d.cts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { Chart } from './react/Chart.cjs';
|
|
2
2
|
export { AreaChart, BarChart, BoxPlotChart, BubbleChart, CandlestickChart, GanttChart, HeatmapChart, HistogramChart, HorizontalBarChart, LineChart, MixedChart, QuadrantChart, RangeAreaChart, ScatterChart, Sparkline, WaterfallChart, } from './react/charts.cjs';
|
|
3
|
-
export { BulletChart, CalendarHeatmap, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.cjs';
|
|
3
|
+
export { BulletChart, CalendarHeatmap, ChordChart, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.cjs';
|
|
4
4
|
export type { AreaChartProps, BarChartProps, BoxPlotChartProps, BubbleChartProps, CandlestickChartProps, ChartCommonProps, ChartHandle, ChartProps, GanttChartProps, HeatmapChartProps, HistogramChartProps, HorizontalBarChartProps, LineChartProps, MixedChartProps, QuadrantChartProps, QuadrantDropTarget, RangeAreaChartProps, ScatterChartProps, SparklineProps, WaterfallChartProps, } from './react/types.cjs';
|
|
5
|
-
export type { BulletChartProps, CalendarHeatmapProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.cjs';
|
|
5
|
+
export type { BulletChartProps, CalendarHeatmapProps, ChordChartProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.cjs';
|
|
6
6
|
export * from './react/trading.cjs';
|
|
7
7
|
export * from './react/orderbook.cjs';
|
|
8
8
|
export * from './react/three-d.cjs';
|
|
9
|
+
export * from './react/graph.cjs';
|
|
9
10
|
export * from './core.cjs';
|
package/dist/charts/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { Chart } from './react/Chart.js';
|
|
2
2
|
export { AreaChart, BarChart, BoxPlotChart, BubbleChart, CandlestickChart, GanttChart, HeatmapChart, HistogramChart, HorizontalBarChart, LineChart, MixedChart, QuadrantChart, RangeAreaChart, ScatterChart, Sparkline, WaterfallChart, } from './react/charts.js';
|
|
3
|
-
export { BulletChart, CalendarHeatmap, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.js';
|
|
3
|
+
export { BulletChart, CalendarHeatmap, ChordChart, DonutChart, FunnelChart, GaugeChart, PieChart, RadarChart, RadialBarChart, SankeyChart, SunburstChart, TreemapChart, } from './react/shapes.js';
|
|
4
4
|
export type { AreaChartProps, BarChartProps, BoxPlotChartProps, BubbleChartProps, CandlestickChartProps, ChartCommonProps, ChartHandle, ChartProps, GanttChartProps, HeatmapChartProps, HistogramChartProps, HorizontalBarChartProps, LineChartProps, MixedChartProps, QuadrantChartProps, QuadrantDropTarget, RangeAreaChartProps, ScatterChartProps, SparklineProps, WaterfallChartProps, } from './react/types.js';
|
|
5
|
-
export type { BulletChartProps, CalendarHeatmapProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.js';
|
|
5
|
+
export type { BulletChartProps, CalendarHeatmapProps, ChordChartProps, DonutChartProps, FunnelChartProps, GaugeChartProps, PieChartProps, RadarChartProps, RadialBarChartProps, SankeyChartProps, ShapeChartCommonProps, ShapeChartHandle, SunburstChartProps, TreemapChartProps, } from './react/shapes.js';
|
|
6
6
|
export * from './react/trading.js';
|
|
7
7
|
export * from './react/orderbook.js';
|
|
8
8
|
export * from './react/three-d.js';
|
|
9
|
+
export * from './react/graph.js';
|
|
9
10
|
export * from './core.js';
|
package/dist/charts/index.js
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { formatCompact as e,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
2
|
+
import { formatCompact as e, formatDuration as t, formatValue as n } from "./engine/format.js";
|
|
3
|
+
import { getDefaultChartRenderer as r, setDefaultChartRenderer as i, subscribeDefaultChartRenderer as a } from "./engine/defaults.js";
|
|
4
|
+
import { createChart as o } from "./engine/chart.js";
|
|
5
|
+
import { Chart as s } from "./react/Chart.js";
|
|
6
|
+
import { areaSeries as c, barSeries as l, binValues as u, boxplotData as d, boxplotSeries as f, boxplotStats as p, bubbleSeries as m, candlestickSeries as h, ganttSeries as g, heatmapChartOptions as _, histogramSeries as v, lineSeries as y, quadrantCenter as b, quadrantChartOptions as x, quadrantOf as S, quantiles as C, rangeAreaSeries as w, scatterSeries as T, sparklineOptions as E, waterfallSeries as D, withSeriesType as O } from "./engine/presets.js";
|
|
7
|
+
import { AreaChart as k, BarChart as A, BoxPlotChart as j, BubbleChart as M, CandlestickChart as N, GanttChart as P, HeatmapChart as F, HistogramChart as I, HorizontalBarChart as L, LineChart as R, MixedChart as z, QuadrantChart as B, RangeAreaChart as V, ScatterChart as H, Sparkline as U, WaterfallChart as W } from "./react/charts.js";
|
|
8
|
+
import { createShapeChart as G } from "./engine/shapes/chart.js";
|
|
9
|
+
import { BulletChart as K, CalendarHeatmap as q, ChordChart as J, DonutChart as Y, FunnelChart as X, GaugeChart as Z, PieChart as Q, RadarChart as $, RadialBarChart as ee, SankeyChart as te, SunburstChart as ne, TreemapChart as re } from "./react/shapes.js";
|
|
10
|
+
import { atr as ie, bollinger as ae, cci as oe, dmi as se, donchian as ce, ema as le, heikinAshi as ue, ichimoku as de, kdj as fe, keltner as pe, macd as me, mfi as he, obv as ge, psar as _e, resampleBars as ve, rsi as ye, sma as be, stochRsi as xe, supertrend as Se, volumeProfile as Ce, vwap as we, williamsR as Te, wma as Ee } from "./engine/trading/indicators.js";
|
|
11
|
+
import { createTradingChart as De } from "./engine/trading/chart.js";
|
|
12
|
+
import { TradingChart as Oe } from "./react/trading.js";
|
|
13
|
+
import { createOrderBookStore as ke } from "./engine/orderbook/book.js";
|
|
14
|
+
import { createDepthChart as Ae } from "./engine/orderbook/depth.js";
|
|
15
|
+
import { createOrderBookHeatmap as je } from "./engine/orderbook/heatmap.js";
|
|
16
|
+
import { createOrderBook as Me } from "./engine/orderbook/ladder.js";
|
|
17
|
+
import { createTimeAndSales as Ne } from "./engine/orderbook/tape.js";
|
|
18
|
+
import { DepthChart as Pe, OrderBook as Fe, OrderBookHeatmap as Ie, TimeAndSales as Le } from "./react/orderbook.js";
|
|
19
|
+
import { createChart3D as Re } from "./engine/three-d/chart.js";
|
|
20
|
+
import { Bar3DChart as ze, Line3DChart as Be, Scatter3DChart as Ve, Surface3DChart as He } from "./react/three-d.js";
|
|
21
|
+
import { createForceSimulation as Ue, forceLayout as We } from "./engine/graph/force.js";
|
|
22
|
+
import { arcLayout as Ge, circularLayout as Ke } from "./engine/graph/circular.js";
|
|
23
|
+
import { countCrossings as qe, criticalPath as Je, dagLayout as Ye } from "./engine/graph/dag.js";
|
|
24
|
+
import { treeLayout as Xe } from "./engine/graph/tree.js";
|
|
25
|
+
import { createGraphChart as Ze } from "./engine/graph/chart.js";
|
|
26
|
+
import { DependencyGraph as Qe, GraphChart as $e, TreeChart as et } from "./react/graph.js";
|
|
27
|
+
import { createCanvasShapeChart as tt } from "./engine/shapes/canvas.js";
|
|
28
|
+
import { createChartController as nt, scenePrimitives as rt } from "./engine/controller.js";
|
|
29
|
+
import { createCanvasChart as it } from "./engine/canvas.js";
|
|
30
|
+
import { syncCharts as at } from "./engine/trading/sync.js";
|
|
23
31
|
import "./core.js";
|
|
24
|
-
export {
|
|
32
|
+
export { k as AreaChart, ze as Bar3DChart, A as BarChart, j as BoxPlotChart, M as BubbleChart, K as BulletChart, q as CalendarHeatmap, N as CandlestickChart, s as Chart, J as ChordChart, Qe as DependencyGraph, Pe as DepthChart, Y as DonutChart, X as FunnelChart, P as GanttChart, Z as GaugeChart, $e as GraphChart, F as HeatmapChart, I as HistogramChart, L as HorizontalBarChart, Be as Line3DChart, R as LineChart, z as MixedChart, Fe as OrderBook, Ie as OrderBookHeatmap, Q as PieChart, B as QuadrantChart, $ as RadarChart, ee as RadialBarChart, V as RangeAreaChart, te as SankeyChart, Ve as Scatter3DChart, H as ScatterChart, U as Sparkline, ne as SunburstChart, He as Surface3DChart, Le as TimeAndSales, Oe as TradingChart, et as TreeChart, re as TreemapChart, W as WaterfallChart, Ge as arcLayout, c as areaSeries, ie as atr, l as barSeries, u as binValues, ae as bollinger, d as boxplotData, f as boxplotSeries, p as boxplotStats, m as bubbleSeries, h as candlestickSeries, oe as cci, Ke as circularLayout, qe as countCrossings, it as createCanvasChart, tt as createCanvasShapeChart, o as createChart, Re as createChart3D, nt as createChartController, Ae as createDepthChart, Ue as createForceSimulation, Ze as createGraphChart, Me as createOrderBook, je as createOrderBookHeatmap, ke as createOrderBookStore, G as createShapeChart, Ne as createTimeAndSales, De as createTradingChart, Je as criticalPath, Ye as dagLayout, se as dmi, ce as donchian, le as ema, We as forceLayout, e as formatCompact, t as formatDuration, n as formatValue, g as ganttSeries, r as getDefaultChartRenderer, _ as heatmapChartOptions, ue as heikinAshi, v as histogramSeries, de as ichimoku, fe as kdj, pe as keltner, y as lineSeries, me as macd, he as mfi, ge as obv, _e as psar, b as quadrantCenter, x as quadrantChartOptions, S as quadrantOf, C as quantiles, w as rangeAreaSeries, ve as resampleBars, ye as rsi, T as scatterSeries, rt as scenePrimitives, i as setDefaultChartRenderer, be as sma, E as sparklineOptions, xe as stochRsi, a as subscribeDefaultChartRenderer, Se as supertrend, at as syncCharts, Xe as treeLayout, Ce as volumeProfile, we as vwap, D as waterfallSeries, Te as williamsR, O as withSeriesType, Ee as wma };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use client";const e=require("../engine/locale.cjs"),t=require("./Chart.cjs"),n=require("../engine/presets.cjs");let r=require("react"),i=require("react/jsx-runtime");var a=e=>({height:e.height,width:e.width,className:e.className,style:e.style,handleRef:e.ref,onHover:e.onHover,onPointClick:e.onPointClick,onPlotClick:e.onPlotClick,onZoom:e.onZoom,onRendererChange:e.onRendererChange,renderTooltip:e.renderTooltip});function o(e){let{series:o,area:s=!1,curve:c,stacked:l=!1,percent:u=!1}=e,d=(0,r.useMemo)(()=>n.lineSeries(o,s,{curve:c,stacked:l||u}),[o,s,c,l,u]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:d,stackMode:u?`percent`:void 0}),...a(e)})}function s(e){let{series:o,curve:s=`smooth`,stacked:c=!1,percent:l=!1}=e,u=(0,r.useMemo)(()=>n.areaSeries(o,{curve:s,stacked:c||l}),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:u,stackMode:l?`percent`:void 0}),...a(e)})}function c(e){let{series:o,stacked:s=!1,percent:c=!1,labels:l=!1}=e,u=(0,r.useMemo)(()=>n.barSeries(o,s||c,l),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,labels:void 0,series:u,stackMode:c?`percent`:void 0}),...a(e)})}function l(e){let{series:o}=e,s=(0,r.useMemo)(()=>n.candlestickSeries(o),[o]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:s}),...a(e)})}function u(e){let{data:o,xCategories:s,yCategories:c,colorScale:l,valueRange:u,
|
|
1
|
+
"use client";const e=require("../engine/locale.cjs"),t=require("./Chart.cjs"),n=require("../engine/presets.cjs");let r=require("react"),i=require("react/jsx-runtime");var a=e=>({height:e.height,width:e.width,className:e.className,style:e.style,handleRef:e.ref,onHover:e.onHover,onPointClick:e.onPointClick,onPlotClick:e.onPlotClick,onZoom:e.onZoom,onRendererChange:e.onRendererChange,renderTooltip:e.renderTooltip});function o(e){let{series:o,area:s=!1,curve:c,stacked:l=!1,percent:u=!1}=e,d=(0,r.useMemo)(()=>n.lineSeries(o,s,{curve:c,stacked:l||u}),[o,s,c,l,u]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:d,stackMode:u?`percent`:void 0}),...a(e)})}function s(e){let{series:o,curve:s=`smooth`,stacked:c=!1,percent:l=!1}=e,u=(0,r.useMemo)(()=>n.areaSeries(o,{curve:s,stacked:c||l}),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:u,stackMode:l?`percent`:void 0}),...a(e)})}function c(e){let{series:o,stacked:s=!1,percent:c=!1,labels:l=!1}=e,u=(0,r.useMemo)(()=>n.barSeries(o,s||c,l),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,labels:void 0,series:u,stackMode:c?`percent`:void 0}),...a(e)})}function l(e){let{series:o}=e,s=(0,r.useMemo)(()=>n.candlestickSeries(o),[o]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:s}),...a(e)})}function u(e){let{data:o,xCategories:s,yCategories:c,colorScale:l,valueRange:u,colorMidpoint:d,name:f,radius:p,format:m}=e,h=(0,r.useMemo)(()=>n.heatmapChartOptions({data:o,xCategories:s,yCategories:c,colorScale:l,valueRange:u,colorMidpoint:d,name:f,radius:p,format:m}).series,[o,s,c,l,u,d,f,p,m]),g=t.engineOptions({...e,series:h});return(0,i.jsx)(t.ChartBase,{options:{...n.heatmapChartOptions({data:o,xCategories:s,yCategories:c},{...g,legend:e.legend,interaction:e.interaction,tooltip:e.tooltip}),series:h},...a(e)})}function d(e){let{data:a,type:o,color:s,curve:c,name:l,reference:u,format:d,height:f=48,width:p,renderer:m,tooltip:h,palette:g,ariaLabel:_,locale:v,labels:y,className:b,style:x,ref:S,onHover:C,renderTooltip:w}=e,T=(0,r.useMemo)(()=>n.sparklineOptions({data:a,type:o,color:s,curve:c,name:l,reference:u,format:d},{renderer:m,tooltip:h,palette:g,ariaLabel:_,locale:v,labels:y}),[a,o,s,c,l,u,d,m,h,g,_,v,y]);return(0,i.jsx)(t.ChartBase,{options:T,height:f,width:p,className:b,style:x,handleRef:S,onHover:C,renderTooltip:w})}function f(e){let{series:o}=e,s=(0,r.useMemo)(()=>n.scatterSeries(o),[o]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:s}),...a(e)})}var p=[`topLeft`,`topRight`,`bottomLeft`,`bottomRight`],m=(e,t,n)=>{let r=e.endsWith(`Left`),i=e.startsWith(`top`);return{position:`absolute`,left:r?0:n.x-t.x,top:i?0:n.y-t.y,width:r?n.x-t.x:t.x+t.width-n.x,height:i?n.y-t.y:t.y+t.height-n.y,pointerEvents:`none`}};function h(e){let{points:r,xDomain:o,yDomain:s,xSplit:c,ySplit:l,quadrants:u,xLabel:d,yLabel:f,axisLabels:h,showTicks:g,reverseX:_,showLabels:v,pointSize:y,name:b,draggable:x,onPointClick:S,onPointDrop:C,onQuadrantClick:w,renderTooltip:T,quadrantContent:E}=e,D={xDomain:o,yDomain:s,xSplit:c,ySplit:l,reverseX:_},O=n.quadrantChartOptions({points:r,xDomain:o,yDomain:s,xSplit:c,ySplit:l,quadrants:u,xLabel:d,yLabel:f,axisLabels:h,showTicks:g,reverseX:_,showLabels:v,pointSize:y,name:b,draggable:x??!!C},t.engineOptions({...e,series:[]})),k=E?e=>{let[t,n]=o??[0,10],[r,a]=s??[0,10],u=c??(t+n)/2,d=l??(r+a)/2,f=(u-t)/(n-t||1),h=(d-r)/(a-r||1),g={x:e.x+e.width*(_?1-f:f),y:e.y+e.height*(1-h)};return p.map(t=>E[t]?(0,i.jsx)(`div`,{className:`minerva-chart-quadrant minerva-chart-quadrant-${t}`,style:m(t,e,g),children:E[t]},t):null)}:void 0;return(0,i.jsx)(t.ChartBase,{options:O,...a({...e,onPointClick:void 0,renderTooltip:void 0}),overlay:k,onPointClick:S?e=>{let t=e.items[0]?.index;t!==void 0&&r[t]&&S(r[t],t)}:void 0,onPlotClick:w?e=>w(n.quadrantOf(D,e.x,e.y),e):void 0,onDrop:C?e=>{let t=e.item.index;r[t]&&C(r[t],t,{x:e.x,y:e.y,quadrant:n.quadrantOf(D,e.x,e.y)})}:void 0,renderTooltip:T?e=>{let t=e.items[0]?.index;return t!==void 0&&r[t]?T(r[t],t):null}:void 0})}function g(e){return(0,i.jsx)(c,{...e,orientation:`horizontal`})}function _(e){let{series:o,curve:s=`smooth`}=e,c=(0,r.useMemo)(()=>n.rangeAreaSeries(o,s),[o,s]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:c}),...a(e)})}function v(e){return(0,i.jsx)(t.Chart,{...e})}function y(e){let{series:o,minSize:s,maxSize:c,maxValue:l}=e,u=(0,r.useMemo)(()=>n.bubbleSeries(o,{minSize:s,maxSize:c,maxValue:l}),[o,s,c,l]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...e,series:u}),...a(e)})}function b(o){let{values:s,bins:c,domain:l,nice:u,name:d,color:f,formatBin:p,series:m,locale:h}=o,g=e.resolveLocale(h),_=(0,r.useMemo)(()=>[n.histogramSeries(s,{bins:c,domain:l,nice:u,name:d,color:f,format:p,locale:g}),...m??[]],[s,c,l,u,d,f,p,m,g]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,series:_}),...a(o)})}function x(o){let{series:s,groups:c,name:l,whisker:u,orientation:d,locale:f,outlierShape:p,outlierSize:m}=o,h=l??n.presetLabels(e.resolveLocale(f)).values,g=(0,r.useMemo)(()=>n.boxplotSeries([...c?.length?[{id:`boxplot`,name:h,data:n.boxplotData(c,{whisker:u})}]:[],...s??[]]).map(e=>e.type===`boxplot`?{...e,outlierShape:e.outlierShape??p,outlierSize:e.outlierSize??m}:e),[s,c,h,u,p,m]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,series:g,orientation:d}),...a(o)})}function S(o){let{steps:s,name:c,upColor:l,downColor:u,totalColor:d,start:f,labels:p=!0,format:m,connector:h,orientation:g,locale:_}=o,v=e.resolveLocale(_),y=(0,r.useMemo)(()=>[n.waterfallSeries(s,{name:c,upColor:l,downColor:u,totalColor:d,start:f,labels:p,format:m,connector:h,locale:v})],[s,c,l,u,d,f,p,m,h,v]);return(0,i.jsx)(t.ChartBase,{options:t.engineOptions({...o,labels:void 0,series:y,orientation:g}),...a(o)})}function C(o){let{tasks:s,colors:c,taskName:l,progressName:u,milestoneName:d,formatProgress:f,dependenciesName:p,today:m=!1,todayLabel:h,xAxis:g,yAxis:_,annotations:v,interaction:y,legend:b,locale:x}=o,S=e.resolveLocale(x),C=(0,r.useMemo)(()=>n.ganttSeries(s,{colors:c,taskName:l,progressName:u,milestoneName:d,formatProgress:f,dependenciesName:p,locale:S}),[s,c,l,u,d,f,p,S]),[w]=(0,r.useState)(()=>Date.now()),T=m===!1?null:m===!0?w:m instanceof Date?m.getTime():m,E=T===null?[]:[{type:`line`,axis:`y`,value:T,color:`var(--danger-color, #dc2626)`,dash:[4,3],label:h}];return(0,i.jsx)(t.ChartBase,{options:{...t.engineOptions({...o,series:C.series,orientation:`horizontal`}),xAxis:{type:`category`,categories:C.categories,...g},yAxis:{type:`time`,min:C.domain[0],max:C.domain[1],..._},annotations:[...v??[],...E],interaction:y??{zoom:`y`},legend:b??C.series.length>1},...a(o)})}exports.AreaChart=s,exports.BarChart=c,exports.BoxPlotChart=x,exports.BubbleChart=y,exports.CandlestickChart=l,exports.GanttChart=C,exports.HeatmapChart=u,exports.HistogramChart=b,exports.HorizontalBarChart=g,exports.LineChart=o,exports.MixedChart=v,exports.QuadrantChart=h,exports.RangeAreaChart=_,exports.ScatterChart=f,exports.Sparkline=d,exports.WaterfallChart=S;
|
|
2
2
|
//# sourceMappingURL=charts.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"charts.cjs","names":["useMemo","lineSeries","ChartBase","engineOptions","areaSeries","barSeries","candlestickSeries","heatmapChartOptions","sparklineOptions","scatterSeries","quadrantChartOptions","quadrantOf","rangeAreaSeries","Chart","bubbleSeries","resolveLocale","histogramSeries","presetLabels","boxplotSeries","boxplotData","waterfallSeries","ganttSeries","useState","require_locale","require_Chart","require_presets","react","react_jsx_runtime","frameProps","props","LineChart","input","series","area","stacked","percent","curve","AreaChart","BarChart","labels","CandlestickChart","HeatmapChart","data","xCategories","yCategories","colorScale","valueRange","name","radius","format","base","Sparkline","options","type","color","reference","renderer","tooltip","palette","ariaLabel","locale","ref","ScatterChart","CORNERS","cornerStyle","left","corner","top","split","plot","QuadrantChart","geometry","draggable","onPointDrop","overlay","quadrantContent","x0","x1","xDomain","y0","y1","yDomain","xs","xSplit","ys","ySplit","fx","fy","reverseX","onPointClick","index","event","points","onQuadrantClick","at","renderTooltip","HorizontalBarChart","RangeAreaChart","MixedChart","BubbleChart","minSize","maxSize","maxValue","HistogramChart","extra","lang","values","formatBin","bins","domain","nice","BoxPlotChart","groupName","groups","whisker","WaterfallChart","steps","upColor","downColor","totalColor","start","GanttChart","gantt","tasks","colors","taskName","progressName","milestoneName","formatProgress","mountedAt","now","today","lines","todayLabel","xAxis","yAxis","annotations","interaction","legend"],"sources":["../../../../charts/src/react/charts.tsx"],"sourcesContent":["import { useMemo, useState, type CSSProperties } from \"react\";\nimport {\n areaSeries,\n barSeries,\n boxplotData,\n boxplotSeries,\n bubbleSeries,\n candlestickSeries,\n ganttSeries,\n heatmapChartOptions,\n histogramSeries,\n lineSeries,\n presetLabels,\n quadrantChartOptions,\n quadrantOf,\n rangeAreaSeries,\n scatterSeries,\n sparklineOptions,\n waterfallSeries,\n type QuadrantCorner,\n} from \"../engine/presets\";\nimport { resolveLocale } from \"../engine/locale\";\nimport type { ChartAnnotation, ChartRect } from \"../engine/types\";\nimport { Chart, ChartBase, engineOptions } from \"./Chart\";\nimport type {\n AreaChartProps,\n BarChartProps,\n BoxPlotChartProps,\n BubbleChartProps,\n CandlestickChartProps,\n ChartCommonProps,\n GanttChartProps,\n HeatmapChartProps,\n HistogramChartProps,\n HorizontalBarChartProps,\n LineChartProps,\n MixedChartProps,\n QuadrantChartProps,\n RangeAreaChartProps,\n ScatterChartProps,\n SparklineProps,\n WaterfallChartProps,\n} from \"./types\";\n\nconst frameProps = (props: Omit<ChartCommonProps, \"labels\">) => ({\n height: props.height,\n width: props.width,\n className: props.className,\n style: props.style,\n handleRef: props.ref,\n onHover: props.onHover,\n onPointClick: props.onPointClick,\n onPlotClick: props.onPlotClick,\n onZoom: props.onZoom,\n onRendererChange: props.onRendererChange,\n renderTooltip: props.renderTooltip,\n});\n\n/** Line (or area) chart; handles millions of points on the GPU */\nexport function LineChart(props: LineChartProps) {\n const {\n series: input,\n area = false,\n curve,\n stacked = false,\n percent = false,\n } = props;\n const series = useMemo(\n () => lineSeries(input, area, { curve, stacked: stacked || percent }),\n [input, area, curve, stacked, percent],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Area chart: smooth by default, stacked or 100% stacked */\nexport function AreaChart(props: AreaChartProps) {\n const {\n series: input,\n curve = \"smooth\",\n stacked = false,\n percent = false,\n } = props;\n const series = useMemo(\n () => areaSeries(input, { curve, stacked: stacked || percent }),\n [input, curve, stacked, percent],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Bar chart: grouped side by side, stacked or 100% stacked, with optional value labels */\nexport function BarChart(props: BarChartProps) {\n const {\n series: input,\n stacked = false,\n percent = false,\n labels = false,\n } = props;\n const series = useMemo(\n () => barSeries(input, stacked || percent, labels),\n [input, stacked, percent, labels],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n labels: undefined,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Candlestick (OHLC) chart: rising and falling candles, zoomable on the GPU */\nexport function CandlestickChart(props: CandlestickChartProps) {\n const { series: input } = props;\n const series = useMemo(() => candlestickSeries(input), [input]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Heatmap: a grid of cells colored by value (categories or numbers on both axes) */\nexport function HeatmapChart(props: HeatmapChartProps) {\n const {\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n name,\n radius,\n format,\n } = props;\n const series = useMemo(\n () =>\n heatmapChartOptions({\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n name,\n radius,\n format,\n }).series,\n [\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n name,\n radius,\n format,\n ],\n );\n const base = engineOptions({ ...props, series });\n return (\n <ChartBase\n options={{\n ...heatmapChartOptions(\n { data, xCategories, yCategories },\n {\n ...base,\n legend: props.legend,\n interaction: props.interaction,\n tooltip: props.tooltip,\n },\n ),\n series,\n }}\n {...frameProps(props)}\n />\n );\n}\n\n/** Word-sized chart without axes: a trend in a table cell, a KPI card, ... */\nexport function Sparkline(props: SparklineProps) {\n const {\n data,\n type,\n color,\n curve,\n name,\n reference,\n format,\n height = 48,\n width,\n renderer,\n tooltip,\n palette,\n ariaLabel,\n locale,\n labels,\n className,\n style,\n ref,\n onHover,\n renderTooltip,\n } = props;\n const options = useMemo(\n () =>\n sparklineOptions(\n { data, type, color, curve, name, reference, format },\n { renderer, tooltip, palette, ariaLabel, locale, labels },\n ),\n [\n data,\n type,\n color,\n curve,\n name,\n reference,\n format,\n renderer,\n tooltip,\n palette,\n ariaLabel,\n locale,\n labels,\n ],\n );\n return (\n <ChartBase\n options={options}\n height={height}\n width={width}\n className={className}\n style={style}\n handleRef={ref}\n onHover={onHover}\n renderTooltip={renderTooltip}\n />\n );\n}\n\n/** Scatter chart: zooms on both axes, hit testing through a spatial index */\nexport function ScatterChart(props: ScatterChartProps) {\n const { series: input } = props;\n const series = useMemo(() => scatterSeries(input), [input]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\nconst CORNERS: QuadrantCorner[] = [\n \"topLeft\",\n \"topRight\",\n \"bottomLeft\",\n \"bottomRight\",\n];\n\nconst cornerStyle = (\n corner: QuadrantCorner,\n plot: ChartRect,\n split: { x: number; y: number },\n): CSSProperties => {\n const left = corner.endsWith(\"Left\");\n const top = corner.startsWith(\"top\");\n return {\n position: \"absolute\",\n left: left ? 0 : split.x - plot.x,\n top: top ? 0 : split.y - plot.y,\n width: left ? split.x - plot.x : plot.x + plot.width - split.x,\n height: top ? split.y - plot.y : plot.y + plot.height - split.y,\n pointerEvents: \"none\",\n };\n};\n\n/**\n * Four-quadrant matrix (priority matrix, Eisenhower, BCG, ...): tinted\n * quadrants with titles, dividers, and labelled dots placed without\n * overlapping labels. Dots can be dragged to another quadrant.\n */\nexport function QuadrantChart(props: QuadrantChartProps) {\n const {\n points,\n xDomain,\n yDomain,\n xSplit,\n ySplit,\n quadrants,\n xLabel,\n yLabel,\n axisLabels,\n showTicks,\n reverseX,\n showLabels,\n pointSize,\n name,\n draggable,\n onPointClick,\n onPointDrop,\n onQuadrantClick,\n renderTooltip,\n quadrantContent,\n } = props;\n const geometry = { xDomain, yDomain, xSplit, ySplit, reverseX };\n\n const options = quadrantChartOptions(\n {\n points,\n xDomain,\n yDomain,\n xSplit,\n ySplit,\n quadrants,\n xLabel,\n yLabel,\n axisLabels,\n showTicks,\n reverseX,\n showLabels,\n pointSize,\n name,\n draggable: draggable ?? !!onPointDrop,\n },\n engineOptions({ ...props, series: [] }),\n );\n\n const overlay = quadrantContent\n ? (plot: ChartRect) => {\n const [x0, x1] = xDomain ?? [0, 10];\n const [y0, y1] = yDomain ?? [0, 10];\n const xs = xSplit ?? (x0 + x1) / 2;\n const ys = ySplit ?? (y0 + y1) / 2;\n const fx = (xs - x0) / (x1 - x0 || 1);\n const fy = (ys - y0) / (y1 - y0 || 1);\n const split = {\n x: plot.x + plot.width * (reverseX ? 1 - fx : fx),\n y: plot.y + plot.height * (1 - fy),\n };\n return CORNERS.map((corner) =>\n quadrantContent[corner] ? (\n <div\n key={corner}\n className={`minerva-chart-quadrant minerva-chart-quadrant-${corner}`}\n style={cornerStyle(corner, plot, split)}\n >\n {quadrantContent[corner]}\n </div>\n ) : null,\n );\n }\n : undefined;\n\n return (\n <ChartBase\n options={options}\n {...frameProps({\n ...props,\n onPointClick: undefined,\n renderTooltip: undefined,\n })}\n overlay={overlay}\n onPointClick={\n onPointClick\n ? (event) => {\n const index = event.items[0]?.index;\n if (index !== undefined && points[index])\n onPointClick(points[index], index);\n }\n : undefined\n }\n onPlotClick={\n onQuadrantClick\n ? (at) => onQuadrantClick(quadrantOf(geometry, at.x, at.y), at)\n : undefined\n }\n onDrop={\n onPointDrop\n ? (event) => {\n const index = event.item.index;\n if (!points[index]) return;\n onPointDrop(points[index], index, {\n x: event.x,\n y: event.y,\n quadrant: quadrantOf(geometry, event.x, event.y),\n });\n }\n : undefined\n }\n renderTooltip={\n renderTooltip\n ? (event) => {\n const index = event.items[0]?.index;\n return index !== undefined && points[index]\n ? renderTooltip(points[index], index)\n : null;\n }\n : undefined\n }\n />\n );\n}\n\n/**\n * Horizontal bar chart: categories down the left side, values from the\n * left (rankings, long names, diverging surveys, stacked progress)\n */\nexport function HorizontalBarChart(props: HorizontalBarChartProps) {\n return <BarChart {...props} orientation=\"horizontal\" />;\n}\n\n/**\n * Range area chart: bands between a lower (`y0`) and an upper edge\n * (confidence intervals, min-max ranges), mixable with lines\n */\nexport function RangeAreaChart(props: RangeAreaChartProps) {\n const { series: input, curve = \"smooth\" } = props;\n const series = useMemo(() => rangeAreaSeries(input, curve), [input, curve]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Combination chart: bars, lines and areas on one or two value axes\n * (`yAxis: \"right\"` series use `yAxis2`, aligned on the left grid)\n */\nexport function MixedChart(props: MixedChartProps) {\n return <Chart {...props} />;\n}\n\n/** Bubble chart: x, y and a value sized by area (√value diameters) */\nexport function BubbleChart(props: BubbleChartProps) {\n const { series: input, minSize, maxSize, maxValue } = props;\n const series = useMemo(\n () => bubbleSeries(input, { minSize, maxSize, maxValue }),\n [input, minSize, maxSize, maxValue],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Histogram: the distribution of raw samples in bins of equal width\n * (Freedman-Diaconis, Sturges or a count); millions of samples are binned\n * in milliseconds\n */\nexport function HistogramChart(props: HistogramChartProps) {\n const {\n values,\n bins,\n domain,\n nice,\n name,\n color,\n formatBin,\n series: extra,\n locale,\n } = props;\n // page language read at every render: a language switch renames the series\n const lang = resolveLocale(locale);\n const series = useMemo(\n () => [\n histogramSeries(values, {\n bins,\n domain,\n nice,\n name,\n color,\n format: formatBin,\n locale: lang,\n }),\n ...(extra ?? []),\n ],\n [values, bins, domain, nice, name, color, formatBin, extra, lang],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Box plot: medians, quartiles, whiskers and outliers of samples, from raw\n * values (`groups`) or computed statistics (`series`)\n */\nexport function BoxPlotChart(props: BoxPlotChartProps) {\n const { series: input, groups, name, whisker, orientation, locale } = props;\n const groupName = name ?? presetLabels(resolveLocale(locale)).values;\n const series = useMemo(\n () =>\n boxplotSeries([\n ...(groups?.length\n ? [\n {\n id: \"boxplot\",\n name: groupName,\n data: boxplotData(groups, { whisker }),\n },\n ]\n : []),\n ...(input ?? []),\n ]),\n [input, groups, groupName, whisker],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series, orientation })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Waterfall (bridge) chart: how changes take a value from a start to an\n * end, with subtotals and totals (P&L bridges, budget variances)\n */\nexport function WaterfallChart(props: WaterfallChartProps) {\n const {\n steps,\n name,\n upColor,\n downColor,\n totalColor,\n start,\n labels = true,\n format,\n orientation,\n locale,\n } = props;\n const lang = resolveLocale(locale);\n const series = useMemo(\n () => [\n waterfallSeries(steps, {\n name,\n upColor,\n downColor,\n totalColor,\n start,\n labels,\n format,\n locale: lang,\n }),\n ],\n [steps, name, upColor, downColor, totalColor, start, labels, format, lang],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n labels: undefined,\n series,\n orientation,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Gantt chart: tasks as bars on a time axis with their progress, groups,\n * milestones and a today line; zooms and pans along the time\n */\nexport function GanttChart(props: GanttChartProps) {\n const {\n tasks,\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n today = false,\n todayLabel,\n xAxis,\n yAxis,\n annotations,\n interaction,\n legend,\n locale,\n } = props;\n const lang = resolveLocale(locale);\n const gantt = useMemo(\n () =>\n ganttSeries(tasks, {\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n locale: lang,\n }),\n [\n tasks,\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n lang,\n ],\n );\n const [mountedAt] = useState(() => Date.now());\n const now =\n today === false\n ? null\n : today === true\n ? mountedAt\n : today instanceof Date\n ? today.getTime()\n : today;\n const lines: ChartAnnotation[] =\n now === null\n ? []\n : [\n {\n type: \"line\",\n axis: \"y\",\n value: now,\n color: \"var(--danger-color, #dc2626)\",\n dash: [4, 3],\n label: todayLabel,\n },\n ];\n return (\n <ChartBase\n options={{\n ...engineOptions({\n ...props,\n series: gantt.series,\n orientation: \"horizontal\",\n }),\n xAxis: {\n type: \"category\",\n categories: gantt.categories,\n ...xAxis,\n },\n yAxis: {\n type: \"time\",\n min: gantt.domain[0],\n max: gantt.domain[1],\n ...yAxis,\n },\n annotations: [...(annotations ?? []), ...lines],\n interaction: interaction ?? { zoom: \"y\" },\n legend: legend ?? gantt.series.length > 1,\n }}\n {...frameProps(props)}\n />\n );\n}\n"],"mappings":"uKA4CA,IAAM4B,EAAc,IAA6C,CAC/D,OAAQC,EAAM,OACd,MAAOA,EAAM,MACb,UAAWA,EAAM,UACjB,MAAOA,EAAM,MACb,UAAWA,EAAM,IACjB,QAASA,EAAM,QACf,aAAcA,EAAM,aACpB,YAAaA,EAAM,YACnB,OAAQA,EAAM,OACd,iBAAkBA,EAAM,iBACxB,cAAeA,EAAM,aACvB,GAGA,SAAgBC,EAAU,EAAuB,CAC/C,GAAM,CACJ,OAAQC,EACR,OAAO,GACP,QACA,UAAU,GACV,UAAU,IACRF,EACEG,GAAA,EAAShC,EAAAA,QAAAA,KACPC,EAAAA,WAAW8B,EAAOE,EAAM,CAAE,QAAO,QAASC,GAAWC,CAAQ,CAAC,EACpE,CAACJ,EAAOE,EAAMG,EAAOF,EAASC,CAAO,CACvC,EACA,OACE,EAAAR,EAAA,IAAA,CAACzB,EAAAA,UAAD,CACE,QAASC,EAAAA,cAAc,CACrB,GAAG0B,EACH,SACA,UAAWM,EAAU,UAAY,IAAA,EACnC,CAAC,EACD,GAAIP,EAAWC,CAAK,CACrB,CAAA,CAEL,CAGA,SAAgBQ,EAAU,EAAuB,CAC/C,GAAM,CACJ,OAAQN,EACR,QAAQ,SACR,UAAU,GACV,UAAU,IACRF,EACEG,GAAA,EAAShC,EAAAA,QAAAA,KACPI,EAAAA,WAAW2B,EAAO,CAAE,QAAO,QAASG,GAAWC,CAAQ,CAAC,EAC9D,CAACJ,EAAOK,EAAOF,EAASC,CAAO,CACjC,EACA,OACE,EAAAR,EAAA,IAAA,CAACzB,EAAAA,UAAD,CACE,QAASC,EAAAA,cAAc,CACrB,GAAG0B,EACH,SACA,UAAWM,EAAU,UAAY,IAAA,EACnC,C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,EACAC,EACAC,EACAC,EACAC,EACAC,EACAvB,CACF,CACF,EACM,CAACwB,IAAA,EAAa3G,EAAAA,SAAAA,KAAe,KAAK,IAAI,CAAC,EACvC4G,EACJC,IAAU,GACN,KACAA,IAAU,GACRF,EACAE,aAAiB,KACfA,EAAM,QAAQ,EACdA,EACJC,EACJF,IAAQ,KACJ,CAAC,EACD,CACE,CACE,KAAM,OACN,KAAM,IACN,MAAOA,EACP,MAAO,+BACP,KAAM,CAAC,EAAG,CAAC,EACX,MAAOG,CACT,CACF,EACN,OACE,EAAA1G,EAAA,IAAA,CAACzB,EAAAA,UAAD,CACE,QAAS,CACP,GAAGC,EAAAA,cAAc,CACf,GAAG0B,EACH,OAAQ6F,EAAM,OACd,YAAa,YACf,CAAC,EACD,MAAO,CACL,KAAM,WACN,WAAYA,EAAM,WAClB,GAAGY,CACL,EACA,MAAO,CACL,KAAM,OACN,IAAKZ,EAAM,OAAO,GAClB,IAAKA,EAAM,OAAO,GAClB,GAAGa,CACL,EACA,YAAa,CAAC,GAAIC,GAAe,CAAC,EAAI,GAAGJ,CAAK,EAC9C,YAAaK,GAAe,CAAE,KAAM,GAAI,EACxC,OAAQC,GAAUhB,EAAM,OAAO,OAAS,CAC1C,EACA,GAAI9F,EAAWC,CAAK,CACrB,CAAA,CAEL"}
|
|
1
|
+
{"version":3,"file":"charts.cjs","names":["useMemo","lineSeries","ChartBase","engineOptions","areaSeries","barSeries","candlestickSeries","heatmapChartOptions","sparklineOptions","scatterSeries","quadrantChartOptions","quadrantOf","rangeAreaSeries","Chart","bubbleSeries","resolveLocale","histogramSeries","presetLabels","boxplotSeries","boxplotData","waterfallSeries","ganttSeries","useState","require_locale","require_Chart","require_presets","react","react_jsx_runtime","frameProps","props","LineChart","input","series","area","stacked","percent","curve","AreaChart","BarChart","labels","CandlestickChart","HeatmapChart","data","xCategories","yCategories","colorScale","valueRange","colorMidpoint","name","radius","format","base","Sparkline","options","type","color","reference","renderer","tooltip","palette","ariaLabel","locale","ref","ScatterChart","CORNERS","cornerStyle","left","corner","top","split","plot","QuadrantChart","geometry","draggable","onPointDrop","overlay","quadrantContent","x0","x1","xDomain","y0","y1","yDomain","xs","xSplit","ys","ySplit","fx","fy","reverseX","onPointClick","index","event","points","onQuadrantClick","at","renderTooltip","HorizontalBarChart","RangeAreaChart","MixedChart","BubbleChart","minSize","maxSize","maxValue","HistogramChart","extra","lang","values","formatBin","bins","domain","nice","BoxPlotChart","groupName","groups","s","outlierShape","outlierSize","whisker","WaterfallChart","steps","upColor","downColor","totalColor","start","connector","GanttChart","gantt","tasks","colors","taskName","progressName","milestoneName","formatProgress","dependenciesName","mountedAt","now","today","lines","todayLabel","xAxis","yAxis","annotations","interaction","legend"],"sources":["../../../../charts/src/react/charts.tsx"],"sourcesContent":["import { useMemo, useState, type CSSProperties } from \"react\";\nimport {\n areaSeries,\n barSeries,\n boxplotData,\n boxplotSeries,\n bubbleSeries,\n candlestickSeries,\n ganttSeries,\n heatmapChartOptions,\n histogramSeries,\n lineSeries,\n presetLabels,\n quadrantChartOptions,\n quadrantOf,\n rangeAreaSeries,\n scatterSeries,\n sparklineOptions,\n waterfallSeries,\n type QuadrantCorner,\n} from \"../engine/presets\";\nimport { resolveLocale } from \"../engine/locale\";\nimport type { ChartAnnotation, ChartRect } from \"../engine/types\";\nimport { Chart, ChartBase, engineOptions } from \"./Chart\";\nimport type {\n AreaChartProps,\n BarChartProps,\n BoxPlotChartProps,\n BubbleChartProps,\n CandlestickChartProps,\n ChartCommonProps,\n GanttChartProps,\n HeatmapChartProps,\n HistogramChartProps,\n HorizontalBarChartProps,\n LineChartProps,\n MixedChartProps,\n QuadrantChartProps,\n RangeAreaChartProps,\n ScatterChartProps,\n SparklineProps,\n WaterfallChartProps,\n} from \"./types\";\n\nconst frameProps = (props: Omit<ChartCommonProps, \"labels\">) => ({\n height: props.height,\n width: props.width,\n className: props.className,\n style: props.style,\n handleRef: props.ref,\n onHover: props.onHover,\n onPointClick: props.onPointClick,\n onPlotClick: props.onPlotClick,\n onZoom: props.onZoom,\n onRendererChange: props.onRendererChange,\n renderTooltip: props.renderTooltip,\n});\n\n/** Line (or area) chart; handles millions of points on the GPU */\nexport function LineChart(props: LineChartProps) {\n const {\n series: input,\n area = false,\n curve,\n stacked = false,\n percent = false,\n } = props;\n const series = useMemo(\n () => lineSeries(input, area, { curve, stacked: stacked || percent }),\n [input, area, curve, stacked, percent],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Area chart: smooth by default, stacked or 100% stacked */\nexport function AreaChart(props: AreaChartProps) {\n const {\n series: input,\n curve = \"smooth\",\n stacked = false,\n percent = false,\n } = props;\n const series = useMemo(\n () => areaSeries(input, { curve, stacked: stacked || percent }),\n [input, curve, stacked, percent],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Bar chart: grouped side by side, stacked or 100% stacked, with optional value labels */\nexport function BarChart(props: BarChartProps) {\n const {\n series: input,\n stacked = false,\n percent = false,\n labels = false,\n } = props;\n const series = useMemo(\n () => barSeries(input, stacked || percent, labels),\n [input, stacked, percent, labels],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n labels: undefined,\n series,\n stackMode: percent ? \"percent\" : undefined,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Candlestick (OHLC) chart: rising and falling candles, zoomable on the GPU */\nexport function CandlestickChart(props: CandlestickChartProps) {\n const { series: input } = props;\n const series = useMemo(() => candlestickSeries(input), [input]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/** Heatmap: a grid of cells colored by value (categories or numbers on both axes) */\nexport function HeatmapChart(props: HeatmapChartProps) {\n const {\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n colorMidpoint,\n name,\n radius,\n format,\n } = props;\n const series = useMemo(\n () =>\n heatmapChartOptions({\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n colorMidpoint,\n name,\n radius,\n format,\n }).series,\n [\n data,\n xCategories,\n yCategories,\n colorScale,\n valueRange,\n colorMidpoint,\n name,\n radius,\n format,\n ],\n );\n const base = engineOptions({ ...props, series });\n return (\n <ChartBase\n options={{\n ...heatmapChartOptions(\n { data, xCategories, yCategories },\n {\n ...base,\n legend: props.legend,\n interaction: props.interaction,\n tooltip: props.tooltip,\n },\n ),\n series,\n }}\n {...frameProps(props)}\n />\n );\n}\n\n/** Word-sized chart without axes: a trend in a table cell, a KPI card, ... */\nexport function Sparkline(props: SparklineProps) {\n const {\n data,\n type,\n color,\n curve,\n name,\n reference,\n format,\n height = 48,\n width,\n renderer,\n tooltip,\n palette,\n ariaLabel,\n locale,\n labels,\n className,\n style,\n ref,\n onHover,\n renderTooltip,\n } = props;\n const options = useMemo(\n () =>\n sparklineOptions(\n { data, type, color, curve, name, reference, format },\n { renderer, tooltip, palette, ariaLabel, locale, labels },\n ),\n [\n data,\n type,\n color,\n curve,\n name,\n reference,\n format,\n renderer,\n tooltip,\n palette,\n ariaLabel,\n locale,\n labels,\n ],\n );\n return (\n <ChartBase\n options={options}\n height={height}\n width={width}\n className={className}\n style={style}\n handleRef={ref}\n onHover={onHover}\n renderTooltip={renderTooltip}\n />\n );\n}\n\n/** Scatter chart: zooms on both axes, hit testing through a spatial index */\nexport function ScatterChart(props: ScatterChartProps) {\n const { series: input } = props;\n const series = useMemo(() => scatterSeries(input), [input]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\nconst CORNERS: QuadrantCorner[] = [\n \"topLeft\",\n \"topRight\",\n \"bottomLeft\",\n \"bottomRight\",\n];\n\nconst cornerStyle = (\n corner: QuadrantCorner,\n plot: ChartRect,\n split: { x: number; y: number },\n): CSSProperties => {\n const left = corner.endsWith(\"Left\");\n const top = corner.startsWith(\"top\");\n return {\n position: \"absolute\",\n left: left ? 0 : split.x - plot.x,\n top: top ? 0 : split.y - plot.y,\n width: left ? split.x - plot.x : plot.x + plot.width - split.x,\n height: top ? split.y - plot.y : plot.y + plot.height - split.y,\n pointerEvents: \"none\",\n };\n};\n\n/**\n * Four-quadrant matrix (priority matrix, Eisenhower, BCG, ...): tinted\n * quadrants with titles, dividers, and labelled dots placed without\n * overlapping labels. Dots can be dragged to another quadrant.\n */\nexport function QuadrantChart(props: QuadrantChartProps) {\n const {\n points,\n xDomain,\n yDomain,\n xSplit,\n ySplit,\n quadrants,\n xLabel,\n yLabel,\n axisLabels,\n showTicks,\n reverseX,\n showLabels,\n pointSize,\n name,\n draggable,\n onPointClick,\n onPointDrop,\n onQuadrantClick,\n renderTooltip,\n quadrantContent,\n } = props;\n const geometry = { xDomain, yDomain, xSplit, ySplit, reverseX };\n\n const options = quadrantChartOptions(\n {\n points,\n xDomain,\n yDomain,\n xSplit,\n ySplit,\n quadrants,\n xLabel,\n yLabel,\n axisLabels,\n showTicks,\n reverseX,\n showLabels,\n pointSize,\n name,\n draggable: draggable ?? !!onPointDrop,\n },\n engineOptions({ ...props, series: [] }),\n );\n\n const overlay = quadrantContent\n ? (plot: ChartRect) => {\n const [x0, x1] = xDomain ?? [0, 10];\n const [y0, y1] = yDomain ?? [0, 10];\n const xs = xSplit ?? (x0 + x1) / 2;\n const ys = ySplit ?? (y0 + y1) / 2;\n const fx = (xs - x0) / (x1 - x0 || 1);\n const fy = (ys - y0) / (y1 - y0 || 1);\n const split = {\n x: plot.x + plot.width * (reverseX ? 1 - fx : fx),\n y: plot.y + plot.height * (1 - fy),\n };\n return CORNERS.map((corner) =>\n quadrantContent[corner] ? (\n <div\n key={corner}\n className={`minerva-chart-quadrant minerva-chart-quadrant-${corner}`}\n style={cornerStyle(corner, plot, split)}\n >\n {quadrantContent[corner]}\n </div>\n ) : null,\n );\n }\n : undefined;\n\n return (\n <ChartBase\n options={options}\n {...frameProps({\n ...props,\n onPointClick: undefined,\n renderTooltip: undefined,\n })}\n overlay={overlay}\n onPointClick={\n onPointClick\n ? (event) => {\n const index = event.items[0]?.index;\n if (index !== undefined && points[index])\n onPointClick(points[index], index);\n }\n : undefined\n }\n onPlotClick={\n onQuadrantClick\n ? (at) => onQuadrantClick(quadrantOf(geometry, at.x, at.y), at)\n : undefined\n }\n onDrop={\n onPointDrop\n ? (event) => {\n const index = event.item.index;\n if (!points[index]) return;\n onPointDrop(points[index], index, {\n x: event.x,\n y: event.y,\n quadrant: quadrantOf(geometry, event.x, event.y),\n });\n }\n : undefined\n }\n renderTooltip={\n renderTooltip\n ? (event) => {\n const index = event.items[0]?.index;\n return index !== undefined && points[index]\n ? renderTooltip(points[index], index)\n : null;\n }\n : undefined\n }\n />\n );\n}\n\n/**\n * Horizontal bar chart: categories down the left side, values from the\n * left (rankings, long names, diverging surveys, stacked progress)\n */\nexport function HorizontalBarChart(props: HorizontalBarChartProps) {\n return <BarChart {...props} orientation=\"horizontal\" />;\n}\n\n/**\n * Range area chart: bands between a lower (`y0`) and an upper edge\n * (confidence intervals, min-max ranges), mixable with lines\n */\nexport function RangeAreaChart(props: RangeAreaChartProps) {\n const { series: input, curve = \"smooth\" } = props;\n const series = useMemo(() => rangeAreaSeries(input, curve), [input, curve]);\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Combination chart: bars, lines and areas on one or two value axes\n * (`yAxis: \"right\"` series use `yAxis2`, aligned on the left grid)\n */\nexport function MixedChart(props: MixedChartProps) {\n return <Chart {...props} />;\n}\n\n/** Bubble chart: x, y and a value sized by area (√value diameters) */\nexport function BubbleChart(props: BubbleChartProps) {\n const { series: input, minSize, maxSize, maxValue } = props;\n const series = useMemo(\n () => bubbleSeries(input, { minSize, maxSize, maxValue }),\n [input, minSize, maxSize, maxValue],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Histogram: the distribution of raw samples in bins of equal width\n * (Freedman-Diaconis, Sturges or a count); millions of samples are binned\n * in milliseconds\n */\nexport function HistogramChart(props: HistogramChartProps) {\n const {\n values,\n bins,\n domain,\n nice,\n name,\n color,\n formatBin,\n series: extra,\n locale,\n } = props;\n // page language read at every render: a language switch renames the series\n const lang = resolveLocale(locale);\n const series = useMemo(\n () => [\n histogramSeries(values, {\n bins,\n domain,\n nice,\n name,\n color,\n format: formatBin,\n locale: lang,\n }),\n ...(extra ?? []),\n ],\n [values, bins, domain, nice, name, color, formatBin, extra, lang],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Box plot: medians, quartiles, whiskers and outliers of samples, from raw\n * values (`groups`) or computed statistics (`series`)\n */\nexport function BoxPlotChart(props: BoxPlotChartProps) {\n const {\n series: input,\n groups,\n name,\n whisker,\n orientation,\n locale,\n outlierShape,\n outlierSize,\n } = props;\n const groupName = name ?? presetLabels(resolveLocale(locale)).values;\n const series = useMemo(\n () =>\n boxplotSeries([\n ...(groups?.length\n ? [\n {\n id: \"boxplot\",\n name: groupName,\n data: boxplotData(groups, { whisker }),\n },\n ]\n : []),\n ...(input ?? []),\n ]).map((s) =>\n s.type === \"boxplot\"\n ? {\n ...s,\n outlierShape: s.outlierShape ?? outlierShape,\n outlierSize: s.outlierSize ?? outlierSize,\n }\n : s,\n ),\n [input, groups, groupName, whisker, outlierShape, outlierSize],\n );\n return (\n <ChartBase\n options={engineOptions({ ...props, series, orientation })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Waterfall (bridge) chart: how changes take a value from a start to an\n * end, with subtotals and totals (P&L bridges, budget variances)\n */\nexport function WaterfallChart(props: WaterfallChartProps) {\n const {\n steps,\n name,\n upColor,\n downColor,\n totalColor,\n start,\n labels = true,\n format,\n connector,\n orientation,\n locale,\n } = props;\n const lang = resolveLocale(locale);\n const series = useMemo(\n () => [\n waterfallSeries(steps, {\n name,\n upColor,\n downColor,\n totalColor,\n start,\n labels,\n format,\n connector,\n locale: lang,\n }),\n ],\n [\n steps,\n name,\n upColor,\n downColor,\n totalColor,\n start,\n labels,\n format,\n connector,\n lang,\n ],\n );\n return (\n <ChartBase\n options={engineOptions({\n ...props,\n labels: undefined,\n series,\n orientation,\n })}\n {...frameProps(props)}\n />\n );\n}\n\n/**\n * Gantt chart: tasks as bars on a time axis with their progress, groups,\n * milestones and a today line; zooms and pans along the time\n */\nexport function GanttChart(props: GanttChartProps) {\n const {\n tasks,\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n dependenciesName,\n today = false,\n todayLabel,\n xAxis,\n yAxis,\n annotations,\n interaction,\n legend,\n locale,\n } = props;\n const lang = resolveLocale(locale);\n const gantt = useMemo(\n () =>\n ganttSeries(tasks, {\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n dependenciesName,\n locale: lang,\n }),\n [\n tasks,\n colors,\n taskName,\n progressName,\n milestoneName,\n formatProgress,\n dependenciesName,\n lang,\n ],\n );\n const [mountedAt] = useState(() => Date.now());\n const now =\n today === false\n ? null\n : today === true\n ? mountedAt\n : today instanceof Date\n ? today.getTime()\n : today;\n const lines: ChartAnnotation[] =\n now === null\n ? []\n : [\n {\n type: \"line\",\n axis: \"y\",\n value: now,\n color: \"var(--danger-color, #dc2626)\",\n dash: [4, 3],\n label: todayLabel,\n },\n ];\n return (\n <ChartBase\n options={{\n ...engineOptions({\n ...props,\n series: gantt.series,\n orientation: \"horizontal\",\n }),\n xAxis: {\n type: \"category\",\n categories: gantt.categories,\n ...xAxis,\n },\n yAxis: {\n type: \"time\",\n min: gantt.domain[0],\n max: gantt.domain[1],\n ...yAxis,\n },\n annotations: [...(annotations ?? []), ...lines],\n interaction: interaction ?? { zoom: \"y\" },\n legend: legend ?? gantt.series.length > 1,\n }}\n {...frameProps(props)}\n />\n );\n}\n"],"mappings":"uKA4CA,IAAM4B,EAAc,IAA6C,CAC/D,OAAQC,EAAM,OACd,MAAOA,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F,EAAE,OAAS,UACP,CACE,GAAGA,EACH,aAAcA,EAAE,cAAgBC,EAChC,YAAaD,EAAE,aAAeE,CAChC,EACAF,CACN,EACF,CAACpF,EAAOmF,EAAQD,EAAWK,EAASF,EAAcC,CAAW,CAC/D,EACA,OACE,EAAA1F,EAAA,IAAA,CAACzB,EAAAA,UAAD,CACE,QAASC,EAAAA,cAAc,CAAE,GAAG0B,EAAO,SAAQ,aAAY,CAAC,EACxD,GAAID,EAAWC,CAAK,CACrB,CAAA,CAEL,CAMA,SAAgB0F,EAAe,EAA4B,CACzD,GAAM,CACJ,QACA,OACA,UACA,YACA,aACA,QACA,SAAS,GACT,SACA,YACA,cACA,UACE1F,EACE6E,EAAO3F,EAAAA,cAAc8C,CAAM,EAC3B7B,GAAA,EAAShC,EAAAA,QAAAA,KACP,CACJoB,EAAAA,gBAAgBoG,EAAO,CACrB,OACA,UACA,YACA,aACA,QACA,SACA,SACA,YACA,OAAQd,CACV,CAAC,CACH,EACA,CACEc,EACAxE,EACAyE,EACAC,EACAC,EACAC,EACArF,EACAW,EACA2E,EACAnB,CACF,CACF,EACA,OACE,EAAA/E,EAAA,IAAA,CAACzB,EAAAA,UAAD,CACE,QAASC,EAAAA,cAAc,CACrB,GAAG0B,EACH,OAAQ,IAAA,GACR,SACA,aACF,CAAC,EACD,GAAID,EAAWC,CAAK,CACrB,CAAA,CAEL,CAMA,SAAgBiG,EAAW,EAAwB,CACjD,GAAM,CACJ,QACA,SACA,WACA,eACA,gBACA,iBACA,mBACA,QAAQ,GACR,aACA,QACA,QACA,cACA,cACA,SACA,UACEjG,EACE6E,EAAO3F,EAAAA,cAAc8C,CAAM,EAC3BkE,GAAA,EAAQ/H,EAAAA,QAAAA,KAEVqB,EAAAA,YAAY2G,EAAO,CACjB,SACA,WACA,eACA,gBACA,iBACA,mBACA,OAAQtB,CACV,CAAC,EACH,CACEsB,EACAC,EACAC,EACAC,EACAC,EACAC,EACAC,EACA5B,CACF,CACF,EACM,CAAC6B,I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