monarchData = [
{ name: "Elizabeth", start: 1565, end: 1603 },
{ name: "James I", start: 1603, end: 1625 },
{ name: "Charles I", start: 1625, end: 1649 },
{ name: "Cromwell", start: 1649, end: 1660, commonwealth: true },
{ name: "Charles II", start: 1660, end: 1685 },
{ name: "James II", start: 1685, end: 1689 },
{ name: "William\nand\nMary", start: 1689, end: 1702 },
{ name: "Anne", start: 1702, end: 1714 },
{ name: "George I", start: 1714, end: 1727 },
{ name: "George II", start: 1727, end: 1760 },
{ name: "George III", start: 1760, end: 1820 },
{ name: "George IV", start: 1811, end: 1821 },
{ name: "", start: 1821, end: 1830, future: true }
].map((d, i) => ({
...d,
x: d.start + (d.end - d.start) / 2,
y: (d.future || (!d.commonwealth && i % 2) ? -1 : 1) + 96
}))