@mui/x-charts
Version:
The community edition of MUI X Charts components.
12 lines • 502 B
TypeScript
import type { D3Scale } from "../models/axis.js";
/**
* For a given scale return a function that map value to their position.
* Useful when dealing with specific scale such as band.
* @param {D3Scale} scale The scale to use
* @returns {(value: any) => number} A function that map value to their position
*/
export declare function getValueToPositionMapper<Domain extends {
toString(): string;
} = {
toString(): string;
}, Range = number>(scale: D3Scale<Domain, Range>): (value: any) => number;