Issue with Legend in Chart

We are creating a chart with Aspose.Cells. We want to set the legend text to bold for that chart. The following piece of code is used for the formatting and other things in chart.

chart.Title.Text = “Lease Up Duration (Months)”;
chart.NSeries.Add(“Data!B2:C3”, true);
chart.NSeries.CategoryData = “Data!A2:A3”;
chart.Legend.LegendEntries[0].Font.IsBold = true;
chart.Legend.LegendEntries[1].Font.IsBold = true;
chart.NSeries[0].Name = “Projected / Actual”;
chart.NSeries[1].Area.ForegroundColor = Color.FromArgb(147, 169, 207);
chart.NSeries[1].Name = “Estimated Remaining (per Rev else Proj Occupancy Date)”;
chart.ValueAxis.MinValue = 0;


But whenever we are doing like this, due to the BOLD text, last letter is getting cut. If we set IsBold to false, then it works perfectly. Check the attached image for more details.

Please note, this is happening even if the legend text is small, also we do not want to split the same on 2 lines.

Hi,

Thanks for your posting and using Aspose.Cells.

Please download and try the latest version: Aspose.Cells
for .NET v8.1.2.1
and see if it fixes your issue.

If your issue still persist, then please provide us your runnable sample code/project so that we could run it at our end and test it. If we find, this is an issue with Aspose.Cells, we will log it in our database so that it could be fixed at the earliest.

Hi,

The issue is still there with the new DLL. Our code base and data is huge and the code which does the formatting is already mentioned in the post, see if anything can be done over there.

Thanks

Hi,


By the way, could you call chart.Calculate() method if it makes any difference.

Thank you.

Sorry No luck after this as well.

Hi,


Well, in that case, I am afraid we need sample application as Shakeel Faiz mentioned to reproduce the issue on our end. Please do create a simple console application (runnable), zip it and post it here to reproduce the issue on our end, we will check it soon.

Thank you.