More configurable tooltip name function

I want to be able to change the tooltip name based on the position in the X axis as well as the original name. The parameters should be similar to the valueFormat function below.