How to set the x axis min and max

I am trying to set the x axis min and max. I found the methods mRenderer.setXAxisMax(value); mRenderer.setXAxisMin(value); mRenderer.setXAxisMax(value); mRenderer.setXAxisMin(value); but I donโ€™t know how to install X in TimeSeries.

When I use timestamp mRenderer.setXAxisMin(1347963701812) , it says int is out of range

When I use the string mRenderer.setXAxisMin("2012-09-20 15:00:00") , it says that this is not applicable to String.

How to set minimum and maximum date X in TimeSeries?

+4
source share
1 answer

In your question, it is worth mentioning that when you say "this", "this" is a Java compiler.

Just ask the compiler to understand that you are passing a double value that does not fit into int:

 mRenderer.setXAxisMin(1347963701812.0); 
+4
source

Source: https://habr.com/ru/post/1435901/


All Articles