## ShapeCollection::AddShapeInChartByScale(MsoDrawingType, PlacementType, double, double, double, double) method


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

```cpp
Shape Aspose::Cells::Drawing::ShapeCollection::AddShapeInChartByScale(MsoDrawingType type, PlacementType placement, double left, double top, double right, double bottom)
```


| Parameter | Type | Description |
| --- | --- | --- |
| type | MsoDrawingType | The drawing type. |
| placement | PlacementType | the placement type. |
| left | double | Unit is percent scale of chart area width. |
| top | double | Unit is percent scale of chart area height. |
| right | double | Unit is percent scale of chart area width. |
| bottom | double | Unit is percent scale of chart area height. |

## See Also

* Class [Shape](../../shape/)
* Enum [MsoDrawingType](../../msodrawingtype/)
* Enum [PlacementType](../../placementtype/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [ShapeCollection](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
## ShapeCollection::AddShapeInChartByScale(MsoDrawingType, PlacementType, double, double, double, double, const Vector \<uint8_t\>\&) method


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

```cpp
Shape Aspose::Cells::Drawing::ShapeCollection::AddShapeInChartByScale(MsoDrawingType type, PlacementType placement, double left, double top, double right, double bottom, const Vector<uint8_t> &imageData)
```


| Parameter | Type | Description |
| --- | --- | --- |
| type | MsoDrawingType | The drawing type. |
| placement | PlacementType | the placement type. |
| left | double | Unit is percent scale of chart area width. |
| top | double | Unit is percent scale of chart area height. |
| right | double | Unit is percent scale of chart area width. |
| bottom | double | Unit is percent scale of chart area height. |
| imageData | const Vector \<uint8_t\>\& | If the shape is not a picture or ole object,imageData should be null. |

## See Also

* Class [Shape](../../shape/)
* Enum [MsoDrawingType](../../msodrawingtype/)
* Enum [PlacementType](../../placementtype/)
* Class [Vector](../../../aspose.cells/vector/)
* Class [ShapeCollection](../)
* Namespace [Aspose::Cells::Drawing](../../)
* Library [Aspose.Cells for C++](../../../)
