toggle between legend and hover display