@mui/x-charts
Version:
The community edition of MUI X Charts components.
23 lines • 1.6 kB
TypeScript
import { type AxisId, type ChartsXAxisProps, type ChartsYAxisProps } from "../models/axis.js";
import { type MaskData, type ProcessedBarData, type ProcessedBarSeriesData } from "./types.js";
import { type ComputedAxisConfig } from "../internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.types.js";
import { type ChartDrawingArea } from "../hooks/useDrawingArea.js";
import type { ChartSeriesDefaultized } from "../models/seriesType/config.js";
import type { StackingGroupsType } from "../internals/stacking/index.js";
import { type SeriesId } from "../models/seriesType/index.js";
export declare function useBarPlotData(drawingArea: ChartDrawingArea, xAxes: ComputedAxisConfig<ChartsXAxisProps>, yAxes: ComputedAxisConfig<ChartsYAxisProps>): {
completedData: ProcessedBarSeriesData[];
masksData: MaskData[];
};
export declare function processBarDataForPlot(drawingArea: ChartDrawingArea, chartId: string | undefined, stackingGroups: StackingGroupsType, series: Record<SeriesId, ChartSeriesDefaultized<'bar'>>, xAxes: ComputedAxisConfig<ChartsXAxisProps>, yAxes: ComputedAxisConfig<ChartsYAxisProps>, defaultXAxisId: AxisId, defaultYAxisId: AxisId): {
completedData: {
seriesId: SeriesId;
barLabel: "value" | ((item: import("@mui/x-charts/BarChart").BarItem, context: import("@mui/x-charts/BarChart").BarLabelContext) => string | null | undefined) | undefined;
barLabelPlacement: "center" | "outside" | undefined;
data: ProcessedBarData[];
layout: "horizontal" | "vertical";
xOrigin: number;
yOrigin: number;
}[];
masksData: MaskData[];
};