1 Month Stats Graph Text Overlap

Moderator: crythias

Locked
danny0312
Znuny newbie
Posts: 70
Joined: 08 Nov 2013, 00:14
Znuny Version: OTRS 3.2

1 Month Stats Graph Text Overlap

Post by danny0312 »

Hi everyone,

I seem to have a problem with 1 Month stats graph for an agent dashboard. It looks like the text on x-axis is overlapping. I looked through the html code blocks and for some reason it is duplicating days on top of each others. I looked at html module and it only has 7 days listed so I am not sure where all those additional come from. If you have any ideas on how to fix it I will greatly appreciate it. Thanks!
You do not have the required permissions to view the files attached to this post.
Version: OTRS & ITSM 3.3.8
OS: Windows Server 2012
DB: MS SQL 2012
Web Server: IIS 8
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: 1 Month Stats Graph Text Overlap

Post by crythias »

Is this a module you downloaded or did you make your own changes to stock? (how to replicate your experience?)
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: 1 Month Stats Graph Text Overlap

Post by crythias »

However, it's probably because of:


Code: Select all

        unshift(
            @TicketWeekdays,
            [ 6 - $Key, $Self->{LayoutObject}->{LanguageObject}->Get( $Axis{'7Day'}->{$WeekDay} ) ]
        );
which means every day (through the loop), the Weekday will be on the X axis. what you can do with that ... various, but among other things, you might count and skip labeling.
(What do you want to happen?)
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
danny0312
Znuny newbie
Posts: 70
Joined: 08 Nov 2013, 00:14
Znuny Version: OTRS 3.2

Re: 1 Month Stats Graph Text Overlap

Post by danny0312 »

crythias wrote:Is this a module you downloaded or did you make your own changes to stock? (how to replicate your experience?)
I installed a kix4otrs package where they have this module for 1 month stats.
crythias wrote:However, it's probably because of:


Code: Select all

        unshift(
            @TicketWeekdays,
            [ 6 - $Key, $Self->{LayoutObject}->{LanguageObject}->Get( $Axis{'7Day'}->{$WeekDay} ) ]
        );
which means every day (through the loop), the Weekday will be on the X axis. what you can do with that ... various, but among other things, you might count and skip labeling.
(What do you want to happen?)

I will give it a try. If its looping then why the 14 days look fine? It should've look basically the same but only represents as twice ~ as 14 days.

It is weird but removing that part still leaves the day labes. I even tried to remove the day labes from here:

Code: Select all

 my %Axis = (
        '7Day' => {
            0 => 'Sun',
            1 => 'Mon',
            2 => 'Tue',
            3 => 'Wed',
            4 => 'Thu',
            5 => 'Fri',
            6 => 'Sat',
        },
    );
but it still doesn't disappear. I can't figure out where it pull those from. I think that maybe because it is additional module it might be pulling weekdays labels from both stats modules and therefore those overlap on each others.

Attached is a kix4otrs 1monthStats module.
Version: OTRS & ITSM 3.3.8
OS: Windows Server 2012
DB: MS SQL 2012
Web Server: IIS 8
Locked