Add tooltip as a global function that every graph can access