Link to home
Start Free TrialLog in
Avatar of ftpphptest1
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
Avatar of digital0iced0
digital0iced0

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

Avatar of ftpphptest1

ASKER

what is the meaning of
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\AppServ\www\MultipleLineChartTest.php on line 78?
Simple Google search:
http://www.phpbuilder.com/board/showthread.php?t=10340794

If you post the code it could be of more help...
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
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.
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...
to aqamal:
i follow the demo~ but this give me error
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in C:\AppServ\www\MultipleLineChartTest.php on line 78?
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."
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
Avatar of Guy Hengel [angelIII / a3]
I have used jpgraph to generate graphs in my php pages:
http://www.aditus.nu/jpgraph/

i fi still need to use php 4~~~are there any tamplate ok for me?
ASKER CERTIFIED SOLUTION
Avatar of agamal
agamal
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial