add_shape_in_chart_by_scale method

add_shape_in_chart_by_scale

Add a shape to chart. All unit is percent scale of chart area.

def add_shape_in_chart_by_scale(self, type, placement, left, top, right, bottom):
    ...
ParameterTypeDescription
typeMsoDrawingTypeThe drawing type.
placementPlacementTypethe placement type.
leftfloatUnit is percent scale of chart area width.
topfloatUnit is percent scale of chart area height.
rightfloatUnit is percent scale of chart area width.
bottomfloatUnit is percent scale of chart area height.

add_shape_in_chart_by_scale

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

def add_shape_in_chart_by_scale(self, type, placement, left, top, right, bottom, image_data):
    ...
ParameterTypeDescription
typeMsoDrawingTypeThe drawing type.
placementPlacementTypethe placement type.
leftfloatUnit is percent scale of chart area width.
topfloatUnit is percent scale of chart area height.
rightfloatUnit is percent scale of chart area width.
bottomfloatUnit is percent scale of chart area height.
image_databytesIf the shape is not a picture or ole object,imageData should be null.

See Also