|110622||Aug 16,2013 07:43 PM UTC||Aug 19,2013 05:13 PM UTC||ASP.NET MVC (Classic)||1|
Thanks for using Syncfusion products.
We suggest you to set Range to Chart PrimaryXAxis to avoid the overlapping. Please find the below code snippet to achieve this.
DateTime dt = DateTime.Now;
this.chartControl1.PrimaryXAxis.ValueType = ChartValueType.DateTime;
this.chartControl1.PrimaryXAxis.DateTimeFormat = "dd/MM/yy";
this.chartControl1.PrimaryXAxis.RangeType = ChartAxisRangeType.Set;
this.chartControl1.PrimaryXAxis.DateTimeRange = new ChartDateTimeRange(dt.AddMonths(0), dt.AddMonths(8),1, ChartDateTimeIntervalType.Months );
For your concenience we have prepared a simple sample in window form with screenshot and the same can be downloaded the sample from the following link.
For more details regarding set Range to chart axis, please refer our online document link.
Please let us know your concerns.
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.
or the page will be automatically redirected to sign-in page in 10 seconds.