Ability to pass a function as scaleLabel