straystreyk
Posts: 1
Joined: Wed Mar 22, 2023 5:51 am

How to make y-axes out of chart?

Hello highcharts community. I made 2 charts with highcharts-stock. despite the fact that I placed the axes on their sides and enabled the options for the left axis labels.align = "left", and for the right "right" they are still located inside the chart. What can be done about it? Thanks in advance for your reply!

Here is a link https://codesandbox.io/s/frosty-fog-twzz70
jedrzej.r
Posts: 725
Joined: Tue Jan 24, 2023 11:21 am

Re: How to make y-axes out of chart?

Hello,

Welcome to our forum and thanks for contacting us with your question!

I've inspected your demo and it seems that yAxis labels appear outside of the chart plot, not inside. Perhaps if you want to expand spacing between yAxis and the chart area, you can use yAxis.offset property.

Demo: https://codesandbox.io/s/sad-mendel-seui47

API: https://api.highcharts.com/highstock/yAxis.offset

Let me know if that was what you were looking for!
Best regards!
Jędrzej Ruta
Highcharts Developer

Return to “Highcharts Stock”