---
title: "การทำงานกับแผนภูมิในC++"
---


วิธีการใหม่[InsertChart](https://reference.aspose.com/words/cpp/aspose.words/documentbuilder/insertchart/)ถูกเพิ่มเข้าไปในชั้นเรียน[DocumentBuilder](https://reference.aspose.com/words/cpp/aspose.words/documentbuilder/) ดังนั้น,เรามาดูวิธีการแทรกแผนภูมิคอลัมน์ง่ายๆลงในเอกสารโดยใช้วิธีการ[InsertChart](https://reference.aspose.com/words/cpp/aspose.words/documentbuilder/insertchart/).

## วิธีการแทรกแผนภูมิ

ในส่วนนี้เราจะเรียนรู้วิธีการแทรกแผนภูมิลงในเอกสาร.

### แทรกแผนภูมิคอลัมน์

ตัวอย่างต่อไปนี้แสดงวิธีการแทรกแผนภูมิคอลัมน์:

![create-column-chart-aspose-words-cpp](working-with-charts-1.png)

มีสี่โอเวอร์โหลดที่แตกต่างกันสำหรับวิธีการเพิ่มชุดซึ่งได้สัมผัสกับครอบคลุมทุกสายพันธุ์ที่เ:

![create-column-chart-from-datasource-aspose-words-cpp](working-with-charts-2.png)

### แทรกแผนภูมิกระจาย

ตัวอย่างต่อไปนี้แสดงวิธีการแทรกแผนภูมิกระจาย:

![scatter-chart-aspose-words-cpp](working-with-charts-3.png)

### แทรกแผนภูมิพื้นที่

ตัวอย่างต่อไปนี้แสดงวิธีการแทรกแผนภูมิพื้นที่:

![area-chart-aspose-words-cpp](working-with-charts-4.png)

### แทรกแผนภูมิฟอง

ตัวอย่างต่อไปนี้แสดงวิธีการแทรกแผนภูมิฟอง:

![bubble-chart-aspose-words-cpp](working-with-charts-5.png)

## ดูเพิ่มเติม

สำหรับข้อมูลเพิ่มเติมโปรดดูที่บทความเด็กด้วย.
