UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

25 lines 1.05 kB
import { type ChartsTooltipContainerProps } from "./ChartsTooltipContainer.mjs"; import { type TriggerOptions } from "./utils.mjs"; export type ChartsTooltipProps<T extends TriggerOptions = TriggerOptions> = T extends TriggerOptions ? Omit<ChartsTooltipContainerProps<T>, 'children'> & { /** * Defines the sort order in which series items are displayed in the axis tooltip. * When set to `none`, series are displayed in the same order they are provided in the series property. Otherwise they are sorted by their value. * Only applies when `trigger='axis'`. * @default 'none' */ sort?: T extends 'axis' ? 'none' | 'asc' | 'desc' : never; } : never; /** * Demos: * * - [ChartsTooltip](https://mui.com/x/react-charts/tooltip/) * * API: * * - [ChartsTooltip API](https://mui.com/x/api/charts/charts-tool-tip/) */ declare function ChartsTooltip<T extends TriggerOptions>(props: ChartsTooltipProps<T>): import("react/jsx-runtime").JSX.Element; declare namespace ChartsTooltip { var propTypes: any; } export { ChartsTooltip };