[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: Moderators, Developers

Interface skinning?

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

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

#46 Post by gandalf » Thu Feb 18, 2010 4:53 pm

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: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#47 Post by TheWitness » Fri Feb 19, 2010 8:50 am

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

stephens
Posts: 4
Joined: Tue Feb 16, 2010 8:25 am

#48 Post by stephens » Tue Feb 23, 2010 11:31 pm

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: 72
Joined: Mon May 03, 2010 11:48 am

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

#49 Post by hmorandell » Thu Feb 23, 2012 2:59 am

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 - 0.8.8c
Poller Type - SPINE 0.8.7i
Server Info - Linux 2.6.31.14 - Opensuse 11
Web Server - Apache/2.2.13 PHP 5.3.3
MySQL - 5.1.49 ;RRDTool - 1.3.7 ;SNMP - 5.4.2.1

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

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

#50 Post by gandalf » Thu Feb 23, 2012 3:54 pm

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:

#51 Post by thegeneralmills » Fri Mar 02, 2012 1:29 am

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! :)

#52 Post by Tehrasha » Mon Dec 12, 2016 11:55 pm

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: 2771
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

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

#53 Post by cigamit » Wed Dec 14, 2016 8:24 pm

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 7489 times

kaf3773
Posts: 21
Joined: Sun Sep 09, 2012 8:48 pm

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

#54 Post by kaf3773 » Tue Apr 04, 2017 1:22 pm

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: 2771
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

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

#55 Post by cigamit » Tue Apr 04, 2017 1:30 pm

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: 21
Joined: Sun Sep 09, 2012 8:48 pm

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

#56 Post by kaf3773 » Mon Apr 10, 2017 2:13 pm

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