Always clear legend before updating graph.