\documentclass[tikz, border=1cm]{standalone}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node (a) {Overlapped days};
\node[rectangle, right=of a, fill=green!32, minimum width=6cm, minimum height=0.6cm] (r) {};
\draw[dashed] (r.west) ++(0,1) -- +(0,-4);
\draw[dashed] (r.east) ++(0,1) -- +(0,-4);
\node[rectangle, anchor=north east, fill=gray, minimum width=6cm, minimum height=0.6cm] (r2) at ([yshift=-1.5cm] r.south west) {};
\node[below] at (r.south west) {start};
\node[below] at (r.south east) {end};
\node[above] at (r2.north west) {day\_0};
\node[above] at (r2.north east) {start};
\end{tikzpicture}
\end{document}
![两个带有文字和线条的彩色矩形](https://i.stack.imgur.com/ki9jN.png)