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