Line Chart - Number os Categories

Hello, how are you?

I’ve created a line chart:
newSlide.Shapes.AddChart(ChartType.Line, 0, 0, 1000, 500);
Now, in X-Axis (category axis) I have 12 categories. I would like to define the max number of categories in 11. Is it possible?

Thanks in advance.


I have observed the sample code shared by you. However, I am unable to understand your requirements. Can you please elaborate in the form of desired presentation and also explanation of your requirement.

1 Like

Thanks, for answering me.
In my chart (image example attached), the X-Axis is the category axis. It contains dates, which represents my categories. When I have a huge amount of dates, only 12 are placed in the X-Axis. I would like to define this number of categories, putting 11 instead of 12, for instance.NumberOfCategories.png (2.7 KB)

Thanks for your time, but I’ll not need it anymore.


Can we close the issue then.