skchai Posted April 18, 2013 Report Posted April 18, 2013 Hi, Hi I have encounter a problem in creating charts for a system. The problem when I assign a colour to a point, the line following the point will follow the colour of the point, which is not the behaviour I wanted. Based on the chart above, as you can see in the red circle, the point is assign with the colour red, and then the following line became red colour as well. Is there a way to set the following line to remain black colour? Thank you. Quote
AndreG Posted April 19, 2013 Report Posted April 19, 2013 Hi Skchai, Your image did not post, but I think I know what you are talking about. Try this: chart1.Data.Series = 3; chart1.Data.Points = 5;Random r = new Random(); for (int i = 0; i < chart1.Data.Series; i++) { for (int j = 0; j < chart1.Data.Points; j++) { chart1.Data[i, j] = r.Next(100); } } chart1.AllSeries.Border.UseForLines = true; chart1.AllSeries.Border.Effect = BorderEffect.None; for (int i = 0; i < chart1.Series.Count; i++) chart1.Series.Border.Color = chart1.Series.Color; chart1.AllSeries.MarkerSize = 10; chart1.Points[1, 2].Color = Color.Pink; Quote
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.