We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

.Net- Pie-Chart ignores border-format if IsColorVaried is set

Hello,

there seems to be an error handling the pie chart rendering. Whenever a border format (color) is set on an existing pie chart which is set to vary color for each category (IsColorVaried) the border format is ignored.

E.g. for a simple pptx containing a pie-chart trying to set the series.format.line.fill color results in a white border.

Please see the attached project for reference.

Regards,
Kristoffer Witt

Hi Kristoffer Witt,

I have observed your requirements and like to share that you need to set the line color for each series data point element. Please try using following sample code on your end and repeat for every series point to set the color for series data point border line.

series.DataPoints[0].Format.Line.FillFormat.FillType = FillType.Solid;
series.DataPoints[0].Format.Line.FillFormat.SolidFillColor.Color = System.Drawing.Color.Red;
series.DataPoints[0].Format.Line.Style = LineStyle.Single;
series.DataPoints[0].Format.Line.Width = 3;
series.DataPoints[0].Format.Line.DashStyle = LineDashStyle.Solid;


Many Thanks,