When get_data fails the legend should be cleared