Posts: 36
	Threads: 13
	Joined: Mar 2017
	
Reputation: 
0
	 
 
	
	
		Hi,
Sorry, that code I should add to the function that I set the trend?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 36
	Threads: 13
	Joined: Mar 2017
	
Reputation: 
0
	 
 
	
	
		Should I work in a resident function?
Another question is, in the graphic part, the data that is shown is the average of all the data that was handled in that time interval?
For example, I put a resolution trend of 5 minutes.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 942
	Threads: 161
	Joined: Jul 2015
	
Reputation: 
33
	 
 
	
	
		It depends what you want do. What is your task?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 36
	Threads: 13
	Joined: Mar 2017
	
Reputation: 
0
	 
 
	
	
		In the first instance I want to make a test of logic, so I generated a basic function that generates random numbers and that creates a trend. But I do not know if the data that shows me in the graph is an average of the interval, I also want to know the average between certain dates of these data.
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 942
	Threads: 161
	Joined: Jul 2015
	
Reputation: 
33
	 
 
	
	
		Following the API it is the average from selected period. You should only know that the minimum resolution is 1 day(from 00:00 to 23:59). If you want check what is the average from e.g. 8:00-16:00 you should use fetch function and calculate this.