Skip to content

Combo

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

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 graphics combined as combo chart

ComboChartSetting<G.PresentationSetting> Options

Section titled “ComboChartSetting<G.PresentationSetting> Options”
PropertyTypeDetails
secondaryAxisPositionAxisPosition
chartAxesOptionsChartAxesOptions
AddComboChartsSettingfunctionMethod accepts core chart type’s setting as input. This provides flexibility to handle all options of each chart style. Supported List.
List of supported chart that can be inserted into combo chart