kmartynak
Posts: 69
Joined: Tue Dec 14, 2021 9:31 pm

xAxis don't want to position from the left

Hi, please help. how to make the years that are in red positioned from the left?
I was trying

Code: Select all

    
    xAxis: {

        labels: {
            align: 'left'
        }
    },

code: https://jsfiddle.net/kmartynak/aq7kp9o3/4/
Attachments
Bildschirmfoto 2023-03-22 um 09.56.41.png
Bildschirmfoto 2023-03-22 um 09.56.41.png (18.44 KiB) Viewed 124 times
jakub.s
Posts: 1164
Joined: Fri Dec 16, 2022 11:45 am

Re: xAxis don't want to position from the left

Hi,

Thanks for the question!

Unfortunately, your demo doesn't seem to work, but overall setting xAxis.labels.style.color should solve the problem.

Here's a demo: https://www.highcharts.com/docs/chart-d ... yle-by-css

API: https://api.highcharts.com/highcharts/x ... tyle.color

Let me know if that solves your problem.

Best regards,
Jakub
Jakub
Highcharts Developer

Return to “Highcharts Usage”