I'm using jQuery plugin called Jquery Knob to create circular progress chart. I've achieved to show value and percentage but I also want to show a label inside the knob itself.This is what I've achieved: without label and this is what I want to achieve: with label
I've used the following code but don't know how to add a text on next line to percentage value(inside knob)
link: function(scope, element, attrs) {
$(element).knob({
'format': function(value) {
return value + '%';
}
});
}
I tried adding a newline like
return value + "%\nlabel"
but it doesn't work and comes on the same line.