• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

Are there any template to show data in graph ?

x axis = time
y axis = different element (eg. machine or people )

in line chart thanks
0
ftpphptest1
Asked:
ftpphptest1
  • 5
  • 5
  • 4
  • +2
1 Solution
 
digital0iced0Commented:
0
 
striker46Commented:
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

0
 
agamalCommented:
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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

If you post the code it could be of more help...
0
 
ftpphptest1Author Commented:
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
0
 
agamalCommented:
0
 
striker46Commented:
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.
0
 
striker46Commented:
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...
0
 
ftpphptest1Author Commented:
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?
0
 
ftpphptest1Author Commented:
my php is 4
0
 
striker46Commented:
Upgrade to PHP 5

"PHP 4, which couldn't do the indirection needed to chain object operators off of method calls."
0
 
agamalCommented:
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
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
I have used jpgraph to generate graphs in my php pages:
http://www.aditus.nu/jpgraph/

0
 
ftpphptest1Author Commented:
i fi still need to use php 4~~~are there any tamplate ok for me?
0
 
agamalCommented:
Download JpGraph at http://www.aditus.nu/jpgraph/jpdownload.php
 
 and read this tutorial at http://devzone.zend.com/node/view/id/1260

this should be exactly what u looking for.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 5
  • 5
  • 4
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now