Jump to content
Software FX Community

Change a particular point's color without the following line change color


Recommended Posts



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.

Posted Image

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.




Link to comment
Share on other sites

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 =


chart1.AllSeries.Border.Effect =


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 =


Link to comment
Share on other sites

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.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...