Spread.Services Documentation
AddChart Method
GrapeCity.Documents.Spread.Drawing Namespace > IShapes Interface : AddChart Method
The chart type
The distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).
The distance, in points, from the top edge of the top most shape in the shape range to the top edge of the worksheet.
The width, in points, of the object
The height, in points, of the object
Creates a chart at the specified location on the active sheet.
Syntax
IShape AddChart( 
   ChartType chartType,
   System.double left,
   System.double top,
   System.double width,
   System.double height
)

Parameters

chartType
The chart type
left
The distance, in points, from the left edge of the object to the left edge of column A (on a worksheet) or the left edge of the chart area (on a chart).
top
The distance, in points, from the top edge of the top most shape in the shape range to the top edge of the worksheet.
width
The width, in points, of the object
height
The height, in points, of the object

Return Value

The IShapeThe object.
See Also

Reference

IShapes Interface
IShapes Members