## ChartCollection::AddFloatingChart method


Adds a chart to the collection.

```cpp
int32_t Aspose::Cells::Charts::ChartCollection::AddFloatingChart(ChartType type, int32_t left, int32_t top, int32_t width, int32_t height)
```


| Parameter | Type | Description |
| --- | --- | --- |
| type | ChartType | [Chart](../../chart/) type |
| left | int32_t | The x offset to corner |
| top | int32_t | The y offset to corner |
| width | int32_t | The chart width |
| height | int32_t | The chart height |

## ReturnValue

[Chart](../../chart/) object index.

## See Also

* Class [Vector](../../../aspose.cells/vector/)
* Enum [ChartType](../../charttype/)
* Class [ChartCollection](../)
* Namespace [Aspose::Cells::Charts](../../)
* Library [Aspose.Cells for C++](../../../)
