registerXAxis(xAxis)
registerXAxis
used to custom x-axis.
Reference
typescript
(
xAxis: {
name: string
scrollZoomEnabled?: boolean
createTicks?: (params: object) => Array<{
coord: number
value: number | string
text: string
}>
}
) => void
Parameters
xAxis
X-axis configuration.name
Name, a unique identifier used for creation or modification.scrollZoomEnabled
Whether scrolling and zooming are possible on the axis.createTicks
Create ticks information callback method.
Returns
registerXAxis
returns undefined
.