---
title: "Aspose::Cells::Charts::Chart::ChangeTemplate method"
url: "https://reference.aspose.com/cells/cpp/aspose.cells.charts/chart/changetemplate/"
product: "Aspose.Cells for C++ API Reference"
description: "Aspose::Cells::Charts::Chart::ChangeTemplate method. Change chart type with a preset template in C++."
---

## Chart::ChangeTemplate method


Change chart type with a preset template.

```cpp
void Aspose::Cells::Charts::Chart::ChangeTemplate(const Vector<uint8_t> &data)
```


| Parameter | Type | Description |
| --- | --- | --- |
| data | const Vector \<uint8_t\>\& | The data of chart template file(.crtx). |

## See Also

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