Cycle plugin, custom graph size

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
wjm
Posts: 20
Joined: Fri Oct 13, 2006 12:06 pm

Cycle plugin, custom graph size

Post by wjm »

Hi all,
I am upgrading to cycle plugin 2.3.
I want the cycle tab graphs to be really big, but it is seems to be limited to 500x700 pixels.
Can I change this, maybe add a custom pixel number?
I wouldn't mind changing the file that does this, but I cannot find which one it is.
Thanks,
wjm
Posts: 20
Joined: Fri Oct 13, 2006 12:06 pm

Re: Cycle plugin, custom graph size

Post by wjm »

OK, I found a place to add other height and width.
It is in plugins/cycle/setup.php. Look around line 300 in the file.
I added 800x2000 and it seems OK for now.

$cycle_height = array(
75 => "75 Pixels",
100 => "100 Pixels",
125 => "125 Pixels",
150 => "150 Pixels",
175 => "175 Pixels",
200 => "200 Pixels",
250 => "250 Pixels",
300 => "300 Pixels",
350 => "350 Pixels",
400 => "400 Pixels",
500 => "500 Pixels",
800 => "800 Pixels"
);

$cycle_width = array(
100 => "100 Pixels",
125 => "125 Pixels",
150 => "150 Pixels",
175 => "175 Pixels",
200 => "200 Pixels",
250 => "250 Pixels",
300 => "300 Pixels",
350 => "350 Pixels",
400 => "400 Pixels",
500 => "500 Pixels",
600 => "600 Pixels",
700 => "700 Pixels",
2000 => "2000 Pixels"
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests