888ba8
Posts: 44
Joined: Mon Dec 21, 2020 11:18 am

Multi-columned yAxis Gantt chart: is it possible to retain parent-children dropdowns?

I modified this https://jsfiddle.net/gvaartjes/4g7ekw65/ multi-column yAxis Gantt chart, such that one of the columns shows the data's names:
https://jsfiddle.net/m4d8rpLg/2/

Is the functionality of working with parent-child dropdown data still possible, when working with these multi-column yAxis charts?

I introduced a parent relationship, but apparently there is no dropdown menu showing? Why please?
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Multi-columned yAxis Gantt chart: is it possible to retain parent-children dropdowns?

Hi,

Could you explain more preciously what do want to achieve?

A dropdown list in column like on this example?
https://jsfiddle.net/gh/get/library/pur ... management

Kind regards.
Sebastian Hajdus
Highcharts Developer
888ba8
Posts: 44
Joined: Mon Dec 21, 2020 11:18 am

Re: Multi-columned yAxis Gantt chart: is it possible to retain parent-children dropdowns?

Hi Sebastian,

Yes, that is correct. In https://jsfiddle.net/m4d8rpLg/2/ there is a parent: 'Parent' relationship. But I believe it is not 'showing' as such because of the multicolumned labels of the yAxis? I wonder how to combine the two features?

Yes correct, an example of what I mean by dropdown (parent-children) is https://jsfiddle.net/gh/get/library/pur ... management
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Multi-columned yAxis Gantt chart: is it possible to retain parent-children dropdowns?

Hi,

Thanks for the comment.
Unfortunately, it's not possible to combine types of Yaxis as you desire.
You need to choose yAxis.type that you want to use.

Live demo:
https://jsfiddle.net/BlackLabel/w8zrj0kn/

API Refereneces:
https://api.highcharts.com/gantt/yAxis.type

Feel free to contact us if further help needed.
Kind regards.
Sebastian Hajdus
Highcharts Developer
888ba8
Posts: 44
Joined: Mon Dec 21, 2020 11:18 am

Re: Multi-columned yAxis Gantt chart: is it possible to retain parent-children dropdowns?

Hi Sebastian, thanks a lot for that info. I learned about the yAxis.type this way. Very interesting.

So I understand there is no workaround possible where we would use multiple yAxis, to have multi-column 'category' yAxis while still having them inside a treegrid dropdown. I guess I will have to think about which type suits me best. The 'category' type seems quite useful I would say, in that you can have lots of information next to one another in the yAxis columns. I just wonder how we would go about indicating a pseudo-parent hierarchical relationship there.

P.S.: I see a minor buggy feature in https://jsfiddle.net/BlackLabel/w8zrj0kn/ If you click 'New offices' twice, i.e. quickly after one another, then the dropdown symbol seems opened, while the actual yAxis data remains collapsed.
User avatar
sebastian.h
Posts: 1734
Joined: Fri Aug 07, 2020 7:08 am

Re: Multi-columned yAxis Gantt chart: is it possible to retain parent-children dropdowns?

Hi!
P.S.: I see a minor buggy feature in https://jsfiddle.net/BlackLabel/w8zrj0kn/ If you click 'New offices' twice, i.e. quickly after one another, then the dropdown symbol seems opened, while the actual yAxis data remains collapsed.
Thanks, they look like a bug, I will report this on https://github.com/highcharts/highcharts/issues.
I just wonder how we would go about indicating a pseudo-parent hierarchical relationship there.
I will note this, ask my colleagues maybe they have an idea for this.

Regards.
Sebastian Hajdus
Highcharts Developer

Return to “Highcharts Gantt”