In 5.x I'm trying to get a label renderer format to work on the right y axis. I've tried a couple things with no luck. I want label to be % instead of a number.
I was using on my last attempt:
label: {
renderer: function (text,sprite,config,rendererData,index) {
return parseInt(text*100, 10) +' %';
}
}
here is my fiddle:
http://ift.tt/1DVeFSo
In 4.x I was able to do a label renderer to work(help of forum) with the following:
label: {
renderer: function(value, label, storeItem, item, i, display, animate, index) {
return parseInt(value * 100, 10) + ' %';
}
}
here is my fiddle:
http://ift.tt/1CZOEzd
I was using on my last attempt:
label: {
renderer: function (text,sprite,config,rendererData,index) {
return parseInt(text*100, 10) +' %';
}
}
here is my fiddle:
http://ift.tt/1DVeFSo
In 4.x I was able to do a label renderer to work(help of forum) with the following:
label: {
renderer: function(value, label, storeItem, item, i, display, animate, index) {
return parseInt(value * 100, 10) + ' %';
}
}
here is my fiddle:
http://ift.tt/1CZOEzd
5.x right y Axis Label format
Aucun commentaire:
Enregistrer un commentaire