I am trying to create a timeline that shows when a policy was implemented in certain states. I am a novice to using tikzpicture. My sample period is 2000 - 2023. With the policy treatment starting in 2003 - 2016 with staggered treament. Is there a way to get the years above the line and the color of the line changed to blue during the staggered policy treatment?
The code I have generated places everything below the line.
\begin{frame}
\begin{figure}
\begin{tikzpicture}[x=1.5cm,nodes={text width=1.0cm,align=left}]
\draw[black,->,thick,>=latex,line cap=rect]
(0,0) -- (10,0);
\foreach \Text [count=\Xc starting from 0] in
{{2000.},%
{2001.},%
{2002.},%
{2003. Louisiana. Vermont. Arkansas.},%
{2004. Nebraska.},
{2006. Ohio},
{2007. New Hampshire.},
{2008. Michigan.},
{2010. New York.},
{2012. Florida.},
{2015. New Mexico.},
{2016. Colorado.},
{2018.},
{2019.},
{2021.}}
{\fill (\Xc,0) circle[radius=1.5pt];
\node[below=0.2ex] at (\Xc,0) {\Text};}
\end{tikzpicture}
\end{figure}
\end{frame}