MSChart text annotation asp.net 4.5
-
I have an MSChart control on a web form that displays numerous line graphs. But I am unable to apply a text annotation. Nothing works thus far. I tried to add with VS 2013 community in both the designer and run-time code. Nothing shows up. But no errors are shown, either. Any suggestions? Nothing from Microsoft was helpful. Or elsewhere in my search, although I noted lots of difficulties with this control.
-
I have an MSChart control on a web form that displays numerous line graphs. But I am unable to apply a text annotation. Nothing works thus far. I tried to add with VS 2013 community in both the designer and run-time code. Nothing shows up. But no errors are shown, either. Any suggestions? Nothing from Microsoft was helpful. Or elsewhere in my search, although I noted lots of difficulties with this control.
what you want to do exactly with text annotation, MSCHART support shape, text, group annotation, which one you want to use ? try with following simple snippet, see if it works
using System.Web.UI.DataVisualization.Charting;
...
LineAnnotation myLine = new LineAnnotation();
myLine.Name = "myLine";
myLine.X = 3;
myLine.Y = 3;
Chart1.Annotations.Add(myLine);Find More .Net development tips at : .NET Tips The only reason people get lost in thought is because it's unfamiliar territory.