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.

Label Points?

Thread ID:





107798 Mar 18,2013 09:55 AM Mar 21,2013 02:35 AM WPF 2
Tags: Chart
Bailey Bilt-Kravitz
Asked On March 18, 2013 09:55 AM

Anybody know how to label points?
I think this should be easy but can't figure it out.
I'm using a data bound chart where the x-axis is time and I'd like to show some more data at various points.


Bailey Bilt-Kravitz
Replied On March 18, 2013 11:22 AM

To be clear, I know I can use AdornmentsInfo, but I just want to have 1 point with a label.

Karthikeyan V [Syncfusion]
Replied On March 21, 2013 02:35 AM

Hi Bailey,


Thanks for using Syncfusion products.


We have analyzed your query and your requirement can be achieved by using the Series Annotation. Please find the code snippet below.


Code Snippet [C#] :


var annotation = new ChartSeriesAnnotation();

annotation.AnnotationShape = AnnotationShapes.Square;

annotation.Stroke = Brushes.Black; 

annotation.Fill = Brushes.Orange;

annotation.X = 3;

annotation.Y = 50;

annotation.Description = annotation.Y.ToString();

series.Annotations = new AnnotationsCollection();



We have prepared sample based on your requirement. You can find the sample in the following location.




Please let us know if you require further assistance on this.


Karthikeyan V.



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.