add_shape_in_chart method

add_shape_in_chart(self, type, placement, left, top, right, bottom)

Add a shape to chart .All unit is 1/4000 of chart area.


def add_shape_in_chart(self, type, placement, left, top, right, bottom):
    ...
ParameterTypeDescription
typeaspose.cells.drawing.MsoDrawingTypeThe drawing type.
placementaspose.cells.drawing.PlacementTypethe placement type.
leftintIn unit of 1/4000 chart area width.
topintIn unit of 1/4000 chart area height.
rightintIn unit of 1/4000 chart area width.
bottomintIn unit of 1/4000 chart area height.

add_shape_in_chart(self, type, placement, left, top, right, bottom, image_data)

Add a shape to chart .All unit is 1/4000 of chart area.


def add_shape_in_chart(self, type, placement, left, top, right, bottom, image_data):
    ...
ParameterTypeDescription
typeaspose.cells.drawing.MsoDrawingTypeThe drawing type.
placementaspose.cells.drawing.PlacementTypethe placement type.
leftintIn unit of 1/4000 chart area width.
topintIn unit of 1/4000 chart area height.
rightintIn unit of 1/4000 chart area width.
bottomintIn unit of 1/4000 chart area height.
image_databytesIf the shape is not a picture or ole object,imageData should be null.

See Also