UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

32 lines 1.14 kB
import { type AnimationData } from "../types.js"; import { type BarLabelItemProps } from "./BarLabelItem.js"; import type { SeriesId } from "../../models/seriesType/common.js"; import { type BarSeriesType, type BarValueType } from "../../models/seriesType/bar.js"; import { type BarLabelFunction } from "./BarLabel.types.js"; interface BarLabelPlotProps { processedSeries: ProcessedBarLabelSeriesData; className: string; skipAnimation?: boolean; barLabel?: BarLabelItemProps<BarValueType | null>['barLabel']; } 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 };