UNPKG

@mui/x-charts

Version:

The community edition of MUI X Charts components.

22 lines 851 B
import type { ScaleOrdinal, ScaleSequential, ScaleThreshold } from '@mui/x-charts-vendor/d3-scale'; import { ContinuousColorConfig, OrdinalColorConfig, PiecewiseColorConfig } from "./colorMapping.js"; export interface ZAxisConfig<V = any> { id: string; data?: readonly V[]; /** * The key used to retrieve `data` from the `dataset` prop. */ dataKey?: string; /** * The minimal value of the scale. */ min?: number; /** * The maximal value of the scale. */ max?: number; colorMap?: OrdinalColorConfig | ContinuousColorConfig | PiecewiseColorConfig; } export interface ZAxisDefaultized extends ZAxisConfig { colorScale?: ScaleOrdinal<string | number | Date, string, string | null> | ScaleOrdinal<number, string, string | null> | ScaleSequential<string, string | null> | ScaleThreshold<number | Date, string | null>; }