0

I am trying to display a time on my X axis with a fixed interval. Currently the X axis is not behaving like I want it to. I'm trying to have an interval of 5 minutes. When I zoom in my points are at the right timestamp.

1 Answers1

0

Maybe you can use setGranularity API:

xAxis.setGranularityEnabled(true);
xAxis.setGranularity(5 * 60 * 1000); // if time is in ms
anhtuannd
  • 918
  • 9
  • 16