API to Expand Collapse all parents in Gantt Chart
Currently, there is no option to call a function to expand and collapse all elements of a Gantt chart. Some API like chart.expandAll("level1"), chart.collapseAll("level1")
-
Paulo Torres commented
Hello,
Unfortunately the workaround doesn't work well, it would be really useful to have a function to call in order to expand or collapse all the elements.Thanks, Paulo Torres
-
Joyce Chau commented
Are the collapse(), expand(), and toggleCollapse() functions still included in the API? I currently don't see them in Highcharts v8.2.2.
-
AdminPaweł Fus (Admin, Highcharts JS) commented
It's not part of the API, but there are three methods to achieve that:
- yAxis.ticks[tickIndex].collapse()
- yAxis.ticks[tickIndex].expand()
- yAxis.ticks[tickIndex].toggleCollapse()