@gravity-ui/charts 1.42.0 → 1.42.2
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/dist/cjs/components/AxisX/AxisX.js +2 -1
- package/dist/cjs/components/AxisX/prepare-axis-data.js +2 -2
- package/dist/cjs/components/AxisX/types.d.ts +1 -1
- package/dist/cjs/components/AxisY/AxisY.js +2 -1
- package/dist/cjs/components/AxisY/prepare-axis-data.js +1 -1
- package/dist/cjs/components/AxisY/prepare-axis-title.js +1 -1
- package/dist/cjs/components/AxisY/types.d.ts +1 -1
- package/dist/cjs/components/AxisY/utils.js +1 -1
- package/dist/cjs/components/ChartInner/index.js +3 -2
- package/dist/cjs/components/ChartInner/useChartInnerHandlers.d.ts +1 -1
- package/dist/cjs/components/ChartInner/useChartInnerHandlers.js +4 -4
- package/dist/cjs/components/ChartInner/useChartInnerProps.d.ts +1 -1
- package/dist/cjs/components/ChartInner/useChartInnerProps.js +4 -4
- package/dist/cjs/components/ChartInner/useChartInnerState.js +1 -1
- package/dist/cjs/components/ChartInner/useDefaultState.d.ts +1 -1
- package/dist/cjs/components/ChartInner/useDefaultState.js +4 -4
- package/dist/cjs/components/ChartInner/utils/axis.d.ts +2 -2
- package/dist/cjs/components/ChartInner/utils/axis.js +1 -1
- package/dist/cjs/components/ChartInner/utils/normalized-original-data.js +1 -1
- package/dist/cjs/components/ChartInner/utils/title.js +1 -1
- package/dist/cjs/components/ChartInner/utils/tooltip.js +1 -1
- package/dist/cjs/components/ChartInner/utils/zoom.d.ts +1 -1
- package/dist/cjs/components/ChartInner/utils/zoom.js +1 -1
- package/dist/cjs/components/Legend/index.js +4 -3
- package/dist/cjs/components/PlotTitle/index.d.ts +1 -1
- package/dist/cjs/components/RangeSlider/index.js +2 -1
- package/dist/cjs/components/Tooltip/DefaultTooltipContent/RowWithAggregation.js +1 -1
- package/dist/cjs/components/Tooltip/DefaultTooltipContent/index.js +2 -2
- package/dist/cjs/components/Tooltip/DefaultTooltipContent/utils.js +3 -3
- package/dist/cjs/components/index.js +3 -3
- package/dist/cjs/components/utils/axis-title.js +1 -1
- package/dist/cjs/components/utils/index.d.ts +1 -1
- package/dist/cjs/components/utils/index.js +1 -1
- package/dist/cjs/core/axes/index.d.ts +5 -0
- package/dist/cjs/core/axes/index.js +5 -0
- package/dist/{esm/hooks/useAxis → cjs/core/axes}/range-slider.js +1 -1
- package/dist/cjs/core/axes/types.d.ts +84 -0
- package/dist/{esm/hooks/useAxis → cjs/core/axes}/utils.js +1 -1
- package/dist/cjs/{hooks/useAxis → core/axes}/x-axis.js +4 -4
- package/dist/cjs/{hooks/useAxis → core/axes}/y-axis.d.ts +2 -2
- package/dist/cjs/{hooks/useAxis → core/axes}/y-axis.js +3 -3
- package/dist/cjs/core/index.d.ts +10 -0
- package/dist/cjs/core/index.js +10 -0
- package/dist/{esm/utils/chart → cjs/core/layout}/chart-dimensions.d.ts +3 -1
- package/dist/cjs/{utils/chart → core/layout}/chart-dimensions.js +1 -1
- package/dist/cjs/core/layout/index.d.ts +3 -0
- package/dist/cjs/core/layout/index.js +3 -0
- package/dist/cjs/{hooks/useSplit/index.d.ts → core/layout/split.d.ts} +1 -1
- package/dist/{esm/hooks/useSplit/index.js → cjs/core/layout/split.js} +1 -1
- package/dist/cjs/core/scales/index.d.ts +4 -0
- package/dist/cjs/core/scales/index.js +4 -0
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/utils.d.ts +3 -2
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/utils.js +2 -2
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/x-scale.d.ts +4 -2
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/x-scale.js +3 -3
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/y-scale.d.ts +3 -2
- package/dist/{esm/hooks/useAxisScales → cjs/core/scales}/y-scale.js +3 -3
- package/dist/cjs/{hooks/useSeries → core/series}/constants.d.ts +1 -1
- package/dist/cjs/core/series/index.d.ts +4 -0
- package/dist/cjs/core/series/index.js +4 -0
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-area.d.ts +1 -1
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-area.js +2 -2
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-bar-x.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-bar-y.js +3 -3
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-funnel.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-heatmap.js +2 -2
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-legend.d.ts +1 -1
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-legend.js +2 -2
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-line.d.ts +1 -1
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-line.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-options.js +1 -1
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-pie.js +2 -2
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-radar.d.ts +1 -1
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-radar.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-sankey.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-scatter.js +2 -2
- package/dist/cjs/{hooks/useSeries → core/series}/prepare-treemap.js +2 -2
- package/dist/{esm/hooks/useSeries → cjs/core/series}/prepare-waterfall.js +2 -2
- package/dist/cjs/core/series/types.d.ts +346 -0
- package/dist/cjs/core/series/utils.d.ts +11 -0
- package/dist/cjs/core/series/utils.js +37 -0
- package/dist/{esm → cjs/core}/types/chart/base.d.ts +19 -0
- package/dist/{esm → cjs/core}/types/chart/tooltip.d.ts +1 -1
- package/dist/cjs/core/types/formatter.d.ts +40 -0
- package/dist/cjs/core/types/index.d.ts +96 -0
- package/dist/cjs/core/types/index.js +24 -0
- package/dist/{esm/utils/chart → cjs/core/utils}/common.js +2 -2
- package/dist/cjs/{utils/chart → core/utils}/format.d.ts +1 -1
- package/dist/cjs/{utils/chart → core/utils}/format.js +1 -1
- package/dist/cjs/{utils/chart → core/utils}/get-closest-data.js +2 -2
- package/dist/{esm/utils/chart → cjs/core/utils}/get-hovered-plots.d.ts +2 -2
- package/dist/cjs/{utils/chart → core/utils}/index.d.ts +4 -2
- package/dist/{esm/utils/chart → cjs/core/utils}/index.js +4 -2
- package/dist/cjs/{utils/chart → core/utils}/series/line.d.ts +1 -1
- package/dist/{esm/utils/chart → cjs/core/utils}/series/sorting.js +2 -2
- package/dist/cjs/{utils/chart → core/utils}/symbol.d.ts +1 -1
- package/dist/{esm/utils/chart → cjs/core/utils}/symbol.js +1 -1
- package/dist/cjs/{utils/chart → core/utils}/text.js +1 -1
- package/dist/{esm/utils/chart → cjs/core/utils}/ticks/datetime.js +1 -1
- package/dist/{esm → cjs/core}/validation/index.js +1 -1
- package/dist/cjs/{validation → core/validation}/validate-axes.js +1 -1
- package/dist/cjs/core/zoom/index.d.ts +1 -0
- package/dist/cjs/core/zoom/index.js +1 -0
- package/dist/cjs/{utils/chart → core/zoom}/zoom.d.ts +3 -1
- package/dist/cjs/{utils/chart → core/zoom}/zoom.js +1 -1
- package/dist/cjs/hooks/index.d.ts +5 -5
- package/dist/cjs/hooks/index.js +5 -5
- package/dist/cjs/hooks/useAxis/index.d.ts +4 -4
- package/dist/cjs/hooks/useAxis/index.js +3 -3
- package/dist/cjs/hooks/useAxis/types.d.ts +1 -84
- package/dist/cjs/hooks/useAxis/types.js +1 -1
- package/dist/cjs/hooks/useAxisScales/index.d.ts +4 -4
- package/dist/cjs/hooks/useAxisScales/index.js +6 -6
- package/dist/cjs/hooks/useBrush/types.d.ts +1 -1
- package/dist/cjs/hooks/useCrosshair/index.js +1 -1
- package/dist/cjs/hooks/useCrosshair/useCrosshairHover.js +1 -1
- package/dist/cjs/hooks/useRangeSlider/index.d.ts +1 -1
- package/dist/cjs/hooks/useRangeSlider/index.js +2 -2
- package/dist/cjs/hooks/useRangeSlider/types.d.ts +1 -1
- package/dist/cjs/hooks/useRangeSlider/utils.d.ts +1 -1
- package/dist/cjs/hooks/useRangeSlider/utils.js +1 -1
- package/dist/cjs/hooks/useSeries/index.d.ts +1 -1
- package/dist/cjs/hooks/useSeries/index.js +2 -2
- package/dist/cjs/hooks/useSeries/types.d.ts +1 -346
- package/dist/cjs/hooks/useSeries/types.js +1 -1
- package/dist/cjs/hooks/useSeries/utils.d.ts +1 -11
- package/dist/cjs/hooks/useSeries/utils.js +1 -37
- package/dist/cjs/hooks/useShapes/area/index.js +2 -1
- package/dist/cjs/hooks/useShapes/area/prepare-data.d.ts +2 -2
- package/dist/cjs/hooks/useShapes/area/prepare-data.js +2 -2
- package/dist/cjs/hooks/useShapes/bar-x/index.js +2 -1
- package/dist/cjs/hooks/useShapes/bar-x/prepare-data.d.ts +2 -2
- package/dist/cjs/hooks/useShapes/bar-x/prepare-data.js +2 -2
- package/dist/cjs/hooks/useShapes/bar-y/prepare-data.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/bar-y/prepare-data.js +2 -2
- package/dist/cjs/hooks/useShapes/funnel/index.js +2 -1
- package/dist/cjs/hooks/useShapes/funnel/prepare-data.js +1 -1
- package/dist/cjs/hooks/useShapes/funnel/types.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/heatmap/prepare-data.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/heatmap/prepare-data.js +1 -1
- package/dist/cjs/hooks/useShapes/index.d.ts +3 -3
- package/dist/cjs/hooks/useShapes/index.js +2 -2
- package/dist/cjs/hooks/useShapes/line/index.js +2 -1
- package/dist/cjs/hooks/useShapes/line/prepare-data.d.ts +2 -2
- package/dist/cjs/hooks/useShapes/line/prepare-data.js +2 -2
- package/dist/cjs/hooks/useShapes/line/types.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/marker.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/marker.js +3 -2
- package/dist/cjs/hooks/useShapes/pie/index.js +2 -1
- package/dist/cjs/hooks/useShapes/pie/prepare-data.js +3 -3
- package/dist/cjs/hooks/useShapes/radar/prepare-data.js +2 -2
- package/dist/cjs/hooks/useShapes/sankey/prepare-data.js +1 -1
- package/dist/cjs/hooks/useShapes/scatter/prepare-data.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/scatter/prepare-data.js +1 -1
- package/dist/cjs/hooks/useShapes/treemap/prepare-data.js +3 -3
- package/dist/cjs/hooks/useShapes/utils.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/utils.js +1 -1
- package/dist/cjs/hooks/useShapes/waterfall/index.js +3 -2
- package/dist/cjs/hooks/useShapes/waterfall/prepare-data.d.ts +1 -1
- package/dist/cjs/hooks/useShapes/waterfall/prepare-data.js +2 -2
- package/dist/cjs/hooks/useZoom/index.d.ts +2 -2
- package/dist/cjs/hooks/useZoom/utils.d.ts +2 -2
- package/dist/cjs/hooks/useZoom/utils.js +1 -1
- package/dist/cjs/hooks/utils/bar-y.d.ts +1 -1
- package/dist/cjs/hooks/utils/bar-y.js +1 -1
- package/dist/cjs/hooks/utils/get-band-size.js +1 -1
- package/dist/cjs/index.d.ts +3 -2
- package/dist/cjs/index.js +3 -2
- package/dist/cjs/types/chart-ui.d.ts +1 -1
- package/dist/cjs/types/index.d.ts +1 -96
- package/dist/cjs/types/index.js +1 -24
- package/dist/cjs/utils/chart-ui/pie-center-text.js +2 -2
- package/dist/cjs/utils/index.d.ts +0 -3
- package/dist/cjs/utils/index.js +0 -3
- package/dist/esm/components/AxisX/AxisX.js +2 -1
- package/dist/esm/components/AxisX/prepare-axis-data.js +2 -2
- package/dist/esm/components/AxisX/types.d.ts +1 -1
- package/dist/esm/components/AxisY/AxisY.js +2 -1
- package/dist/esm/components/AxisY/prepare-axis-data.js +1 -1
- package/dist/esm/components/AxisY/prepare-axis-title.js +1 -1
- package/dist/esm/components/AxisY/types.d.ts +1 -1
- package/dist/esm/components/AxisY/utils.js +1 -1
- package/dist/esm/components/ChartInner/index.js +3 -2
- package/dist/esm/components/ChartInner/useChartInnerHandlers.d.ts +1 -1
- package/dist/esm/components/ChartInner/useChartInnerHandlers.js +4 -4
- package/dist/esm/components/ChartInner/useChartInnerProps.d.ts +1 -1
- package/dist/esm/components/ChartInner/useChartInnerProps.js +4 -4
- package/dist/esm/components/ChartInner/useChartInnerState.js +1 -1
- package/dist/esm/components/ChartInner/useDefaultState.d.ts +1 -1
- package/dist/esm/components/ChartInner/useDefaultState.js +4 -4
- package/dist/esm/components/ChartInner/utils/axis.d.ts +2 -2
- package/dist/esm/components/ChartInner/utils/axis.js +1 -1
- package/dist/esm/components/ChartInner/utils/normalized-original-data.js +1 -1
- package/dist/esm/components/ChartInner/utils/title.js +1 -1
- package/dist/esm/components/ChartInner/utils/tooltip.js +1 -1
- package/dist/esm/components/ChartInner/utils/zoom.d.ts +1 -1
- package/dist/esm/components/ChartInner/utils/zoom.js +1 -1
- package/dist/esm/components/Legend/index.js +4 -3
- package/dist/esm/components/PlotTitle/index.d.ts +1 -1
- package/dist/esm/components/RangeSlider/index.js +2 -1
- package/dist/esm/components/Tooltip/DefaultTooltipContent/RowWithAggregation.js +1 -1
- package/dist/esm/components/Tooltip/DefaultTooltipContent/index.js +2 -2
- package/dist/esm/components/Tooltip/DefaultTooltipContent/utils.js +3 -3
- package/dist/esm/components/index.js +3 -3
- package/dist/esm/components/utils/axis-title.js +1 -1
- package/dist/esm/components/utils/index.d.ts +1 -1
- package/dist/esm/components/utils/index.js +1 -1
- package/dist/esm/core/axes/index.d.ts +5 -0
- package/dist/esm/core/axes/index.js +5 -0
- package/dist/{cjs/hooks/useAxis → esm/core/axes}/range-slider.js +1 -1
- package/dist/esm/core/axes/types.d.ts +84 -0
- package/dist/{cjs/hooks/useAxis → esm/core/axes}/utils.js +1 -1
- package/dist/esm/{hooks/useAxis → core/axes}/x-axis.js +4 -4
- package/dist/esm/{hooks/useAxis → core/axes}/y-axis.d.ts +2 -2
- package/dist/esm/{hooks/useAxis → core/axes}/y-axis.js +3 -3
- package/dist/esm/core/index.d.ts +10 -0
- package/dist/esm/core/index.js +10 -0
- package/dist/{cjs/utils/chart → esm/core/layout}/chart-dimensions.d.ts +3 -1
- package/dist/esm/{utils/chart → core/layout}/chart-dimensions.js +1 -1
- package/dist/esm/core/layout/index.d.ts +3 -0
- package/dist/esm/core/layout/index.js +3 -0
- package/dist/esm/{hooks/useSplit/index.d.ts → core/layout/split.d.ts} +1 -1
- package/dist/{cjs/hooks/useSplit/index.js → esm/core/layout/split.js} +1 -1
- package/dist/esm/core/scales/index.d.ts +4 -0
- package/dist/esm/core/scales/index.js +4 -0
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/utils.d.ts +3 -2
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/utils.js +2 -2
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/x-scale.d.ts +4 -2
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/x-scale.js +3 -3
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/y-scale.d.ts +3 -2
- package/dist/{cjs/hooks/useAxisScales → esm/core/scales}/y-scale.js +3 -3
- package/dist/esm/{hooks/useSeries → core/series}/constants.d.ts +1 -1
- package/dist/esm/core/series/index.d.ts +4 -0
- package/dist/esm/core/series/index.js +4 -0
- package/dist/esm/{hooks/useSeries → core/series}/prepare-area.d.ts +1 -1
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-area.js +2 -2
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-bar-x.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-bar-y.d.ts +3 -3
- package/dist/esm/{hooks/useSeries → core/series}/prepare-bar-y.js +3 -3
- package/dist/esm/{hooks/useSeries → core/series}/prepare-funnel.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-heatmap.js +2 -2
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-legend.d.ts +1 -1
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-legend.js +2 -2
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-line.d.ts +1 -1
- package/dist/esm/{hooks/useSeries → core/series}/prepare-line.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-options.js +1 -1
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-pie.js +2 -2
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-radar.d.ts +1 -1
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-radar.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-sankey.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-scatter.js +2 -2
- package/dist/esm/{hooks/useSeries → core/series}/prepare-treemap.js +2 -2
- package/dist/{cjs/hooks/useSeries → esm/core/series}/prepare-waterfall.js +2 -2
- package/dist/esm/core/series/types.d.ts +346 -0
- package/dist/esm/core/series/utils.d.ts +11 -0
- package/dist/esm/core/series/utils.js +37 -0
- package/dist/{cjs → esm/core}/types/chart/base.d.ts +19 -0
- package/dist/{cjs → esm/core}/types/chart/tooltip.d.ts +1 -1
- package/dist/esm/core/types/chart/zoom.js +1 -0
- package/dist/esm/core/types/formatter.d.ts +40 -0
- package/dist/esm/core/types/formatter.js +1 -0
- package/dist/esm/core/types/index.d.ts +96 -0
- package/dist/esm/core/types/index.js +24 -0
- package/dist/esm/core/types/misc.js +1 -0
- package/dist/{cjs/utils/chart → esm/core/utils}/common.js +2 -2
- package/dist/esm/{utils/chart → core/utils}/format.d.ts +1 -1
- package/dist/esm/{utils/chart → core/utils}/format.js +1 -1
- package/dist/esm/{utils/chart → core/utils}/get-closest-data.js +2 -2
- package/dist/{cjs/utils/chart → esm/core/utils}/get-hovered-plots.d.ts +2 -2
- package/dist/esm/{utils/chart → core/utils}/index.d.ts +4 -2
- package/dist/{cjs/utils/chart → esm/core/utils}/index.js +4 -2
- package/dist/esm/{utils/chart → core/utils}/series/line.d.ts +1 -1
- package/dist/{cjs/utils/chart → esm/core/utils}/series/sorting.js +2 -2
- package/dist/esm/{utils/chart → core/utils}/symbol.d.ts +1 -1
- package/dist/{cjs/utils/chart → esm/core/utils}/symbol.js +1 -1
- package/dist/esm/{utils/chart → core/utils}/text.js +1 -1
- package/dist/{cjs/utils/chart → esm/core/utils}/ticks/datetime.js +1 -1
- package/dist/esm/{utils/chart → core/utils}/tooltip.d.ts +1 -1
- package/dist/esm/core/utils/types.js +1 -0
- package/dist/{cjs → esm/core}/validation/index.js +1 -1
- package/dist/esm/{validation → core/validation}/validate-axes.js +1 -1
- package/dist/esm/core/zoom/index.d.ts +1 -0
- package/dist/esm/core/zoom/index.js +1 -0
- package/dist/esm/{utils/chart → core/zoom}/zoom.d.ts +3 -1
- package/dist/esm/{utils/chart → core/zoom}/zoom.js +1 -1
- package/dist/esm/hooks/index.d.ts +5 -5
- package/dist/esm/hooks/index.js +5 -5
- package/dist/esm/hooks/useAxis/index.d.ts +4 -4
- package/dist/esm/hooks/useAxis/index.js +3 -3
- package/dist/esm/hooks/useAxis/types.d.ts +1 -84
- package/dist/esm/hooks/useAxis/types.js +1 -1
- package/dist/esm/hooks/useAxisScales/index.d.ts +4 -4
- package/dist/esm/hooks/useAxisScales/index.js +6 -6
- package/dist/esm/hooks/useBrush/types.d.ts +1 -1
- package/dist/esm/hooks/useCrosshair/index.js +1 -1
- package/dist/esm/hooks/useCrosshair/useCrosshairHover.js +1 -1
- package/dist/esm/hooks/useRangeSlider/index.d.ts +1 -1
- package/dist/esm/hooks/useRangeSlider/index.js +2 -2
- package/dist/esm/hooks/useRangeSlider/types.d.ts +1 -1
- package/dist/esm/hooks/useRangeSlider/utils.d.ts +1 -1
- package/dist/esm/hooks/useRangeSlider/utils.js +1 -1
- package/dist/esm/hooks/useSeries/index.d.ts +1 -1
- package/dist/esm/hooks/useSeries/index.js +2 -2
- package/dist/esm/hooks/useSeries/types.d.ts +1 -346
- package/dist/esm/hooks/useSeries/types.js +1 -1
- package/dist/esm/hooks/useSeries/utils.d.ts +1 -11
- package/dist/esm/hooks/useSeries/utils.js +1 -37
- package/dist/esm/hooks/useShapes/area/index.js +2 -1
- package/dist/esm/hooks/useShapes/area/prepare-data.d.ts +2 -2
- package/dist/esm/hooks/useShapes/area/prepare-data.js +2 -2
- package/dist/esm/hooks/useShapes/bar-x/index.js +2 -1
- package/dist/esm/hooks/useShapes/bar-x/prepare-data.d.ts +2 -2
- package/dist/esm/hooks/useShapes/bar-x/prepare-data.js +2 -2
- package/dist/esm/hooks/useShapes/bar-y/prepare-data.d.ts +1 -1
- package/dist/esm/hooks/useShapes/bar-y/prepare-data.js +2 -2
- package/dist/esm/hooks/useShapes/funnel/index.js +2 -1
- package/dist/esm/hooks/useShapes/funnel/prepare-data.js +1 -1
- package/dist/esm/hooks/useShapes/funnel/types.d.ts +1 -1
- package/dist/esm/hooks/useShapes/heatmap/prepare-data.d.ts +1 -1
- package/dist/esm/hooks/useShapes/heatmap/prepare-data.js +1 -1
- package/dist/esm/hooks/useShapes/index.d.ts +3 -3
- package/dist/esm/hooks/useShapes/index.js +2 -2
- package/dist/esm/hooks/useShapes/line/index.js +2 -1
- package/dist/esm/hooks/useShapes/line/prepare-data.d.ts +2 -2
- package/dist/esm/hooks/useShapes/line/prepare-data.js +2 -2
- package/dist/esm/hooks/useShapes/line/types.d.ts +1 -1
- package/dist/esm/hooks/useShapes/marker.d.ts +1 -1
- package/dist/esm/hooks/useShapes/marker.js +3 -2
- package/dist/esm/hooks/useShapes/pie/index.js +2 -1
- package/dist/esm/hooks/useShapes/pie/prepare-data.js +3 -3
- package/dist/esm/hooks/useShapes/radar/prepare-data.js +2 -2
- package/dist/esm/hooks/useShapes/sankey/prepare-data.js +1 -1
- package/dist/esm/hooks/useShapes/scatter/prepare-data.d.ts +1 -1
- package/dist/esm/hooks/useShapes/scatter/prepare-data.js +1 -1
- package/dist/esm/hooks/useShapes/treemap/prepare-data.js +3 -3
- package/dist/esm/hooks/useShapes/utils.d.ts +1 -1
- package/dist/esm/hooks/useShapes/utils.js +1 -1
- package/dist/esm/hooks/useShapes/waterfall/index.js +3 -2
- package/dist/esm/hooks/useShapes/waterfall/prepare-data.d.ts +1 -1
- package/dist/esm/hooks/useShapes/waterfall/prepare-data.js +2 -2
- package/dist/esm/hooks/useZoom/index.d.ts +2 -2
- package/dist/esm/hooks/useZoom/utils.d.ts +2 -2
- package/dist/esm/hooks/useZoom/utils.js +1 -1
- package/dist/esm/hooks/utils/bar-y.d.ts +1 -1
- package/dist/esm/hooks/utils/bar-y.js +1 -1
- package/dist/esm/hooks/utils/get-band-size.js +1 -1
- package/dist/esm/index.d.ts +3 -2
- package/dist/esm/index.js +3 -2
- package/dist/esm/types/chart-ui.d.ts +1 -1
- package/dist/esm/types/index.d.ts +1 -96
- package/dist/esm/types/index.js +1 -24
- package/dist/esm/utils/chart-ui/pie-center-text.js +2 -2
- package/dist/esm/utils/index.d.ts +0 -3
- package/dist/esm/utils/index.js +0 -3
- package/package.json +2 -1
- package/dist/cjs/types/formatter.d.ts +0 -13
- package/dist/esm/types/formatter.d.ts +0 -13
- /package/dist/cjs/{hooks/useAxis → core/axes}/range-slider.d.ts +0 -0
- /package/dist/cjs/{hooks/useAxisScales → core/axes}/types.js +0 -0
- /package/dist/cjs/{hooks/useAxis → core/axes}/utils.d.ts +0 -0
- /package/dist/cjs/{hooks/useAxis → core/axes}/x-axis.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/axis.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/axis.js +0 -0
- /package/dist/cjs/{constants → core/constants}/chart-types.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/chart-types.js +0 -0
- /package/dist/cjs/{constants → core/constants}/datetime.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/datetime.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/axis.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/axis.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/brush.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/brush.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/data-labels.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/data-labels.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/index.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/index.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/legend.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/legend.js +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/series-options.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/defaults/series-options.js +0 -0
- /package/dist/cjs/{constants → core/constants}/index.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/index.js +0 -0
- /package/dist/cjs/{constants → core/constants}/layout-algorithms.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/layout-algorithms.js +0 -0
- /package/dist/cjs/{constants → core/constants}/line-styles.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/line-styles.js +0 -0
- /package/dist/cjs/{constants → core/constants}/misc.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/misc.js +0 -0
- /package/dist/cjs/{constants → core/constants}/palette.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/palette.js +0 -0
- /package/dist/cjs/{constants → core/constants}/symbol-types.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/symbol-types.js +0 -0
- /package/dist/cjs/{constants → core/constants}/tooltip.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/tooltip.js +0 -0
- /package/dist/cjs/{constants → core/constants}/typography.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/typography.js +0 -0
- /package/dist/cjs/{constants → core/constants}/zoom.d.ts +0 -0
- /package/dist/cjs/{constants → core/constants}/zoom.js +0 -0
- /package/dist/cjs/{i18n → core/i18n}/index.d.ts +0 -0
- /package/dist/cjs/{i18n → core/i18n}/index.js +0 -0
- /package/dist/cjs/{i18n → core/i18n}/keysets/en.json +0 -0
- /package/dist/cjs/{i18n → core/i18n}/keysets/ru.json +0 -0
- /package/dist/cjs/{hooks/useSplit/types.d.ts → core/layout/split-types.d.ts} +0 -0
- /package/dist/cjs/{hooks/useSplit/types.js → core/layout/split-types.js} +0 -0
- /package/dist/cjs/{hooks/useAxisScales → core/scales}/types.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/scales}/types.js +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/constants.js +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-bar-x.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-bar-y.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-funnel.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-heatmap.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-options.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-pie.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-sankey.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-scatter.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-treemap.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepare-waterfall.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepareSeries.d.ts +0 -0
- /package/dist/cjs/{hooks/useSeries → core/series}/prepareSeries.js +0 -0
- /package/dist/{esm/hooks/useAxisScales → cjs/core/series}/types.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/area.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/area.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/axis.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/axis.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/bar-x.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/bar-x.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/bar-y.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/bar-y.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/base.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/brush.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/brush.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/chart.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/chart.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/funnel.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/funnel.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/halo.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/halo.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/heatmap.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/heatmap.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/legend.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/legend.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/line.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/line.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/marker.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/marker.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/pie.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/pie.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/radar.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/radar.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/sankey.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/sankey.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/scatter.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/scatter.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/series.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/series.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/split.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/split.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/title.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/title.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/tooltip.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/treemap.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/treemap.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/waterfall.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/waterfall.js +0 -0
- /package/dist/cjs/{types → core/types}/chart/zoom.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/chart/zoom.js +0 -0
- /package/dist/cjs/{types → core/types}/formatter.js +0 -0
- /package/dist/cjs/{types → core/types}/misc.d.ts +0 -0
- /package/dist/cjs/{types → core/types}/misc.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/array.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/array.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis/common.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis/common.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis/x-axis.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis/x-axis.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis-generators/bottom.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis-generators/bottom.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis-generators/index.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/axis-generators/index.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/color.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/color.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/common.d.ts +0 -0
- /package/dist/cjs/{utils → core/utils}/dispatcher.d.ts +0 -0
- /package/dist/cjs/{utils → core/utils}/dispatcher.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/get-closest-data.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/get-hovered-plots.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/labels.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/labels.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/legend.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/legend.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/math.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/math.js +0 -0
- /package/dist/cjs/{utils → core/utils}/misc.d.ts +0 -0
- /package/dist/cjs/{utils → core/utils}/misc.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/index.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/index.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/line.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/sorting.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/waterfall.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series/waterfall.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series-type-guards.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/series-type-guards.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/text.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/ticks/datetime.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/ticks/index.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/ticks/index.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/time.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/time.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/tooltip.d.ts +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/tooltip.js +0 -0
- /package/dist/cjs/{utils/chart → core/utils}/types.d.ts +0 -0
- /package/dist/{esm/hooks/useSplit → cjs/core/utils}/types.js +0 -0
- /package/dist/cjs/{validation → core/validation}/index.d.ts +0 -0
- /package/dist/cjs/{validation → core/validation}/validate-axes.d.ts +0 -0
- /package/dist/esm/{hooks/useAxis → core/axes}/range-slider.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/axes}/types.js +0 -0
- /package/dist/esm/{hooks/useAxis → core/axes}/utils.d.ts +0 -0
- /package/dist/esm/{hooks/useAxis → core/axes}/x-axis.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/axis.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/axis.js +0 -0
- /package/dist/esm/{constants → core/constants}/chart-types.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/chart-types.js +0 -0
- /package/dist/esm/{constants → core/constants}/datetime.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/datetime.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/axis.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/axis.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/brush.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/brush.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/data-labels.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/data-labels.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/index.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/index.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/legend.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/legend.js +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/series-options.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/defaults/series-options.js +0 -0
- /package/dist/esm/{constants → core/constants}/index.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/index.js +0 -0
- /package/dist/esm/{constants → core/constants}/layout-algorithms.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/layout-algorithms.js +0 -0
- /package/dist/esm/{constants → core/constants}/line-styles.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/line-styles.js +0 -0
- /package/dist/esm/{constants → core/constants}/misc.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/misc.js +0 -0
- /package/dist/esm/{constants → core/constants}/palette.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/palette.js +0 -0
- /package/dist/esm/{constants → core/constants}/symbol-types.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/symbol-types.js +0 -0
- /package/dist/esm/{constants → core/constants}/tooltip.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/tooltip.js +0 -0
- /package/dist/esm/{constants → core/constants}/typography.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/typography.js +0 -0
- /package/dist/esm/{constants → core/constants}/zoom.d.ts +0 -0
- /package/dist/esm/{constants → core/constants}/zoom.js +0 -0
- /package/dist/esm/{i18n → core/i18n}/index.d.ts +0 -0
- /package/dist/esm/{i18n → core/i18n}/index.js +0 -0
- /package/dist/esm/{i18n → core/i18n}/keysets/en.json +0 -0
- /package/dist/esm/{i18n → core/i18n}/keysets/ru.json +0 -0
- /package/dist/esm/{hooks/useSplit/types.d.ts → core/layout/split-types.d.ts} +0 -0
- /package/dist/esm/{types/chart/area.js → core/layout/split-types.js} +0 -0
- /package/dist/esm/{hooks/useAxisScales → core/scales}/types.d.ts +0 -0
- /package/dist/esm/{types/chart/axis.js → core/scales/types.js} +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/constants.js +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-bar-x.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-funnel.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-heatmap.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-options.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-pie.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-sankey.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-scatter.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-treemap.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepare-waterfall.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepareSeries.d.ts +0 -0
- /package/dist/esm/{hooks/useSeries → core/series}/prepareSeries.js +0 -0
- /package/dist/esm/{types/chart/bar-x.js → core/series/types.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/area.d.ts +0 -0
- /package/dist/esm/{types/chart/bar-y.js → core/types/chart/area.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/axis.d.ts +0 -0
- /package/dist/esm/{types/chart/base.js → core/types/chart/axis.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/bar-x.d.ts +0 -0
- /package/dist/esm/{types/chart/brush.js → core/types/chart/bar-x.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/bar-y.d.ts +0 -0
- /package/dist/esm/{types/chart/chart.js → core/types/chart/bar-y.js} +0 -0
- /package/dist/esm/{types/chart/funnel.js → core/types/chart/base.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/brush.d.ts +0 -0
- /package/dist/esm/{types/chart/halo.js → core/types/chart/brush.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/chart.d.ts +0 -0
- /package/dist/esm/{types/chart/heatmap.js → core/types/chart/chart.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/funnel.d.ts +0 -0
- /package/dist/esm/{types/chart/legend.js → core/types/chart/funnel.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/halo.d.ts +0 -0
- /package/dist/esm/{types/chart/line.js → core/types/chart/halo.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/heatmap.d.ts +0 -0
- /package/dist/esm/{types/chart/marker.js → core/types/chart/heatmap.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/legend.d.ts +0 -0
- /package/dist/esm/{types/chart/pie.js → core/types/chart/legend.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/line.d.ts +0 -0
- /package/dist/esm/{types/chart/radar.js → core/types/chart/line.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/marker.d.ts +0 -0
- /package/dist/esm/{types/chart/sankey.js → core/types/chart/marker.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/pie.d.ts +0 -0
- /package/dist/esm/{types/chart/scatter.js → core/types/chart/pie.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/radar.d.ts +0 -0
- /package/dist/esm/{types/chart/series.js → core/types/chart/radar.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/sankey.d.ts +0 -0
- /package/dist/esm/{types/chart/split.js → core/types/chart/sankey.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/scatter.d.ts +0 -0
- /package/dist/esm/{types/chart/title.js → core/types/chart/scatter.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/series.d.ts +0 -0
- /package/dist/esm/{types/chart/tooltip.js → core/types/chart/series.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/split.d.ts +0 -0
- /package/dist/esm/{types/chart/treemap.js → core/types/chart/split.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/title.d.ts +0 -0
- /package/dist/esm/{types/chart/waterfall.js → core/types/chart/title.js} +0 -0
- /package/dist/esm/{types/chart/zoom.js → core/types/chart/tooltip.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/treemap.d.ts +0 -0
- /package/dist/esm/{types/formatter.js → core/types/chart/treemap.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/waterfall.d.ts +0 -0
- /package/dist/esm/{types/misc.js → core/types/chart/waterfall.js} +0 -0
- /package/dist/esm/{types → core/types}/chart/zoom.d.ts +0 -0
- /package/dist/esm/{types → core/types}/misc.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/array.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/array.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis/common.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis/common.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis/x-axis.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis/x-axis.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis-generators/bottom.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis-generators/bottom.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis-generators/index.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/axis-generators/index.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/color.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/color.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/common.d.ts +0 -0
- /package/dist/esm/{utils → core/utils}/dispatcher.d.ts +0 -0
- /package/dist/esm/{utils → core/utils}/dispatcher.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/get-closest-data.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/get-hovered-plots.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/labels.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/labels.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/legend.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/legend.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/math.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/math.js +0 -0
- /package/dist/esm/{utils → core/utils}/misc.d.ts +0 -0
- /package/dist/esm/{utils → core/utils}/misc.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/index.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/index.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/line.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/sorting.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/waterfall.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series/waterfall.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series-type-guards.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/series-type-guards.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/text.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/ticks/datetime.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/ticks/index.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/ticks/index.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/time.d.ts +0 -0
- /package/dist/esm/{utils/chart → core/utils}/time.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/tooltip.js +0 -0
- /package/dist/esm/{utils/chart → core/utils}/types.d.ts +0 -0
- /package/dist/esm/{validation → core/validation}/index.d.ts +0 -0
- /package/dist/esm/{validation → core/validation}/validate-axes.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { scaleOrdinal } from 'd3-scale';
|
|
2
2
|
import get from 'lodash/get';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getUniqId } from '../utils';
|
|
4
|
+
import { DEFAULT_DATALABELS_STYLE } from '../constants';
|
|
5
5
|
import { DEFAULT_DATALABELS_PADDING } from './constants';
|
|
6
6
|
import { prepareLegendSymbol } from './utils';
|
|
7
7
|
function prepareSeriesData(series) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { scaleOrdinal } from 'd3-scale';
|
|
2
2
|
import get from 'lodash/get';
|
|
3
3
|
import merge from 'lodash/merge';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { getUniqId } from '../utils';
|
|
5
|
+
import { DEFAULT_DATALABELS_STYLE } from '../constants';
|
|
6
6
|
import { DEFAULT_DATALABELS_PADDING, DEFAULT_HALO_OPTIONS, DEFAULT_POINT_MARKER_OPTIONS, } from './constants';
|
|
7
7
|
import { prepareLegendSymbol } from './utils';
|
|
8
8
|
export const DEFAULT_MARKER = Object.assign(Object.assign({}, DEFAULT_POINT_MARKER_OPTIONS), { enabled: true, radius: 2 });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getUniqId } from '../utils';
|
|
3
|
+
import { DEFAULT_DATALABELS_STYLE } from '../constants';
|
|
4
4
|
import { prepareLegendSymbol } from './utils';
|
|
5
5
|
export function prepareSankeySeries(args) {
|
|
6
6
|
const { colorScale, legend, series } = args;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
2
|
import merge from 'lodash/merge';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { getSymbolType, getUniqId } from '../utils';
|
|
4
|
+
import { seriesRangeSliderOptionsDefaults } from '../constants';
|
|
5
5
|
import { DEFAULT_HALO_OPTIONS, DEFAULT_POINT_MARKER_OPTIONS } from './constants';
|
|
6
6
|
import { prepareLegendSymbol } from './utils';
|
|
7
7
|
function prepareMarker(series, seriesOptions, index) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getUniqId } from '../utils';
|
|
3
|
+
import { DEFAULT_DATALABELS_STYLE, LayoutAlgorithm } from '../constants';
|
|
4
4
|
import { DEFAULT_DATALABELS_PADDING } from './constants';
|
|
5
5
|
import { prepareLegendSymbol } from './utils';
|
|
6
6
|
export function prepareTreemap(args) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import get from 'lodash/get';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { getUniqId } from '../utils';
|
|
3
|
+
import { DEFAULT_DATALABELS_STYLE } from '../constants';
|
|
4
4
|
import { DEFAULT_DATALABELS_PADDING } from './constants';
|
|
5
5
|
import { prepareLegendSymbol } from './utils';
|
|
6
6
|
function prepareSeriesData(series) {
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import type { AreaSeries, AreaSeriesData, BarXSeries, BarXSeriesData, BarYSeries, BarYSeriesData, BaseTextStyle, ChartLegend, ChartSeries, ChartSeriesRangeSliderOptions, ConnectorCurve, ConnectorShape, FunnelSeries, FunnelSeriesData, HeatmapSeries, HeatmapSeriesData, LineSeries, LineSeriesData, LineSeriesLineBaseStyle, PathLegendSymbolOptions, PieSeries, PieSeriesData, RadarSeries, RadarSeriesCategory, RadarSeriesData, RectLegendSymbolOptions, SankeySeries, SankeySeriesData, ScatterSeries, ScatterSeriesData, SymbolLegendSymbolOptions, TreemapSeries, TreemapSeriesData, ValueFormat, WaterfallSeries, WaterfallSeriesData } from '../../types';
|
|
2
|
+
import type { DashStyle, LayoutAlgorithm, LineCap, LineJoin, SeriesOptionsDefaults, SymbolType } from '../constants';
|
|
3
|
+
export type RectLegendSymbol = {
|
|
4
|
+
shape: 'rect';
|
|
5
|
+
} & Required<RectLegendSymbolOptions>;
|
|
6
|
+
export type PathLegendSymbol = {
|
|
7
|
+
shape: 'path';
|
|
8
|
+
strokeWidth: number;
|
|
9
|
+
} & Required<PathLegendSymbolOptions>;
|
|
10
|
+
export type SymbolLegendSymbol = {
|
|
11
|
+
shape: 'symbol';
|
|
12
|
+
symbolType: `${SymbolType}`;
|
|
13
|
+
} & Required<SymbolLegendSymbolOptions>;
|
|
14
|
+
export type PreparedLegendSymbol = (RectLegendSymbol | PathLegendSymbol | SymbolLegendSymbol) & {
|
|
15
|
+
bboxWidth: number;
|
|
16
|
+
};
|
|
17
|
+
export type PreparedLegend = Required<Omit<ChartLegend, 'title' | 'colorScale'>> & {
|
|
18
|
+
height: number;
|
|
19
|
+
lineHeight: number;
|
|
20
|
+
title: {
|
|
21
|
+
enable: boolean;
|
|
22
|
+
text: string;
|
|
23
|
+
margin: number;
|
|
24
|
+
style: BaseTextStyle;
|
|
25
|
+
height: number;
|
|
26
|
+
align: Required<Required<ChartLegend>['title']>['align'];
|
|
27
|
+
};
|
|
28
|
+
ticks: {
|
|
29
|
+
labelsMargin: number;
|
|
30
|
+
labelsLineHeight: number;
|
|
31
|
+
style: BaseTextStyle;
|
|
32
|
+
};
|
|
33
|
+
colorScale: {
|
|
34
|
+
colors: string[];
|
|
35
|
+
domain: number[];
|
|
36
|
+
stops: number[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type OnLegendItemClick = (data: {
|
|
40
|
+
id: string;
|
|
41
|
+
name: string;
|
|
42
|
+
metaKey: boolean;
|
|
43
|
+
}) => void;
|
|
44
|
+
export type LegendItem = {
|
|
45
|
+
id: string;
|
|
46
|
+
color: string;
|
|
47
|
+
height: number;
|
|
48
|
+
name: string;
|
|
49
|
+
text: string;
|
|
50
|
+
symbol: PreparedLegendSymbol;
|
|
51
|
+
textWidth: number;
|
|
52
|
+
dashStyle?: DashStyle;
|
|
53
|
+
overflowed?: boolean;
|
|
54
|
+
visible?: boolean;
|
|
55
|
+
};
|
|
56
|
+
export type PreparedHaloOptions = {
|
|
57
|
+
enabled: boolean;
|
|
58
|
+
opacity: number;
|
|
59
|
+
size: number;
|
|
60
|
+
};
|
|
61
|
+
type BasePreparedSeries = {
|
|
62
|
+
color: string;
|
|
63
|
+
name: string;
|
|
64
|
+
id: string;
|
|
65
|
+
visible: boolean;
|
|
66
|
+
legend: {
|
|
67
|
+
groupId: string;
|
|
68
|
+
itemText: string;
|
|
69
|
+
enabled: boolean;
|
|
70
|
+
symbol: PreparedLegendSymbol;
|
|
71
|
+
};
|
|
72
|
+
cursor: string | null;
|
|
73
|
+
tooltip: ChartSeries['tooltip'];
|
|
74
|
+
};
|
|
75
|
+
type BasePreparedAxisRelatedSeries = {
|
|
76
|
+
rangeSlider: Required<ChartSeriesRangeSliderOptions> & Partial<LineSeriesLineBaseStyle>;
|
|
77
|
+
};
|
|
78
|
+
export type PreparedScatterSeries = {
|
|
79
|
+
type: ScatterSeries['type'];
|
|
80
|
+
data: ScatterSeriesData[];
|
|
81
|
+
marker: {
|
|
82
|
+
states: {
|
|
83
|
+
normal: {
|
|
84
|
+
symbol: `${SymbolType}`;
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
radius: number;
|
|
87
|
+
borderWidth: number;
|
|
88
|
+
borderColor: string;
|
|
89
|
+
};
|
|
90
|
+
hover: {
|
|
91
|
+
enabled: boolean;
|
|
92
|
+
radius: number;
|
|
93
|
+
borderWidth: number;
|
|
94
|
+
borderColor: string;
|
|
95
|
+
halo: PreparedHaloOptions;
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
yAxis: number;
|
|
100
|
+
} & BasePreparedSeries & BasePreparedAxisRelatedSeries;
|
|
101
|
+
export type PreparedBarXSeries = {
|
|
102
|
+
type: BarXSeries['type'];
|
|
103
|
+
data: BarXSeriesData[];
|
|
104
|
+
stackId: string;
|
|
105
|
+
stacking: BarXSeries['stacking'];
|
|
106
|
+
dataLabels: {
|
|
107
|
+
enabled: boolean;
|
|
108
|
+
inside: boolean;
|
|
109
|
+
style: BaseTextStyle;
|
|
110
|
+
allowOverlap: boolean;
|
|
111
|
+
padding: number;
|
|
112
|
+
html: boolean;
|
|
113
|
+
format?: ValueFormat;
|
|
114
|
+
};
|
|
115
|
+
borderRadius: number;
|
|
116
|
+
yAxis: number;
|
|
117
|
+
} & BasePreparedSeries & BasePreparedAxisRelatedSeries;
|
|
118
|
+
export type PreparedBarYSeries = {
|
|
119
|
+
type: BarYSeries['type'];
|
|
120
|
+
data: BarYSeriesData[];
|
|
121
|
+
stackId: string;
|
|
122
|
+
stacking: BarYSeries['stacking'];
|
|
123
|
+
dataLabels: {
|
|
124
|
+
padding: number;
|
|
125
|
+
enabled: boolean;
|
|
126
|
+
inside: boolean;
|
|
127
|
+
style: BaseTextStyle;
|
|
128
|
+
maxHeight: number;
|
|
129
|
+
maxWidth: number;
|
|
130
|
+
html: boolean;
|
|
131
|
+
format?: ValueFormat;
|
|
132
|
+
allowOverlap: boolean;
|
|
133
|
+
};
|
|
134
|
+
borderRadius: number;
|
|
135
|
+
borderWidth: number;
|
|
136
|
+
borderColor: string;
|
|
137
|
+
} & BasePreparedSeries;
|
|
138
|
+
export type PreparedHeatmapSeries = {
|
|
139
|
+
type: HeatmapSeries['type'];
|
|
140
|
+
data: HeatmapSeriesData[];
|
|
141
|
+
dataLabels: {
|
|
142
|
+
enabled: boolean;
|
|
143
|
+
style: BaseTextStyle;
|
|
144
|
+
html: boolean;
|
|
145
|
+
format?: ValueFormat;
|
|
146
|
+
};
|
|
147
|
+
borderWidth: number;
|
|
148
|
+
borderColor: string;
|
|
149
|
+
} & BasePreparedSeries;
|
|
150
|
+
export type PreparedPieSeries = {
|
|
151
|
+
type: PieSeries['type'];
|
|
152
|
+
data: PieSeriesData;
|
|
153
|
+
value: PieSeriesData['value'];
|
|
154
|
+
borderColor: string;
|
|
155
|
+
borderWidth: number;
|
|
156
|
+
borderRadius: number;
|
|
157
|
+
center?: [string | number | null, string | number | null];
|
|
158
|
+
radius?: string | number;
|
|
159
|
+
innerRadius?: string | number;
|
|
160
|
+
minRadius?: string | number;
|
|
161
|
+
stackId: string;
|
|
162
|
+
label?: PieSeriesData['label'];
|
|
163
|
+
dataLabels: {
|
|
164
|
+
enabled: boolean;
|
|
165
|
+
padding: number;
|
|
166
|
+
style: BaseTextStyle;
|
|
167
|
+
allowOverlap: boolean;
|
|
168
|
+
connectorPadding: number;
|
|
169
|
+
connectorShape: ConnectorShape;
|
|
170
|
+
distance: number;
|
|
171
|
+
connectorCurve: ConnectorCurve;
|
|
172
|
+
html: boolean;
|
|
173
|
+
format?: ValueFormat;
|
|
174
|
+
};
|
|
175
|
+
states: {
|
|
176
|
+
hover: {
|
|
177
|
+
halo: PreparedHaloOptions;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
renderCustomShape?: PieSeries['renderCustomShape'];
|
|
181
|
+
opacity: number | null;
|
|
182
|
+
} & BasePreparedSeries;
|
|
183
|
+
export type PreparedLineSeries = {
|
|
184
|
+
type: LineSeries['type'];
|
|
185
|
+
data: LineSeriesData[];
|
|
186
|
+
lineWidth: number;
|
|
187
|
+
dataLabels: {
|
|
188
|
+
enabled: boolean;
|
|
189
|
+
style: BaseTextStyle;
|
|
190
|
+
padding: number;
|
|
191
|
+
allowOverlap: boolean;
|
|
192
|
+
html: boolean;
|
|
193
|
+
format?: ValueFormat;
|
|
194
|
+
};
|
|
195
|
+
marker: {
|
|
196
|
+
states: {
|
|
197
|
+
normal: {
|
|
198
|
+
symbol: `${SymbolType}`;
|
|
199
|
+
enabled: boolean;
|
|
200
|
+
radius: number;
|
|
201
|
+
borderWidth: number;
|
|
202
|
+
borderColor: string;
|
|
203
|
+
};
|
|
204
|
+
hover: {
|
|
205
|
+
enabled: boolean;
|
|
206
|
+
radius: number;
|
|
207
|
+
borderWidth: number;
|
|
208
|
+
borderColor: string;
|
|
209
|
+
halo: PreparedHaloOptions;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
};
|
|
213
|
+
dashStyle: DashStyle;
|
|
214
|
+
linecap: LineCap;
|
|
215
|
+
linejoin: LineJoin;
|
|
216
|
+
opacity: number | null;
|
|
217
|
+
yAxis: number;
|
|
218
|
+
} & BasePreparedSeries & BasePreparedAxisRelatedSeries;
|
|
219
|
+
export type PreparedAreaSeries = {
|
|
220
|
+
type: AreaSeries['type'];
|
|
221
|
+
data: AreaSeriesData[];
|
|
222
|
+
stacking: AreaSeries['stacking'];
|
|
223
|
+
stackId: string;
|
|
224
|
+
lineWidth: number;
|
|
225
|
+
opacity: number;
|
|
226
|
+
nullMode: AreaSeries['nullMode'];
|
|
227
|
+
dataLabels: {
|
|
228
|
+
enabled: boolean;
|
|
229
|
+
style: BaseTextStyle;
|
|
230
|
+
padding: number;
|
|
231
|
+
allowOverlap: boolean;
|
|
232
|
+
html: boolean;
|
|
233
|
+
format?: ValueFormat;
|
|
234
|
+
};
|
|
235
|
+
marker: {
|
|
236
|
+
states: {
|
|
237
|
+
normal: {
|
|
238
|
+
symbol: `${SymbolType}`;
|
|
239
|
+
enabled: boolean;
|
|
240
|
+
radius: number;
|
|
241
|
+
borderWidth: number;
|
|
242
|
+
borderColor: string;
|
|
243
|
+
};
|
|
244
|
+
hover: {
|
|
245
|
+
enabled: boolean;
|
|
246
|
+
radius: number;
|
|
247
|
+
borderWidth: number;
|
|
248
|
+
borderColor: string;
|
|
249
|
+
halo: PreparedHaloOptions;
|
|
250
|
+
};
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
yAxis: number;
|
|
254
|
+
} & BasePreparedSeries & BasePreparedAxisRelatedSeries;
|
|
255
|
+
export type PreparedTreemapSeries = {
|
|
256
|
+
type: TreemapSeries['type'];
|
|
257
|
+
data: TreemapSeriesData[];
|
|
258
|
+
dataLabels: {
|
|
259
|
+
enabled: boolean;
|
|
260
|
+
style: BaseTextStyle;
|
|
261
|
+
padding: number;
|
|
262
|
+
allowOverlap: boolean;
|
|
263
|
+
html: boolean;
|
|
264
|
+
align: Required<Required<TreemapSeries>['dataLabels']>['align'];
|
|
265
|
+
format?: ValueFormat;
|
|
266
|
+
};
|
|
267
|
+
layoutAlgorithm: `${LayoutAlgorithm}`;
|
|
268
|
+
sorting: Required<TreemapSeries['sorting']>;
|
|
269
|
+
} & BasePreparedSeries & Required<Omit<TreemapSeries, keyof BasePreparedSeries>>;
|
|
270
|
+
export type PreparedWaterfallSeriesData = WaterfallSeriesData & {
|
|
271
|
+
index: number;
|
|
272
|
+
};
|
|
273
|
+
export type PreparedWaterfallSeries = {
|
|
274
|
+
type: WaterfallSeries['type'];
|
|
275
|
+
data: PreparedWaterfallSeriesData[];
|
|
276
|
+
dataLabels: {
|
|
277
|
+
enabled: boolean;
|
|
278
|
+
style: BaseTextStyle;
|
|
279
|
+
allowOverlap: boolean;
|
|
280
|
+
padding: number;
|
|
281
|
+
html: boolean;
|
|
282
|
+
format?: ValueFormat;
|
|
283
|
+
};
|
|
284
|
+
} & BasePreparedSeries;
|
|
285
|
+
export type PreparedSankeySeries = {
|
|
286
|
+
type: SankeySeries['type'];
|
|
287
|
+
data: SankeySeriesData[];
|
|
288
|
+
dataLabels: {
|
|
289
|
+
enabled: boolean;
|
|
290
|
+
style: BaseTextStyle;
|
|
291
|
+
format?: ValueFormat;
|
|
292
|
+
};
|
|
293
|
+
} & BasePreparedSeries & Omit<SankeySeries, keyof BasePreparedSeries>;
|
|
294
|
+
export type PreparedRadarSeries = {
|
|
295
|
+
type: RadarSeries['type'];
|
|
296
|
+
data: RadarSeriesData[];
|
|
297
|
+
categories: RadarSeriesCategory[];
|
|
298
|
+
borderColor: string;
|
|
299
|
+
borderWidth: number;
|
|
300
|
+
fillOpacity: number;
|
|
301
|
+
dataLabels: {
|
|
302
|
+
enabled: boolean;
|
|
303
|
+
style: BaseTextStyle;
|
|
304
|
+
padding: number;
|
|
305
|
+
allowOverlap: boolean;
|
|
306
|
+
html: boolean;
|
|
307
|
+
format?: ValueFormat;
|
|
308
|
+
};
|
|
309
|
+
marker: {
|
|
310
|
+
states: {
|
|
311
|
+
normal: {
|
|
312
|
+
symbol: `${SymbolType}`;
|
|
313
|
+
enabled: boolean;
|
|
314
|
+
radius: number;
|
|
315
|
+
borderWidth: number;
|
|
316
|
+
borderColor: string;
|
|
317
|
+
};
|
|
318
|
+
hover: {
|
|
319
|
+
enabled: boolean;
|
|
320
|
+
radius: number;
|
|
321
|
+
borderWidth: number;
|
|
322
|
+
borderColor: string;
|
|
323
|
+
halo: PreparedHaloOptions;
|
|
324
|
+
};
|
|
325
|
+
};
|
|
326
|
+
};
|
|
327
|
+
} & BasePreparedSeries;
|
|
328
|
+
export type PreparedFunnelSeries = {
|
|
329
|
+
type: FunnelSeries['type'];
|
|
330
|
+
data: FunnelSeriesData;
|
|
331
|
+
dataLabels: {
|
|
332
|
+
enabled: boolean;
|
|
333
|
+
style: BaseTextStyle;
|
|
334
|
+
html: boolean;
|
|
335
|
+
format?: ValueFormat;
|
|
336
|
+
align: Required<Required<FunnelSeries>['dataLabels']>['align'];
|
|
337
|
+
};
|
|
338
|
+
connectors: Required<FunnelSeries['connectors']>;
|
|
339
|
+
} & BasePreparedSeries;
|
|
340
|
+
export type PreparedSeries = PreparedScatterSeries | PreparedBarXSeries | PreparedBarYSeries | PreparedPieSeries | PreparedLineSeries | PreparedAreaSeries | PreparedTreemapSeries | PreparedWaterfallSeries | PreparedSankeySeries | PreparedRadarSeries | PreparedHeatmapSeries | PreparedFunnelSeries;
|
|
341
|
+
export type PreparedZoomableSeries = Extract<PreparedSeries, {
|
|
342
|
+
data: Array<unknown>;
|
|
343
|
+
}>;
|
|
344
|
+
export type PreparedSeriesOptions = SeriesOptionsDefaults;
|
|
345
|
+
export type StackedSeries = BarXSeries | AreaSeries | BarYSeries;
|
|
346
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { RectLegendSymbolOptions } from '../../types';
|
|
2
|
+
import { SymbolType } from '../constants';
|
|
3
|
+
import type { PathLegendSymbol, PreparedLegendSymbol, PreparedSeries, StackedSeries } from './types';
|
|
4
|
+
export declare const getActiveLegendItems: (series: PreparedSeries[]) => string[];
|
|
5
|
+
export declare const getAllLegendItems: (series: PreparedSeries[]) => string[];
|
|
6
|
+
export declare function prepareLegendSymbol(series: {
|
|
7
|
+
legend?: {
|
|
8
|
+
symbol?: RectLegendSymbolOptions | PathLegendSymbol;
|
|
9
|
+
};
|
|
10
|
+
}, symbolType?: `${SymbolType}`): PreparedLegendSymbol;
|
|
11
|
+
export declare function getSeriesStackId(series: StackedSeries): string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import memoize from 'lodash/memoize';
|
|
2
|
+
import { getSymbolBBoxWidth } from '../utils';
|
|
3
|
+
import { SymbolType } from '../constants';
|
|
4
|
+
import { getUniqId } from '../utils/misc';
|
|
5
|
+
import { DEFAULT_LEGEND_SYMBOL_PADDING, DEFAULT_LEGEND_SYMBOL_SIZE } from './constants';
|
|
6
|
+
export const getActiveLegendItems = (series) => {
|
|
7
|
+
return series.reduce((acc, s) => {
|
|
8
|
+
if (s.legend.enabled && s.visible) {
|
|
9
|
+
acc.push(s.legend.groupId);
|
|
10
|
+
}
|
|
11
|
+
return acc;
|
|
12
|
+
}, []);
|
|
13
|
+
};
|
|
14
|
+
export const getAllLegendItems = (series) => {
|
|
15
|
+
return series.map((s) => s.legend.groupId);
|
|
16
|
+
};
|
|
17
|
+
export function prepareLegendSymbol(series, symbolType) {
|
|
18
|
+
var _a;
|
|
19
|
+
const symbolOptions = ((_a = series.legend) === null || _a === void 0 ? void 0 : _a.symbol) || {};
|
|
20
|
+
const width = (symbolOptions === null || symbolOptions === void 0 ? void 0 : symbolOptions.width) || DEFAULT_LEGEND_SYMBOL_SIZE;
|
|
21
|
+
const type = symbolType || SymbolType.Circle;
|
|
22
|
+
return {
|
|
23
|
+
shape: 'symbol',
|
|
24
|
+
symbolType: type,
|
|
25
|
+
width,
|
|
26
|
+
bboxWidth: getSymbolBBoxWidth({ symbolSize: Math.pow(width, 2), symbolType: type }),
|
|
27
|
+
padding: (symbolOptions === null || symbolOptions === void 0 ? void 0 : symbolOptions.padding) || DEFAULT_LEGEND_SYMBOL_PADDING,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
const getCommonStackId = memoize(getUniqId);
|
|
31
|
+
export function getSeriesStackId(series) {
|
|
32
|
+
let stackId = series.stackId;
|
|
33
|
+
if (!stackId) {
|
|
34
|
+
stackId = series.stacking ? getCommonStackId() : getUniqId();
|
|
35
|
+
}
|
|
36
|
+
return stackId;
|
|
37
|
+
}
|
|
@@ -15,6 +15,25 @@ export type CustomFormat = {
|
|
|
15
15
|
formattedValue?: string;
|
|
16
16
|
}) => string;
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* Specifies how a value should be formatted for display.
|
|
20
|
+
*
|
|
21
|
+
* - `{ type: 'number' }` — numeric formatting with optional precision, units, percent display, etc.
|
|
22
|
+
* See [FormatNumberOptions](https://gravity-ui.github.io/charts/pages/api/Utilities/interfaces/FormatNumberOptions.html) for all available options.
|
|
23
|
+
* - `{ type: 'date' }` — date/time formatting
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* // Two decimal places, shown as percent
|
|
27
|
+
* { type: 'number', precision: 2, format: 'percent' }
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* // Compact thousands: 1 500 000 → "1.5M"
|
|
31
|
+
* { type: 'number', unit: 'auto', precision: 1 }
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // Date value (Unix ms) formatted as "17 October 2025"
|
|
35
|
+
* { type: 'date', format: 'DD MMMM YYYY' }
|
|
36
|
+
*/
|
|
18
37
|
export type ValueFormat = NumberFormat | DateFormat;
|
|
19
38
|
export interface BaseDataLabels {
|
|
20
39
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TOOLTIP_TOTALS_BUILT_IN_AGGREGATION } from '../../constants';
|
|
2
|
-
import type { DateTimeLabelFormats } from '../../utils/
|
|
2
|
+
import type { DateTimeLabelFormats } from '../../utils/time';
|
|
3
3
|
import type { MeaningfulAny } from '../misc';
|
|
4
4
|
import type { AreaSeries, AreaSeriesData } from './area';
|
|
5
5
|
import type { AxisPlotBand, AxisPlotLine, ChartXAxis, ChartYAxis } from './axis';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export interface FormatOptions {
|
|
2
|
+
/**
|
|
3
|
+
* Number of decimal places to display.
|
|
4
|
+
* Use `'auto'` to determine precision automatically based on the value magnitude.
|
|
5
|
+
*/
|
|
6
|
+
precision?: number | 'auto';
|
|
7
|
+
/** When `true`, inserts a thousands separator (e.g. `1 500 000`). */
|
|
8
|
+
showRankDelimiter?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* BCP 47 language tag used for locale-aware formatting (e.g. `'en'`, `'ru'`).
|
|
11
|
+
* Defaults to the application locale when omitted.
|
|
12
|
+
*/
|
|
13
|
+
lang?: string;
|
|
14
|
+
/** Internal rendering hint for axis label layout. Not intended for public use. */
|
|
15
|
+
labelMode?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface FormatNumberOptions extends FormatOptions {
|
|
18
|
+
/**
|
|
19
|
+
* Display mode for the numeric value.
|
|
20
|
+
* - `'number'` — plain number (default).
|
|
21
|
+
* - `'percent'` — value is multiplied by 100 and rendered with a `%` suffix.
|
|
22
|
+
*/
|
|
23
|
+
format?: 'number' | 'percent';
|
|
24
|
+
/** Factor applied to the value before formatting. For example, `multiplier: 1000` converts seconds to milliseconds. */
|
|
25
|
+
multiplier?: number;
|
|
26
|
+
/** String prepended to the formatted value (e.g. `'$'`). */
|
|
27
|
+
prefix?: string;
|
|
28
|
+
/** String appended to the formatted value (e.g. `' USD'`). */
|
|
29
|
+
postfix?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Compact unit suffix applied to large numbers.
|
|
32
|
+
* - `'auto'` — picks the most appropriate unit automatically (`k`, `m`, `b`, `t`).
|
|
33
|
+
* - `'k'` — thousands (÷ 1 000).
|
|
34
|
+
* - `'m'` — millions (÷ 1 000 000).
|
|
35
|
+
* - `'b'` — billions (÷ 1 000 000 000).
|
|
36
|
+
* - `'t'` — trillions (÷ 1 000 000 000 000).
|
|
37
|
+
* - `null` — no unit suffix.
|
|
38
|
+
*/
|
|
39
|
+
unit?: 'auto' | 'k' | 'm' | 'b' | 't' | null;
|
|
40
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { ChartXAxis, ChartYAxis } from './chart/axis';
|
|
2
|
+
import type { ChartOptions } from './chart/chart';
|
|
3
|
+
import type { ChartLegend } from './chart/legend';
|
|
4
|
+
import type { ChartSeries, ChartSeriesOptions } from './chart/series';
|
|
5
|
+
import type { ChartSplit } from './chart/split';
|
|
6
|
+
import type { ChartTitle } from './chart/title';
|
|
7
|
+
import type { ChartTooltip } from './chart/tooltip';
|
|
8
|
+
import type { MeaningfulAny } from './misc';
|
|
9
|
+
export * from './misc';
|
|
10
|
+
export * from './chart/axis';
|
|
11
|
+
export * from './chart/base';
|
|
12
|
+
export * from './chart/chart';
|
|
13
|
+
export * from './chart/legend';
|
|
14
|
+
export * from './chart/pie';
|
|
15
|
+
export * from './chart/scatter';
|
|
16
|
+
export * from './chart/bar-x';
|
|
17
|
+
export * from './chart/bar-y';
|
|
18
|
+
export * from './chart/area';
|
|
19
|
+
export * from './chart/line';
|
|
20
|
+
export * from './chart/series';
|
|
21
|
+
export * from './chart/split';
|
|
22
|
+
export * from './chart/title';
|
|
23
|
+
export * from './chart/tooltip';
|
|
24
|
+
export * from './chart/zoom';
|
|
25
|
+
export * from './chart/halo';
|
|
26
|
+
export * from './chart/treemap';
|
|
27
|
+
export * from './chart/waterfall';
|
|
28
|
+
export * from './chart/sankey';
|
|
29
|
+
export * from './chart/radar';
|
|
30
|
+
export * from './chart/heatmap';
|
|
31
|
+
export * from './chart/funnel';
|
|
32
|
+
export * from './chart/brush';
|
|
33
|
+
export interface ChartData<T = MeaningfulAny> {
|
|
34
|
+
/**
|
|
35
|
+
* General options for the chart.
|
|
36
|
+
*/
|
|
37
|
+
chart?: ChartOptions;
|
|
38
|
+
/**
|
|
39
|
+
* The color list of palette.
|
|
40
|
+
* If no color is set in series, the colors would be adopted sequentially and circularly from this list as the colors of series.
|
|
41
|
+
* @default ['#4DA2F1', '#FF3D64', '#8AD554', '#FFC636', '#FFB9DD', '#84D1EE', '#FF91A1', '#54A520', '#DB9100', '#BA74B3', '#1F68A9', '#ED65A9', '#0FA08D', '#FF7E00', '#E8B0A4', '#52A6C5', '#BE2443', '#70C1AF', '#FFB46C', '#DCA3D7']
|
|
42
|
+
*/
|
|
43
|
+
colors?: string[];
|
|
44
|
+
/**
|
|
45
|
+
* Default state applied on first render.
|
|
46
|
+
*/
|
|
47
|
+
defaultState?: {
|
|
48
|
+
/**
|
|
49
|
+
* Position within the plot area to trigger hover on first render.
|
|
50
|
+
* Values can be absolute pixels (`number` or `"100px"`) or percentages (`"50%"`).
|
|
51
|
+
*/
|
|
52
|
+
hoveredPosition?: {
|
|
53
|
+
x: number | string;
|
|
54
|
+
y: number | string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* The legend displays a labeled box for each data element in the chart.
|
|
59
|
+
* It shows a distinctive symbol paired with a name for every series.
|
|
60
|
+
*/
|
|
61
|
+
legend?: ChartLegend;
|
|
62
|
+
/**
|
|
63
|
+
* Represents the series data and series options.
|
|
64
|
+
*/
|
|
65
|
+
series: {
|
|
66
|
+
/**
|
|
67
|
+
* Contains data points to be plotted.
|
|
68
|
+
*/
|
|
69
|
+
data: ChartSeries<T>[];
|
|
70
|
+
/**
|
|
71
|
+
* Allows for customizing the appearance and behavior of the series.
|
|
72
|
+
*/
|
|
73
|
+
options?: ChartSeriesOptions;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Setting for displaying charts on different plots.
|
|
77
|
+
* It can be used to visualize related information on multiple charts.
|
|
78
|
+
*/
|
|
79
|
+
split?: ChartSplit;
|
|
80
|
+
/**
|
|
81
|
+
* The main title of the chart.
|
|
82
|
+
*/
|
|
83
|
+
title?: ChartTitle;
|
|
84
|
+
/**
|
|
85
|
+
* Options for the tooltip that appears when the user hovers over a series or point.
|
|
86
|
+
*/
|
|
87
|
+
tooltip?: ChartTooltip<T>;
|
|
88
|
+
/**
|
|
89
|
+
* Options for the the X axis.
|
|
90
|
+
*/
|
|
91
|
+
xAxis?: ChartXAxis;
|
|
92
|
+
/**
|
|
93
|
+
* Options for the the Y axis or multiple Y axes.
|
|
94
|
+
*/
|
|
95
|
+
yAxis?: ChartYAxis[];
|
|
96
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from './misc';
|
|
2
|
+
export * from './chart/axis';
|
|
3
|
+
export * from './chart/base';
|
|
4
|
+
export * from './chart/chart';
|
|
5
|
+
export * from './chart/legend';
|
|
6
|
+
export * from './chart/pie';
|
|
7
|
+
export * from './chart/scatter';
|
|
8
|
+
export * from './chart/bar-x';
|
|
9
|
+
export * from './chart/bar-y';
|
|
10
|
+
export * from './chart/area';
|
|
11
|
+
export * from './chart/line';
|
|
12
|
+
export * from './chart/series';
|
|
13
|
+
export * from './chart/split';
|
|
14
|
+
export * from './chart/title';
|
|
15
|
+
export * from './chart/tooltip';
|
|
16
|
+
export * from './chart/zoom';
|
|
17
|
+
export * from './chart/halo';
|
|
18
|
+
export * from './chart/treemap';
|
|
19
|
+
export * from './chart/waterfall';
|
|
20
|
+
export * from './chart/sankey';
|
|
21
|
+
export * from './chart/radar';
|
|
22
|
+
export * from './chart/heatmap';
|
|
23
|
+
export * from './chart/funnel';
|
|
24
|
+
export * from './chart/brush';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|