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
)
 
Public Function Add ( 
	pivotChartType As ExcelChartType,
	pivotTable As IPivotTable
) As Chart
 
public:
Chart^ Add(
	ExcelChartType pivotChartType, 
	IPivotTable^ pivotTable
)
 
member Add : 
pivotChartType : ExcelChartType * 
pivotTable : IPivotTable -> Chart 
 
 
 
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