Fix to diagram page - legend auto-hides on all tabs except diagram