Spread for ASP.NET 7.0 Product Documentation
AddChart(Int32,Int32,Type,Int32,Int32,Int32,Int32) Method
See Also  Example Support Options
FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class > AddChart Method : AddChart(Int32,Int32,Type,Int32,Int32,Int32,Int32) Method


row
The row.
column
The column.
seriesType
Type of the series.
width
Width of the chart.
height
Height of the chart.
x
The position X.
y
The position Y.

Glossary Item Box

Adds the chart control.

Syntax

Visual Basic (Declaration) 
Public Overloads Function AddChart( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal seriesType As Type, _
   ByVal width As Integer, _
   ByVal height As Integer, _
   ByVal x As Integer, _
   ByVal y As Integer _
) As SpreadChart
Visual Basic (Usage)Copy Code
Dim instance As SheetView
Dim row As Integer
Dim column As Integer
Dim seriesType As Type
Dim width As Integer
Dim height As Integer
Dim x As Integer
Dim y As Integer
Dim value As SpreadChart
 
value = instance.AddChart(row, column, seriesType, width, height, x, y)
C# 
public SpreadChart AddChart( 
   int row,
   int column,
   Type seriesType,
   int width,
   int height,
   int x,
   int y
)

Parameters

row
The row.
column
The column.
seriesType
Type of the series.
width
Width of the chart.
height
Height of the chart.
x
The position X.
y
The position Y.

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 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.

Example

This example creates a chart control.
C#Copy Code
FpSpread1.Sheets[0].AddChart(0, 0, typeof(FarPoint.Web.Chart.BarSeries), 400, 400, 0, 0);
Visual BasicCopy Code
FpSpread1.Sheets(0).AddChart(0, 0, GetType(FarPoint.Web.Chart.BarSeries), 400, 400, 0, 0)

Requirements

Target Platforms: Windows 7, Windows 8, Windows Vista, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.