Jump to content
Software FX Community

How to assign color codes to point values


Saran
 Share

Recommended Posts

Hi Frank, I need to assign the RGB values of the color codes for a particular color like the code below:

 

    Chart1.Points[0].Color = System.Drawing.Color.FromArgb(93, 162, 177);   Chart1.Points[1].Color = System.Drawing.Color.FromArgb(120, 203, 195);   Chart1.Points[2].Color = System.Drawing.Color.FromArgb(194, 199, 179);   Chart1.Points[3].Color = System.Drawing.Color.FromArgb(135, 199, 211);

Link to comment
Share on other sites

This code looks fine. Is it not working?

If this is not working I need a sample app that reproduces the problem. This code on its own works perfectly (I just tested it) so the problem (if any) is related to the context in which you are doing this.

A wild guess: If you are using conditional attributes the per-point attributes will be wiped-out according to the conditions. Are you using conditional attributes?

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.

Guest
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.

 Share

×
×
  • Create New...