Skip to content
Main Navigation Guide
Chart API
Instance API
ProPreviewCustomizeSponsor
9.x Docs
8.x Docs

🇬🇧 English

🇨🇳 简体中文

🇬🇧 English

🇨🇳 简体中文

Appearance

Sidebar Navigation

init

dispose

version

registerLocale

getSupportedLocales

registerStyles

registerFigure

getSupportedFigures

getFigureClass

registerIndicator

getSupportedIndicators

registerOverlay

getSupportedOverlays

registerXAxis

registerYAxis

utils

On this page

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 .

Usage ​

Basic usage ​

Edit this page on GitHub

Last updated:

Pager
Previous pagegetSupportedOverlays
Next pageregisterYAxis

Released under the Apache License V2.

Copyright © 2018-2025 liihuu