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
}>
}
) => voidParameters
xAxisX-axis configuration.nameName, a unique identifier used for creation or modification.scrollZoomEnabledWhether scrolling and zooming are possible on the axis.createTicksCreate ticks information callback method.
Returns
registerXAxis returns undefined .