Hi,
Hi,
Thanks for your posting and using Aspose.Cells.
Please download and try the latest version: Aspose.Cells
for .NET v8.2.0.3 it should fix your issue.
We have tested this issue with the following code using the source Excel file attached. As you can see in the output chart image, category axis labels are not duplicating. I have also attached the output chart image for your reference.
In case, your problem still occurs with the latest version, then please provide us your sample console application project (code) replicating this issue with the latest version. Please also provide us any source Excel file used in your code.
We will further investigate this issue at our end and in case, there is some bug, we will fix it in our next versions.
C#
string filePath = @“F:\Shak-Data-RW\Downloads\sample.xlsx”;
Workbook workbook = new Workbook(filePath);
Worksheet worksheet = workbook.Worksheets[0];
Chart chart = worksheet.Charts[0];
chart.CategoryAxis.TickLabels.RotationAngle = 45;
chart.ToImage(filePath + “.out.png”, ImageFormat.Png);
Hi Shakeel,
Hi,
Thanks for your posting and using Aspose.Cells.
I am not able to run your code because it is giving me compile time errors. Kindly provide some runnable sample code replicating this issue, because it will be helpful for us investigating this issue and we will be able to fix it precisely.
Hi,
Hi,
Thanks for your posting and using Aspose.Cells.
We will recommend you to give a try to latest version: Aspose.Cells
for .NET v8.2.1.4 because such issues should be resolved inside it.
We are afraid, there is no alternative to your suggested line. If your problem still occurs, then kindly provide some sample project replicating this issue with the given latest version, so that we could investigate and fix it.
Thanks for your cooperation.
Ok, these seems the latest DLL files.
I have tried with the latest DLLs you mentioned and the License files also, but still no luck. The data points in the chart are still repeating…
Hi,
Thanks for your posting and using Aspose.Cells.
Definitely, your sample console application replicating this issue will be helpful for us to investigate and fix the problem.
Thanks for your cooperation.
Hi,
Hi,
Thanks for your posting and using Aspose.Cells.
I tried to create chart like yours in MS-Excel and I found that we cannot select individual tick labels of category axis. I therefore, could not create a chart where some of the category axis tick labels were wrapped and some were straight.
Could you please check the sample Excel file attached by me and make some of the category axis tick labels wrapped and some of them in a single line using MS-Excel manually and reattach it?
Also, let me know the steps you took to create/modify this chart manually using MS-Excel. It will help me investigate this feature and find out if it is supported or not. In case, it is a New Feature, we will log it in our database so that it could be implemented in our future versions.
I tried it both on MS-Excel 2010 and MS-Excel 2013 but could not create a chart like yours.