We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Aligning Chart Title

We are using Aspose Charts in our application. The chart title is a long text and we want to set the same at middle of the chart. I am using following lines of code to achieve that, but its not working.

chart.Title.TextHorizontalAlignment = TextAlignmentType.Center;
chart.Title.Text = “Qualified Lease Up Duration (Months)”;


See the attached Chart Image generated.

Please help…!

Hi,


Please try our latest version/fix: Aspose.Cells for .NET v8.1.2.2 if it makes any difference.

If you still find any issue, kindly create a sample console application, zip it and post us here to reproduce the issue on our end, we will check it soon. Also provide us template files (if you have any).

Thank you.

Thanks for your reply, but it did not solve my problem.

Instead I removed one line of code which was causing this problem.
chart.Calculate();

Thanks.

Hi,


Good to know that you have sorted your issue now. Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.

Thank you.