Aspose.Cells.Charts.Chat legend 內容為中文,折行的中文字,會有被遮到的狀況

您好,
我使用官網上的範例,將 Legend 其中一個內容改成 中文時,圖例在折行後,會有被遮到的狀況,Code 如下,

var workbook = new Workbook();
var worksheet = workbook.Worksheets[0];
worksheet.Cells["A2"].PutValue("Category1");
worksheet.Cells["A3"].PutValue("Category2");
worksheet.Cells["A4"].PutValue("Category3");
worksheet.Cells["B1"].PutValue("Column 1");
worksheet.Cells["B2"].PutValue(4);
worksheet.Cells["B3"].PutValue(20);
worksheet.Cells["B4"].PutValue(50);
worksheet.Cells["C1"].PutValue("已載入符號");
worksheet.Cells["C2"].PutValue(50);
worksheet.Cells["C3"].PutValue(100);
int chartIndex = worksheet.Charts.Add(Aspose.Cells.Charts.ChartType.Column, 5, 0, 15, 5);
var chart = worksheet.Charts[chartIndex];
chart.SetChartDataRange("A1:C4", true);
chart.ToImage("chart1.png", ImageFormat.Png);

輸出圖檔如下,
chart1.png (913 Bytes)

C1 程式如果改成
worksheet.Cells[“C1”].PutValue(“已載入符號 11 已載入符號 22”);

輸出結果如下,
chart2.png (2.0 KB)

@rainmaker_ho,
我已经在Windows 7 VM中尝试了该方案,但是由于使用最新的.NET4.0版本20.12.5修复程序Aspose.Cells正确显示了图例,因此无法观察到任何问题。 您可以尝试一下并分享反馈。 如果问题仍然存在,请共享有关您的环境的更多详细信息,以供我们参考。

Aspose.Cells20.12.5 For .Net2_AuthenticodeSigned.Zip (5.5 MB)
Aspose.Cells20.12.5 For .Net4.0.Zip (5.5 MB)
Aspose.Cells20.12.5 For .NetStandard20.Zip (5.5 MB)

chart1_win.png (912 Bytes)
chart2_win.png (1.5 KB)

您好,我看您給的 chart1_win.png 已載入符(換行)號,
那個"號"這個字,被遮到了哦!
我有用紅色方框起來,請您看一下哦!
chart1_win.png (3.8 KB)

@rainmaker_ho,
感谢您提供有关此问题的更多信息。 我们已观察到该问题,并将其记录在数据库中以进行进一步调查。 准备好共享时,您会收到有关任何更新的通知。

该问题记录为:
CELLSNET-47804 - Chart legend text is not visible properly

@rainmaker_ho,
這是為了通知您,我們已解決您的問題。 在執行質量檢查並合併其他增強功能和修補程序之後,我們很快會為您提供修復版本。

@rainmaker_ho,
Please try our latest version/fix: Aspose.Cells for .NET v21.2.3:

Aspose.Cells21.2.3 For .NetStandard20.Zip (5.5 MB)
Aspose.Cells21.2.3 For .Net2_AuthenticodeSigned.Zip (5.5 MB)
Aspose.Cells21.2.3 For .Net4.0.Zip (5.5 MB)

Your issue should be fixed in it.

Let us know your feedback.

The issues you have found earlier (filed as CELLSNET-47804) have been fixed in this update. This message was posted using Bugs notification tool by simon.zhao