Allow labelFormat
option to be a function
#1651
Merged
labelFormat
option to be a function
#1651