Documentation / @ripl/charts / ChartAxisItemOptions
Interface: ChartAxisItemOptions<TData> ​
Defined in: charts/src/core/options.ts:545
Options for a single axis (x or y).
Extended by ​
Type Parameters ​
| Type Parameter | Default type |
|---|---|
TData | unknown |
Properties ​
| Property | Type | Description | Defined in |
|---|---|---|---|
base? | number | Logarithm base for a 'log' scale. Defaults to 10. | charts/src/core/options.ts:569 |
constant? | number | Linear threshold for the 'symlog' scale (region near zero treated linearly). Defaults to 1. | charts/src/core/options.ts:573 |
exponent? | number | Exponent for a 'pow' scale. Defaults to 1. | charts/src/core/options.ts:571 |
font | string | CSS font shorthand for the tick labels. | charts/src/core/options.ts:549 |
fontColor | string | Color of the tick labels. | 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. | charts/src/core/options.ts:555 |
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. | charts/src/core/options.ts:563 |
max? | number | Explicit upper bound of the value domain (overrides the data extent). | charts/src/core/options.ts:567 |
min? | number | Explicit lower bound of the value domain (overrides the data extent). | 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. | charts/src/core/options.ts:559 |
scale? | AxisScaleType | Scale family for this axis. Value axes default to 'linear'. See AxisScaleType. | charts/src/core/options.ts:557 |
ticks? | number | Target number of ticks and grid lines along the axis. Defaults to 10. | charts/src/core/options.ts:561 |
title? | string | Optional axis title drawn alongside the tick labels. | charts/src/core/options.ts:553 |
visible | boolean | Whether the axis line, ticks, and labels are rendered. | charts/src/core/options.ts:547 |