Sign in to follow this  
Buzz Brown

Gantt Chart display Miletsone only

Recommended Posts

Thanks for the query.

Yes it is possible to suppress the display of tasks in a Gantt chart so only the milestones appear. 

By setting the following task object attribute in the chart element:

 

  • "alpha" : "0"
  • "borderalpha" : "0"
  • "hoverFillAlpha" : "0"

And for the milestones you can create the milestones object and create your milestones. However, one drawback would be tool text would be visible where the task has been hidden. You can bypass this by setting "showToolTip" : "0" in the chart attribute.

 
You can check this fiddle link for example :
http://jsfiddle.net/ayanbhaduryfc/z79b74k3/121/

 

Hope this helps.

Share this post


Link to post
Share on other sites

Thanks, Ayan. I tried your suggestion and yes, the tasks were hidden. However, the space was still visible as though the tasks were there. I have attached a screen shot of what I am trying to achieve (minus the 2 visible tasks). Any thoughts? Can the Tasks element be eliminated in some way?RegionCapture.jpg

Share this post


Link to post
Share on other sites

[solved] Decided to eliminate Milestones and treat Tasks like Milestones. Although the Start and End date of the tasks are the same, by making the border 5px the displayed tasks functions as Milestones.

RegionCapture2.jpg

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this