Jump to content









Photo

Graph Wizard

graph

  • Please log in to reply
4 replies to this topic

#1 eric3231559

eric3231559

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 22 July 2014 - 01:58 AM

Hi there, may i know how to use the graph wizard provided ?

I already follow the guide and get a bunch of code from the wizard.

How to display it in html ? or android phone ?



#2 eric3231559

eric3231559

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 22 July 2014 - 05:25 AM

for your info i can't found the graph.js for the example. tq



#3 eric3231559

eric3231559

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 22 July 2014 - 05:33 AM

<html>
<head>
     <script src="https://www.carriots.com/js/graphs.js"></script>
<script> 
var carriots = {
'apikey' : '3f1c7d37ec1958dccfa27b1bc1706cd971a8f501e9021add66069dfea25d9933', 
'mime' : 'image/svg+xml', 
'type' : 'line', 
'axis[x]' : 'at',
'axis[y]' : 'temperature', 
 'data[0]' : 'temperature', 
 'query[device]': 'defaultDevice@eric3231559.eric3231559', 
 'query[at_from]': '1405008000', 
 'query[at_to]': '1406044800', 
 'query[sort]': '_id', 
 'query[order]': 'desc', 
 'query[max]': '50' 
 };
</script>
<head>
  </html> 
    
 
 
i key in this to my html file. nothing comes  out. may i have some guide here?


#4 sdeancos

sdeancos

    Master of Puppets

  • Members
  • PipPipPip
  • 107 posts
  • LocationMadrid, Spain.

Posted 22 July 2014 - 05:59 AM

Hi!

 

You can find more information about graphs.js in https://www.carriots...entacion/graphs

 

 

I hope this help you.

 

 

Regards!



#5 eric3231559

eric3231559

    Advanced Member

  • Members
  • PipPipPip
  • 44 posts

Posted 22 July 2014 - 08:27 AM

tq so much







Also tagged with one or more of these keywords: graph

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users