Отключение переноса текста для меток данных диаграммы

Contents
[ ]

Ниже приведен образец кода, показывающий, как отключить перенос текста для меток данных диаграммы.

from aspose.cells import Workbook
# For complete examples and data files, please go to https:# github.com/aspose-cells/Aspose.Cells-for-.NET
# The path to the documents directory.
dataDir = RunExamples.GetDataDir(".")
# Load the sample Excel file inside the workbook object
workbook = Workbook(dataDir + "sample.xlsx")
# Access the first worksheet
worksheet = workbook.worksheets[0]
# Access the first chart inside the worksheet
chart = worksheet.charts[0]
# Disable the Text Wrapping of Data Labels in all Series
chart.n_series[0].data_labels.is_text_wrapped = False
chart.n_series[1].data_labels.is_text_wrapped = False
chart.n_series[2].data_labels.is_text_wrapped = False
# Save the workbook
workbook.save(dataDir + "Output_out.xlsx")