@lobehub/charts
Version:
React modern charts components built on recharts
11 lines (10 loc) • 467 B
TypeScript
import { ValueFormatter } from "../types/charts";
export declare const getTextWidth: (text: string) => number;
export declare const getMaxLabelLength: ({ data, valueFormatter, index, layout, margin, isScatterChart, }: {
data: Array<Record<string, any>>;
index: string;
isScatterChart?: boolean | undefined;
layout?: "horizontal" | "vertical" | undefined;
margin?: number | undefined;
valueFormatter?: ValueFormatter | undefined;
}) => number;