Forum Discussion

weedogt's avatar
weedogt
Copper Contributor
Oct 26, 2020

Show a list as Gantt chart on Sharepoint page

I try to publish a list as Gantt chart on a Sharepoint site. I have been able to create a Gantt view of the list. It has a URL like so:

https://mysite.sharepoint.com/sites/Test2/Lists/Project%20plan/Gantt.aspx

Look att this

When I go directly to the URL is shows the list a a Gantt as expected. However, when I add the list to a site it shows a standard list (table), the Gantt chart (graphics) is not shown.

Look at this, too

Why is that? Should I use some other web part? If so, which?

  • weedogt Check these JSON formatting samples if it helps: 

    1. Yearly Gantt Chart 
    2. Project Gantt Chart 

    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

      • ganeshsanap's avatar
        ganeshsanap
        MVP

        G-BullMetal 

         

        You will have to use the SharePoint JSON view formatting for this.

         

        Check: Use view formatting to customize SharePoint 


        Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

  • Eva Vogel's avatar
    Eva Vogel
    Steel Contributor

    Dear weedogt, Lists have not only the normal view "All Items" on the upper right of your list page, but also other List "VIEWS", such as the gantt view or the quick edit view or the calender view. If you want to have this list with your new Gantt Chart VIEW as default view, you just have to edit once again the gantt view of your list. To do this, click on the gear icon - List settings, then scroll down on the bottom of this settings page. Click on that Gantt view to open the options. And in this page you can see right at the top a check box to set this gantt view as your new standard view on this list.

    BUT: The Gantt Chart is a classic SharePoint 2013 View and i am not shure if you can count on this view in modern sites, in the future. So what helps then, especially with Project Lists or Task Lists?

    ---

     

    You should severly consider about moving these data into MS Planner plans, because there are by far more opportunities on MS Planner than on the old GAntt Charts!

     

    ---

    By the way: You cant automate a classic sharepoint list view as the Gantt chart, because only the SharePoint modern Site Layout can deal with workflows on Power Automate. It has got something to do with a new kind of coding within the new power platform. Formerly we had mostly ASP.Net Coding (classic SharePoint) , now the overwhelming majority of coding works Javascript, particularly on Power Automate Flows like your Trigger Actions and the "when an item is modified"- thing.... So please keep that in mind, that your classic views are not made for the new flows and the new design of Automation within SharePoint.

     

     

     

    Give a like if my ideas are welcome on your side. Greets, Eva.

Resources