Changing default pie colors

hello,

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

thanks

Marc.

Hi Marc,

Please try:

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

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.

Please use the following code:

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

ok, thanks again…

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

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

@markito,
Aspose.Cells has replaced Aspose.Excel that is no more continued now. This new product supports all the latest features of MS Excel including the advanced features of charts. You can create and customize charts, set chart appearance, manipulate position and size, render chart to different types, manipulate controls in workbook, format data in charts and many more. Here is an artice that can be referred to for more information about charts.
Charts

The latest trial version of this product can be downloaded here:
Aspose.Cells for .NET (Latest Version)

You can test all the features of this product by downloading a runnable solution here.