anwar Posted July 17, 2009 Report Share Posted July 17, 2009 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? Quote Link to comment Share on other sites More sharing options...
Frank Posted August 14, 2009 Report Share Posted August 14, 2009 What type of chart is this (Line,Bar,etc.)? What's in your X-Axis? You are attaching the object to a date in the X-Axis. Depending on the type of chat you may have to change this to the index of the point to attach to. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.