createYAxis(yAxis)
createYAxis create y-axis.
Reference
typescript
(
yAxis: {
paneId?: string
id?: string
name?: string
reverse?: boolean
inside?: boolean
needWidget?: boolean
position?: 'left' | 'right'
scrollZoomEnabled?: boolean
gap?: {
top?: number
bottom?: number
}
createRange?: (params: object) => ({
from: number
to: number
range: number
realFrom: number
realTo: number
realRange: number
displayFrom: number
displayTo: number
displayRange: number
})
createTicks?: (params: object) => Array<{
coord: number
value: number | string
text: string
}>
}
) => string | nullParameters
yAxisY-axis configuration.paneIdPane id. Defaults to the candle pane.idY-axis id.nameAxis name.reverseWhether to reverse.insideWhether to place inside.needWidgetWhether to create an axis widget.positionPosition, supportsleftandright.scrollZoomEnabledWhether scrolling and zooming are enabled on the Y-axis. When enabled, users can drag to scroll the axis or use the mouse wheel to zoom.gapTop and bottom margin configuration.topTop margin.bottomBottom margin.
createRangeCallback for creating the value range on the axis.createTicksCallback for creating tick information.
Returns
createYAxis returns the created y-axis id, or null if creation fails.