Hi,
I am Using Aspose.Cells 4.9.1.0 version.
In chart , my Legend is showing on the top of the chart by default. Though I am using code like this.
chart.Legend.Position = LegendPositionType.Bottom;
The above statement is not at all working. i tried by changing the positions but no use.
Can anyone please suggest on this.
Please Remember the Version i am using .
Thanks,
Hi,
Thanks for your posting and using Aspose.Cells for .NET.
I have checked the chart legend issue as stated by you with the latest version:
Aspose.Cells for .NET 7.3.0 and saw it is working fine.
Below is my test code. I have attached the source, output xlsx file and screenshot for your reference.
C#
string filePath = @“F:\Shak-Data-RW\Downloads\source.xlsx”;
Workbook workbook =
new Workbook(filePath);
Worksheet worksheet = workbook.Worksheets[0];
Chart chart = worksheet.Charts[0];
//Chart legend position is working fine.
chart.Legend.Position = LegendPositionType.Bottom;
workbook.Save(filePath + “.
out.xlsx”);
Screenshot:
I already mentioned the Version in the earlier Post
I do not want with the latest Version.
I asked why it is Not working with Aspose.Cells 4.9.1.0 Version.
One sincere request, Please go through the post Thoroughly before answering it.
I hope you dont mind.
Please provide solution for the Version I mentioned.
Thanks,
Hi,
Thanks for your posting.
Yes, I have read your post, but the problem is that older version is not working because of some bug.
I am afraid, the bug inside older version cannot be fixed. All bugs are fixed based on latest versions only.
As far as your code is concerned, you can check, there is no issue with your code. I have shown this using source and output files as well as screenshot.
Let me know if you still have questions.