Good afternoon,
I hope you can help me.
I am creating a graphic chart and have the problem that I can not set the margins on the left and right of the first and last data, I would not have margin.
Thanks for everything.
Hi Juan,
Thanks for your posting and using Aspose.Cells.
Please manually create your desired Chart in Microsoft Excel and attach your Excel file here for our reference. We will look into it and let you know the sample code to achieve your desired output Chart using Aspose.Cells APIs.
It will also be helpful if you let us know the steps you took in Microsoft Excel to create such margins. Thanks for your cooperation.
Hi Juan,
Thanks for your posting and using Aspose.Cells.
You need to set Chart.CategoryAxis.AxisBetweenCategories property to false. Please see the following sample code. I have attached the output Excel file generated by it for your reference.
C#