Interface: AxisOptions
Properties
type
• Optional type: AxisType
Defined in
low
• Optional low: number
Overriding the natural low of the chart allows you to zoom in or limit the charts lowest displayed value
Defined in
high
• Optional high: number
Overriding the natural high of the chart allows you to zoom in or limit the charts highest displayed value
Defined in
referenceValue
• Optional referenceValue: number
Unless low/high are explicitly set, bar chart will be centered at zero by default. Set referenceValue to null to auto scale.
Defined in
offset
• Optional offset: number
The offset of the chart drawing area to the border of the container
Defined in
position
• Optional position: "start" | "end"
Position where labels are placed.
Can be set to start or end where start is equivalent to left or top on vertical axis and end is equivalent to right or bottom on horizontal axis.
Defined in
labelOffset
• Optional labelOffset: Object
Allows you to correct label positioning on this axis by positive or negative x and y offset.
Type declaration
| Name | Type |
|---|---|
x | number |
y | number |
Defined in
showLabel
• Optional showLabel: boolean
If labels should be shown or not
Defined in
showGrid
• Optional showGrid: boolean
If the axis grid should be drawn or not
Defined in
scaleMinSpace
• Optional scaleMinSpace: number
This value specifies the minimum width in pixel of the scale steps
Defined in
onlyInteger
• Optional onlyInteger: boolean
Use only integer values (whole numbers) for the scale steps
Defined in
ticks
• Optional ticks: Label[]
Defined in
stretch
• Optional stretch: boolean
Defined in
divisor
• Optional divisor: number
Defined in
highLow
• Optional highLow: Object
Type declaration
| Name | Type |
|---|---|
high | number |
low | number |
Defined in
Methods
labelInterpolationFnc
▸ Optional labelInterpolationFnc(value, index): undefined | null | Label
Interpolation function that allows you to intercept the value from the axis label
Parameters
| Name | Type |
|---|---|
value | Label |
index | number |
Returns
undefined | null | Label