Skip to content

Documentation / @ripl/charts / ChartYAxisItemOptions

Interface: ChartYAxisItemOptions<TData> ​

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

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
base?numberLogarithm base for a 'log' scale. Defaults to 10.ChartAxisItemOptions.basecharts/src/core/options.ts:569
constant?numberLinear threshold for the 'symlog' scale (region near zero treated linearly). Defaults to 1.ChartAxisItemOptions.constantcharts/src/core/options.ts:573
exponent?numberExponent for a 'pow' scale. Defaults to 1.ChartAxisItemOptions.exponentcharts/src/core/options.ts:571
fontstringCSS font shorthand for the tick labels.ChartAxisItemOptions.fontcharts/src/core/options.ts:549
fontColorstringColor of the tick labels.ChartAxisItemOptions.fontColorcharts/src/core/options.ts:551
format?ValueFormatInputHow tick values are formatted: a built-in AxisFormatType, an Intl number-format options object, or a custom formatter.ChartAxisItemOptions.formatcharts/src/core/options.ts:555
id?stringStable identifier a series binds to via its yAxis option. Required when configuring multiple y-axes.-charts/src/core/options.ts:581
labelRotation?numberTick label rotation in degrees; positive tilts labels counterclockwise (like rotate(45) slanting labels up to the right). Applied to the x-axis; the label band grows to fit and fewer labels are dropped on overflow.ChartAxisItemOptions.labelRotationcharts/src/core/options.ts:563
max?numberExplicit upper bound of the value domain (overrides the data extent).ChartAxisItemOptions.maxcharts/src/core/options.ts:567
min?numberExplicit lower bound of the value domain (overrides the data extent).ChartAxisItemOptions.mincharts/src/core/options.ts:565
nice?number | booleanExpands the value domain to round, tick-aligned bounds. true (default) nices to the tick count, a number nices to that many segments, false disables it.ChartAxisItemOptions.nicecharts/src/core/options.ts:559
position"left" | "right"Which side of the chart the y-axis is drawn on.-charts/src/core/options.ts:579
scale?AxisScaleTypeScale family for this axis. Value axes default to 'linear'. See AxisScaleType.ChartAxisItemOptions.scalecharts/src/core/options.ts:557
ticks?numberTarget number of ticks and grid lines along the axis. Defaults to 10.ChartAxisItemOptions.tickscharts/src/core/options.ts:561
title?stringOptional axis title drawn alongside the tick labels.ChartAxisItemOptions.titlecharts/src/core/options.ts:553
visiblebooleanWhether the axis line, ticks, and labels are rendered.ChartAxisItemOptions.visiblecharts/src/core/options.ts:547