AddChart Method (String, eChartType)

Office Open XML

Add a new chart to the worksheet. Do not support Bubble-, Radar-, Stock- or Surface charts.

Namespace:  OfficeOpenXml.Drawing
Assembly:  EPPlus (in EPPlus.dll) Version: 3.0.0.1 (3.0.0.1)

Syntax

C#
public ExcelChart AddChart(
	string Name,
	eChartType ChartType
)
Visual Basic (Declaration)
Public Function AddChart ( _
	Name As String, _
	ChartType As eChartType _
) As ExcelChart
Visual C++
public:
ExcelChart^ AddChart(
	String^ Name, 
	eChartType ChartType
)

Parameters

Name
Type: System..::.String

[Missing <param name="Name"/> documentation for "M:OfficeOpenXml.Drawing.ExcelDrawings.AddChart(System.String,OfficeOpenXml.Drawing.Chart.eChartType)"]

ChartType
Type: OfficeOpenXml.Drawing.Chart..::.eChartType
Type of chart

Return Value

The chart

See Also