TinyBase logoTinyBase β

LinearXAxisProps

The LinearXAxisProps type describes x-axis configuration for automatically inferred, categorical, and linear axes.

(
  BaseXAxisProps &
  {
    scale?: "auto" | "category" | "linear";
    timestampUnit?: never;
    min?: number;
    max?: number;
    ticks?: readonly number[];
    tickFormatter?: (tick: boolean | number | string) => string;
  }
)
TypeDescription
scale?"auto" | "category" | "linear"

An optional scale to use for the x axis.

timestampUnit?never

The unit for numeric timestamp values on a time x axis.

min?number

An optional minimum x-axis bound for continuous numeric or time x values.

max?number

An optional maximum x-axis bound for continuous numeric or time x values.

ticks?readonly number[]

Optional tick values to use for a continuous numeric or time x axis.

tickFormatter?(tick: boolean | number | string) => string

An optional function for formatting x-axis tick labels.

Since

v8.5.0