Skip to content
Tutorials Center
My learning

Topics

Lesson 20 of 41 ยท Scheduling and Critical Path

Gantt Charts and Project Timelines

Learn how to read and build a Gantt chart and project timeline: bars, dependencies, milestones, baselines, progress, steps to create one and how it complements the network diagram.

A Gantt chart shows a schedule as horizontal bars on a calendar: each activity is a bar whose start and end sit on a time axis. Henry Gantt popularized it a century ago, and it is still the most common way to show a project plan because anyone can read it in seconds. Where a network diagram shows logic, a Gantt chart shows time.

What a Gantt chart shows

  • Bars: activity start, duration and end.
  • Milestones: diamonds or marked points for key events.
  • Dependencies: arrows or ordering showing what follows what.
  • Summary bars: group activities (a phase or WBS element).
  • Progress: part of the bar filled in to show percent complete.
  • Today line: a vertical line for the status date.
  • Baseline: a thin bar under the actual one showing the originally approved dates.
  • Critical path: often highlighted in red.
  • Resources: names beside the bars.

Build one from the CPM result

Take the earliest start and finish dates from the critical path calculation and place them on a calendar. Here is the website project with the dependency and the dates computed earlier (project starting Monday 1 June, calendar days used for simplicity).

gantt
    title Website project
    dateFormat YYYY-MM-DD
    axisFormat %d %b
    section Plan
    Requirements     :crit, a, 2026-06-01, 5d
    section Design
    Design           :crit, b, after a, 7d
    Database setup   :c, after a, 6d
    section Build
    Front end        :d, after b, 10d
    Back end         :crit, e, after b, 12d
    Integration      :crit, f, after d e, 5d
    section Finish
    Testing          :crit, g, after f, 6d
    Deployment       :crit, h, after g, 2d
    Go-live          :milestone, m, after h, 0d

Gantt chart with the critical path in red. Database setup and Front end have float.

The crit tags mark the critical activities; mermaid computes the dates from the after dependencies.

Generating a text Gantt in code

Python Draw a text Gantt chart

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Tracking progress and slippage

A Gantt chart is also a status tool. Compare the baseline with actual and forecast dates and show the percent complete.

Python Plan versus actual on a timeline

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Steps to build a project timeline

  1. Start from the WBS and activity list.
  2. Add durations and dependencies (see Network Diagrams).
  3. Calculate the schedule and critical path (CPM).
  4. Choose the calendar: working days, holidays, team availability.
  5. Add milestones for approvals and deliveries.
  6. Assign resources and resolve conflicts.
  7. Save a baseline.
  8. Update regularly with actual dates and progress.
  9. Publish an appropriate view: a high-level milestone chart for executives, a detailed Gantt for the team.

Good and bad uses

Strengths: instantly readable, good for communication, shows overlap, progress and delays, supported by every tool.

Weaknesses:

  • Does not show logic well when there are many dependencies (the network diagram does).
  • Easy to make look precise while the underlying estimates are weak.
  • Time-consuming to maintain by hand.
  • Poor fit for adaptive work where scope changes each sprint; use a roadmap or release plan instead.

Roadmaps versus Gantt charts

A product roadmap shows themes and rough timeframes (now, next, later) without fixed dates, which suits agile planning. A timeline of key milestones is the middle ground for stakeholders who just need to know the major dates.

Practical tips

  • Keep activities to a few days to a few weeks so progress is visible.
  • Limit a one-page chart to about 30 rows; summarize the rest.
  • Do not leave activities without links, or they drift when others move.
  • Show float: a bar that can slide tells people where there is room.
  • Name the status date and the version on the chart.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does a Gantt chart mainly show?

    A Gantt chart is a calendar-based view of the schedule.
  2. 2. What is the purpose of a baseline on a Gantt chart?

    Baseline bars make slippage visible.
  3. 3. What does a milestone have?

    Milestones mark events, not work.
  4. 4. Which view suits an agile product with changing scope best?

    Roadmaps show themes and rough timing without fixing dates far ahead.

Summary

  • A Gantt chart shows bars, milestones, dependencies, progress and baselines on a calendar.
  • Build it from the activity list and CPM dates, then baseline and update.
  • Use different levels of detail for executives and teams.
  • For adaptive work, prefer roadmaps and release plans.

Next: Schedule Compression and Resource Leveling