fixed a bug with right y-axis visibility

- the right y-axis wasn't hidden properly when deleting all items from
the legendlist that were shown on the rigth y-axis