Hi,
I would like to change the font size of the lables in a pie chart.
Is it possible? How do I do it?
Regards, Moshe
PresentationEx pres = new PresentationEx();
SlideEx sld = pres.Slides[0];
Aspose.Slides.Pptx.ChartEx chart = sld.Shapes.AddChart(ChartTypeEx.Pie3D, 100, 100, 400, 400);
ChartDataCellFactory fact = chart.ChartData.ChartDataCellFactory;
chart.ChartData.Series.Clear();
chart.ChartData.Categories.Clear();
chart.ChartData.Categories.Add(fact.GetCell(0, 1, 0, "First Qtr"));
chart.ChartData.Categories.Add(fact.GetCell(0, 2, 0, "2nd Qtr"));
chart.ChartData.Categories.Add(fact.GetCell(0, 3, 0, "3rd Qtr"));
chart.ChartData.Series.Add(fact.GetCell(0, 0, 1, "Series 1"), chart.Type);
ChartSeriesEx series = chart.ChartData.Series[0];
series.Values.Add(fact.GetCell(0, 1, 1, 20000));
series.Values.Add(fact.GetCell(0, 2, 1, 50000));
series.Values.Add(fact.GetCell(0, 3, 1, 30000));
series.Labels.ShowValue = true;
series.Labels.ShowPercentage = true;
series.Labels.ShowLegendKey = false;
pres.Write(@"D:\\PieChart.pptx");