i have the followign code;
<?php
function imp($char,$tag){
foreach($char as $key=>$value){
$char[$key] = $value;
}
$char = implode($tag,$char);
return $char;
}
$sql = "SELECT * FROM tests WHERE member_id=1 ORDER BY ID ASC LIMIT
0,3";
$query = mysql_query($sql);
while($row = mysql_fetch_array($query)){
//$date[] = $row[date];
$day[] = $row[day];
$test14[] = $row[test14];
}
?>
<img src="http://chart.apis.google.com/chart?
chtt=Last+9+temperature+results
&cht=lc
&chls=2
&chg=10,20
&chs=300x260
&chd=t:26,25,27,25
&chds=20,30,1,6
&chxt=x,y
&chxl=0:|06.05|18.04|04.04|21.03|1:|10|15|20|25|30|35
&chf=bg,s,FFFFFF00
&chco=D5DF3D
&chm=B,D5DF3D44,0,1,0" />
this pulls my info from data base then draws the chart.
but for the example above i have manually inputed my chart data.
here is link to chart;
http://www.myreeftests.com/chart_test.php
my problem is this;
the points arnt VERY accurate, i will probably only show upto a
maximum of 4 results.
if i echo;
<? echo imp($test14,",")?>
i get these results; 26,25,27,25
can i make the y axis automatically scale according to the results?
any help would be appreciated.
--
You received this message because you are subscribed to the Google Groups
"Google Chart API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-chart-api?hl=en.