This is my code, I want to write next to the numbers a t for time, under M1 and M2 but I did not find any possible solution for that except ganttbar, but that doesn't look good and is not what I want.
\documentclass[a4paper, 12pt,fleqn]{article}
\usepackage{pgfgantt}
\begin{document}
\begin{figure}
\centering
{\sffamily
\begin{ganttchart}[%
inline,
y unit title=1.1cm,
canvas/.style={draw=none},
title/.style={draw=none},
bar inline label anchor=west,
bar inline label node/.append style={anchor=west, text=white},
bar/.append style={fill=cyan!90!black,},
bar height=.8,]{0}{18}
\ganttbar[inline=false]{M1}{0}{3}
\ganttbar{J1}{0}{3}
\ganttbar{J2}{3}{4}
\ganttbar{}{5}{18}\\
\ganttbar[inline=false]{M2}{0}{5}
\ganttbar{J2}{5}{8}
\ganttbar{J1}{8}{12}
\ganttbar{}{12}{18}\\
\gantttitlelist{0,...,18}{1}
\end{ganttchart}
}
\caption{To demonstrate Flow shop Scheduling}
\end{figure}
\end{document}
