I have created a pie chart with 4 segments but cannot change the default colors. Both AsposeSlides and Aspose.Cells change chart colors easily. Please send sample code.
Sample code:
Shape shape = builder.insertChart(ChartType.PIE, 200, 125);
Chart chart = shape.getChart();
chart.getTitle().setShow(false);
// Delete default generated series.
chart.getSeries().clear();
// Add new series
ChartSeries series0 = chart.getSeries().add(“S0”, new String[] { “High”, “Significant”, “Moderate”, “Low” }, new double[] { 4, 3, 2, 1});
I am able to change the chartDataLabel functions to change all appearance except color
Thanks,
Barbara