Jump to content


Graph Doesn't Appear on Webpage

graphing charting

  • Please log in to reply
2 replies to this topic

#1 rongans



  • Members
  • Pip
  • 2 posts

Posted 06 March 2014 - 04:51 PM

I used your "Publish Data" "Wizard Widget Graphs" to create a new graph of my data. The first time I did it, it showed me a nice preview of my graph and I successfully put the graph code in a file on my hard-drive, opened it locally with my browser, and saw my graph.


However, the graph did not consistently appear and I also noticed that when I went back to the wizard, the preview did not appear when I was attempting to recreate the graph.


Here is the code I'm using. It still is not working today:



<h1>Temperature Data from Carriots Repository</h1>
<div id="carriots-graph" style="max-width: 900px;margin:auto;"></div>
<script src="https://www.carriots.com/js/graphs.js"></script>
var carriots = {
'apikey' : 'bde269aff9fd4544f19dd588dedd9ff4ff659c1a1aefb31ac0d200834da82537', 
'mime' : 'image/svg+xml', 
'type' : 'line', 
'axis[x]' : 'at',
'axis[y]' : 'temperature', 
 'data[0]' : 'temperature', 
 'query[device]': 'TemperatureSensor@rongans', 
 'query[sort]': '_id', 
 'query[order]': 'desc', 
 'query[max]': '20' 

Thanks for the help.


#2 jpastor


    Development leader

  • Administrators
  • 178 posts

Posted 07 March 2014 - 11:13 AM

Hello rongans

We have seen your apikey log. The problem is that you are sending float values like a string (with quotes). However we have made ​​an improvement to contemplate that case and it is already solved.

Thanks for the comment.




Enjoy Carriots!

#3 rongans



  • Members
  • Pip
  • 2 posts

Posted 07 March 2014 - 09:35 PM

Thanks for the rapid turn-around. I was following some sample code, so I will make a note in the future to not send numbers as string.

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users