|
|
| Author |
Message |
ptaylor874
Joined: 04 Jan 2008 Posts: 22
|
Posted: Wed Jan 23, 2008 1:10 am Post subject: [HOWTO] Sexy Traffic Graphs |
|
|
Ok - Maybe not "Sexy", but better looking...
I've not used Cacti for very long, so perhaps this is a common thing people do that I've not seen, but I thought I'd let everyone else know anyhow.
Personally, I didn't like the default Traffic Graphs in Cacti. I just upgraded to version 0.8.7a, and found that I had the new opacity features, so I played around with them for quite some time, but just couldn't come up with two areas that looked decent when they overlapped. Finally, I came upon a graph on (of all things) a political website that looked great and gave me an idea...
Graph the same data twice - Once as a 100% opaque line, and again as an area with 10% opacity. This would (at least in theory) give a nice solid edge to the lightly colored area, and the areas would blend together fairly well. (I first did this on a different graph and used red and blue - Makes a nice purple!) The Green and Blue don't blend quite as nicely, but it still looks very good.
| Description: |
|
| Filesize: |
51.91 KB |
| Viewed: |
8006 Time(s) |

|
| Description: |
|
| Filesize: |
24.77 KB |
| Viewed: |
8006 Time(s) |

|
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 11377 Location: Muenster, Germany
|
Posted: Wed Jan 23, 2008 7:39 am Post subject: |
|
|
Thank you for your contribution. But you definitively should turn green into deep red to make it more sexy
Reinhard
|
|
| Back to top |
|
 |
LightwaveNet
Joined: 23 Jan 2007 Posts: 2
|
Posted: Thu Jan 31, 2008 9:46 am Post subject: export template please |
|
|
Can someone who has implemented this export a graph template for it please. I seem to have goofed. (or some other change I made recently borked everything.) Trying to narrow down which :p
Oh finaly found it. I forgot to add a color to the traffic_out line added :p
|
|
| Back to top |
|
 |
hosierd
Joined: 09 Jun 2004 Posts: 19 Location: Rockville, Maryland
|
Posted: Mon Mar 24, 2008 1:29 pm Post subject: Re: [HOWTO] Sexy Traffic Graphs |
|
|
[/quote]Graph the same data twice - Once as a 100% opaque line, and again as an area with 10% opacity. This would (at least in theory) give a nice solid edge to the lightly colored area, and the areas would blend together fairly well. (I first did this on a different graph and used red and blue - Makes a nice purple!) The Green and Blue don't blend quite as nicely, but it still looks very good.[/quote]
Great looking graphs! Thanks for the tip.
How did you get the legend to line up so well ?
Thanks.
Doug
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 11377 Location: Muenster, Germany
|
Posted: Mon Mar 24, 2008 4:43 pm Post subject: Re: [HOWTO] Sexy Traffic Graphs |
|
|
| hosierd wrote: | | How did you get the legend to line up so well ? | Check <HR> of the last Graph Item.
Reinhard
|
|
| Back to top |
|
 |
wishbone
Joined: 14 Dec 2006 Posts: 5
|
Posted: Tue Mar 25, 2008 12:30 am Post subject: Re: [HOWTO] Sexy Traffic Graphs |
|
|
| hosierd wrote: |
Great looking graphs! Thanks for the tip.
How did you get the legend to line up so well ?
Thanks.
Doug |
It's all in the font choice. You need to select a font that is very "monospaced".
BTW thanks for the tip. The graphs look VERY nice. As soon as the ubuntu packages catch up, I'll be trying this for sure.
|
|
| Back to top |
|
 |
ben_c Cacti User
Joined: 14 May 2007 Posts: 177 Location: Melbourne, Australia.
|
Posted: Tue Apr 08, 2008 9:34 pm Post subject: |
|
|
This is handy to know, but i'm interested if this increases processing load on the box as it has to render two lines instead of just the one line/area?
I always need to consider this with a large number of datasources.
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 11377 Location: Muenster, Germany
|
Posted: Wed Apr 09, 2008 12:40 pm Post subject: |
|
|
| ben_c wrote: | This is handy to know, but i'm interested if this increases processing load on the box as it has to render two lines instead of just the one line/area?
I always need to consider this with a large number of datasources. | IMHO, no problem. Graph rendering is done on request only. And you hopefully will never create all 16k graphs in one run
Reinhard
|
|
| Back to top |
|
 |
|