how to modify the graph (7 day stats) at the dashboard?

Moderator: crythias

Post Reply
guillo
Znuny newbie
Posts: 98
Joined: 16 May 2012, 20:05
Znuny Version: 3.0.7

how to modify the graph (7 day stats) at the dashboard?

Post by guillo »

We all know the "7 Day Stats" Graph that is at our front dashboard, those two zig zag lines we got to know and love.

But I don't need them... :? What I'm looking for is to create stats by agent and to show them at the dasboard instead of the 7 day stats. I already have a report configured from the STATISTICS module:

Image

This information is the one that I need to be shown on the graph at the dashboard (Agents instead of days and current month instead of just 7 days). The graph does not have to be like this.

I'm guessing that this has to be done from code (maybe.. ).

I've found this but it is quite old: http://doc.otrs.org/developer/2.4/en/html/x605.html

I wonder what kind of variables should go instead of days, and how to tell the graph to calculate the last 30 days.

Code: Select all

 my %Axis = (
        '7Day' => {
            0 => { Day => 'Sun', Created => 0, Closed => 0, },
            1 => { Day => 'Mon', Created => 0, Closed => 0, },
            2 => { Day => 'Tue', Created => 0, Closed => 0, },
            3 => { Day => 'Wed', Created => 0, Closed => 0, },
            4 => { Day => 'Thu', Created => 0, Closed => 0, },
            5 => { Day => 'Fri', Created => 0, Closed => 0, },
            6 => { Day => 'Sat', Created => 0, Closed => 0, },
        },
    );
I will apreciate your help.
OTRS V 3.0.7 Windows 2008 x64 going for 3.1.7
OTRS 3.1.12 on LINUX UBUNTU SERVER
Post Reply