Changing default pie colors


#1

hello,

I need to create a pie chart with specific colors. Does the component allow to change each part of the pie ?

thanks

Marc.


#2

Hi Marc,

Please try:

chart.NSeries[0].Points[0].Area.ForegroundColor = Color.Red;


#3

this works fine, thank you.

I’m now tring something easier, just changing the background of a cell :

cells(“B1”).Style.Pattern = BackgroundType.Solid
cells(“B1”).Style.BackgroundColor = Color.FromArgb(255, 0, 0)

what’s wrong with those 2 lines ? (I’ve go a white cell)

Marc.


#4

Please use the following code:

cells("B1").Style.ForegroundColor = Color.FromArgb(255, 0, 0)


#5

ok, thanks again…

impressive 4 mails quickly send and replied, to and from the other side of the earth :wink:

/<br /> //\
// \
////\\
// \
// \