Skip to content

Documentation / @ripl/charts / ChartAxisItemOptions

Interface: ChartAxisItemOptions<TData>

Defined in: charts/src/core/options.ts:483

Options for a single axis (x or y).

Extended by

Type Parameters

Type ParameterDefault type
TDataunknown

Properties

PropertyTypeDescriptionDefined in
fontstringCSS font shorthand for the tick labels.charts/src/core/options.ts:487
fontColorstringColour of the tick labels.charts/src/core/options.ts:489
format?AxisFormatType | ((value) => string)How tick values are formatted — a built-in AxisFormatType or a custom formatter.charts/src/core/options.ts:497
title?stringOptional axis title drawn alongside the tick labels.charts/src/core/options.ts:491
value?keyof TData | ((item) => any)Accessor selecting the value this axis reads from each data item.charts/src/core/options.ts:494
visiblebooleanWhether the axis line, ticks, and labels are rendered.charts/src/core/options.ts:485