Spread WPF 17
GrapeCity.Windows.SpreadSheet.Data Namespace / Worksheet Class / AddChart Method / AddChart(String,SpreadChartType,Double,Double,Double,Double) Method
The name of the chart.
The type of the chart.
The x value or left position.
The y value or top position.
The width.
The height.


In This Topic
    AddChart(String,SpreadChartType,Double,Double,Double,Double) Method
    In This Topic
    Adds the chart.
    Syntax
    'Declaration
     
    Public Overloads Function AddChart( _
       ByVal name As String, _
       ByVal chartType As SpreadChartType, _
       ByVal x As Double, _
       ByVal y As Double, _
       ByVal width As Double, _
       ByVal height As Double _
    ) As SpreadChart
    'Usage
     
    Dim instance As Worksheet
    Dim name As String
    Dim chartType As SpreadChartType
    Dim x As Double
    Dim y As Double
    Dim width As Double
    Dim height As Double
    Dim value As SpreadChart
     
    value = instance.AddChart(name, chartType, x, y, width, height)
    public SpreadChart AddChart( 
       string name,
       SpreadChartType chartType,
       double x,
       double y,
       double width,
       double height
    )

    Parameters

    name
    The name of the chart.
    chartType
    The type of the chart.
    x
    The x value or left position.
    y
    The y value or top position.
    width
    The width.
    height
    The height.
    Remarks
    The row parameter represents the start row index and column represents the start column index. This method will auto detect a cell range based on these two indexes. The seriesType parameter indicates which type of chart is added. The chartWidth and chartHeight parameters specify the size (width and height) of the chart. The absolute position is specified by the x and y parameters. The ChartViewType parameter is the view type of the chart (2D or 3D). The showLegend parameter indicates whether to show a default legend area in the chart.
    See Also