Column

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.ColumnChartSetting());
// Some additional samples
powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK)
	.AddChart(CreateDataCellPayload(), new G.ColumnChartSetting()
	{
		titleOptions = new()
		{
			title = "Column Chart"
		},
		chartLegendOptions = new G.ChartLegendOptions()
		{
			legendPosition = G.ChartLegendOptions.LegendPositionValues.TOP,
			fontSize = 5
		},
		columnChartSeriesSettings = new(){
			null,
			new(){
				columnChartDataPointSettings = new(){
				null,
				new(){
					fillColor = "FF0000"
				},
				new(){
					fillColor = "00FF00"
				},
			},
				fillColor= "AABBCC"
			},
			new(){
				fillColor= "CCBBAA"
			}
		}
	});

ColumnChartSetting Options

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

ColumnChartDataLabel Options

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

ColumnChartSeriesSetting Options

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

ColumnGraphicsSetting Options only applied in cluster type

ColumnChartDataPointSetting Options

Contains options details extended from ChartDataPointSetting that are specific to column chart.

Last updated