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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.