Login or Register

RSS IconRecent posts in this topic

avatar
Valdemar on Jan 7. 2008. 5:15 pm
Hi all,

Version 0.3 is out

I just put a new version of the Charts module. Easier installation (just click Install), and the truetype fonts are optional now (read the INSTALL file).

Requirements: PHP version 5.1.x (recommended by JpGraph).
Enjoy!

--------------------------------
Version 0.2 is out

Okay, I've worked a bit on the cleaning up the Charts module - maybe it'll turn into a (Graphical) Reports module later, I don't know. For now, it does what it promises - however it's very very much in need of fine tuning - both charts output, code and features - but this is just to get the code out there!

http://fatty.dk/accharts-0.2.zip

Haven't had time to do that great docs for it, installing it is really simple tho.

* Download the zip file
* Take a glimpse in the README file
* Follow the directions in the INSTALL file
* Possible fiddle a little with JpGraph (font issues) (this is also in the INSTALL file)
* Charts!

Now it's out - hopefully people will start contributing more as there are more modules available - the API is very nice!

Enjoy, and let's work together.
Casper Valdemar
avatar
shrike on Jan 8. 2008. 2:03 am
Installed and configured the ttf-issue, but now I get:

"Illegal sizes specified for width or height when creating image, (width=900, height=-2147483648)"
avatar
Valdemar on Jan 8. 2008. 2:09 am
Hmm, the chart should be auto height. Are you using PHP5? Also, how much data does your project contain (milestones etc)? Does it display an empty chart in a project with no milestones?

What about the examples in charts/helpers/jpgraph/examples - do they display correctly?
Casper Valdemar
avatar
shrike on Jan 8. 2008. 3:31 am
Yes, PHP5. Actually data varies quite a lot, from one to many.

:: ganttex00.php - works
:: ganttex01.php - illegal size
:: ganttex02.php - illegal size
:: ganttex03.php - illegal size
:: ganttex04.php - works
:: ganttex05.php - "Fatal error: Class 'Milestone' not found ... .php on line 41

Hopefully you get some info out of these?
avatar
Valdemar on Jan 8. 2008. 3:48 am
I've edited a few of those examples when testing for myself - I've renamed the Milestone class in jpgraph-gantt.php to JPMilestone, so you have to search/replace references to it in each example file (to fix the fatal error).

All the examples still work fine on my system - so it'st a bit hard to troubleshoot. Try the ganttex01.php and try to narrow it down to what causes the illegal size by commenting out one line at a time. Let me know what you find - also the JpGraph forum may be of help if you find out what's causing it.

/ Casper

Casper Valdemar
avatar
shrike on Jan 9. 2008. 3:50 pm
Figured out something:

I get examples to work, when I edit

$graph = new GanttGraph(0,0,"auto");

to

$graph = new GanttGraph(700,400,"auto"); for example.

Somehow it does not create right values. I have to change both 0 numbers to make it work.
avatar
gcortesi on Jan 13. 2008. 8:26 pm
I have setup the charts module as described in the install but I am not seeing a new charts tab under projects. The charts module does show up under admin modules. I performed the mysql command INSERT INTO modules values ( 'charts' , 0 , 100 ); and it appeared to work. One thing that is different is that I have table prefix as acx_ and I modified that command to use this prefix, but it is still not showing up in the projects tabs.

Any suggestions you could provide would be appreciated. I checked all the rights and things look ok. I am sure I copied both modules directories as described in the install instructions). I am using PHP5 too.

Guy
avatar
shrike on Jan 14. 2008. 1:16 am
I think it is cache issue - rememeber to clear it. I had the same problem, but clearing it (also removed cookies) helped.
avatar
Valdemar on Jan 14. 2008. 1:34 am
Seems there's a newer JpGraph version out since I originally did this module. Try downloading it, and replace the source in modules/charts/helpers/jpgraph with the newer version. Remember to search/replace all occurrences of the class Milestone to JPMilestone in jpgraph.php AND jpgraph_gantt.php

I'll pack up a newer Charts module with this version included asap.

gcortesi, yes, it must be a cache issue - try deleting everything in /cache
Casper Valdemar
avatar
gcortesi on Jan 14. 2008. 1:40 am
Thanks - yes, it was a cache issue. Now I'm debugging a fonts issue - can't find a truetype font in the path.

Thanks for your help.

Guy

RSS IconRecent posts in this topic