SfChart DateTimeAxis won't scale to less than 24 hours

EDIT: I updated to version 18.2.0.45 and it worked as expected. Same bug as a previous user had reported. Leaving this here for people to know in case they face the same issue to just update the Syncfusion version. Thank you for that quick fix!

Hi,

I am having an issue where I have a set of DateTime data, and I am using the RangeSelector to change dynamically the Minimum and Maximum attributes of the Chart. But as soon as Maximum-Minimum is less than a day the chart bugs and shows all the data ignoring the range provided in Maximum and Minimum.

As you can see below, when the delta (Maximum - Minimum) is less than a day, the axis goes from, 22-May-2020 to 21-Jul-2020, instead of focusing in that day period.

I have tried changing the IntervalType to IntervalType.Hours to no effect. I have included my code.




Attachment: WaterMonitor_f8624e4.zip

1 Reply 1 reply marked as answer

DG Durga Gopalakrishnan Syncfusion Team July 16, 2020 03:03 PM UTC

Hi Enrique, 

Greetings from Syncfusion. 

We have validated your reported scenario with attached code snippet. We can able to render the chart and range navigator properly for one day data. You can change the interval type hours, minutes or seconds based on data provided. For an example, we have provided data in hours difference. Please check with the below screenshot and sample. 

Screenshot 
 

Sample 

Since we are unaware of your exact scenario in which an issue is reproduced, please share the following information which will be more helpful for further analysis and provide you the solution sooner. 
  • Try to reproduce the reported scenario in the above sample.
  • Please share your sample (or) code snippet with full configurations.
  • Share the details if you have done any other customization in your sample.
  • Share your data source file.
  • Share your preview template version.

Kindly revert us, if you have any concerns. 

Regards, 
Durga G 


Marked as answer
Loader.
Up arrow icon