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 ​
ChartAxisItemOptions<TData>
Type Parameters ​
| Type Parameter | Default type |
|---|---|
TData | unknown |
Properties ​
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
base? | number | Logarithm base for a 'log' scale. Defaults to 10. | ChartAxisItemOptions.base | charts/src/core/options.ts:569 |
constant? | number | Linear threshold for the 'symlog' scale (region near zero treated linearly). Defaults to 1. | ChartAxisItemOptions.constant | charts/src/core/options.ts:573 |
exponent? | number | Exponent for a 'pow' scale. Defaults to 1. | ChartAxisItemOptions.exponent | charts/src/core/options.ts:571 |
font | string | CSS font shorthand for the tick labels. | ChartAxisItemOptions.font | charts/src/core/options.ts:549 |
fontColor | string | Color of the tick labels. | ChartAxisItemOptions.fontColor | charts/src/core/options.ts:551 |
format? | ValueFormatInput | How tick values are formatted: a built-in AxisFormatType, an Intl number-format options object, or a custom formatter. | ChartAxisItemOptions.format | charts/src/core/options.ts:555 |
id? | string | Stable identifier a series binds to via its yAxis option. Required when configuring multiple y-axes. | - | charts/src/core/options.ts:581 |
labelRotation? | number | Tick 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.labelRotation | charts/src/core/options.ts:563 |
max? | number | Explicit upper bound of the value domain (overrides the data extent). | ChartAxisItemOptions.max | charts/src/core/options.ts:567 |
min? | number | Explicit lower bound of the value domain (overrides the data extent). | ChartAxisItemOptions.min | charts/src/core/options.ts:565 |
nice? | number | boolean | Expands 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.nice | charts/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? | AxisScaleType | Scale family for this axis. Value axes default to 'linear'. See AxisScaleType. | ChartAxisItemOptions.scale | charts/src/core/options.ts:557 |
ticks? | number | Target number of ticks and grid lines along the axis. Defaults to 10. | ChartAxisItemOptions.ticks | charts/src/core/options.ts:561 |
title? | string | Optional axis title drawn alongside the tick labels. | ChartAxisItemOptions.title | charts/src/core/options.ts:553 |
visible | boolean | Whether the axis line, ticks, and labels are rendered. | ChartAxisItemOptions.visible | charts/src/core/options.ts:547 |