I was trying to add Annotation using below code
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
Annotations annots = new Annotations();
annots.EnableUI = true;
annots.ToolBar.Visible = true;
annots.Chart = chart;
annots.EnableViewState = true;
chart.Extensions.Add(annots);
AnnotationText text = new AnnotationText(dr["Annotation"].ToString());
text.Attach(GetXAxisPosition(chart, Convert.ToDateTime(dr["Time"]).ToOADate()), Convert.ToDouble(dr["Value"]));
text.Color = Color.Red;
text.PlotAreaOnly = true;
text.AllowMove = false;
annots.List.Add(text);
I wanted to display annotation in MOSS webpart? I can see the annotation toolbar. But no annotation at all. Can you please help me?