Electoral trends graph

Completed electoral trends graph. Need to tidy up Javascript on pages.