question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Collapse bars and resize GANTT diagram

See original GitHub issue

Hey 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:open
  • Created 6 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
jgorenecommented, Mar 23, 2022

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

2reactions
jgorenecommented, Feb 12, 2018

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 😉

frappe002

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found