Page 1 of 1

graph problem

Posted: 25 Aug 2008, 13:20
by amarkoli
Hi all,

I have cats Version 0.9.1 (Beas) installed, but its having some bugs in displaying graph, in the job order pipeline graph the bars are not displayed properly, even if the bar has low value, its goes up above the highest value. hope i am sounding clear. attaching a image for referral. the problem seems to be with the declined bar.

there are many more bugs issue i want to ask, rest latter.

thanks in advance

Re: graph problem

Posted: 25 Aug 2008, 14:53
by RussH
I'll take a look at this - but we're a community of users primarily - but if it's been reported before we'll find it!

I know that one of the issues fixed in version 0.9.1 was that the graphs failed to display correctly in earlier versions - can you confirm which version you're running? I suspect it'll be an issue in modules/graphs/GraphsUI.php

Also - am just setting up a bug tracker so that we can collate any ongoing issues - could you add in your other bugs there?

http://www.opencats.org/bugtrack/

Thx,

Russ

Re: graph problem

Posted: 26 Aug 2008, 05:06
by amarkoli
hi,

i am using Version 0.9.1 (Beas) (this is shown on the login page). CATS is used in our company by the HR persons, and i have been given the task to fix some bugs and issues in the same. i dont know php much, but i do understand the code a bit.

Re: graph problem

Posted: 26 Aug 2008, 11:56
by RussH
Okay, looks like the array has an error in it - I'll have to log onto my test system to play - as I'm not going to change this on our production instance!

questionable code shown below;
Code: Select all
if ($this->width > 600)
        {
            $y = array(
                "Total Pipeline",
                "Contacted",
                "Cand Replied",
                "Qualifying",
                "Submitted",
                "Interviewing",
                "Offered",
                "Declined",
                "Placed"
            );
        }
        else
        {
            $y = array(
                "Total Pipeline",
                "|Contacted",
                "Cand Replied",
                "|Qualifying",
                "Submitted",
                "|Interviewing",
                "Offered",
                "|Declined",
                "Placed"
            );
        }

        $x[8] = $statisticsData['placed'];
        $x[7] = $statisticsData['passedOn'];
        $x[6] = $statisticsData['offered'] + $x[8];
        $x[5] = $statisticsData['interviewing'] + $x[6];
        $x[4] = $statisticsData['submitted'] + $x[5];
        $x[3] = $statisticsData['qualifying'] + $x[4];
        $x[2] = $statisticsData['replied'] + $x[3];
        $x[1] = $statisticsData['contacted'] + $x[2];
        $x[0] = $statisticsData['totalPipeline'];

Re: graph problem

Posted: 26 Aug 2008, 13:27
by amarkoli
i had made some changes in that array, i dont want the add up, i want the exact count, so i am not adding the value. the change code looks like this. is this causing the problem, and how should i fix this, i dont want the add up.
Code: Select all
$x[8] = $statisticsData['placed'];
$x[7] = $statisticsData['passedOn'];
$x[6] = $statisticsData['offered'];
$x[5] = $statisticsData['interviewing'];
$x[4] = $statisticsData['submitted'];
$x[3] = $statisticsData['qualifying'];
$x[2] = $statisticsData['replied'];
$x[1] = $statisticsData['contacted'];
$x[0] = $statisticsData['totalPipeline'];