Scale+Legend editting (weathermap)
Moderators: Developers, Moderators
Scale+Legend editting (weathermap)
Hi,
I've a situation here. i need to change the legend to something like this:
<Colour1> <text1>
<Colour2> <text2>
<Colour3> <text3>
(without displaying the scale)
default weathermap legend;
<Colour1> <Scale1>
<Colour2> <Scale2>
<Colour3> <Scale3>
Could somebody please help me here? What to change and how to do it?
TQ
I've a situation here. i need to change the legend to something like this:
<Colour1> <text1>
<Colour2> <text2>
<Colour3> <text3>
(without displaying the scale)
default weathermap legend;
<Colour1> <Scale1>
<Colour2> <Scale2>
<Colour3> <Scale3>
Could somebody please help me here? What to change and how to do it?
TQ
- Attachments
-
- example.PNG (1.02 KiB) Viewed 8793 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
You can't do this right now.
Where would you want that text to come from? The 'tag' from the end of the SCALE lines?
Where would you want that text to come from? The 'tag' from the end of the SCALE lines?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
The config below simulates your example,it is not very clean and it takes a bit of work but it works on the sample.conf
Simulating the white background of the legend is a bit ugly and may pose problems (z-ordering in .96 would help)
.96's Templates would clean it up a bit
the target values here are based on the default scale and a MAXVALUE of 100
Using LABELOFFSET would also clean it up by cutting the number of nodes needed if half, but as far as I can tell you can't use (LABELBGCOLOR none) and (AICONFILLCOLR copy) or (USEICONSCALE) together, whenever I try this (LABELBGCOLOR none) is ignored.
Simulating the white background of the legend is a bit ugly and may pose problems (z-ordering in .96 would help)
.96's Templates would clean it up a bit
the target values here are based on the default scale and a MAXVALUE of 100
Using LABELOFFSET would also clean it up by cutting the number of nodes needed if half, but as far as I can tell you can't use (LABELBGCOLOR none) and (AICONFILLCOLR copy) or (USEICONSCALE) together, whenever I try this (LABELBGCOLOR none) is ignored.
Code: Select all
NODE Legend
LABEL Traffic Load
ICON 80 80 box
LABELOFFSET 0 -30
AICONFILLCOLOR 255 255 255
LABELBGCOLOR none
LABELOUTLINECOLOR none
POSITION 200 300
NODE Legend1text
LABEL text1
LABELBGCOLOR none
LABELOUTLINECOLOR none
POSITION Legend1 40 0
NODE Legend1
ICON 30 15 box
AICONFILLCOLOR copy
TARGET static:9
POSITION Legend -20 -10
NODE Legend2text
LABEL text2
LABELBGCOLOR none
LABELOUTLINECOLOR none
POSITION Legend2 40 0
NODE Legend2
ICON 30 15 box
AICONFILLCOLOR copy
TARGET static:24
POSITION Legend1 0 20
NODE Legend3text
LABEL text3
LABELBGCOLOR none
LABELOUTLINECOLOR none
POSITION Legend3 40 0
NODE Legend3
ICON 30 15 box
TARGET static:39
POSITION Legend2 0 20
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
OK. Watch this space. See what santa brings you.epair wrote:Howie wrote:You can't do this right now.
Where would you want that text to come from? The 'tag' from the end of the SCALE lines?
yup, something like that. sigh
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
I've tried what colejv had suggested to me. TQVM. but, the thing is, i would like to hide the default scale/legend in the map without interfering with the scale. attached is the sample of what i've tried so far.colejv wrote:The config below simulates your example,it is not very clean and it takes a bit of work but it works on the sample.conf
Simulating the white background of the legend is a bit ugly and may pose problems (z-ordering in .96 would help)
.96's Templates would clean it up a bit
the target values here are based on the default scale and a MAXVALUE of 100
Using LABELOFFSET would also clean it up by cutting the number of nodes needed if half, but as far as I can tell you can't use (LABELBGCOLOR none) and (AICONFILLCOLR copy) or (USEICONSCALE) together, whenever I try this (LABELBGCOLOR none) is ignored.
Code: Select all
NODE Legend LABEL Traffic Load ICON 80 80 box LABELOFFSET 0 -30 AICONFILLCOLOR 255 255 255 LABELBGCOLOR none LABELOUTLINECOLOR none POSITION 200 300 NODE Legend1text LABEL text1 LABELBGCOLOR none LABELOUTLINECOLOR none POSITION Legend1 40 0 NODE Legend1 ICON 30 15 box AICONFILLCOLOR copy TARGET static:9 POSITION Legend -20 -10 NODE Legend2text LABEL text2 LABELBGCOLOR none LABELOUTLINECOLOR none POSITION Legend2 40 0 NODE Legend2 ICON 30 15 box AICONFILLCOLOR copy TARGET static:24 POSITION Legend1 0 20 NODE Legend3text LABEL text3 LABELBGCOLOR none LABELOUTLINECOLOR none POSITION Legend3 40 0 NODE Legend3 ICON 30 15 box TARGET static:39 POSITION Legend2 0 20
- Attachments
-
- example2.PNG (138.44 KiB) Viewed 8726 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
You can hide the default legend:
KEYPOS DEFAULT -1 -1
(just noticed that that's not in the manual... I'll fix that)
KEYPOS DEFAULT -1 -1
(just noticed that that's not in the manual... I'll fix that)
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Just added in time for 0.96test2: KEYSTYLE tags
Gives you a 'classic' style legend, but with the scale tags instead of percentages.
0.96test2 should be out in a day or two, depending on how much time I get over Christmas, and how much I decide to document
Gives you a 'classic' style legend, but with the scale tags instead of percentages.
Code: Select all
KEYPOS DEFAULT 40 40 Traffic Load
KEYSTYLE DEFAULT tags
SCALE DEFAULT 1 10 140 0 255 Nothing
SCALE DEFAULT 10 25 32 32 255 Not Much
SCALE DEFAULT 25 40 0 192 255 Fair
SCALE DEFAULT 40 55 0 240 0 Some
SCALE DEFAULT 55 70 240 240 0 Quite A Lot
SCALE DEFAULT 70 85 255 192 0 Loads
SCALE DEFAULT 85 100 255 0 0 Too Much
- Attachments
-
- tag-style.png (5.47 KiB) Viewed 8697 times
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
There are no incompatible changes - you should even be able to go back to 0.94 or 0.95 if you don't like it (as long as you don't use the new features, obviously).
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Who is online
Users browsing this forum: No registered users and 5 guests