\documentclass{standalone} \usepackage{tikz,pgfplots} \usepackage{siltex} \usetikzlibrary{arrows.meta,positioning} \pgfplotsset{compat=1.17} \begin{document} \begin{tikzpicture} \begin{axis}[ xbar=-3mm, bar width=4mm, xmin=0, xmax=21, width=85mm, height=75mm, enlarge y limits=0.15, legend style={at={(0.98,0.95)}, anchor=north east,legend columns=-1}, xlabel={Days}, symbolic y coords={Software Development,Development Cycle 2,Development Cycle 1,Test Protocol,Feature Definition,Initial Design,Specifications,Problem Description}, ytick=data, ] \addplot[draw=red,fill=red!40] coordinates {(2,Problem Description) (3,Specifications) (3.5,Initial Design) (13,Feature Definition) (0.5,Test Protocol) (3,Development Cycle 1) (17,Development Cycle 2) (20,Software Development)}; \addplot[draw=blue,fill=blue!40] coordinates {(2,Problem Description) (3,Specifications) (5,Initial Design) (6,Feature Definition) (1,Test Protocol) (3,Development Cycle 1) (13,Development Cycle 2)}; \legend{Time Spend,Time Planned}; \end{axis} \end{tikzpicture} \end{document}