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

VerticalLineAnnotation and HorizontalLineAnnotation on Pie/Doughnut Chart

Thread ID:





117473 Oct 27,2014 07:27 AM UTC Nov 1,2014 06:23 AM UTC WPF 4
Tags: Chart
Chong Yee Mei
Asked On October 27, 2014 07:27 AM UTC

I have a control for the user to plot different types of chart and add annotation to the chart. The control allows the user to change plot types, while retaining the same data.

My question is, does pie chart (or doughnut chart) allow VerticalLineAnnotation and HorizontalLineAnnotation to be added. Based on my current understanding, both of the annotations are on the Primary and Secondary axes, which the pie chart does not have.

In my case, the annotations still appear on the chart, but they are restricted to certain boundaries. Refer to attached screenshot.

Attachment: pieannotation_fbeb34e6.zip

Chong Yee Mei
Replied On October 27, 2014 07:36 AM UTC

Apparently the axes are not being reinitialized/reset when changing the chart type from column/line chart to pie/doughnut chart.

Sumathi Jayaraj [Syncfusion]
Replied On October 28, 2014 01:13 PM UTC

Hi Chong,


Thanks for using Syncfusion products.


Query 1: does pie chart (or doughnut chart) allow VerticalLineAnnotation and HorizontalLineAnnotation to be added.

We have analyzed your requirements and we can able to add annotation to the pie/ doughnut series by setting CoordinateUnit as pixel. It having boundaries only if we set the coordinate pixel as axis. We have prepared a sample based on your requirements. Please find the sample in the attachment.


Query 2: the axes are not being reinitialized/reset

We are not able to reproduce the reported issue. Please find the sample in the attachment for your reference.


Please let us know if you have any queries.



Sumathi J

Attachment: AnnotationPie_9b85c8df.zip

Chong Yee Mei
Replied On October 29, 2014 05:18 AM UTC


Thanks a lot for the sample. It helps a lot with understanding how annotation works. Just a feedback, maybe you guys should consider adding the sample into the documentation, as the documentation wasn't very clear/detailed.

As for query 2, the issue was caused by column chart using Axis and pie chart not set to use Pixel afterwards. After adding a conditional check for detecting the chart type (and use Axis/Pixel accordingly), it is working fine.


Rajkumar [Syncfusion]
Replied On November 1, 2014 06:23 AM UTC

Hi Chong,

Thank you for your update and suggestion. We will include more details regarding the annotation our upcoming volume releases.

Please let us know, if you need any further assistance.

Rajkumar BR


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