Graphics, Figures & Tablespgfgantt resize the ganttchart

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
cgodefro
Posts: 1
Joined: Fri Aug 26, 2016 2:22 pm

pgfgantt resize the ganttchart

Post by cgodefro »

Hello all,
i'm looking for a way to resize my ganttchart. if the project timefrmae is too long, i cannot see the end of it. do you knwo if we have a way to do so ?
here is my code:

Code: Select all

\documentclass{article}
\usepackage{pgfgantt}
\usepackage{pdflscape}

\begin{document}
\begin{landscape}
 \begin{ganttchart}[
hgrid,
vgrid,
time slot format=isodate
]{2016-08-18}{2016-10-16}
\gantttitlecalendar{month=name,week=34} \\
\ganttgroup{Initial install}{2016-08-18}{2016-09-09}\\
\ganttbar{Decom toto}{2016-08-18}{2016-08-24}\\
\ganttbar{Reinstall toto}{2016-08-24}{2016-09-02}\\
\ganttbar{Add toto to the MoM}{2016-09-05}{2016-09-05}\\
\ganttbar{Test tape scripts}{2016-09-06}{2016-09-09}\\
\ganttmilestone{New HW available}{2016-09-09}
\end{ganttchart}
\end{landscape}
\end{document}
thanks for the help you will bring to me

Recommended reading 2024:

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

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

Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

pgfgantt resize the ganttchart

Post by Stefan Kottwitz »

Welcome to the forum!

You can reduce the horizontal size by this option:

Code: Select all

x unit  = 0.3cm
Stefan
LaTeX.org admin
glicerico
Posts: 1
Joined: Tue Mar 06, 2018 10:26 am

pgfgantt resize the ganttchart

Post by glicerico »

Hi Stefan, I have a similar problem, my table gets off margin. I change the x unit and y unit parameters and the page size changes, but the chart keeps going outside both right and lower margins. Any commands to define the size of the whole chart?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10348
Joined: Mon Mar 10, 2008 9:44 pm

pgfgantt resize the ganttchart

Post by Stefan Kottwitz »

Hi glicerico,

welcome to the forum!

Can you please post the code of your chart? Then I could test it.

Stefan
LaTeX.org admin
Post Reply