Skip to content

Documentation / @ripl/charts / ChartYAxisItemOptions

Interface: ChartYAxisItemOptions<TData>

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

Y-axis specific options extending the base axis item with a left/right position.

Extends

Type Parameters

Type ParameterDefault type
TDataunknown

Properties

PropertyTypeDescriptionInherited fromDefined in
fontstringCSS font shorthand for the tick labels.ChartAxisItemOptions.fontcharts/src/core/options.ts:487
fontColorstringColour of the tick labels.ChartAxisItemOptions.fontColorcharts/src/core/options.ts:489
format?AxisFormatType | ((value) => string)How tick values are formatted — a built-in AxisFormatType or a custom formatter.ChartAxisItemOptions.formatcharts/src/core/options.ts:497
position"left" | "right"Which side of the chart the y-axis is drawn on.-charts/src/core/options.ts:503
title?stringOptional axis title drawn alongside the tick labels.ChartAxisItemOptions.titlecharts/src/core/options.ts:491
value?keyof TData | ((item) => any)Accessor selecting the value this axis reads from each data item.ChartAxisItemOptions.valuecharts/src/core/options.ts:494
visiblebooleanWhether the axis line, ticks, and labels are rendered.ChartAxisItemOptions.visiblecharts/src/core/options.ts:485