score:2

you're not returning a value from you label formatter function -- try

formatter: function() { return labels[this.value];}  }

another problem is that this.value inside the formatter function is something like '5/7 64298-r3', so labels[this.value] is undefined.

it looks like you're trying to display the first part of the value -- if so, try:

formatter: function() { return this.value.split(" ")[0]; }

Related Query

More Query from same tag