📚
OpenXML-Office
v1.x
v1.x
  • Getting Started
  • Introduction
  • Presentation
    • PowerPoint
    • Slide
    • Shape
    • Picture
    • Chart
      • Area
      • Bar
      • Column
      • Line
      • Pie
      • Scatter
      • Combo
      • Waterfall
    • Table
    • Textbox
  • Excel
    • Spreadsheet
    • Worksheet
    • Style
  • LICENSE
Powered by GitBook
On this page
  • Basic Code Sample
  • ComboChartSetting Options

Was this helpful?

  1. Presentation
  2. Chart

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 comboChartSetting = new()
{
	titleOptions = new()
	{
		title = "Combo Chart"
	},
};
comboChartSetting.AddComboChartsSetting(new G.AreaChartSetting());
comboChartSetting.AddComboChartsSetting(new G.BarChartSetting());
comboChartSetting.AddComboChartsSetting(new G.ColumnChartSetting());
comboChartSetting.AddComboChartsSetting(new G.LineChartSetting()
{
	isSecondaryAxis = true
});
comboChartSetting.AddComboChartsSetting(new G.PieChartSetting());

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 Options

Property
Type
Details

secondaryAxisPosition

AxisPosition

chartAxesOptions

ChartAxesOptions

AddComboChartsSetting

function

List of supported chart that can be inserted into combo chart
  • Scatter Chart (TODO)

PreviousScatterNextWaterfall

Last updated 1 year ago

Was this helpful?

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

Area Chart
Bar Chart
Column Chart
Line Chart
Pie Chart
Supported List