Files
Iliyan Angelov 306b20e24a Frontend start
2025-09-14 00:54:48 +03:00

22 lines
851 B
TypeScript

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>;
}