Changes

Jump to navigation Jump to search
70 bytes removed ,  18:41, 8 June 2020
m
no edit summary
< [[Modules]] | [[Graphics]] | [[Gantt charts]] | [[MetaPost]] | [[TikZ]] > [http://modules.contextgarden.net/gantt Gantt] is a (third party) [[Modules | ConTeXt module]] for drawing Gantt charts via MetaPost or PGF/TikZ.
== Description ==
To switch between the two drawing engines (MetaPost and TikZ) use the style option.
<texcode>\usemodule[gantt][stylealternative=mp]</texcode><texcode>\usemodule[gantt][stylealternative=tikz]</texcode>
The default engine is MetaPost.
The optional argument [...] can be filled in a key=value syntax, using one or more of the following keys:
* ''sffactor'' - MetaPost scale factor (default: 1)
* ''xunitlength'' - length of one time slot (default: 1cm)
* ''fontsizestyle'' - fontsize of labels (default: \tf)* ''titlefontsizetitlestyle'' - fontsize of title section (default: \tfx)
* ''drawledgerline'' - switch to enable/disable the drawing of horizontal ledger lines (default value: false)
The optional comma separated arguments are:
* ''<pattern>'' - TikZ pattern (e.g. north east lines (default), north west lines, crosshatch, crosshatch dots, grid, …) or see [[Gantt#Regressions | Regressions]] section for MetaPost
* ''<color>'' - a color of the pattern (e.g. black (default), red, green blue gray, dark gray)
\starttext
\startgantt[xunitlength=0.5cm,fontsizestyle=\tfx,titlefontsizetitlestyle=\tfx,drawledgerline=true]{10}{48}
\startganttitle
\titleelement{2009}{7}
[[Category:Graphics]]
[[Category:Metapost]]
[[Category:Sciences]]

Navigation menu