react-native-chart-kit 7.0.0-next.1 → 7.0.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +89 -521
- package/dist/charts/line/LineChart.d.ts +3 -3
- package/dist/charts/line/LineChart.js +1 -1
- package/dist/v2/core/data/index.d.ts +3 -0
- package/dist/v2/core/data/index.d.ts.map +1 -0
- package/dist/v2/core/data/index.js +1 -0
- package/dist/v2/core/data/normalize.d.ts +8 -0
- package/dist/v2/core/data/normalize.d.ts.map +1 -0
- package/dist/v2/core/data/normalize.js +229 -0
- package/dist/v2/core/data/normalizeValues.d.ts +16 -0
- package/dist/v2/core/data/normalizeValues.d.ts.map +1 -0
- package/dist/v2/core/data/normalizeValues.js +96 -0
- package/dist/v2/core/data/types.d.ts +161 -0
- package/dist/v2/core/data/types.d.ts.map +1 -0
- package/dist/v2/core/data/types.js +1 -0
- package/dist/v2/core/geometry/areaPath.d.ts +3 -0
- package/dist/v2/core/geometry/areaPath.d.ts.map +1 -0
- package/dist/v2/core/geometry/areaPath.js +36 -0
- package/dist/v2/core/geometry/barRects.d.ts +44 -0
- package/dist/v2/core/geometry/barRects.d.ts.map +1 -0
- package/dist/v2/core/geometry/barRects.js +201 -0
- package/dist/v2/core/geometry/contributionHeatmap.d.ts +49 -0
- package/dist/v2/core/geometry/contributionHeatmap.d.ts.map +1 -0
- package/dist/v2/core/geometry/contributionHeatmap.js +107 -0
- package/dist/v2/core/geometry/horizontalBarRects.d.ts +27 -0
- package/dist/v2/core/geometry/horizontalBarRects.d.ts.map +1 -0
- package/dist/v2/core/geometry/horizontalBarRects.js +202 -0
- package/dist/v2/core/geometry/index.d.ts +12 -0
- package/dist/v2/core/geometry/index.d.ts.map +1 -0
- package/dist/v2/core/geometry/index.js +11 -0
- package/dist/v2/core/geometry/lineDecimation.d.ts +8 -0
- package/dist/v2/core/geometry/lineDecimation.d.ts.map +1 -0
- package/dist/v2/core/geometry/lineDecimation.js +110 -0
- package/dist/v2/core/geometry/linePath.d.ts +5 -0
- package/dist/v2/core/geometry/linePath.d.ts.map +1 -0
- package/dist/v2/core/geometry/linePath.js +98 -0
- package/dist/v2/core/geometry/lineSeries.d.ts +29 -0
- package/dist/v2/core/geometry/lineSeries.d.ts.map +1 -0
- package/dist/v2/core/geometry/lineSeries.js +51 -0
- package/dist/v2/core/geometry/path.d.ts +6 -0
- package/dist/v2/core/geometry/path.d.ts.map +1 -0
- package/dist/v2/core/geometry/path.js +24 -0
- package/dist/v2/core/geometry/pieArcs.d.ts +29 -0
- package/dist/v2/core/geometry/pieArcs.d.ts.map +1 -0
- package/dist/v2/core/geometry/pieArcs.js +142 -0
- package/dist/v2/core/geometry/progressRings.d.ts +30 -0
- package/dist/v2/core/geometry/progressRings.d.ts.map +1 -0
- package/dist/v2/core/geometry/progressRings.js +104 -0
- package/dist/v2/core/geometry/types.d.ts +32 -0
- package/dist/v2/core/geometry/types.d.ts.map +1 -0
- package/dist/v2/core/geometry/types.js +1 -0
- package/dist/v2/core/index.d.ts +6 -0
- package/dist/v2/core/index.d.ts.map +1 -0
- package/dist/v2/core/index.js +6 -0
- package/dist/v2/core/interaction/index.d.ts +5 -0
- package/dist/v2/core/interaction/index.d.ts.map +1 -0
- package/dist/v2/core/interaction/index.js +2 -0
- package/dist/v2/core/interaction/viewport.d.ts +71 -0
- package/dist/v2/core/interaction/viewport.d.ts.map +1 -0
- package/dist/v2/core/interaction/viewport.js +216 -0
- package/dist/v2/core/interaction/viewportTransform.d.ts +17 -0
- package/dist/v2/core/interaction/viewportTransform.d.ts.map +1 -0
- package/dist/v2/core/interaction/viewportTransform.js +70 -0
- package/dist/v2/core/layout/autoPadding.d.ts +3 -0
- package/dist/v2/core/layout/autoPadding.d.ts.map +1 -0
- package/dist/v2/core/layout/autoPadding.js +33 -0
- package/dist/v2/core/layout/chartBox.d.ts +5 -0
- package/dist/v2/core/layout/chartBox.d.ts.map +1 -0
- package/dist/v2/core/layout/chartBox.js +22 -0
- package/dist/v2/core/layout/debugLayout.d.ts +3 -0
- package/dist/v2/core/layout/debugLayout.d.ts.map +1 -0
- package/dist/v2/core/layout/debugLayout.js +20 -0
- package/dist/v2/core/layout/index.d.ts +8 -0
- package/dist/v2/core/layout/index.d.ts.map +1 -0
- package/dist/v2/core/layout/index.js +6 -0
- package/dist/v2/core/layout/labelCollision.d.ts +3 -0
- package/dist/v2/core/layout/labelCollision.d.ts.map +1 -0
- package/dist/v2/core/layout/labelCollision.js +90 -0
- package/dist/v2/core/layout/legendLayout.d.ts +3 -0
- package/dist/v2/core/layout/legendLayout.d.ts.map +1 -0
- package/dist/v2/core/layout/legendLayout.js +39 -0
- package/dist/v2/core/layout/tooltipPlacement.d.ts +3 -0
- package/dist/v2/core/layout/tooltipPlacement.d.ts.map +1 -0
- package/dist/v2/core/layout/tooltipPlacement.js +76 -0
- package/dist/v2/core/layout/types.d.ts +114 -0
- package/dist/v2/core/layout/types.d.ts.map +1 -0
- package/dist/v2/core/layout/types.js +1 -0
- package/dist/v2/core/scales/band.d.ts +15 -0
- package/dist/v2/core/scales/band.d.ts.map +1 -0
- package/dist/v2/core/scales/band.js +34 -0
- package/dist/v2/core/scales/domain.d.ts +6 -0
- package/dist/v2/core/scales/domain.d.ts.map +1 -0
- package/dist/v2/core/scales/domain.js +109 -0
- package/dist/v2/core/scales/index.d.ts +7 -0
- package/dist/v2/core/scales/index.d.ts.map +1 -0
- package/dist/v2/core/scales/index.js +5 -0
- package/dist/v2/core/scales/linear.d.ts +8 -0
- package/dist/v2/core/scales/linear.d.ts.map +1 -0
- package/dist/v2/core/scales/linear.js +22 -0
- package/dist/v2/core/scales/ticks.d.ts +4 -0
- package/dist/v2/core/scales/ticks.d.ts.map +1 -0
- package/dist/v2/core/scales/ticks.js +111 -0
- package/dist/v2/core/scales/time.d.ts +8 -0
- package/dist/v2/core/scales/time.d.ts.map +1 -0
- package/dist/v2/core/scales/time.js +23 -0
- package/dist/v2/core/scales/types.d.ts +46 -0
- package/dist/v2/core/scales/types.d.ts.map +1 -0
- package/dist/v2/core/scales/types.js +1 -0
- package/dist/v2/index.d.ts +1 -0
- package/dist/v2/index.js +1 -0
- package/dist/v2/react-native/charts/bar/BarChart.d.ts +6 -0
- package/dist/v2/react-native/charts/bar/BarChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/BarChart.js +199 -0
- package/dist/v2/react-native/charts/bar/BarChartSurface.d.ts +36 -0
- package/dist/v2/react-native/charts/bar/BarChartSurface.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/BarChartSurface.js +134 -0
- package/dist/v2/react-native/charts/bar/StackedBarChart.d.ts +4 -0
- package/dist/v2/react-native/charts/bar/StackedBarChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/StackedBarChart.js +9 -0
- package/dist/v2/react-native/charts/bar/accessibility.d.ts +31 -0
- package/dist/v2/react-native/charts/bar/accessibility.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/accessibility.js +87 -0
- package/dist/v2/react-native/charts/bar/interaction.d.ts +18 -0
- package/dist/v2/react-native/charts/bar/interaction.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/interaction.js +62 -0
- package/dist/v2/react-native/charts/bar/model.d.ts +3 -0
- package/dist/v2/react-native/charts/bar/model.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/model.js +326 -0
- package/dist/v2/react-native/charts/bar/modelUtils.d.ts +27 -0
- package/dist/v2/react-native/charts/bar/modelUtils.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/modelUtils.js +58 -0
- package/dist/v2/react-native/charts/bar/options.d.ts +7 -0
- package/dist/v2/react-native/charts/bar/options.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/options.js +49 -0
- package/dist/v2/react-native/charts/bar/rendererSafety.d.ts +12 -0
- package/dist/v2/react-native/charts/bar/rendererSafety.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/rendererSafety.js +31 -0
- package/dist/v2/react-native/charts/bar/selectionAnimation.d.ts +42 -0
- package/dist/v2/react-native/charts/bar/selectionAnimation.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/selectionAnimation.js +158 -0
- package/dist/v2/react-native/charts/bar/stackedCompat.d.ts +55 -0
- package/dist/v2/react-native/charts/bar/stackedCompat.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/stackedCompat.js +105 -0
- package/dist/v2/react-native/charts/bar/tooltip.d.ts +11 -0
- package/dist/v2/react-native/charts/bar/tooltip.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/tooltip.js +18 -0
- package/dist/v2/react-native/charts/bar/tooltipModel.d.ts +33 -0
- package/dist/v2/react-native/charts/bar/tooltipModel.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/tooltipModel.js +46 -0
- package/dist/v2/react-native/charts/bar/tooltipPlacement.d.ts +9 -0
- package/dist/v2/react-native/charts/bar/tooltipPlacement.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/tooltipPlacement.js +9 -0
- package/dist/v2/react-native/charts/bar/types.d.ts +211 -0
- package/dist/v2/react-native/charts/bar/types.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/types.js +1 -0
- package/dist/v2/react-native/charts/bar/useAnimatedTooltipModel.d.ts +10 -0
- package/dist/v2/react-native/charts/bar/useAnimatedTooltipModel.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/useAnimatedTooltipModel.js +87 -0
- package/dist/v2/react-native/charts/bar/viewport.d.ts +20 -0
- package/dist/v2/react-native/charts/bar/viewport.d.ts.map +1 -0
- package/dist/v2/react-native/charts/bar/viewport.js +47 -0
- package/dist/v2/react-native/charts/contribution/ContributionGraph.d.ts +13 -0
- package/dist/v2/react-native/charts/contribution/ContributionGraph.d.ts.map +1 -0
- package/dist/v2/react-native/charts/contribution/ContributionGraph.js +159 -0
- package/dist/v2/react-native/charts/contribution/accessibility.d.ts +25 -0
- package/dist/v2/react-native/charts/contribution/accessibility.d.ts.map +1 -0
- package/dist/v2/react-native/charts/contribution/accessibility.js +50 -0
- package/dist/v2/react-native/charts/contribution/interaction.d.ts +23 -0
- package/dist/v2/react-native/charts/contribution/interaction.d.ts.map +1 -0
- package/dist/v2/react-native/charts/contribution/interaction.js +75 -0
- package/dist/v2/react-native/charts/contribution/model.d.ts +17 -0
- package/dist/v2/react-native/charts/contribution/model.d.ts.map +1 -0
- package/dist/v2/react-native/charts/contribution/model.js +102 -0
- package/dist/v2/react-native/charts/contribution/types.d.ts +71 -0
- package/dist/v2/react-native/charts/contribution/types.d.ts.map +1 -0
- package/dist/v2/react-native/charts/contribution/types.js +1 -0
- package/dist/v2/react-native/charts/line/AreaChart.d.ts +3 -0
- package/dist/v2/react-native/charts/line/AreaChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/AreaChart.js +3 -0
- package/dist/v2/react-native/charts/line/ChartSurface.d.ts +16 -0
- package/dist/v2/react-native/charts/line/ChartSurface.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/ChartSurface.js +151 -0
- package/dist/v2/react-native/charts/line/LineChart.d.ts +6 -0
- package/dist/v2/react-native/charts/line/LineChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/LineChart.js +294 -0
- package/dist/v2/react-native/charts/line/StickyYAxis.d.ts +15 -0
- package/dist/v2/react-native/charts/line/StickyYAxis.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/StickyYAxis.js +26 -0
- package/dist/v2/react-native/charts/line/accessibility.d.ts +34 -0
- package/dist/v2/react-native/charts/line/accessibility.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/accessibility.js +103 -0
- package/dist/v2/react-native/charts/line/axisLabels.d.ts +37 -0
- package/dist/v2/react-native/charts/line/axisLabels.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/axisLabels.js +55 -0
- package/dist/v2/react-native/charts/line/debugLayout.d.ts +26 -0
- package/dist/v2/react-native/charts/line/debugLayout.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/debugLayout.js +77 -0
- package/dist/v2/react-native/charts/line/debugOverlay.d.ts +9 -0
- package/dist/v2/react-native/charts/line/debugOverlay.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/debugOverlay.js +30 -0
- package/dist/v2/react-native/charts/line/defaultTooltip.d.ts +3 -0
- package/dist/v2/react-native/charts/line/defaultTooltip.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/defaultTooltip.js +17 -0
- package/dist/v2/react-native/charts/line/interaction.d.ts +82 -0
- package/dist/v2/react-native/charts/line/interaction.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/interaction.js +94 -0
- package/dist/v2/react-native/charts/line/legend.d.ts +35 -0
- package/dist/v2/react-native/charts/line/legend.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/legend.js +95 -0
- package/dist/v2/react-native/charts/line/markers.d.ts +11 -0
- package/dist/v2/react-native/charts/line/markers.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/markers.js +52 -0
- package/dist/v2/react-native/charts/line/options.d.ts +172 -0
- package/dist/v2/react-native/charts/line/options.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/options.js +168 -0
- package/dist/v2/react-native/charts/line/outsidePressSurfaces.d.ts +15 -0
- package/dist/v2/react-native/charts/line/outsidePressSurfaces.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/outsidePressSurfaces.js +37 -0
- package/dist/v2/react-native/charts/line/overviewProps.d.ts +45 -0
- package/dist/v2/react-native/charts/line/overviewProps.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/overviewProps.js +4 -0
- package/dist/v2/react-native/charts/line/rangeSelector.d.ts +19 -0
- package/dist/v2/react-native/charts/line/rangeSelector.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/rangeSelector.js +185 -0
- package/dist/v2/react-native/charts/line/rangeSelectorConfig.d.ts +38 -0
- package/dist/v2/react-native/charts/line/rangeSelectorConfig.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/rangeSelectorConfig.js +41 -0
- package/dist/v2/react-native/charts/line/referenceLabelPlacement.d.ts +21 -0
- package/dist/v2/react-native/charts/line/referenceLabelPlacement.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/referenceLabelPlacement.js +113 -0
- package/dist/v2/react-native/charts/line/references.d.ts +62 -0
- package/dist/v2/react-native/charts/line/references.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/references.js +156 -0
- package/dist/v2/react-native/charts/line/renderer.d.ts +4 -0
- package/dist/v2/react-native/charts/line/renderer.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/renderer.js +23 -0
- package/dist/v2/react-native/charts/line/responders.d.ts +13 -0
- package/dist/v2/react-native/charts/line/responders.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/responders.js +62 -0
- package/dist/v2/react-native/charts/line/selection.d.ts +31 -0
- package/dist/v2/react-native/charts/line/selection.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/selection.js +26 -0
- package/dist/v2/react-native/charts/line/seriesInput.d.ts +4 -0
- package/dist/v2/react-native/charts/line/seriesInput.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/seriesInput.js +13 -0
- package/dist/v2/react-native/charts/line/seriesStyles.d.ts +20 -0
- package/dist/v2/react-native/charts/line/seriesStyles.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/seriesStyles.js +33 -0
- package/dist/v2/react-native/charts/line/stickyYAxisLayout.d.ts +6 -0
- package/dist/v2/react-native/charts/line/stickyYAxisLayout.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/stickyYAxisLayout.js +2 -0
- package/dist/v2/react-native/charts/line/text.d.ts +7 -0
- package/dist/v2/react-native/charts/line/text.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/text.js +7 -0
- package/dist/v2/react-native/charts/line/thresholdRendering.d.ts +28 -0
- package/dist/v2/react-native/charts/line/thresholdRendering.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/thresholdRendering.js +145 -0
- package/dist/v2/react-native/charts/line/tooltip.d.ts +70 -0
- package/dist/v2/react-native/charts/line/tooltip.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/tooltip.js +87 -0
- package/dist/v2/react-native/charts/line/types.d.ts +371 -0
- package/dist/v2/react-native/charts/line/types.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/types.js +1 -0
- package/dist/v2/react-native/charts/line/useAnimatedTooltipModel.d.ts +13 -0
- package/dist/v2/react-native/charts/line/useAnimatedTooltipModel.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/useAnimatedTooltipModel.js +84 -0
- package/dist/v2/react-native/charts/line/useAnimatedYAxisLabels.d.ts +5 -0
- package/dist/v2/react-native/charts/line/useAnimatedYAxisLabels.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/useAnimatedYAxisLabels.js +141 -0
- package/dist/v2/react-native/charts/line/useChartModel.d.ts +103 -0
- package/dist/v2/react-native/charts/line/useChartModel.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/useChartModel.js +367 -0
- package/dist/v2/react-native/charts/line/useDebugLayout.d.ts +16 -0
- package/dist/v2/react-native/charts/line/useDebugLayout.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/useDebugLayout.js +35 -0
- package/dist/v2/react-native/charts/line/utils.d.ts +10 -0
- package/dist/v2/react-native/charts/line/utils.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/utils.js +40 -0
- package/dist/v2/react-native/charts/line/viewportInteraction.d.ts +3 -0
- package/dist/v2/react-native/charts/line/viewportInteraction.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/viewportInteraction.js +1 -0
- package/dist/v2/react-native/charts/line/viewportPinchZoom.d.ts +2 -0
- package/dist/v2/react-native/charts/line/viewportPinchZoom.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/viewportPinchZoom.js +1 -0
- package/dist/v2/react-native/charts/line/xLabelCandidates.d.ts +13 -0
- package/dist/v2/react-native/charts/line/xLabelCandidates.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/xLabelCandidates.js +23 -0
- package/dist/v2/react-native/charts/line/xLabels.d.ts +39 -0
- package/dist/v2/react-native/charts/line/xLabels.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/xLabels.js +289 -0
- package/dist/v2/react-native/charts/line/xScale.d.ts +6 -0
- package/dist/v2/react-native/charts/line/xScale.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/xScale.js +25 -0
- package/dist/v2/react-native/charts/line/yAxisModel.d.ts +29 -0
- package/dist/v2/react-native/charts/line/yAxisModel.d.ts.map +1 -0
- package/dist/v2/react-native/charts/line/yAxisModel.js +39 -0
- package/dist/v2/react-native/charts/pie/PieChart.d.ts +7 -0
- package/dist/v2/react-native/charts/pie/PieChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/PieChart.js +253 -0
- package/dist/v2/react-native/charts/pie/accessibility.d.ts +28 -0
- package/dist/v2/react-native/charts/pie/accessibility.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/accessibility.js +49 -0
- package/dist/v2/react-native/charts/pie/activeSlice.d.ts +15 -0
- package/dist/v2/react-native/charts/pie/activeSlice.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/activeSlice.js +26 -0
- package/dist/v2/react-native/charts/pie/arcLabels.d.ts +32 -0
- package/dist/v2/react-native/charts/pie/arcLabels.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/arcLabels.js +191 -0
- package/dist/v2/react-native/charts/pie/interaction.d.ts +26 -0
- package/dist/v2/react-native/charts/pie/interaction.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/interaction.js +66 -0
- package/dist/v2/react-native/charts/pie/model.d.ts +15 -0
- package/dist/v2/react-native/charts/pie/model.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/model.js +157 -0
- package/dist/v2/react-native/charts/pie/selectionAnimation.d.ts +33 -0
- package/dist/v2/react-native/charts/pie/selectionAnimation.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/selectionAnimation.js +121 -0
- package/dist/v2/react-native/charts/pie/sliceSeparator.d.ts +7 -0
- package/dist/v2/react-native/charts/pie/sliceSeparator.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/sliceSeparator.js +26 -0
- package/dist/v2/react-native/charts/pie/slices.d.ts +20 -0
- package/dist/v2/react-native/charts/pie/slices.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/slices.js +54 -0
- package/dist/v2/react-native/charts/pie/types.d.ts +165 -0
- package/dist/v2/react-native/charts/pie/types.d.ts.map +1 -0
- package/dist/v2/react-native/charts/pie/types.js +1 -0
- package/dist/v2/react-native/charts/progress/ProgressChart.d.ts +7 -0
- package/dist/v2/react-native/charts/progress/ProgressChart.d.ts.map +1 -0
- package/dist/v2/react-native/charts/progress/ProgressChart.js +111 -0
- package/dist/v2/react-native/charts/progress/accessibility.d.ts +26 -0
- package/dist/v2/react-native/charts/progress/accessibility.d.ts.map +1 -0
- package/dist/v2/react-native/charts/progress/accessibility.js +71 -0
- package/dist/v2/react-native/charts/progress/animation.d.ts +36 -0
- package/dist/v2/react-native/charts/progress/animation.d.ts.map +1 -0
- package/dist/v2/react-native/charts/progress/animation.js +103 -0
- package/dist/v2/react-native/charts/progress/model.d.ts +14 -0
- package/dist/v2/react-native/charts/progress/model.d.ts.map +1 -0
- package/dist/v2/react-native/charts/progress/model.js +133 -0
- package/dist/v2/react-native/charts/progress/types.d.ts +72 -0
- package/dist/v2/react-native/charts/progress/types.d.ts.map +1 -0
- package/dist/v2/react-native/charts/progress/types.js +1 -0
- package/dist/v2/react-native/index.d.ts +24 -0
- package/dist/v2/react-native/index.d.ts.map +1 -0
- package/dist/v2/react-native/index.js +14 -0
- package/dist/v2/react-native/selection/ChartSelectionProvider.d.ts +27 -0
- package/dist/v2/react-native/selection/ChartSelectionProvider.d.ts.map +1 -0
- package/dist/v2/react-native/selection/ChartSelectionProvider.js +92 -0
- package/dist/v2/react-native/selection/index.d.ts +2 -0
- package/dist/v2/react-native/selection/index.d.ts.map +1 -0
- package/dist/v2/react-native/selection/index.js +1 -0
- package/dist/v2/react-native/selection/scope.d.ts +16 -0
- package/dist/v2/react-native/selection/scope.d.ts.map +1 -0
- package/dist/v2/react-native/selection/scope.js +18 -0
- package/dist/v2/react-native/theme/index.d.ts +4 -0
- package/dist/v2/react-native/theme/index.d.ts.map +1 -0
- package/dist/v2/react-native/theme/index.js +2 -0
- package/dist/v2/react-native/theme/presets.d.ts +84 -0
- package/dist/v2/react-native/theme/presets.d.ts.map +1 -0
- package/dist/v2/react-native/theme/presets.js +298 -0
- package/dist/v2/react-native/theme/provider.d.ts +20 -0
- package/dist/v2/react-native/theme/provider.d.ts.map +1 -0
- package/dist/v2/react-native/theme/provider.js +27 -0
- package/dist/v2/react-native/viewport/bounds.d.ts +7 -0
- package/dist/v2/react-native/viewport/bounds.d.ts.map +1 -0
- package/dist/v2/react-native/viewport/bounds.js +7 -0
- package/dist/v2/react-native/viewport/config.d.ts +13 -0
- package/dist/v2/react-native/viewport/config.d.ts.map +1 -0
- package/dist/v2/react-native/viewport/config.js +64 -0
- package/dist/v2/react-native/viewport/pan.d.ts +23 -0
- package/dist/v2/react-native/viewport/pan.d.ts.map +1 -0
- package/dist/v2/react-native/viewport/pan.js +110 -0
- package/dist/v2/react-native/viewport/pinchZoom.d.ts +17 -0
- package/dist/v2/react-native/viewport/pinchZoom.d.ts.map +1 -0
- package/dist/v2/react-native/viewport/pinchZoom.js +131 -0
- package/dist/v2/react-native/viewport/types.d.ts +55 -0
- package/dist/v2/react-native/viewport/types.d.ts.map +1 -0
- package/dist/v2/react-native/viewport/types.js +1 -0
- package/dist/v2/svg-renderer/capabilities.d.ts +3 -0
- package/dist/v2/svg-renderer/capabilities.d.ts.map +1 -0
- package/dist/v2/svg-renderer/capabilities.js +12 -0
- package/dist/v2/svg-renderer/clipPath.d.ts +4 -0
- package/dist/v2/svg-renderer/clipPath.d.ts.map +1 -0
- package/dist/v2/svg-renderer/clipPath.js +35 -0
- package/dist/v2/svg-renderer/defs.d.ts +6 -0
- package/dist/v2/svg-renderer/defs.d.ts.map +1 -0
- package/dist/v2/svg-renderer/defs.js +18 -0
- package/dist/v2/svg-renderer/ensureConsole.d.ts +4 -0
- package/dist/v2/svg-renderer/ensureConsole.d.ts.map +1 -0
- package/dist/v2/svg-renderer/ensureConsole.js +54 -0
- package/dist/v2/svg-renderer/hitRegions.d.ts +3 -0
- package/dist/v2/svg-renderer/hitRegions.d.ts.map +1 -0
- package/dist/v2/svg-renderer/hitRegions.js +6 -0
- package/dist/v2/svg-renderer/index.d.ts +14 -0
- package/dist/v2/svg-renderer/index.d.ts.map +1 -0
- package/dist/v2/svg-renderer/index.js +13 -0
- package/dist/v2/svg-renderer/layerOrder.d.ts +19 -0
- package/dist/v2/svg-renderer/layerOrder.d.ts.map +1 -0
- package/dist/v2/svg-renderer/layerOrder.js +18 -0
- package/dist/v2/svg-renderer/layers.d.ts +3 -0
- package/dist/v2/svg-renderer/layers.d.ts.map +1 -0
- package/dist/v2/svg-renderer/layers.js +4 -0
- package/dist/v2/svg-renderer/primitives.d.ts +12 -0
- package/dist/v2/svg-renderer/primitives.d.ts.map +1 -0
- package/dist/v2/svg-renderer/primitives.js +13 -0
- package/dist/v2/svg-renderer/renderer.d.ts +4 -0
- package/dist/v2/svg-renderer/renderer.d.ts.map +1 -0
- package/dist/v2/svg-renderer/renderer.js +24 -0
- package/dist/v2/svg-renderer/symbolGeometry.d.ts +6 -0
- package/dist/v2/svg-renderer/symbolGeometry.d.ts.map +1 -0
- package/dist/v2/svg-renderer/symbolGeometry.js +10 -0
- package/dist/v2/svg-renderer/symbols.d.ts +3 -0
- package/dist/v2/svg-renderer/symbols.d.ts.map +1 -0
- package/dist/v2/svg-renderer/symbols.js +23 -0
- package/dist/v2/svg-renderer/testIds.d.ts +2 -0
- package/dist/v2/svg-renderer/testIds.d.ts.map +1 -0
- package/dist/v2/svg-renderer/testIds.js +10 -0
- package/dist/v2/svg-renderer/textMeasurement.d.ts +4 -0
- package/dist/v2/svg-renderer/textMeasurement.d.ts.map +1 -0
- package/dist/v2/svg-renderer/textMeasurement.js +37 -0
- package/dist/v2/svg-renderer/types.d.ts +134 -0
- package/dist/v2/svg-renderer/types.d.ts.map +1 -0
- package/dist/v2/svg-renderer/types.js +1 -0
- package/package.json +56 -50
- package/v2/index.d.ts +1 -0
- package/v2/index.js +1 -0
- package/v2/package.json +6 -0
- package/scripts/chartkit-codemod.mjs +0 -256
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import type { LinePathDecimationStrategy } from "../../../core/index";
|
|
2
|
+
import type { ResolvedCartesianChartTooltipTheme } from "../../theme";
|
|
3
|
+
export type LineChartDotShape = "circle" | "square" | "diamond";
|
|
4
|
+
export type LineChartDotColor = string | "background" | "series";
|
|
5
|
+
export type LineChartDotConfig = {
|
|
6
|
+
visible?: boolean;
|
|
7
|
+
shape?: LineChartDotShape;
|
|
8
|
+
radius?: number;
|
|
9
|
+
fill?: LineChartDotColor;
|
|
10
|
+
stroke?: LineChartDotColor;
|
|
11
|
+
strokeWidth?: number;
|
|
12
|
+
opacity?: number;
|
|
13
|
+
};
|
|
14
|
+
export type ResolvedLineChartDotConfig = {
|
|
15
|
+
visible: boolean;
|
|
16
|
+
shape: LineChartDotShape;
|
|
17
|
+
radius: number;
|
|
18
|
+
fill: LineChartDotColor;
|
|
19
|
+
stroke: LineChartDotColor;
|
|
20
|
+
strokeWidth: number;
|
|
21
|
+
opacity: number;
|
|
22
|
+
};
|
|
23
|
+
export type LineChartCrosshairConfig = {
|
|
24
|
+
visible?: boolean;
|
|
25
|
+
color?: string;
|
|
26
|
+
strokeWidth?: number;
|
|
27
|
+
opacity?: number;
|
|
28
|
+
strokeDasharray?: readonly number[];
|
|
29
|
+
};
|
|
30
|
+
export type ResolvedLineChartCrosshairConfig = {
|
|
31
|
+
visible: boolean;
|
|
32
|
+
color: string;
|
|
33
|
+
strokeWidth: number;
|
|
34
|
+
opacity: number;
|
|
35
|
+
strokeDasharray?: readonly number[];
|
|
36
|
+
};
|
|
37
|
+
export type LineChartStrokeLinecap = "butt" | "round" | "square";
|
|
38
|
+
export type LineChartStrokeLinejoin = "bevel" | "miter" | "round";
|
|
39
|
+
export type LineChartStrokeStyleConfig = {
|
|
40
|
+
strokeDasharray?: readonly number[] | undefined;
|
|
41
|
+
strokeLinecap?: LineChartStrokeLinecap | undefined;
|
|
42
|
+
strokeLinejoin?: LineChartStrokeLinejoin | undefined;
|
|
43
|
+
strokeOpacity?: number | undefined;
|
|
44
|
+
};
|
|
45
|
+
export type ResolvedLineChartStrokeStyle = {
|
|
46
|
+
strokeLinecap: LineChartStrokeLinecap;
|
|
47
|
+
strokeLinejoin: LineChartStrokeLinejoin;
|
|
48
|
+
strokeOpacity: number;
|
|
49
|
+
strokeDasharray?: readonly number[] | undefined;
|
|
50
|
+
};
|
|
51
|
+
export type LineChartAreaFillConfig = {
|
|
52
|
+
fromColor?: string;
|
|
53
|
+
toColor?: string;
|
|
54
|
+
fromOpacity?: number;
|
|
55
|
+
toOpacity?: number;
|
|
56
|
+
};
|
|
57
|
+
export type ResolvedLineChartAreaFillConfig = {
|
|
58
|
+
fromColor: string;
|
|
59
|
+
toColor: string;
|
|
60
|
+
fromOpacity: number;
|
|
61
|
+
toOpacity: number;
|
|
62
|
+
};
|
|
63
|
+
export type LineChartThresholdStyleConfig = {
|
|
64
|
+
y: number;
|
|
65
|
+
aboveColor?: string;
|
|
66
|
+
belowColor?: string;
|
|
67
|
+
aboveOpacity?: number;
|
|
68
|
+
belowOpacity?: number;
|
|
69
|
+
areaAboveColor?: string;
|
|
70
|
+
areaBelowColor?: string;
|
|
71
|
+
areaOpacity?: number;
|
|
72
|
+
};
|
|
73
|
+
export type ResolvedLineChartThresholdStyle = {
|
|
74
|
+
y: number;
|
|
75
|
+
aboveColor: string;
|
|
76
|
+
belowColor: string;
|
|
77
|
+
aboveOpacity: number;
|
|
78
|
+
belowOpacity: number;
|
|
79
|
+
areaAboveColor: string;
|
|
80
|
+
areaBelowColor: string;
|
|
81
|
+
areaOpacity: number;
|
|
82
|
+
};
|
|
83
|
+
export type LineChartDecimationConfig = {
|
|
84
|
+
enabled?: boolean;
|
|
85
|
+
maxPoints?: number;
|
|
86
|
+
strategy?: LinePathDecimationStrategy;
|
|
87
|
+
};
|
|
88
|
+
export type ResolvedLineChartDecimationConfig = {
|
|
89
|
+
maxPoints: number;
|
|
90
|
+
strategy: LinePathDecimationStrategy;
|
|
91
|
+
};
|
|
92
|
+
export type LineChartTooltipConfig = {
|
|
93
|
+
visible?: boolean;
|
|
94
|
+
shared?: boolean;
|
|
95
|
+
anchor?: LineChartTooltipAnchor;
|
|
96
|
+
placement?: LineChartTooltipPlacement;
|
|
97
|
+
offset?: number;
|
|
98
|
+
edgePadding?: number;
|
|
99
|
+
width?: number;
|
|
100
|
+
padding?: number;
|
|
101
|
+
borderRadius?: number;
|
|
102
|
+
backgroundColor?: string;
|
|
103
|
+
borderColor?: string;
|
|
104
|
+
textColor?: string;
|
|
105
|
+
labelColor?: string;
|
|
106
|
+
shadowColor?: string;
|
|
107
|
+
shadowOpacity?: number;
|
|
108
|
+
shadowOffsetX?: number;
|
|
109
|
+
shadowOffsetY?: number;
|
|
110
|
+
fontFamily?: string;
|
|
111
|
+
fontSize?: number;
|
|
112
|
+
labelFontSize?: number;
|
|
113
|
+
positionAnimationDuration?: number;
|
|
114
|
+
};
|
|
115
|
+
export type LineChartTooltipAnchor = "point" | "pointer";
|
|
116
|
+
export type LineChartTooltipPlacement = "auto" | "above" | "below";
|
|
117
|
+
export declare const defaultLineChartTooltipPositionAnimationDuration = 220;
|
|
118
|
+
export type ResolvedLineChartTooltipConfig = {
|
|
119
|
+
visible: boolean;
|
|
120
|
+
shared: boolean;
|
|
121
|
+
anchor: LineChartTooltipAnchor;
|
|
122
|
+
placement: LineChartTooltipPlacement;
|
|
123
|
+
offset: number;
|
|
124
|
+
edgePadding: number;
|
|
125
|
+
width: number | undefined;
|
|
126
|
+
padding: number;
|
|
127
|
+
borderRadius: number;
|
|
128
|
+
backgroundColor: string;
|
|
129
|
+
borderColor: string;
|
|
130
|
+
textColor: string;
|
|
131
|
+
labelColor: string;
|
|
132
|
+
shadowColor: string;
|
|
133
|
+
shadowOpacity: number;
|
|
134
|
+
shadowOffsetX: number;
|
|
135
|
+
shadowOffsetY: number;
|
|
136
|
+
fontFamily: string | undefined;
|
|
137
|
+
fontSize: number;
|
|
138
|
+
labelFontSize: number;
|
|
139
|
+
positionAnimationDuration: number;
|
|
140
|
+
};
|
|
141
|
+
export declare const getLineChartStrokeStyle: ({ strokeDasharray, strokeLinecap, strokeLinejoin, strokeOpacity }?: LineChartStrokeStyleConfig) => ResolvedLineChartStrokeStyle;
|
|
142
|
+
export declare const getLineChartAreaFillConfig: ({ areaFill, seriesColor }: {
|
|
143
|
+
areaFill: LineChartAreaFillConfig | undefined;
|
|
144
|
+
seriesColor: string;
|
|
145
|
+
}) => ResolvedLineChartAreaFillConfig;
|
|
146
|
+
export declare const resolveLineChartDecimationConfig: ({ decimation, plotWidth }: {
|
|
147
|
+
decimation: false | "auto" | number | LineChartDecimationConfig | undefined;
|
|
148
|
+
plotWidth: number;
|
|
149
|
+
}) => ResolvedLineChartDecimationConfig | undefined;
|
|
150
|
+
export declare const getLineChartThresholdStyle: ({ seriesColor, threshold }: {
|
|
151
|
+
seriesColor: string;
|
|
152
|
+
threshold: LineChartThresholdStyleConfig | undefined;
|
|
153
|
+
}) => ResolvedLineChartThresholdStyle | undefined;
|
|
154
|
+
export declare const getLineChartDotConfig: ({ dots, seriesDot, showDots }: {
|
|
155
|
+
dots: boolean | LineChartDotConfig | undefined;
|
|
156
|
+
seriesDot: boolean | LineChartDotConfig | undefined;
|
|
157
|
+
showDots: boolean;
|
|
158
|
+
}) => ResolvedLineChartDotConfig;
|
|
159
|
+
export declare const getLineChartActiveDotConfig: ({ activeDot, baseDot }: {
|
|
160
|
+
activeDot: boolean | LineChartDotConfig | undefined;
|
|
161
|
+
baseDot: ResolvedLineChartDotConfig;
|
|
162
|
+
}) => ResolvedLineChartDotConfig;
|
|
163
|
+
export declare const getLineChartCrosshairConfig: ({ crosshair, themeAxisColor }: {
|
|
164
|
+
crosshair: boolean | LineChartCrosshairConfig | undefined;
|
|
165
|
+
themeAxisColor: string;
|
|
166
|
+
}) => ResolvedLineChartCrosshairConfig;
|
|
167
|
+
export declare const getLineChartTooltipConfig: ({ themeFontFamily, themeTooltip, tooltip }: {
|
|
168
|
+
tooltip: boolean | LineChartTooltipConfig | undefined;
|
|
169
|
+
themeFontFamily?: string | undefined;
|
|
170
|
+
themeTooltip: ResolvedCartesianChartTooltipTheme;
|
|
171
|
+
}) => ResolvedLineChartTooltipConfig;
|
|
172
|
+
//# sourceMappingURL=options.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../src/charts/line/options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAElE,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,aAAa,CAAC;AAEtE,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAChE,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,YAAY,GAAG,QAAQ,CAAC;AAEjE,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,iBAAiB,CAAC;IACzB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,iBAAiB,CAAC;IACzB,MAAM,EAA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D,SAAS,EAAE,OAAO,GAAG,kBAAkB,GAAG,SAAS,CAAC;IACpD,OAAO,EAAE,0BAA0B,CAAC;CACrC,KAAG,0BAkBH,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,+BAGzC;IACD,SAAS,EAAE,OAAO,GAAG,wBAAwB,GAAG,SAAS,CAAC;IAC1D,cAAc,EAAE,MAAM,CAAC;CACxB,KAAG,gCAoBH,CAAC;AAEF,eAAO,MAAM,yBAAyB,GAAI,4CAIvC;IACD,OAAO,EAAE,OAAO,GAAG,sBAAsB,GAAG,SAAS,CAAC;IACtD,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACrC,YAAY,EAAE,kCAAkC,CAAC;CAClD,KAAG,8BAsCH,CAAC"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
export const defaultLineChartTooltipPositionAnimationDuration = 220;
|
|
2
|
+
const resolveNonNegativeNumber = (value, fallback) => typeof value === "number" && Number.isFinite(value)
|
|
3
|
+
? Math.max(0, value)
|
|
4
|
+
: fallback;
|
|
5
|
+
const resolveOpacity = (value, fallback) => typeof value === "number" && Number.isFinite(value)
|
|
6
|
+
? Math.max(0, Math.min(1, value))
|
|
7
|
+
: fallback;
|
|
8
|
+
const getAutoDecimationMaxPoints = (plotWidth) => {
|
|
9
|
+
const safePlotWidth = Number.isFinite(plotWidth) && plotWidth > 0 ? plotWidth : 320;
|
|
10
|
+
return Math.max(120, Math.ceil(safePlotWidth * 2));
|
|
11
|
+
};
|
|
12
|
+
export const getLineChartStrokeStyle = ({ strokeDasharray, strokeLinecap, strokeLinejoin, strokeOpacity } = {}) => {
|
|
13
|
+
const resolved = {
|
|
14
|
+
strokeLinecap: strokeLinecap ?? "round",
|
|
15
|
+
strokeLinejoin: strokeLinejoin ?? "round",
|
|
16
|
+
strokeOpacity: resolveOpacity(strokeOpacity, 1)
|
|
17
|
+
};
|
|
18
|
+
if (strokeDasharray !== undefined) {
|
|
19
|
+
resolved.strokeDasharray = strokeDasharray;
|
|
20
|
+
}
|
|
21
|
+
return resolved;
|
|
22
|
+
};
|
|
23
|
+
export const getLineChartAreaFillConfig = ({ areaFill, seriesColor }) => ({
|
|
24
|
+
fromColor: areaFill?.fromColor ?? seriesColor,
|
|
25
|
+
toColor: areaFill?.toColor ?? areaFill?.fromColor ?? seriesColor,
|
|
26
|
+
fromOpacity: resolveOpacity(areaFill?.fromOpacity, 0.22),
|
|
27
|
+
toOpacity: resolveOpacity(areaFill?.toOpacity, 0.02)
|
|
28
|
+
});
|
|
29
|
+
export const resolveLineChartDecimationConfig = ({ decimation, plotWidth }) => {
|
|
30
|
+
if (decimation === false) {
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
33
|
+
if (decimation === undefined || decimation === "auto") {
|
|
34
|
+
return {
|
|
35
|
+
maxPoints: getAutoDecimationMaxPoints(plotWidth),
|
|
36
|
+
strategy: "min-max"
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
if (typeof decimation === "number") {
|
|
40
|
+
if (!Number.isFinite(decimation) || decimation <= 0) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
maxPoints: Math.floor(decimation),
|
|
45
|
+
strategy: "min-max"
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
if (decimation.enabled === false) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
const configuredMaxPoints = decimation.maxPoints;
|
|
52
|
+
const maxPoints = configuredMaxPoints !== undefined &&
|
|
53
|
+
Number.isFinite(configuredMaxPoints) &&
|
|
54
|
+
configuredMaxPoints > 0
|
|
55
|
+
? Math.floor(configuredMaxPoints)
|
|
56
|
+
: getAutoDecimationMaxPoints(plotWidth);
|
|
57
|
+
return {
|
|
58
|
+
maxPoints,
|
|
59
|
+
strategy: decimation.strategy ?? "min-max"
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export const getLineChartThresholdStyle = ({ seriesColor, threshold }) => {
|
|
63
|
+
if (!threshold ||
|
|
64
|
+
typeof threshold.y !== "number" ||
|
|
65
|
+
!Number.isFinite(threshold.y)) {
|
|
66
|
+
return undefined;
|
|
67
|
+
}
|
|
68
|
+
const aboveColor = threshold.aboveColor ?? seriesColor;
|
|
69
|
+
const belowColor = threshold.belowColor ?? seriesColor;
|
|
70
|
+
return {
|
|
71
|
+
y: threshold.y,
|
|
72
|
+
aboveColor,
|
|
73
|
+
belowColor,
|
|
74
|
+
aboveOpacity: resolveOpacity(threshold.aboveOpacity, 1),
|
|
75
|
+
belowOpacity: resolveOpacity(threshold.belowOpacity, 1),
|
|
76
|
+
areaAboveColor: threshold.areaAboveColor ?? aboveColor,
|
|
77
|
+
areaBelowColor: threshold.areaBelowColor ?? belowColor,
|
|
78
|
+
areaOpacity: resolveOpacity(threshold.areaOpacity, 0.12)
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
export const getLineChartDotConfig = ({ dots, seriesDot, showDots }) => {
|
|
82
|
+
const globalConfig = typeof dots === "object" ? dots : {};
|
|
83
|
+
const seriesConfig = typeof seriesDot === "object" ? seriesDot : {};
|
|
84
|
+
const visible = typeof seriesDot === "boolean"
|
|
85
|
+
? seriesDot
|
|
86
|
+
: typeof seriesConfig.visible === "boolean"
|
|
87
|
+
? seriesConfig.visible
|
|
88
|
+
: typeof dots === "boolean"
|
|
89
|
+
? dots
|
|
90
|
+
: typeof globalConfig.visible === "boolean"
|
|
91
|
+
? globalConfig.visible
|
|
92
|
+
: showDots;
|
|
93
|
+
return {
|
|
94
|
+
visible,
|
|
95
|
+
shape: seriesConfig.shape ?? globalConfig.shape ?? "circle",
|
|
96
|
+
radius: seriesConfig.radius ?? globalConfig.radius ?? 3.5,
|
|
97
|
+
fill: seriesConfig.fill ?? globalConfig.fill ?? "background",
|
|
98
|
+
stroke: seriesConfig.stroke ?? globalConfig.stroke ?? "series",
|
|
99
|
+
strokeWidth: seriesConfig.strokeWidth ?? globalConfig.strokeWidth ?? 2,
|
|
100
|
+
opacity: seriesConfig.opacity ?? globalConfig.opacity ?? 1
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
export const getLineChartActiveDotConfig = ({ activeDot, baseDot }) => {
|
|
104
|
+
const config = typeof activeDot === "object" ? activeDot : {};
|
|
105
|
+
const visible = typeof activeDot === "boolean"
|
|
106
|
+
? activeDot
|
|
107
|
+
: typeof config.visible === "boolean"
|
|
108
|
+
? config.visible
|
|
109
|
+
: true;
|
|
110
|
+
return {
|
|
111
|
+
visible,
|
|
112
|
+
shape: config.shape ?? baseDot.shape,
|
|
113
|
+
radius: config.radius ?? Math.max(5, baseDot.radius + 1.5),
|
|
114
|
+
fill: config.fill ?? baseDot.fill,
|
|
115
|
+
stroke: config.stroke ?? baseDot.stroke,
|
|
116
|
+
strokeWidth: config.strokeWidth ?? Math.max(2.5, baseDot.strokeWidth),
|
|
117
|
+
opacity: config.opacity ?? 1
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export const getLineChartCrosshairConfig = ({ crosshair, themeAxisColor }) => {
|
|
121
|
+
const config = typeof crosshair === "object" ? crosshair : {};
|
|
122
|
+
const visible = typeof crosshair === "boolean"
|
|
123
|
+
? crosshair
|
|
124
|
+
: typeof config.visible === "boolean"
|
|
125
|
+
? config.visible
|
|
126
|
+
: crosshair !== undefined;
|
|
127
|
+
const resolved = {
|
|
128
|
+
visible,
|
|
129
|
+
color: config.color ?? themeAxisColor,
|
|
130
|
+
strokeWidth: config.strokeWidth ?? 1,
|
|
131
|
+
opacity: config.opacity ?? 0.95
|
|
132
|
+
};
|
|
133
|
+
if (config.strokeDasharray !== undefined) {
|
|
134
|
+
resolved.strokeDasharray = config.strokeDasharray;
|
|
135
|
+
}
|
|
136
|
+
return resolved;
|
|
137
|
+
};
|
|
138
|
+
export const getLineChartTooltipConfig = ({ themeFontFamily, themeTooltip, tooltip }) => {
|
|
139
|
+
const config = typeof tooltip === "object" ? tooltip : {};
|
|
140
|
+
const visible = typeof tooltip === "boolean"
|
|
141
|
+
? tooltip
|
|
142
|
+
: typeof config.visible === "boolean"
|
|
143
|
+
? config.visible
|
|
144
|
+
: tooltip !== undefined;
|
|
145
|
+
return {
|
|
146
|
+
visible,
|
|
147
|
+
shared: config.shared ?? true,
|
|
148
|
+
anchor: config.anchor ?? "point",
|
|
149
|
+
placement: config.placement ?? "auto",
|
|
150
|
+
offset: resolveNonNegativeNumber(config.offset, 12),
|
|
151
|
+
edgePadding: resolveNonNegativeNumber(config.edgePadding, 4),
|
|
152
|
+
width: config.width,
|
|
153
|
+
padding: config.padding ?? themeTooltip.padding,
|
|
154
|
+
borderRadius: config.borderRadius ?? themeTooltip.borderRadius,
|
|
155
|
+
backgroundColor: config.backgroundColor ?? themeTooltip.background,
|
|
156
|
+
borderColor: config.borderColor ?? themeTooltip.border,
|
|
157
|
+
textColor: config.textColor ?? themeTooltip.text,
|
|
158
|
+
labelColor: config.labelColor ?? themeTooltip.mutedText,
|
|
159
|
+
shadowColor: config.shadowColor ?? themeTooltip.shadowColor,
|
|
160
|
+
shadowOpacity: resolveOpacity(config.shadowOpacity, themeTooltip.shadowOpacity),
|
|
161
|
+
shadowOffsetX: config.shadowOffsetX ?? themeTooltip.shadowOffsetX,
|
|
162
|
+
shadowOffsetY: config.shadowOffsetY ?? themeTooltip.shadowOffsetY,
|
|
163
|
+
fontFamily: config.fontFamily ?? themeFontFamily,
|
|
164
|
+
fontSize: config.fontSize ?? themeTooltip.fontSize,
|
|
165
|
+
labelFontSize: config.labelFontSize ?? themeTooltip.labelFontSize,
|
|
166
|
+
positionAnimationDuration: resolveNonNegativeNumber(config.positionAnimationDuration, defaultLineChartTooltipPositionAnimationDuration)
|
|
167
|
+
};
|
|
168
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { LineChartInteractionBounds } from "./interaction";
|
|
2
|
+
export type LineChartOutsidePressSurface = {
|
|
3
|
+
height: number;
|
|
4
|
+
key: "top" | "left" | "right" | "bottom";
|
|
5
|
+
left: number;
|
|
6
|
+
top: number;
|
|
7
|
+
width: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const getLineChartOutsidePressSurfaces: ({ enabled, mainHeight, visibleInteractionBounds, width }: {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
mainHeight: number;
|
|
12
|
+
visibleInteractionBounds: LineChartInteractionBounds;
|
|
13
|
+
width: number;
|
|
14
|
+
}) => LineChartOutsidePressSurface[];
|
|
15
|
+
//# sourceMappingURL=outsidePressSurfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outsidePressSurfaces.d.ts","sourceRoot":"","sources":["../../../src/charts/line/outsidePressSurfaces.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAEhE,MAAM,MAAM,4BAA4B,GAAG;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,gCAAgC,GAAI,0DAK9C;IACD,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,wBAAwB,EAAE,0BAA0B,CAAC;IACrD,KAAK,EAAE,MAAM,CAAC;CACf,KAAG,4BAA4B,EAwC/B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export const getLineChartOutsidePressSurfaces = ({ enabled, mainHeight, visibleInteractionBounds, width }) => {
|
|
2
|
+
if (!enabled) {
|
|
3
|
+
return [];
|
|
4
|
+
}
|
|
5
|
+
const surfaces = [
|
|
6
|
+
{
|
|
7
|
+
key: "top",
|
|
8
|
+
height: visibleInteractionBounds.y,
|
|
9
|
+
left: 0,
|
|
10
|
+
top: 0,
|
|
11
|
+
width
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
key: "left",
|
|
15
|
+
height: visibleInteractionBounds.height,
|
|
16
|
+
left: 0,
|
|
17
|
+
top: visibleInteractionBounds.y,
|
|
18
|
+
width: visibleInteractionBounds.x
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
key: "right",
|
|
22
|
+
height: visibleInteractionBounds.height,
|
|
23
|
+
left: visibleInteractionBounds.x + visibleInteractionBounds.width,
|
|
24
|
+
top: visibleInteractionBounds.y,
|
|
25
|
+
width: width - (visibleInteractionBounds.x + visibleInteractionBounds.width)
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
key: "bottom",
|
|
29
|
+
height: mainHeight -
|
|
30
|
+
(visibleInteractionBounds.y + visibleInteractionBounds.height),
|
|
31
|
+
left: 0,
|
|
32
|
+
top: visibleInteractionBounds.y + visibleInteractionBounds.height,
|
|
33
|
+
width
|
|
34
|
+
}
|
|
35
|
+
];
|
|
36
|
+
return surfaces.filter((surface) => surface.width > 0 && surface.height > 0);
|
|
37
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { LineChartProps } from "./types";
|
|
2
|
+
export declare const getLineChartOverviewProps: <TData extends Record<string, unknown>>(props: LineChartProps<TData>) => {
|
|
3
|
+
data: TData[];
|
|
4
|
+
xKey: keyof TData & string;
|
|
5
|
+
yKey?: keyof TData & string;
|
|
6
|
+
yKeys?: (keyof TData & string)[];
|
|
7
|
+
series?: import("./types").LineChartSeries<TData>[];
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
theme?: import("../..").ChartKitThemeMode | import("../..").CartesianChartTheme;
|
|
11
|
+
preset?: import("../..").CartesianChartPresetValue;
|
|
12
|
+
onViewportChange?: (event: import("./types").LineChartViewportChangeEvent) => void;
|
|
13
|
+
viewportInteraction?: boolean | import("./types").LineChartViewportInteractionConfig;
|
|
14
|
+
decimation?: false | "auto" | number | import("./options").LineChartDecimationConfig;
|
|
15
|
+
curve?: import("../../../core/index").LineCurve;
|
|
16
|
+
connectNulls?: boolean;
|
|
17
|
+
area?: boolean;
|
|
18
|
+
areaFill?: import("./options").LineChartAreaFillConfig;
|
|
19
|
+
showDots?: boolean;
|
|
20
|
+
dots?: boolean | import("./options").LineChartDotConfig;
|
|
21
|
+
renderDot?: (props: import("./types").LineChartDotRenderProps<TData>) => import("react").ReactNode;
|
|
22
|
+
renderActiveDot?: (props: import("./types").LineChartDotRenderProps<TData>) => import("react").ReactNode;
|
|
23
|
+
renderCrosshair?: (props: import("./types").LineChartCrosshairRenderProps<TData>) => import("react").ReactNode;
|
|
24
|
+
renderTooltip?: (props: import("./types").LineChartTooltipRenderProps<TData>) => import("react").ReactNode;
|
|
25
|
+
referenceLines?: import("./types").LineChartReferenceLineConfig[];
|
|
26
|
+
referenceBands?: import("./types").LineChartReferenceBandConfig[];
|
|
27
|
+
showHorizontalGridLines?: boolean;
|
|
28
|
+
showVerticalGridLines?: boolean;
|
|
29
|
+
labelStrategy?: import("./types").LineChartLabelStrategy;
|
|
30
|
+
labelRotation?: number;
|
|
31
|
+
labelMinGap?: number;
|
|
32
|
+
edgeLabelPolicy?: import("./types").LineChartEdgeLabelPolicy;
|
|
33
|
+
yDomain?: import("../../../core/index").NumericDomainInput;
|
|
34
|
+
yAxisLabelWidth?: import("./axisLabels").LineChartYAxisLabelWidth;
|
|
35
|
+
axisLabelAnimation?: boolean | import("./axisLabels").LineChartAxisLabelAnimationConfig;
|
|
36
|
+
formatXLabel?: (value: import("../../../core/index").ChartXValue, index: number) => string;
|
|
37
|
+
formatYLabel?: (value: number) => string;
|
|
38
|
+
renderer?: import("./types").LineChartRenderer;
|
|
39
|
+
id?: string;
|
|
40
|
+
debugLayout?: boolean;
|
|
41
|
+
onLayoutDebug?: (model: import("../../../core/index").LayoutDebugModel) => void;
|
|
42
|
+
accessibilityLabel?: string;
|
|
43
|
+
testID?: string;
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=overviewProps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"overviewProps.d.ts","sourceRoot":"","sources":["../../../src/charts/line/overviewProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,yBAAyB,GACpC,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAErC,OAAO,cAAc,CAAC,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmB7B,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export const getLineChartOverviewProps = (props) => {
|
|
2
|
+
const { activeDot: _activeDot, crosshair: _crosshair, defaultSelectedIndex: _defaultSelectedIndex, initialIndex: _initialIndex, interaction: _interaction, legend: _legend, rangeSelector: _rangeSelector, selectedIndex: _selectedIndex, scrollable: _scrollable, tooltip: _tooltip, viewport: _viewport, visiblePoints: _visiblePoints, ...overviewBaseProps } = props;
|
|
3
|
+
return overviewBaseProps;
|
|
4
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { GestureResponderEvent } from "react-native";
|
|
2
|
+
import { type ResolvedChartViewportWindow } from "../../../core/index";
|
|
3
|
+
import type { LineChartModel } from "./useChartModel";
|
|
4
|
+
import type { LineChartRenderer } from "./types";
|
|
5
|
+
import type { LineChartProps } from "./types";
|
|
6
|
+
import type { LineChartRangeSelectorResolvedConfig } from "./rangeSelectorConfig";
|
|
7
|
+
export declare const LineChartRangeSelector: <TData extends Record<string, unknown>>({ config, dataLength, isVisible, model, onViewportChange, preventBrowserSelection, renderer: rendererProp, testID, viewportWindow, width }: {
|
|
8
|
+
config: LineChartRangeSelectorResolvedConfig;
|
|
9
|
+
dataLength: number;
|
|
10
|
+
isVisible: boolean;
|
|
11
|
+
model: LineChartModel<TData>;
|
|
12
|
+
onViewportChange: LineChartProps<TData>["onViewportChange"];
|
|
13
|
+
preventBrowserSelection: (event: GestureResponderEvent) => void;
|
|
14
|
+
renderer?: LineChartRenderer | undefined;
|
|
15
|
+
testID?: string | undefined;
|
|
16
|
+
viewportWindow: ResolvedChartViewportWindow;
|
|
17
|
+
width: number;
|
|
18
|
+
}) => import("react").JSX.Element | null;
|
|
19
|
+
//# sourceMappingURL=rangeSelector.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rangeSelector.d.ts","sourceRoot":"","sources":["../../../src/charts/line/rangeSelector.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,EAGL,KAAK,2BAA2B,EACjC,MAAM,iBAAiB,CAAC;AAGzB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,KAAK,EACV,iBAAiB,EAKlB,MAAM,SAAS,CAAC;AACjB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC9C,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,uBAAuB,CAAC;AAGlF,eAAO,MAAM,sBAAsB,GAAI,KAAK,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,4IAW3E;IACD,MAAM,EAAE,oCAAoC,CAAC;IAC7C,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;IAC7B,gBAAgB,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC,kBAAkB,CAAC,CAAC;IAC5D,uBAAuB,EAAE,CAAC,KAAK,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAChE,QAAQ,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACzC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,cAAc,EAAE,2BAA2B,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;CACf,uCA0VA,CAAC"}
|