We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

X-axis label display alignment

Thread ID:





89663 Sep 1,2009 09:55 PM UTC Sep 2,2009 10:39 AM UTC WinForms 1
Tags: Chart
Robert Avery
Asked On September 1, 2009 09:55 PM UTC

Most of the graphs that I make are time series, where the beginning of time is on the left of the graph, and the end of time is on the right. The problem is that when we are displaying only one label for every 3-4 points, often the very last data point does not have a label, and therefore I can not easily see at what month the data series ends.

Is there anyway to retain only having 1 label for every 3-4 points but always displaying the last month?

Specifically, if I have a chart that has monthly data for jan08 through Mar09, I would like the data labels to be


as opposed to what the chart object does by default which is display


Can this be done? Thanks.

Venkata Vijayaraj B [Syncfusion]
Replied On September 2, 2009 10:39 AM UTC

Hi Robert,

It is possible to use single label for a group of points by using GroupingLabels.

I have given the sample in the below link.

Sample Link:

Use ChartControl1.PrimaryXAxis.DateTimeRange property to control the range of Axis. If this is assigned to some value,
then it will decide the start, end , interval value of the axis.

Please let me know if this meets your requirement, otherwise provide us your output screenshot and clear details about
your requirement.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon