@mui/x-charts
Version:
The community edition of MUI X Charts components.
4 lines • 425 B
TypeScript
import { type ChartDrawingArea } from "../hooks/index.js";
import { type TickItemType } from "../hooks/useTicks.js";
import { type ChartsYAxisProps } from "../models/index.js";
export declare function shortenLabels(visibleLabels: TickItemType[], drawingArea: Pick<ChartDrawingArea, 'top' | 'height' | 'bottom'>, maxWidth: number, isRtl: boolean, tickLabelStyle: ChartsYAxisProps['tickLabelStyle']): Map<TickItemType, string>;