@mui/x-charts
Version:
The community edition of MUI X Charts components.
14 lines • 727 B
text/typescript
import { type TickItem } from "./useTicks.mjs";
import { type AxisId } from "../models/axis.mjs";
/**
* Returns the ticks for the given X axis. Ticks outside the drawing area are not included.
* The ticks returned from this hook are not grouped, i.e., they don't follow the `groups` prop of the axis.
* @param axisId The id of the X axis.
*/
export declare function useXAxisTicks(axisId: AxisId): TickItem[];
/**
* Returns the ticks for the given Y axis. Ticks outside the drawing area are not included.
* The ticks returned from this hook are not grouped, i.e., they don't follow the `groups` prop of the axis.
* @param axisId The id of the Y axis.
*/
export declare function useYAxisTicks(axisId: AxisId): TickItem[];