Pie

Add chart method present in slide component or you can replace the chart using shape componenet.

Basic Code Sample

// Bare minimum
powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK)
	.AddChart(CreateDataCellPayload(), new G.PieChartSetting<G.PresentationSetting>());
// Some additional samples
powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK)
	.AddChart(CreateDataCellPayload(), new G.PieChartSetting<G.PresentationSetting>()
	{
		pieChartTypes = G.PieChartTypes.DOUGHNUT,
		pieChartDataLabel = new()
		{
			dataLabelPosition = G.PieChartDataLabel.DataLabelPositionValues.SHOW,
			showCategoryName = true,
			showValue = true,
			separator = ". "
		}
	});

PieChartSetting<G.PresentationSetting> Options

Contains options details extended from ChartSetting that are specific to pie chart.

PieChartDataLabel Options

Contains options details extended from ChartDataLabel that are specific to pie chart.

PieChartSeriesSetting Options

Contains options details extended from ChartSeriesSetting that are specific to pie chart.

Last updated