I have a chart with more than 400 datapoints.
The PrimaryValueAxis (Y-axis) represents values, The PrimaryCategoryAxis (X-axis) represents dates.
I want to see all the datapoints on the graph but only a few data labels.
By using TickLabelSpacing I can set how many labels I want to see on the X-axis (i.e. 5)
But the vertical gridline interval stays at 1. I want to have as much vertical gridlines as I have labels on the X-axis.
See the enclosed pictures.
In PowerPoint you can set the interval between the vertical gridlines but I don't find the property in the Spire.Presentation library.
PS: I also want to format the X-axis labels as a date without time.
I tried
- Code: Select all
chart.PrimaryCategoryAxis.NumberFormat = "dd/MM/yyyy";
Thanks for your help.
Kind regards,
Laurent