@mui/x-charts
Version:
The community edition of the Charts components (MUI X).
8 lines (7 loc) • 393 B
TypeScript
/**
* Helper that converts values and percentages into values.
* @param value The value provided by the developer. Can either be a number or a string with '%' or 'px'.
* @param refValue The numerical value associated to 100%.
* @returns The numerical value associated to the provided value.
*/
export declare function getPercentageValue(value: number | string, refValue: number): number;