Hamed Mahdizadeh
Hamed Mahdizadeh

Reputation: 976

X coordinates of each yAxis in HighStock chart

How can I find X position for each yAxis in my HighStock Chart? (some property like plotX and plotY in point object)

Upvotes: 1

Views: 68

Answers (1)

Sebastian Bochan
Sebastian Bochan

Reputation: 37578

You can extract the position of axis, from left/right object and offset. If axis is on the left then this is:

 axis.left

and if on the right:

chart.plotLeft + chart.plotWidth - axis.offset - axis.right

Example:

Upvotes: 2

Related Questions