Collapse bars and resize GANTT diagram
See original GitHub issueHey there,
does someone know a possibility to collapse bars? I already used the custom-class but i don’t know how to resize the diagram (hide the row of the bar) and hide the arrows.
CSS “hide”
.hide { display: none; }
JS
function hideTask(index){ tasks[index].custom_class = "hide"; gantt_chart.refresh(tasks); }
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (1 by maintainers)
Top Results From Across the Web
The Gantt Chart View and Widget - monday.com Support
A Gantt chart is a horizontal bar chart that shows a project's planned schedule and its tasks or events between a start and...
Read more >Format the bar chart of a Gantt Chart view - Microsoft Support
Double-click anywhere in the chart portion of the Gantt Chart view (but not on individual bars) and click Bar Styles. In the table,...
Read more >Gantt-Chart for JIRA Release 4.1.x
On the left side of each grouping row and all parent issues, an arrow icon is displayed indicating an expanded or collapsed set...
Read more >How to make a Gantt chart in Excel - Ablebits
Click the Collapse Dialog icon to exit this small window. This will bring you back to ... Transform the bar graph into the...
Read more >Gantt charts | Online help | Zoho Projects
Resize the panel's width to view more task details. Collapse All Task lists and. Expand All Task lists in the Milestone Gantt. You...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello ! Sorry for the delay… Although still open, this issue is old and frappe-gantt has also evolved a lot since…
UPDATED Anyway, I tried to review this without adding other libraries but without being able to open a PR, unfortunately. Problem: dragging is only available after expanded the bars (only in this case).
Despite, it could be interesting to work by adding a “display” property to each task… for example and among others. Of course, this is to be adapted according to your needs and is probably perfectible but if it can help someone.
Working codepen
Hello, I started working on this feature because for a gantt view, it’s fundamental, it seems and “frappe-gantt” is really interesting according to use. Otherwise, just with css … I don’t know to do that and I wonder if it’s possible or easy indeed when most of the objects are nested from svg… but it would be perfect, of course!
Short answer, I use d3.js to create depths in the groups of bars according to the tasks but each one implement this with its own method because it’s not so simple anyway For now I am still at the experimental stage with frappe-gantt 😉 It then allows to hide or show groups of dependent bars as seen on the gif … Still a lot to do anyway for me 😉