ExpertXls Excel Library for .NET
AddChart Method (chartType)
Namespaces ► ExpertXls.ExcelLib ► ExcelChartsCollection ► AddChart(ExcelChartType)
ExpertXls Excel Library for .NET
Use this type of constructor when the series will be manually added to the chart, otherwise use the constructor accepting the data source range parameter. Adds a new chart to the collection without specifying the data source range. The location and the size of the chart inside the worksheet are the default ones.
Declaration Syntax

C# | Visual Basic | Visual C++

    public ExcelChart AddChart(
    	ExcelChartType chartType
    )

    Public Function AddChart ( _
    	chartType As ExcelChartType _
    ) As ExcelChart

    public:
    ExcelChart^ AddChart(
    	ExcelChartType chartType
    )

Parameters

chartType (ExcelChartType)
  The chart type

Return Value
The newly created chart

Assembly: ExpertXls.ExcelLib (Module: ExpertXls.ExcelLib) Version: 2.1.0.0 (2.1.0.0)