---
title: "通过Shape.Chart对象处理图表"
---

一旦图表被插入并填充了数据，您就可以改变它的外观。 `Shape.Chart`属性包含通过公共API提供的所有图表相关选项。

例如，让我们更改图表标题或图例行为:

{{< gist "aspose-words-gists" "d55d8631947d283b1f0da99afa06c492" "cpp-Programming-Documents-Charts-CreateChartUsingShape-CreateChartUsingShape.cpp" >}}

代码生成如下结果:

![line-chart-aspose-words-cpp](working-with-charts-6.png)
