ftpphptest1
asked on
Are there any template to show data in graph ?
x axis = time
y axis = different element (eg. machine or people )
in line chart thanks
y axis = different element (eg. machine or people )
in line chart thanks
You can also take a look at Google Charts API; has line charts as well as many other types.
http://code.google.com/intl/en-EN/apis/chart/types.html
http://code.google.com/intl/en-EN/apis/chart/types.html
ASKER
what is the meaning of
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\AppServ\www\MultipleLin eChartTest .php on line 78?
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\AppServ\www\MultipleLin
Simple Google search:
http://www.phpbuilder.com/board/showthread.php?t=10340794
If you post the code it could be of more help...
http://www.phpbuilder.com/board/showthread.php?t=10340794
If you post the code it could be of more help...
ASKER
any simple tamplate~ as i want to learn more.......and some of the link u all provided is not worked ....
i did not know how to change
i did not know how to change
Getting a chart with Google Chart API is as simple as requesting an image to a url
Try
<img src="http://chart.apis.google.com/chart?cht=lc&chs=500x325&chd=t:40,60,60,45,47,75,70,72&chl=0|100|1000">
As you can see there are lots of customizable parameters such as size, axis, legend, etc. as well as the data inside. You can find a full reference at
http://code.google.com/intl/en-EN/apis/chart/
I've not tried yet but it sounds logic that you can alter the values with PHP, etc. to make dynamic charts.
Try
<img src="http://chart.apis.google.com/chart?cht=lc&chs=500x325&chd=t:40,60,60,45,47,75,70,72&chl=0|100|1000">
As you can see there are lots of customizable parameters such as size, axis, legend, etc. as well as the data inside. You can find a full reference at
http://code.google.com/intl/en-EN/apis/chart/
I've not tried yet but it sounds logic that you can alter the values with PHP, etc. to make dynamic charts.
Oh and best of all, for Google Chart API you needn't install anything in your server... not even get API user key or register whatsoever...
ASKER
to aqamal:
i follow the demo~ but this give me error
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\AppServ\www\MultipleLin eChartTest .php on line 78?
i follow the demo~ but this give me error
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\AppServ\www\MultipleLin
ASKER
my php is 4
Upgrade to PHP 5
"PHP 4, which couldn't do the indirection needed to chain object operators off of method calls."
"PHP 4, which couldn't do the indirection needed to chain object operators off of method calls."
if it is with the demo ... maybe a version difference it worked with me fine
try other demo examples ... and you can pick one of them .... if you want to see screenshot of the result graph check the generated folder
try other demo examples ... and you can pick one of them .... if you want to see screenshot of the result graph check the generated folder
ASKER
i fi still need to use php 4~~~are there any tamplate ok for me?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://pchart.sourceforge.net/index.php
http://www.maani.us/charts4/