add_shape_in_chart_by_scale method
Contents
[
Hide
]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):
...
Parameter | Type | Description |
---|---|---|
type | MsoDrawingType | The drawing type. |
placement | PlacementType | the placement type. |
left | float | Unit is percent scale of chart area width. |
top | float | Unit is percent scale of chart area height. |
right | float | Unit is percent scale of chart area width. |
bottom | float | Unit 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):
...
Parameter | Type | Description |
---|---|---|
type | MsoDrawingType | The drawing type. |
placement | PlacementType | the placement type. |
left | float | Unit is percent scale of chart area width. |
top | float | Unit is percent scale of chart area height. |
right | float | Unit is percent scale of chart area width. |
bottom | float | Unit is percent scale of chart area height. |
image_data | bytes | If the shape is not a picture or ole object,imageData should be null. |
See Also
- module
aspose.cells.drawing
- class
ShapeCollection