@mui/x-charts
Version:
The community edition of MUI X Charts components.
30 lines • 1.02 kB
text/typescript
import { type AnimationData } from "../types.mjs";
import type { SeriesId } from "../../models/seriesType/common.mjs";
import { type BarSeriesType, type BarValueType } from "../../models/seriesType/bar.mjs";
import { type BarLabelFunction } from "./BarLabel.types.mjs";
interface BarLabelPlotProps {
processedSeries: ProcessedBarLabelSeriesData;
className: string;
skipAnimation?: boolean;
}
export interface ProcessedBarLabelSeriesData {
seriesId: SeriesId;
data: ProcessedBarLabelData[];
barLabel?: 'value' | BarLabelFunction;
barLabelPlacement?: BarSeriesType['barLabelPlacement'];
layout?: 'vertical' | 'horizontal';
xOrigin: number;
yOrigin: number;
}
export interface ProcessedBarLabelData extends AnimationData {
seriesId: SeriesId;
dataIndex: number;
color: string;
value: BarValueType | null;
hidden: boolean;
}
/**
* @ignore - internal component.
*/
declare function BarLabelPlot(props: BarLabelPlotProps): import("react/jsx-runtime").JSX.Element | null;
export { BarLabelPlot };