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


Aspose.Wordsอนุญาตให้ผู้ใช้สามารถทำงานกับChartDataLabelวิธีการต่างๆ.

## วิธีการจัดรูปแบบจำนวนของฉลากข้อมูลแผนภูมิ

โดยใช้[NumberFormat](https://reference.aspose.com/words/cpp/aspose.words.drawing.charts/chartdatalabel/get_numberformat/)คุณสามารถระบุการจัดรูปแบบตัวเลขของป้ายชื่อข้อมูลเดียวของแผนภูมิ.

ตัวอย่างรหัสต่อไปนี้แสดงวิธีการจัดรูปแบบหมายเลขของป้ายข้อมูล:

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


## วิธีการทำงานกับฉลากข้อมูลแผนภูมิ

โดยใช้[ChartDataLabel](https://reference.aspose.com/words/cpp/aspose.words.drawing.charts/chartdatalabel/)คุณสามารถระบุการจัดรูปแบบของฉลากข้อมูลเดียวของชุดแผนภูมิเช่นแสดง/ซ่อนLegendKey, CategoryName, SeriesName, ค่าฯลฯ:

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

โปรดดูผลลัพธ์ด้านล่าง:

![work-with-chart-data-lable-aspose-words-cpp-1](working-with-chart-data-label-1.png)
