Hi Domenico,
Thanks for using the Syncfusion products.
We have analysed the reported requirement. You can achieve your requirement with convert datetime value to double and assign the convert value to X property.
Code snippet [C#]:
SeriesAnnotation.X = DateTime.FromOADate(xValue);
Please let us know if you require further assistance on this.
Thanks,
Karthikeyan V.
Hi Domenico,
Please ignore the previous update.
We have analysed the reported requirement. You can achieve your requirement with convert datetime value to double and assign the convert value to X property.
Code snippet [C#]:
SeriesAnnotation.X = Convert.ToDouble(new DateTime(2014,5,4));
Please let us know if you require further assistance on this.
Thanks,
Karthikeyan V.
Hi Domenico,
Sorry for the inconvenience caused.
We have analyzed the reported issue, we are not able to
reproduce the issue. We have prepared the sample based on your query. Please
download it from the given below location.
Please let us know if you require further assistance on
this.
Regards,
Suresh S
Hi Domenico,
Thanks for your response. We have analyzed the reported
issue. While initializing the ChartSeriesAnnotation, the required
AnnotationShape have to be given as shown in the below code snippet. If you are
not using AnnotationShape then, the Template property of ChartSeriesAnnotation
should be used and bind the description if only text is to be displayed.
Code Snippet [C#]:
this.ChartSerieA.Annotations.Items.Add(new ChartSeriesAnnotation
{
X = viewModel.DataModel[3].Year.ToOADate(),
Y = 22,
Description = "Syncfusion",
AnnotationShape = AnnotationShapes.HorizontalLine,
});
Please let us know if you require further assistance on
this.
Regards,
Suresh S
Hi Domenico,
Thanks for your response. We have prepared the sample based
on your query. Please download it from the given
below location.
Please let us know if you require further assistance on
this.
Regards,
Suresh S