Jump to content

dinamic grafic


alin19

Recommended Posts

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>

Link to comment
https://forums.phpfreaks.com/topic/91056-dinamic-grafic/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.