Spread ASP.NET 17
FarPoint.Web.Spread Assembly / FarPoint.Web.Spread Namespace / SheetView Class / AddChart Method / AddChart(CellRange,Type,Int32,Int32,Int32,Int32,ChartViewType,Boolean) Method
The range of data used in the chart.
Type of the series.
Width of the chart.
Height of the chart.
The X position.
The Y position.
Type of the view.
if set to true the new chart has a default legend area; otherwise, there is no legend area.
Example


In This Topic
    AddChart(CellRange,Type,Int32,Int32,Int32,Int32,ChartViewType,Boolean) Method
    In This Topic
    Adds the chart control.
    Syntax
    'Declaration
     
    
    Public Overloads Function AddChart( _
       ByVal cellRange As CellRange, _
       ByVal seriesType As Type, _
       ByVal width As Integer, _
       ByVal height As Integer, _
       ByVal x As Integer, _
       ByVal y As Integer, _
       ByVal viewType As ChartViewType, _
       ByVal showLegend As Boolean _
    ) As SpreadChart
    'Usage
     
    
    Dim instance As SheetView
    Dim cellRange As CellRange
    Dim seriesType As Type
    Dim width As Integer
    Dim height As Integer
    Dim x As Integer
    Dim y As Integer
    Dim viewType As ChartViewType
    Dim showLegend As Boolean
    Dim value As SpreadChart
     
    value = instance.AddChart(cellRange, seriesType, width, height, x, y, viewType, showLegend)

    Parameters

    cellRange
    The range of data used in the chart.
    seriesType
    Type of the series.
    width
    Width of the chart.
    height
    Height of the chart.
    x
    The X position.
    y
    The Y position.
    viewType
    Type of the view.
    showLegend
    if set to true the new chart has a default legend area; otherwise, there is no legend area.
    Remarks
    The cellRange parameter indicates the data that is used by the chart. The seriesType parameter indicates which type of chart will be 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.
    Example
    This example creates a chart control.
    See Also