emperor                           heir relationship to emperor and status                                became heir                                  ceased to be heir                                       next in line
0      francis ii         crown prince ferdinand                  son heir apparent  11 august 1804 , foundation of the empire                           2 march 1835 , succeeded        archduke joseph franz 1804 - 1807 , brother
1      francis ii         crown prince ferdinand                  son heir apparent  11 august 1804 , foundation of the empire                           2 march 1835 , succeeded          archduke franz karl 1807 - 1835 , brother
2     ferdinand i            archduke franz karl           brother heir presumptive           2 march 1835 , brother succeeded  2 december 1848 , renounced his succession rights                  archduke franz '1835 - 1848 , son
3  franz joseph i  archduke ferdinand maximilian           brother heir presumptive        2 december 1848 , brother succeeded               21 august 1858 , son born to emperor         archduke karl ludwig 1848 - 1858 , brother
4  franz joseph i            crown prince rudolf                  son heir apparent                      21 august 1858 , born                             30 january 1889 , died  archduke ferdinand maximilian 1858 - 1864 , uncle
5  franz joseph i            crown prince rudolf                  son heir apparent                      21 august 1858 , born                             30 january 1889 , died           archduke karl ludwig 1864 - 1889 , uncle
6  franz joseph i           archduke karl ludwig           brother heir presumptive              30 january 1889 , nephew died  1 february 1889 , renounced his succession rights                archduke franz ferdinand 1889 , son
7  franz joseph i                  archduke karl       grandnephew heir presumptive          28 june 1914 , death of his uncle                       21 november 1916 , succeeded    archduke maximilian eugen 1906 - 1912 , brother
8  franz joseph i                  archduke karl       grandnephew heir presumptive          28 june 1914 , death of his uncle                       21 november 1916 , succeeded                    archduke otto 1912 - 1916 , son
9          karl i              crown prince otto                  son heir apparent        21 november 1916 , father succeeded     12 november 1918 , empire replaced by republic              archduke robert 1916 - 1918 , brother

Table as JSON:
{"emperor":{"0":"francis ii","1":"francis ii","2":"ferdinand i","3":"franz joseph i","4":"franz joseph i","5":"franz joseph i","6":"franz joseph i","7":"franz joseph i","8":"franz joseph i","9":"karl i"},"heir":{"0":"crown prince ferdinand","1":"crown prince ferdinand","2":"archduke franz karl","3":"archduke ferdinand maximilian","4":"crown prince rudolf","5":"crown prince rudolf","6":"archduke karl ludwig","7":"archduke karl","8":"archduke karl","9":"crown prince otto"},"relationship to emperor and status":{"0":"son heir apparent","1":"son heir apparent","2":"brother heir presumptive","3":"brother heir presumptive","4":"son heir apparent","5":"son heir apparent","6":"brother heir presumptive","7":"grandnephew heir presumptive","8":"grandnephew heir presumptive","9":"son heir apparent"},"became heir":{"0":"11 august 1804 , foundation of the empire","1":"11 august 1804 , foundation of the empire","2":"2 march 1835 , brother succeeded","3":"2 december 1848 , brother succeeded","4":"21 august 1858 , born","5":"21 august 1858 , born","6":"30 january 1889 , nephew died","7":"28 june 1914 , death of his uncle","8":"28 june 1914 , death of his uncle","9":"21 november 1916 , father succeeded"},"ceased to be heir":{"0":"2 march 1835 , succeeded","1":"2 march 1835 , succeeded","2":"2 december 1848 , renounced his succession rights","3":"21 august 1858 , son born to emperor","4":"30 january 1889 , died","5":"30 january 1889 , died","6":"1 february 1889 , renounced his succession rights","7":"21 november 1916 , succeeded","8":"21 november 1916 , succeeded","9":"12 november 1918 , empire replaced by republic"},"next in line":{"0":"archduke joseph franz 1804 - 1807 , brother","1":"archduke franz karl 1807 - 1835 , brother","2":"archduke franz '1835 - 1848 , son","3":"archduke karl ludwig 1848 - 1858 , brother","4":"archduke ferdinand maximilian 1858 - 1864 , uncle","5":"archduke karl ludwig 1864 - 1889 , uncle","6":"archduke franz ferdinand 1889 , son","7":"archduke maximilian eugen 1906 - 1912 , brother","8":"archduke otto 1912 - 1916 , son","9":"archduke robert 1916 - 1918 , brother"}}