@mui/x-charts
Version:
The community edition of MUI X Charts components.
5 lines • 612 B
TypeScript
import { type NumberValue } from '@mui/x-charts-vendor/d3-scale';
import { type AxisConfig, type ChartsAxisProps, type D3Scale, type DefaultedAxis, type ScaleName } from "../../../../models/axis.js";
import { type ChartDrawingArea } from "../../../../hooks/useDrawingArea.js";
export declare function getRange(drawingArea: ChartDrawingArea, axisDirection: 'x' | 'y', axis: AxisConfig<ScaleName, any, ChartsAxisProps>): [number, number];
export declare function getNormalizedAxisScale(axis: Readonly<DefaultedAxis<ScaleName, any, Readonly<ChartsAxisProps>>>, domain: ReadonlyArray<NumberValue | string>): D3Scale;