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.
Unfortunately, activation email could not send to your email. Please try again.

VerticalLineAnnotation and HorizontalLineAnnotation on Pie/Doughnut Chart

Thread ID:

Created:

Updated:

Platform:

Replies:

117473 Oct 27,2014 03:27 AM Nov 1,2014 02:23 AM WPF 4
loading
Tags: Chart
Chong Yee Mei
Asked On October 27, 2014 03:27 AM

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 03:36 AM

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 09:13 AM

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.

 

Regards,

Sumathi J


Attachment: AnnotationPie_9b85c8df.zip

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

Hi

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.

Thanks.

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

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.

Thanks,
Rajkumar BR

CONFIRMATION

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.

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.

;