I can’t seem to replicate this - what system/browser are you using? Have you tried exiting the library screen and re-entering it?
If that still doesn’t work, can you show the browser console output (right click -> Inspect element -> Console)?
Edit: If it’s an old save, then the graph would not show up because the electoral history data wasn’t being saved.