How to Create a SharePoint Gantt Chart (Step-by-Step Guide)

How to Create a SharePoint Gantt Chart (Step-by-Step Guide)

Last Updated on February 3, 2024

Need to create a Gantt chart?

In this guide, I will show you an easy method to create a Gantt chart in SharePoint Online using JSON.

Let’s get started.

What are Gantt charts?

Gantt charts are quite handy in project planning and management since they show a timeline and task progression.

If you have already seen a Gantt chart, you know that they’re basically progress bar charts that represent a project’s schedule.

You can easily create one in Microsoft’s app for project management — Microsoft Project — quite easily:

timeline gantt chart in microsoft project

There was also a functionality for it in the classic experience of SharePoint.

Unfortunately, Gantt and other SharePoint features haven’t reached the modern experience yet.

Related: Microsoft Project Tutorial: Introductory Guide for Newbies

Sign up for exclusive updates, tips, and strategies

    Creating a Generic SharePoint Gantt Chart

    The good news is that you can still create a Gantt chart in a list by using JSON formatting in a column.

    There are a lot of list formatting templates available that you can check out — and we will be using one today.

    Step 1: View requirements

    To kick things off, I decided to use this formatting from GitHub since a lot easier to implement and understand.

    The basic requirements here are to have the following columns in the view:

    • Start DateTime
    • End DateTime

    Naturally, you can have any other columns in the list — but these have to be present — and set to “required”.

    Step 2: Set up the list

    What you need to do here now is to create a list with the required columns.

    I created a demo list and here’s what it looks like:

    list created to showcase a gantt chart in sharepoint

    Finally, add a text column (single line) for the Gantt chart.

    The formatting has two types:

    • Gantt chart
    • Gantt chart with today

    I will create both columns to show you what they look like.

    In case you want to embed the list to a SharePoint page, the formatting would still work.

    Step 3: Format the Gantt chart column

    From here, all we have to do is format the column.

    Click on the column heading > column settings > format this column button:

    format this gantt chart column in the sharepoint site

    This will open the format panel on the right side.

    Click the advanced mode on the bottom of the panel:

    advanced mode in the format gantt chart column panel

    Step 4: Apply JSON formatting

    Now all you have to do is copy and paste the JSON code from GitHub.

    You can easily navigate to the codes from the home page of the project.

    github gantt generic json by hakki max

    Back to SharePoint, replace the current JSON with the one from GitHub.

    Then click the save button:

    paste the json code into the gantt chart column format

    It will automatically generate the Gantt chart for you.

    Here’s what those charts look like:

    gantt charts in a sharepoint list using the json format from github

    If you know some code, you can always edit it to customize the chart even further.

    Note: In case the list has multiple views or charts, you can also create a specific Gantt chart view.

    Other Gantt Chart Templates

    The example I showed you above is the most basic.

    There are other Gantt chart list formatting in GitHub, just look for them.

    For example, this one shows a list of high-level tasks and lets you achieve a look close to Microsoft Project.

    project gantt chart list formatting by gdk max

    If you have more questions about creating a Gantt chart in SharePoint, feel free to leave a comment. 

    For further inquiries or business concerns, kindly use the site’s contact form. I’ll respond promptly.

    About Ryan Clark

    As the Modern Workplace Architect at Mr. SharePoint, I help companies of all sizes better leverage Modern Workplace and Digital Process Automation investments. I am also a Microsoft Most Valuable Professional (MVP) for SharePoint and Microsoft 365.

    Subscribe
    Notify of
    guest
    2 Comments
    Oldest
    Newest Most Voted
    Inline Feedbacks
    View all comments

    Mel
    Mel
    11 months ago

    Hello! I tried using the code for that last example (that looks like Microsoft Project) and I can’t seem to get it to work. Any tips?

    Martin
    Martin
    Reply to  Mel
    10 months ago

    Try chat GPT to help you..

    2
    0
    Would love your thoughts, please comment.x
    ()
    x
    Scroll to Top