alin19 Posted February 14, 2008 Share Posted February 14, 2008 i have 2 days since i'm trying to make a dinamic grafic i get data from a file adjust that data and then use it to create a grafic the problem is with the grafic if i use this: src="http://chart.apis.google.com/chart? &chs=200x125 &chd=t:10,58,95|30,8,63 &cht=lc &chxt=x,y the grafic is ok but if i try to make him from js i don't get any image, can you help me? <html> <script language="javascript" type="text/javascript"> <!-- function test() { document.getElementById('cover').src='http://chart.apis.google.com/chart? &chs=200x125 &chd=t:10,58,95|30,8,63 &cht=lc &chxt=x,y' clockID = setTimeout("test()", 1000); } //--> </script> <body> <a ><img src="test1.jpg" width="128" height="128" id="cover" onmouseover="test()" ><br></a> <img src="http://chart.apis.google.com/chart? &chs=200x125 &chd=t:10,58,95|30,8,63 &cht=lc &chxt=x,y "> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/91056-dinamic-grafic/ Share on other sites More sharing options...
GameYin Posted February 14, 2008 Share Posted February 14, 2008 What's the little picture in there. I can't see it at all. Quote Link to comment https://forums.phpfreaks.com/topic/91056-dinamic-grafic/#findComment-466683 Share on other sites More sharing options...
alin19 Posted February 14, 2008 Author Share Posted February 14, 2008 img src="http://chart.apis.google.com/chart? &chs=200x125 &chd=t:10,58,95|30,8,63 &cht=lc &chxt=x,y " it supose to be a grafic Quote Link to comment https://forums.phpfreaks.com/topic/91056-dinamic-grafic/#findComment-466688 Share on other sites More sharing options...
nogray Posted February 14, 2008 Share Posted February 14, 2008 Do you have spaces before the & sign? If so, remove any spaces that's before the & sign in the URL, also I belive google has a full JavaScript API that you can use http://code.google.com/apis/chart/ Quote Link to comment https://forums.phpfreaks.com/topic/91056-dinamic-grafic/#findComment-466970 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.