vellores
Posts: 1
Joined: Thu Jan 21, 2021 6:48 am

Using Gantt and Spline charts together mis-aligns the spline chart x-axis

I am using HighCharts Gantt and spline charts together in a. I have imported Gantt module and the spline chart's x-axis ticks gets misaligned.

I have tried to tweak x-axis configuration of spline chart but not able to get it to work.

My requirement is to control the tickLength and position the label at the center of the tick.
Attachments
GanttTimeline.png
GanttTimeline.png (71.87 KiB) Viewed 325 times
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Using Gantt and Spline charts together mis-aligns the spline chart x-axis

Hi,

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

You want to set tick on other position, yes?

In API you will find options for example xAxis.startOnTick if you want to start on a tick in the beginning of xaxis.
https://api.highcharts.com/gantt/xAxis.startOnTick

I need to see your chart configuration to see what's going on, could you prepare a working example in an online code editor?

I'm waiting for news from you.
Best regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”