globallogic
Posts: 34
Joined: Wed Jan 10, 2018 6:19 am

Column chart: Labels are displaying at center.

Hello,

In the Column chart, XAxis labels are displaying at the centre. How to fix that.
fix.PNG
fix.PNG (13.67 KiB) Viewed 670 times
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: Column chart: Labels are displaying at center.

Hi, globallogic!

Could you provide me a jsFiddle I can work on?

You are probably looking for a xAxis.tickmarkPlacement property, but it is hard to say without an online demo.
https://api.highcharts.com/highcharts/x ... kPlacement

Best regards!
Rafal Sebestjanski,
Highcharts Team Lead
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: Column chart: Labels are displaying at center.

How your chart should look like? I would like to help you, but for this moment I don't quite know what you want to achieve.

You set xAxis.tickPositions rigidly:

Code: Select all

tickPositions: [1541760966469, 1541847366469, 1541933766469, 1542020166469, 1542106566469, 1542192966469, 1542279366469]
You can move them by changing tickPositions values, but it's not the best approach to create a flexible chart.

https://jsfiddle.net/BlackLabel/yeht8cLu/

Kind regards
Rafal Sebestjanski,
Highcharts Team Lead
globallogic
Posts: 34
Joined: Wed Jan 10, 2018 6:19 am

Re: Column chart: Labels are displaying at center.

Hii Rafal,

I fixed this issue.

Thnx for your support.
rafalS
Posts: 2665
Joined: Thu Jun 14, 2018 11:40 am

Re: Column chart: Labels are displaying at center.

It's good to hear that.

Best regards!
Rafal Sebestjanski,
Highcharts Team Lead

Return to “Highcharts Usage”