# Simple timeline

> A line with five dated events above it, using only the drawing basics. A Timelines example with its complete LaTeX source, ready to copy or open in TeXeR.

A Timelines example in the TeXeR TikZ library: https://texer.org/library/timelines/simple-timeline

Package: [Timelines](https://texer.org/library/timelines.md), on CTAN at https://ctan.org/pkg/pgf.

Tags: timeline, events

## Source

```latex
\begin{tikzpicture}
  \draw[thick, ->] (0,0) -- (10,0);
  \foreach \x/\year/\event in {1/2021/Founded, 3/2022/First hire, 5/2023/Launch, 7/2024/Funding, 9/2025/Expansion} {
    \draw (\x,0.15) -- (\x,-0.15) node[below] {\year};
    \node[above] at (\x,0.2) {\event};
  }
\end{tikzpicture}
```

## As a complete document

The same example in a document that compiles on its own with pdfLaTeX:

```latex
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}

\begin{document}
\begin{tikzpicture}
  \draw[thick, ->] (0,0) -- (10,0);
  \foreach \x/\year/\event in {1/2021/Founded, 3/2022/First hire, 5/2023/Launch, 7/2024/Funding, 9/2025/Expansion} {
    \draw (\x,0.15) -- (\x,-0.15) node[below] {\year};
    \node[above] at (\x,0.2) {\event};
  }
\end{tikzpicture}
\end{document}
```
