Hello,
When I try to create an exploded chart the generated report still contains a normal pie chart, is this a known bug?
Sample code:
ChartEx ch = sld.Shapes.AddChart(Aspose.Slides.Pptx.Charts.ChartTypeEx.ExplodedPie, 30, 100, 350, 400);
Hello,
When I try to create an exploded chart the generated report still contains a normal pie chart, is this a known bug?
Sample code:
ChartEx ch = sld.Shapes.AddChart(Aspose.Slides.Pptx.Charts.ChartTypeEx.ExplodedPie, 30, 100, 350, 400);
Hi Neil,
PresentationEx pres = new PresentationEx();SlideEx sld = pres.Slides[0];ChartEx chart = sld.Shapes.AddChart(Aspose.Slides.Pptx.Charts.ChartTypeEx.ExplodedPie, 30, 100, 350, 400);pres.Write(@“D:\Aspose Data\TestChart.pptx”);
Thanks,
I'll download 7.3
Hi, I have tried running the code with Aspose.Slides 7.3.1 and I still get a normal pie chart rather than an exploded pie chart.
Code:
ChartEx ch = sld.Shapes.AddChart(Aspose.Slides.Pptx.Charts.ChartTypeEx.ExplodedPie, 30, 100, 350, 400);
ChartDataCellFactory fact = ch.ChartData.ChartDataCellFactory;
ch.ChartData.Series.Clear();
ch.ChartData.Categories.Clear();
int[] chartData = new int[] { 1, 2, 3, 4 };
string[] chartLabels = new string[] { "A", "B", "C", "D" };
ch.ChartData.Series.Add(fact.GetCell(0, 0, 1, ""), ch.Type);
for (int i = 0; i < chartData.Length; i++)
{
ch.ChartData.Categories.Add(fact.GetCell(0, i + 1, 0, chartLabels[i]));
ChartSeriesEx series1 = ch.ChartData.Series[0];
series1.Values.Add(fact.GetCell(0, i + 1, 1, chartData[i]));
series1.Labels.ShowCategoryName = true;
series1.Labels.ShowPercentage = true;
series1.Labels.TextProperties.Paragraphs[0].ParagraphFormat.DefaultPortionFormat.FontHeight = 8;
}
Hi Neil,
The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan