Combo

Add chart method present in slide component or you can replace the chart using shape componenet. This type is bit different from previous core chart types. Combo setting act as organiser for adding other base type chart to single chart componenet along with additional options

Basic Code Sample

G.ComboChartSetting<G.PresentationSetting> comboChartSetting = new()
{
	titleOptions = new()
	{
		title = "Combo Chart"
	},
};
comboChartSetting.AddComboChartsSetting(new G.AreaChartSetting<G.PresentationSetting>());
comboChartSetting.AddComboChartsSetting(new G.BarChartSetting<G.PresentationSetting>());
comboChartSetting.AddComboChartsSetting(new G.ColumnChartSetting<G.PresentationSetting>());
comboChartSetting.AddComboChartsSetting(new G.LineChartSetting<G.PresentationSetting>()
{
	isSecondaryAxis = true
});
comboChartSetting.AddComboChartsSetting(new G.PieChartSetting<G.PresentationSetting>());

powerPoint.AddSlide(PresentationConstants.SlideLayoutType.BLANK)
	.AddChart(CreateDataCellPayload(10), comboChartSetting);

Above code is example to add each data series as different type of chart grapics combined as combo chart

ComboChartSetting<G.PresentationSetting> Options

PropertyTypeDetails

secondaryAxisPosition

AxisPosition

chartAxesOptions

ChartAxesOptions

AddComboChartsSetting

function

Method accepts core chart type's setting as input. This provides fexlibilty to handle all options of each chart style. Supported List.

List of supported chart that can be inserted into combo chart

Last updated