Chart's X-axis time type setting

Hi,

When I set the maximum and minimum values of the X axis to be close, the X axis subscript displayed by the chart is confusing as follows:
max:18:00  06-28-2018 min:17:54  6/28/2018 interval: 1
When I set it as follows:
max:18:00  06-28-2018 min:17:53  6/28/2018 interval: 1
The above is just a partial screenshot.
What is the minimum reasonable range of max and min when the chartX axis is time format?
How can I avoid the appearance of subscripts, can you give me some advice?

Thanks,
Linsee.






1 Reply

BP Baby Palanidurai Syncfusion Team July 19, 2018 07:22 AM UTC

Hi Linsee, 

Thanks for using syncfusion products, 

We have analyzed your query. Be default, based on data to series or range of an axis and size of the chart, datetime axis will calculate the auto interval type and interval. In your case, the min and max (max:18:00  06-28-2018 min:17:54  6/28/2018) difference is in seconds, so chart will calculate the intervalType either ‘Second’ or ‘Milliseconds’ based on chart size and the interval will be from 1 to 60. But in your sample, you are setting the interval as 1 explicitly, this will break the axis label, when the auto interval is calculated as ‘Milliseconds’ . So we recommend not to set the interval alone, when the intervalType is calculated automatically. Chart will calculate the interval and IntervalType of an axis based on data and size of chart. 

For more information on interval type and interval type, kindly find the below help document, 

Screenshot: 
 

Sample for your reference can be find from below link, 
  

Kindly revert us, if you have any query. 

Thanks, 
Baby. 


Loader.
Up arrow icon