[Tex/LaTex] pgfgantt Milestone horizontal position

chartspgfgantt

If one uses pgfgantt package in a standard way, the horizontal position of milestone is between "month" columns.
Is it possible to make it appear ON the "month" column?
I would like to avoid a weird situation when the milestone on the last month crosses the border of the chart as well as make accent that something
is going to be done during some month rather that at the end of it.

\documentclass[tikz,border=2mm]{standalone}
\usepackage{pgfgantt}

\begin{document}
\begin{ganttchart}[
vgrid,
hgrid,
]{1}{12}
\gantttitle{Title}{12} \\
\ganttbar{Task 1}{1}{4} \\
\ganttmilestone{M 1}{12} \\
\end{ganttchart}
\end{document}

Best Answer

You can use the east anchor (ans possibly an xshift) for the milestone style:

\documentclass[tikz,border=2mm]{standalone}
\usepackage{pgfgantt}

\begin{document}
\begin{ganttchart}[
vgrid,
hgrid,
milestone/.append style={anchor=east,xshift=-1pt},
]{1}{12}
\gantttitle{Title}{12} \\
\ganttbar{Task 1}{1}{4} \\
\ganttmilestone{M 1}{12} \\
\end{ganttchart}
\end{document}

enter image description here