API REFERENCE

CartesianAxisSpec

The CartesianAxisSpec type declaration and related types. Optional fields are marked with ?.

Type declaration

typescript
export interface CartesianAxisSpec {
  id?: CartesianAxisId;
  kind: CartesianAxisKind;
  show: boolean;
  position: CartesianAxisPosition;
  label?: string;
  min?: number;
  max?: number;
  tickCount?: number;
  categories?: ReadonlyArray<string>;
  format?: (value: number) => string;
  linkedTo?: CartesianAxisId;
  reversed?: boolean;
}