Click or drag to resize

WorksheetChartsCollection Add Method (ExcelChartType, IPivotTable)

Adds a chart to the worksheet based on the specified pivot table and chart type.

Namespace: Spire.Xls.Collections
Assembly: Spire.XLS (in Spire.XLS.dll) Version: 15.4.0.0 (15.4.0.5046)
Syntax
public Chart Add(
	ExcelChartType pivotChartType,
	IPivotTable pivotTable
)

Parameters

pivotChartType
Type: Spire.Xls ExcelChartType
The type of chart to be created.
pivotTable
Type: Spire.Xls.Core IPivotTable
The pivot table that the chart will be based on.

Return Value

Type: Chart
The newly created chart.
See Also