Allow tooltip offset to be set by function call