Refactored the visibility option for x-value hover detail.