davidib Posted May 9, 2008 Report Share Posted May 9, 2008 Hi, I must be doing something stupid but I've spent the last 2-3 hours trying to get this to work to no avail and now I'm desperate All I want to do is add a custom text label to a certain point in my chart that has a single series. Per the code and comment below, some of the point specific methods/properties seem to to work, others do not. Is there any reason for this? Why would the Marker shape/size work so obviously/easily, but the color of the Marker not work at all? Thanks for any help you can provide David //my code snippet, try to label a point!!chart1.Points[0, 100].Color = System.Drawing.Color.Blue; //DOES NOT WORK no matter what color I choose chart1.Points[0, 1000].PointLabels.TextColor = System.Drawing. Color.Blue; //DOES WORK chart1.Points[0, 1000].PointLabels.Font = new Font("Arial", 10); //DOES WORK chart1.Points[0, 1000].PointLabels.Visible = true; //DOES WORK, shows the value of the data at that pointchart1.Points[0, 1000].MarkerShape = ChartFX.WinForms.MarkerShape.InvertedTriangle; //DOES WORK chart1.Points[0, 1000].MarkerSize = 10; //DOES WORKchart1.Points[0, 1000].Text = "XXX"; //DOES NOT WORK, (no matter where I place this stmt in the code) argh!!!!! > chart1.Refresh(); Quote Link to comment Share on other sites More sharing options...
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.