Documentation / @finchart/core / index / XAxisOptions
Interface: XAxisOptions
Defined in: packages/core/src/plot/types.ts:48
What the x-axis (bottom) has in addition.
Extends
Extended by
Properties
format?
optionalformat?: (value,step?) =>string
Defined in: packages/core/src/plot/types.ts:36
Tick value to display string. If a ticks strategy is present, this isn't used for ticks themselves, but it's still used, regardless of the strategy, as the default formatting for decorations (crosshair badge, tooltip, legend, priceLine). The second argument is the tick spacing, used to pick how many digits distinguish neighboring ticks.
Parameters
value
number
step?
number
Returns
string
Inherited from
minTickSpacing?
optionalminTickSpacing?:number
Defined in: packages/core/src/plot/types.ts:38
Minimum pixels one tick occupies. Falls back to a per-direction default if omitted.
Inherited from
showLabels?
optionalshowLabels?:boolean
Defined in: packages/core/src/plot/types.ts:28
Whether tick labels are shown on the overlay. Default true.
Inherited from
size?
optionalsize?:number
Defined in: packages/core/src/plot/types.ts:53
Fixed height (px) of the axis space. Skips measurement if given. A label bigger than this gets clipped — that's what "fixed" means.
ticks?
optionalticks?:TickStrategy
Defined in: packages/core/src/plot/types.ts:44
Placement and labeling of ticks, as one unit — where timeTicks (the time axis) goes. Read for both x and y, and per pane too. If a strategy is present, the default arithmetic and format aren't used.