Hide Graph button/legend when there is no graph