Jump to content
Software FX Community

Set color to Bar series


co_lcruz@axtel.com.mx
 Share

Recommended Posts

Hi everyone, 

I'm try to set color to 3 bar series ,

        chr1.Series(0).Color = System.Drawing.Color.FromArgb(100, 100, 200)

        chr1.Series(1).Color = System.Drawing.Color.FromArgb(184, 188, 255)

        chr1.Series(2).Color = System.Drawing.Color.FromArgb(1, 161, 153) 

however, my data contains more of 3 series, when try set color to serie 4:

chr1.Series(3).Color = System.Drawing.Color.Azure

 I got this error:

{"Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index"} 

Any advice, will be appreciated

regards, 

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