Document Solutions for Excel, Java Edition | Document Solutions
com.grapecity.documents.excel.drawing Package / IShapes Interface / addChart Method / addChart(String,ChartType,double,double,double,double) Method
* The chart name
The chart type
The distance, in points, from the left edge of the object to theleft 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 shapein the shape range to the top edge of the worksheet.
The width, in points, of the object
The height, in points, of the object
In This Topic
    addChart(String,ChartType,double,double,double,double) Method
    In This Topic
    Creates a chart at the specified location on the active sheet.
    Syntax
    IShape addChart( 
       java.lang.String name,
       ChartType chartType,
       double left,
       double top,
       double width,
       double height
    )

    Parameters

    name
    * The chart name
    chartType
    The chart type
    left
    The distance, in points, from the left edge of the object to theleft 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 shapein 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 IShape object.
    See Also