shared tooltip code (now covers pies)