[INFO] Black graphs look better than white! :)

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

Interface skinning?

YES!
117
80%
No. You're high.
29
20%
 
Total votes: 146

User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Kind of this will be part of 088. Colors may be set globally and/or per graph template. Many more rrdtool options will be supported.
R.
User avatar
TheWitness
Developer
Posts: 17004
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Talking about an ancient post ;)
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
stephens
Posts: 4
Joined: Tue Feb 16, 2010 8:25 am

Post by stephens »

TheWitness wrote:Talking about an ancient post ;)
hey! I only resurrected a 4 monther; plus, it's 10x more functionality than what previously existed! :) (even if the original was 5 years ago!)
hmorandell
Cacti User
Posts: 73
Joined: Mon May 03, 2010 11:48 am

Re: [INFO] Black graphs look better than white! :)

Post by hmorandell »

sorry for bumping this up...

will this be part of the upcoming 0.8.8? I'm particullary interested in the possibility of changing the colors for graph items.
Will we get the possibility of integrating a background image for graph items too?
_________________
Cacti - 1.2.14
Poller Type - SPINE 1.2.14
Devices 3,892
Graphs 21,483
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: [INFO] Black graphs look better than white! :)

Post by gandalf »

hmorandell wrote:sorry for bumping this up...

will this be part of the upcoming 0.8.8? I'm particullary interested in the possibility of changing the colors for graph items.
Will we get the possibility of integrating a background image for graph items too?
Yes. All available color options of current rrdtool will be supported. The code is already in! And, you will be presented with a colorpicker to easy handling.
R.
thegeneralmills
Posts: 1
Joined: Fri Mar 02, 2012 1:23 am

Re:

Post by thegeneralmills »

stephens wrote:
TheWitness wrote:Talking about an ancient post ;)
hey! I only resurrected a 4 monther; plus, it's 10x more functionality than what previously existed! :) (even if the original was 5 years ago!)
I really appreciate the time you spent in plugging in this code. Awesome work.

Question:
I would like to remove/change the color of the border that is around every graph (it is basically 1 pixel wide) where would i find this code to modify it?

I attempted to add:

/* basic graph options */
$graph_opts .=
"--imgformat=" . $image_types{$graph["image_format_id"]} . RRD_NL .
"--start=$graph_start" . RRD_NL .
"--end=$graph_end" . RRD_NL .
"-c CANVAS#000000 -c FONT#FFFFFF -c BACK#000000 --title=\"" . $graph["title_cache"] . "\"" . RRD_NL .
/* "--border=0 */
"--title=" . cacti_escapeshellarg($graph["title_cache"]) . RRD_NL .
"$rigid" .
"--base=" . $graph["base_value"] . RRD_NL .
"--height=$graph_height" . RRD_NL .
"--width=$graph_width" . RRD_NL .
"$scale" .
"$unit_value" .
"$unit_exponent_value" .
"$graph_legend" .
"--vertical-label=" . cacti_escapeshellarg($graph["vertical_label"]) . RRD_NL;

and it borked everything...

Help please???

EDIT: I commented it out so it would not impact the production graphs...
Tehrasha
Posts: 13
Joined: Sun Mar 13, 2011 6:40 am

Re: [INFO] Black graphs look better than white! :)

Post by Tehrasha »

gandalf wrote:
hmorandell wrote:sorry for bumping this up...

will this be part of the upcoming 0.8.8? I'm particullary interested in the possibility of changing the colors for graph items.
Will we get the possibility of integrating a background image for graph items too?
Yes. All available color options of current rrdtool will be supported. The code is already in! And, you will be presented with a colorpicker to easy handling.
R.
5 year necro....

Did this just fade away into the ether, or is skins/themes still in the works?
It looked promising, but I can see where it could quickly turn into a nightmare.
cigamit
Developer
Posts: 3363
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: [INFO] Black graphs look better than white! :)

Post by cigamit »

Tehrasha wrote: 5 year necro....

Did this just fade away into the ether, or is skins/themes still in the works?
It looked promising, but I can see where it could quickly turn into a nightmare.
Yes, Cacti themes and graph themes are already in Git, and will be available once 1.0 is released.
themedgraph.png
themedgraph.png (43.21 KiB) Viewed 10360 times
kaf3773
Posts: 22
Joined: Sun Sep 09, 2012 8:48 pm

Re: [INFO] Black graphs look better than white! :)

Post by kaf3773 »

Cigamit,

Can you kindly point out where and how in Cacti-1 we can change the color of graphs to for instance the black color you have.

i have looked under Settings > Visual but nothing there seems to indicate how the graph color can be changed.

I will appreciate this info

Thanks
cigamit
Developer
Posts: 3363
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: [INFO] Black graphs look better than white! :)

Post by cigamit »

kaf3773 wrote:Cigamit,

Can you kindly point out where and how in Cacti-1 we can change the color of graphs to for instance the black color you have.

i have looked under Settings > Visual but nothing there seems to indicate how the graph color can be changed.

I will appreciate this info

Thanks
In 1.X, that is just the default graph color scheme for anyone using the "Dark Theme".
If you want to tweak the specific settings for a theme, you can take a look at
include/themes/<theme_name>/rrdtheme.php
kaf3773
Posts: 22
Joined: Sun Sep 09, 2012 8:48 pm

Re: [INFO] Black graphs look better than white! :)

Post by kaf3773 »

Cigamit,

Thanks very much this was very helpful.

I must mention that you folks at the Cacti Group have done such an awesome job with 1.X. !!!

Thanks again.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests