too many x axis points

Hello, i created  a real time chart but it gives me too many points ! 1 point every sec as shown in the attached files.Can you help me please.Thanks in advanced.

Attachment: chart_bc19db4e.rar

3 Replies 1 reply marked as answer

LA Lavanya Anaimuthu Syncfusion Team August 21, 2020 09:15 AM UTC

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. 


Marked as answer

KN kostas nikolaou August 22, 2020 07:59 AM UTC

thank you very much!


HM Hemalatha Marikumar Syncfusion Team August 24, 2020 08:02 AM UTC

Hi kostas nikolaou, 
 
Thanks for your valuable feedback.  
 
Please let us know if you have any other further assistance.  
 
Regards,
Hemalatha M. 


Loader.
Up arrow icon