and1lea
Posts: 4
Joined: Wed Aug 03, 2022 11:57 am

Flags in Gantt charts

Do it possible to use flags series in gantt charts?
Because I was trying to implement in but nothing happened.
hubert.k
Posts: 1164
Joined: Mon Apr 11, 2022 11:48 am

Re: Flags in Gantt charts

Hi and1lea!
Thanks for contacting us with your question!

Yes, it is possible to use flag series from the Highcharts Stock module in Highcharts Gantt. You should import Highcharts Stock as a module and Highcharts Gantt as usually. Actually, there are some small bugs, like creating additional yAxis rows for flags, but you can hide them using yAxis.breaks property. Please, check the demo below to see an example.

Demo: https://jsfiddle.net/BlackLabel/ze7odjbL/
API Reference: https://api.highcharts.com/highcharts/yAxis.breaks

Let me know if you have any further questions.
Regards!
Hubert Kozik
Highcharts Developer

Return to “Highcharts Gantt”