tooltip to get segment value on hover