We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Center text in the middle of the chart

Thread ID:





127206 Nov 2,2016 05:11 PM UTC Nov 4,2016 07:24 AM UTC JavaScript 3
Tags: ejChart
Oliver Wirkus
Asked On November 2, 2016 05:11 PM UTC

Hi forum,

I'm currently evaluating Syncfusion as a replacement of our current JS library.

One of the requirements is that it needs to be possible to show a text in the middle of the chart (in the middle of the doughnut, to be precise). The text needs to stay there even if the chart is updated, resized or moved.

What would be the best way to accomplish this task?

Thanks for your assistance,

Dharanidharan Dharmasivam [Syncfusion]
Replied On November 3, 2016 11:18 AM UTC

Hi Oliver, 
Thanks for using Syncfusion product. 
We have analyzed your query. Using annotation, you can place the text in the middle of the chart and the text will be not be moved, even when the chart get resized. Kindly find the code snippet below, 

Code Snippet: 

    <div id="annotationText" style="font-size:25px; display:none">2014 

For your reference we have attached the sample. Kindly find the sample from below location. 

For more information on annotation, kindly follow the link, 


Oliver Wirkus
Replied On November 3, 2016 05:00 PM UTC

Awesome! Thanks for the example.
That's exactly what I need :)

BTW: Annotations don't seem to work when enable3D is set to true. Is that correct?

Akbar Basha K M [Syncfusion]
Replied On November 4, 2016 07:24 AM UTC

Hi Oliver, 
Glad we could help! Yes, annotation has limitations and it is not supported in 3D Type charts. We have added this information in our UG document and it will be refreshed soon. 
Let us know if you need any further assistance.  
Akbar Basha KM. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon