We tried using your custom renderer documented below to display only nth x-axis labels.
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=4228
what happens is, if we turn off 'auto-rotate' property, x-axis labels(dates) are cut-off as seen . In your sample code it seems like labels are not actually skipped but empty string is still returned and displayed for all labels other then nth labels.
Is there any other way to resolve this?
Thank you.
It's true that you're not really "skipping" the labels, you're just rendering empty labels. The clipping happens before IRenderLabel had a chance to run. Unfortunately, there's no mechanism that allows you to skip over labels in such a way that it recalculates the bounds on other labels.
Try setting label layout to None on your X axis. That should at least prevent the labels from clipping in the first place.
chart.Axis.X.Labels.Layout.Behavior = AxisLayoutBehavior.None;chart.Axis.X.Labels.SeriesLabels.Layout.Behavior = AxisLayoutBehavior.None;
Thank you for responding.
If I set both properties to 'None', labels won't be clipped but other label-related properties like 'Auto rotate' or 'auto stagger' will not work.
Will there be an easy way to show only every Nth labels on the X-Axis in your next version or through hot-fix?
Thanks.
I'm not sure if there are any pending improvements. However, you can request this as a feature:http://devcenter.infragistics.com/Protected/RequestFeature.aspx