Bản mẫu:Cột thời gian các nhiệm kỳ tổng thống Hoa Kỳ

ImageSize   = width:480 height:800
PlotArea    = width:480 height:750 left:0 bottom:40
Legend      = columns:4 left:50 top:43 columnwidth:140
AlignBars   = justify
DateFormat = yyyy
Period     = from:1789 till:2017
TimeAxis   = orientation:vertical
Colors=
id:Dem     value:blue  legend:Dân_chủ
id:Rep     value:red     legend:Cộng_hòa
id:Fed  value:yellow    legend:Liên_bang
id:Wh   value:pink      legend:Đảng_Whig
id:np   value:gray(0.8)  legend:Không_đảng
id:DR   value:green     legend:Dân_chủ-Cộng_Hòa
Define $left  = align:right shift:(-25,-5)
Define $right = align:left  shift:(25,-5)
PlotData=
mark:(line,white) fontsize:S shift:(25,-5) width:25 fontsize:S
from:start till:1797 color:np   $left  text:"George Washington_1789–1797"
from:1797  till:1801 color:Fed  $right text:"1797–1801_John Adams"
from:1801  till:1809 color:DR   $left  text:"Thomas Jefferson_1801–1809"
from:1809  till:1817 color:DR   $right text:"1809–1817_James Madison"
from:1817  till:1825 color:DR   $left  text:"James Monroe_1817–1825"
from:1825  till:1829 color:DR   $right text:"1825–1829_John Quincy Adams"
from:1829  till:1837 color:Dem  $left  text:"Andrew Jackson_1829–1837"
from:1837  till:1841 color:Dem  $right text:"1837–1841_Martin Van Buren"
from:1841  till:1841 color:Wh   $left  text:"William H. Harrison_1841–1841"
from:1841  till:1845 color:Wh   $right text:"1841–1845_John Tyler"
from:1845  till:1849 color:Dem  $left  text:"James K. Polk_1845–1849"
from:1849  till:1850 color:Wh   $right text:"1849–1850_Zachary Taylor"
from:1850  till:1853 color:Wh   $left  text:"Millard Fillmore_1850–1853"
from:1853  till:1857 color:Dem  $right text:"1853–1857_Franklin Pierce"
from:1857  till:1861 color:Dem  $left  text:"James Buchanan_1857–1861"
from:1861  till:1865 color:Rep  $right text:"1861–1865_Abraham Lincoln"
from:1865  till:1869 color:Dem  $left  text:"Andrew Johnson_1865–1869"
from:1869  till:1877 color:Rep  $right text:"1869–1877_Ulysses S. Grant"
from:1877  till:1881 color:Rep  $left  text:"Rutherford B. Hayes_1877–1881"
from:1881  till:1881 color:Rep  $right text:"1881–1881_James A. Garfield"
from:1881  till:1885 color:Rep  $left  text:"Chester A. Arthur_1881–1885"
from:1885  till:1889 color:Dem  $right text:"1885–1889_Grover Cleveland"
from:1889  till:1893 color:Rep  $left  text:"Benjamin Harrison_1889–1893"
from:1893  till:1897 color:Dem  $right text:"1893–1897_Grover Cleveland"
from:1897  till:1901 color:Rep  $left  text:"William McKinley_1897–1901"
from:1901  till:1909 color:Rep  $right text:"1901–1909_Theodore Roosevelt"
from:1909  till:1913 color:Rep  $left  text:"William H. Taft_1909–1913"
from:1913  till:1921 color:Dem  $right text:"1913–1921_Woodrow Wilson"
from:1921  till:1923 color:Rep  $left  text:Warren G. Harding_1921–1923
from:1923  till:1929 color:Rep  $right text:"1923–1929_Calvin Coolidge"
from:1929  till:1933 color:Rep  $left  text:"Herbert Hoover_1929–1933"
from:1933  till:1945 color:Dem  $right text:"1933–1945_Franklin D. Roosevelt"
from:1945  till:1953 color:Dem  $left  text:"Harry S. Truman_1945–1953"
from:1953  till:1961 color:Rep  $right text:"1953–1961_Dwight D. Eisenhower"
from:1961  till:1963 color:Dem  $left  text:"John F. Kennedy_1961–1963"
from:1963  till:1969 color:Dem  $right text:"1963–1969_Lyndon B. Johnson"
from:1969  till:1974 color:Rep  $left  text:"Richard Nixon_1969–1974"
from:1974  till:1977 color:Rep  $right text:1974–1977_Gerald Ford
from:1977  till:1981 color:Dem  $left  text:Jimmy Carter 1977–1981
from:1981  till:1989 color:Rep  $right text:1981–1989_Ronald Reagan
from:1989  till:1993 color:Rep  $left  text:George Bush_1989–1993
from:1993  till:2001 color:Dem  $right text:1993–2001_Bill Clinton
from:2001  till:2009  color:Rep  $left  text:George W. Bush 2001–2009
from:2009  till:end  color:Dem  $right text:Barack Obama từ 2009