Correct bug that causes bars of previous canvas to be displayed if a new tree is made

Saw this problem when changing the size of the phylogram. This removes barChart array from the previous phylocanvas, which persists despite removing the previous phylocanvas.