@mui/x-charts
Version:
The community edition of the Charts components (MUI X).
4 lines (3 loc) • 420 B
TypeScript
import { ChartsTextStyle } from '../ChartsText';
import { GetItemSpaceType, LegendItemParams, LegendItemWithPosition } from './chartsLegend.types';
export declare function legendItemPlacements(itemsToDisplay: LegendItemParams[], getItemSpace: GetItemSpaceType, labelStyle: ChartsTextStyle, direction: string, availableWidth: number, availableHeight: number, itemGap: number): [LegendItemWithPosition[], number, number];