Hi kostas nikolaou,
Greetings from Syncfusion.
We have validated your requirement and you can control the x-axis label’s count by setting the Interval to the primary axis as per the following code snippet.
Code snippet:
|
this.chartControl.PrimaryXAxis.RangeType = ChartAxisRangeType.Set;
this.chartControl.PrimaryXAxis.ValueType = ChartValueType.DateTime;
this.chartControl.PrimaryXAxis.IntervalType = ChartDateTimeIntervalType.Hours;
this.chartControl.PrimaryXAxis.DateTimeRange = new ChartDateTimeRange(baseDate.AddHours(-1), baseDate.AddHours(6), 10, ChartDateTimeIntervalType.Hours);
|
Please refer below ug link to know more about the Axis Range and Intervals:
If the above solution does not meet your requirement means, please explain your exact requirement in detail to provide a better solution earlier.
Thanks,
Lavanya A.