Graphics, Figures & Tablespgfgantt | Gantt Chart with two "Today" Lines

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
fm3c2007
Posts: 6
Joined: Sun Dec 18, 2011 8:29 pm

pgfgantt | Gantt Chart with two "Today" Lines

Post by fm3c2007 »

Hi All,

I'm trying to make a Gantt Chart using Tikz and pgfgantt, with two color thick vertical lines. I think ganttchart only provides one vertical line (the "today" line).

Here is an example:

Code: Select all

{
\documentclass[10pt,a4paper]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{tikz}
\usepackage{pgfgantt}
\begin{document}
\begin{ganttchart}%
[vgrid, today=3,
today label=\textcolor{blue}%
{di},
today rule={blue, ultra thick}]{6}
\gantttitle{Title}{6} \\
\ganttbar{}{1}{3} \\
\ganttbar{}{4}{6}
\end{ganttchart}
\end{document}
Can anyone help me. Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Post Reply