Value of a Donut chart in the center

Share RGraph:   Share or Like RGraph on Facebook!

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Jessica on 24th July 2014
I'm making a donut graph to show percentage completed.

Is there a way to display the value in the center of the graph?

Thanks in advance
Posted by Richard on 24th July 2014
You could do that using the drawing API:

www.rgraph.net/fiddle/view/a-donut-chart





Richard
Posted by Jessica on 24th July 2014
thanks so much for your quick reply and help!!!
will be sure to leave great feedback !!
Posted by Jessica on 24th July 2014
I see that the size is adjustable but is there a way to change the color of the text as well? thanks
Posted by Richard on 24th July 2014
Yes:

text.set('colors', ['red'])

The text objects properties ref is here:

www.rgraph.net/docs/drawing-api-text.html





Richard
Posted by Richard on 14th August 2014
Further to this, I've added animation to the demo, and it can be seen here:

www.rgraph.net/demos/donut-progress.html


Richard

Add a reply




« Back to message list