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. Image for the cookie policy date

Label Points?

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.

Thanks

2 Replies

BB Bailey Bilt-Kravitz March 18, 2013 03:22 PM UTC

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


KV Karthikeyan V Syncfusion Team March 21, 2013 06:35 AM UTC

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();

series.Annotations.Items.Add(annotation);

 

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

 

Sample:

 

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

Regards,

Karthikeyan V.



SeriesAnnotationSample_d23eca85.zip

Loader.
Up arrow icon