Msg#: 3277044 posted 10:02 pm on Mar 14, 2007 (gmt 0)
Hi again.. I'm really having a hard time creating a simple graph..unfortunately i'm restricted to jpgraph because that's what's on my work pc(the code is really high level for me as I'm just starting to learn php)... i simply need to create a bar or pie chart of a table similar to this below:
This relies on the gd extension which should be available with php 4.3 upwards but no always enabled, run phpinfo() to see your settings or check the php.ini (look for extension extension=php_gd2.dll - or similar) file if you have access to it, which ever is easiest.
Altho pay heavy attention to the line which reads:
Watch the CPU load You need to be aware of one important consideration when you create these graphics server-side: They're CPU intensive. If you place too many of these dynamic images on your Web site, you may find that you will incur a performance hit.
Think ill try put the above page to some use.
[edited by: PSWorx at 10:21 pm (utc) on Mar. 14, 2007]
Msg#: 3277044 posted 12:34 am on Mar 15, 2007 (gmt 0)
Just remembered you said pie chart, google "pie chart php" theres quite a few solutions out there only you can decide which will be best, if you cant install additional modules/extensions for php and have to rely on gd/gd2 just bare in mind system load when running the scripts that produce the pie charts.