Code

6222d6c826f19aa6095004f0c98bcd32f0a12bc7
[pkg-rrdtool.git] / doc / rrdgraph_graph.1
1 .\" Automatically generated by Pod::Man v1.37, Pod::Parser v1.14
2 .\"
3 .\" Standard preamble:
4 .\" ========================================================================
5 .de Sh \" Subsection heading
6 .br
7 .if t .Sp
8 .ne 5
9 .PP
10 \fB\\$1\fR
11 .PP
12 ..
13 .de Sp \" Vertical space (when we can't use .PP)
14 .if t .sp .5v
15 .if n .sp
16 ..
17 .de Vb \" Begin verbatim text
18 .ft CW
19 .nf
20 .ne \\$1
21 ..
22 .de Ve \" End verbatim text
23 .ft R
24 .fi
25 ..
26 .\" Set up some character translations and predefined strings.  \*(-- will
27 .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
28 .\" double quote, and \*(R" will give a right double quote.  | will give a
29 .\" real vertical bar.  \*(C+ will give a nicer C++.  Capital omega is used to
30 .\" do unbreakable dashes and therefore won't be available.  \*(C` and \*(C'
31 .\" expand to `' in nroff, nothing in troff, for use with C<>.
32 .tr \(*W-|\(bv\*(Tr
33 .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
34 .ie n \{\
35 .    ds -- \(*W-
36 .    ds PI pi
37 .    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
38 .    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
39 .    ds L" ""
40 .    ds R" ""
41 .    ds C` ""
42 .    ds C' ""
43 'br\}
44 .el\{\
45 .    ds -- \|\(em\|
46 .    ds PI \(*p
47 .    ds L" ``
48 .    ds R" ''
49 'br\}
50 .\"
51 .\" If the F register is turned on, we'll generate index entries on stderr for
52 .\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index
53 .\" entries marked with X<> in POD.  Of course, you'll have to process the
54 .\" output yourself in some meaningful fashion.
55 .if \nF \{\
56 .    de IX
57 .    tm Index:\\$1\t\\n%\t"\\$2"
58 ..
59 .    nr % 0
60 .    rr F
61 .\}
62 .\"
63 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
64 .\" way too many mistakes in technical documents.
65 .hy 0
66 .if n .na
67 .\"
68 .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2).
69 .\" Fear.  Run.  Save yourself.  No user-serviceable parts.
70 .    \" fudge factors for nroff and troff
71 .if n \{\
72 .    ds #H 0
73 .    ds #V .8m
74 .    ds #F .3m
75 .    ds #[ \f1
76 .    ds #] \fP
77 .\}
78 .if t \{\
79 .    ds #H ((1u-(\\\\n(.fu%2u))*.13m)
80 .    ds #V .6m
81 .    ds #F 0
82 .    ds #[ \&
83 .    ds #] \&
84 .\}
85 .    \" simple accents for nroff and troff
86 .if n \{\
87 .    ds ' \&
88 .    ds ` \&
89 .    ds ^ \&
90 .    ds , \&
91 .    ds ~ ~
92 .    ds /
93 .\}
94 .if t \{\
95 .    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u"
96 .    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'
97 .    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'
98 .    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'
99 .    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'
100 .    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'
101 .\}
102 .    \" troff and (daisy-wheel) nroff accents
103 .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'
104 .ds 8 \h'\*(#H'\(*b\h'-\*(#H'
105 .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#]
106 .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'
107 .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'
108 .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#]
109 .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#]
110 .ds ae a\h'-(\w'a'u*4/10)'e
111 .ds Ae A\h'-(\w'A'u*4/10)'E
112 .    \" corrections for vroff
113 .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'
114 .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'
115 .    \" for low resolution devices (crt and lpr)
116 .if \n(.H>23 .if \n(.V>19 \
117 \{\
118 .    ds : e
119 .    ds 8 ss
120 .    ds o a
121 .    ds d- d\h'-1'\(ga
122 .    ds D- D\h'-1'\(hy
123 .    ds th \o'bp'
124 .    ds Th \o'LP'
125 .    ds ae ae
126 .    ds Ae AE
127 .\}
128 .rm #[ #] #H #V #F C
129 .\" ========================================================================
130 .\"
131 .IX Title "RRDGRAPH_GRAPH 1"
132 .TH RRDGRAPH_GRAPH 1 "2009-02-21" "1.3.99909060808" "rrdtool"
133 .SH "NAME"
134 rrdgraph_graph \- rrdtool graph command reference
135 .SH "SYNOPSIS"
136 .IX Header "SYNOPSIS"
137 \&\fB\s-1PRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fIformat\fR
138 .PP
139 \&\fB\s-1GPRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fIformat\fR
140 .PP
141 \&\fB\s-1COMMENT\s0\fR\fB:\fR\fItext\fR
142 .PP
143 \&\fB\s-1VRULE\s0\fR\fB:\fR\fItime\fR\fB#\fR\fIcolor\fR[\fB:\fR\fIlegend\fR][\fB:dashes\fR[\fB=\fR\fIon_s\fR[,\fIoff_s\fR[,\fIon_s\fR,\fIoff_s\fR]...]][\fB:dash\-offset=\fR\fIoffset\fR]]
144 .PP
145 \&\fB\s-1HRULE\s0\fR\fB:\fR\fIvalue\fR\fB#\fR\fIcolor\fR[\fB:\fR\fIlegend\fR][\fB:dashes\fR[\fB=\fR\fIon_s\fR[,\fIoff_s\fR[,\fIon_s\fR,\fIoff_s\fR]...]][\fB:dash\-offset=\fR\fIoffset\fR]]
146 .PP
147 \&\fB\s-1LINE\s0\fR[\fIwidth\fR]\fB:\fR\fIvalue\fR[\fB#\fR\fIcolor\fR][\fB:\fR[\fIlegend\fR][\fB:STACK\fR]][\fB:dashes\fR[\fB=\fR\fIon_s\fR[,\fIoff_s\fR[,\fIon_s\fR,\fIoff_s\fR]...]][\fB:dash\-offset=\fR\fIoffset\fR]]
148 .PP
149 \&\fB\s-1AREA\s0\fR\fB:\fR\fIvalue\fR[\fB#\fR\fIcolor\fR][\fB:\fR[\fIlegend\fR][\fB:STACK\fR]]
150 .PP
151 \&\fB\s-1TICK\s0\fR\fB:\fR\fIvname\fR\fB#\fR\fIrrggbb\fR[\fIaa\fR][\fB:\fR\fIfraction\fR[\fB:\fR\fIlegend\fR]]
152 .PP
153 \&\fB\s-1SHIFT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fIoffset\fR
154 .PP
155 \&\fB\s-1TEXTALIGN\s0\fR\fB:\fR{\fBleft\fR|\fBright\fR|\fBjustified\fR|\fBcenter\fR}
156 .PP
157 \&\fB\s-1PRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fI\s-1CF\s0\fR\fB:\fR\fIformat\fR (deprecated)
158 .PP
159 \&\fB\s-1GPRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fI\s-1CF\s0\fR\fB:\fR\fIformat\fR (deprecated)
160 .PP
161 \&\fB\s-1STACK\s0\fR\fB:\fR\fIvname\fR\fB#\fR\fIcolor\fR[\fB:\fR\fIlegend\fR] (deprecated)
162 .SH "DESCRIPTION"
163 .IX Header "DESCRIPTION"
164 These instructions allow you to generate your image or report.
165 If you don't use any graph elements, no graph is generated.
166 Similarly, no report is generated if you don't use print options.
167 .Sh "\s-1PRINT\s0"
168 .IX Subsection "PRINT"
169 \fI\f(BI\s-1PRINT:\s0\fI\fIvname\fI\f(BI:\fI\fIformat\fI[\f(BI:strftime\fI]\fR
170 .IX Subsection "PRINT:vname:format[:strftime]"
171 .PP
172 Depending on the context, either the value component or the time
173 component of a \fB\s-1VDEF\s0\fR is printed using \fIformat\fR. It is an error
174 to specify a \fIvname\fR generated by a \fB\s-1DEF\s0\fR or \fB\s-1CDEF\s0\fR.
175 .PP
176 Any text in \fIformat\fR is printed literally with one exception:
177 The percent character introduces a formatter string. This string
178 can be:
179 .PP
180 For printing values:
181 .IP "\fB%%\fR" 4
182 .IX Item "%%"
183 just prints a literal '%' character
184 .IP "\fB%#.#le\fR" 4
185 .IX Item "%#.#le"
186 prints numbers like 1.2346e+04. The optional integers # denote field
187 width and decimal precision.
188 .IP "\fB%#.#lf\fR" 4
189 .IX Item "%#.#lf"
190 prints numbers like 12345.6789, with optional field width
191 and precision.
192 .IP "\fB%s\fR" 4
193 .IX Item "%s"
194 place this after \fB%le\fR, \fB%lf\fR or \fB%lg\fR. This will be replaced by the
195 appropriate \s-1SI\s0 magnitude unit and the value will be scaled
196 accordingly (123456 \-> 123.456 k).
197 .IP "\fB%S\fR" 4
198 .IX Item "%S"
199 is similar to \fB%s\fR. It does, however, use a previously defined
200 magnitude unit. If there is no such unit yet, it tries to define
201 one (just like \fB%s\fR) unless the value is zero, in which case the magnitude
202 unit stays undefined. Thus, formatter strings using \fB%S\fR and no \fB%s\fR
203 will all use the same magnitude unit except for zero values.
204 .PP
205 If you \s-1PRINT\s0 a \s-1VDEF\s0 value, you can also print the time associated with it by appending the string
206 \&\fB:strftime\fR to the format. Note that rrdtool uses the strftime function of your OSs C library. This means that
207 the conversion specifier may vary. Check the manual page if you are uncertain. The following is a list of
208 conversion specifiers usually supported across the board. 
209 .IP "\fB%a\fR" 4
210 .IX Item "%a"
211 The abbreviated weekday name according to the current locale.
212 .IP "\fB%A\fR" 4
213 .IX Item "%A"
214 The full weekday name according to the current locale.
215 .IP "\fB%b\fR" 4
216 .IX Item "%b"
217 The abbreviated month name according to the current locale.
218 .IP "\fB%B\fR" 4
219 .IX Item "%B"
220 The full month name according to the current locale.
221 .IP "\fB%c\fR" 4
222 .IX Item "%c"
223 The preferred date and time representation for the current locale.
224 .IP "\fB%d\fR" 4
225 .IX Item "%d"
226 The day of the month as a decimal number (range 01 to 31).
227 .IP "\fB%H\fR" 4
228 .IX Item "%H"
229 The hour as a decimal number using a 24\-hour clock (range 00 to 23).
230 .IP "\fB%I\fR" 4
231 .IX Item "%I"
232 The hour as a decimal number using a 12\-hour clock (range 01 to 12).
233 .IP "\fB%j\fR" 4
234 .IX Item "%j"
235 The day of the year as a decimal number (range 001 to 366).
236 .IP "\fB%m\fR" 4
237 .IX Item "%m"
238 The month as a decimal number (range 01 to 12).
239 .IP "\fB%M\fR" 4
240 .IX Item "%M"
241 The minute as a decimal number (range 00 to 59).
242 .IP "\fB%p\fR" 4
243 .IX Item "%p"
244 Either `\s-1AM\s0' or `\s-1PM\s0' according to the given time value, or the corresponding
245 strings for the current locale.  Noon is treated as `pm' and midnight as
246 `am'.  Note that in many locales and `pm' notation is unsupported and in
247 such cases \f(CW%p\fR will return an empty string.
248 .IP "\fB%s\fR" 4
249 .IX Item "%s"
250 The second as a decimal number (range 00 to 61).
251 .IP "\fB%S\fR" 4
252 .IX Item "%S"
253 The seconds since the epoch (1.1.1970) (libc dependant non standard!)
254 .IP "\fB%U\fR" 4
255 .IX Item "%U"
256 The  week  number  of  the current year as a decimal number, range 00 to 53, starting with the
257 first Sunday as the first day of week 01. See also \f(CW%V\fR and \f(CW%W\fR.
258 .IP "\fB%V\fR" 4
259 .IX Item "%V"
260 The \s-1ISO\s0 8601:1988 week number of the current year as a decimal number, range 01 to  53,  where
261 week  1 is the first week that has at least 4 days in the current year, and with Monday as the
262 first day of the week. See also \f(CW%U\fR and \f(CW%W\fR.
263 .IP "\fB%w\fR" 4
264 .IX Item "%w"
265 The day of the week as a decimal, range 0 to 6, Sunday being 0.  See also \f(CW%u\fR.
266 .IP "\fB%W\fR" 4
267 .IX Item "%W"
268 The week number of the current year as a decimal number, range 00 to  53,  starting  with  the
269 first Monday as the first day of week 01.
270 .IP "\fB%x\fR" 4
271 .IX Item "%x"
272 The preferred date representation for the current locale without the time.
273 .IP "\fB%X\fR" 4
274 .IX Item "%X"
275 The preferred time representation for the current locale without the date.
276 .IP "\fB%y\fR" 4
277 .IX Item "%y"
278 The year as a decimal number without a century (range 00 to 99).
279 .IP "\fB%Y\fR" 4
280 .IX Item "%Y"
281 The year as a decimal number including the century.
282 .IP "\fB%Z\fR" 4
283 .IX Item "%Z"
284 The time zone or name or abbreviation.
285 .IP "\fB%%\fR" 4
286 .IX Item "%%"
287 A literal `%' character.
288 .PP
289 \fI\f(BI\s-1PRINT:\s0\fI\fIvname\fI\f(BI:\fI\fI\s-1CF\s0\fI\f(BI:\fI\fIformat\fI\fR
290 .IX Subsection "PRINT:vname:CF:format"
291 .PP
292 \&\fIDeprecated. Use the new form of this command in new scripts.\fR
293 The first form of this command is to be used with \fB\s-1CDEF\s0\fR \fIvname\fRs.
294 .Sh "\s-1GRAPH\s0"
295 .IX Subsection "GRAPH"
296 \fI\f(BI\s-1GPRINT\s0\fI\f(BI:\fI\fIvname\fI\f(BI:\fI\fIformat\fI\fR
297 .IX Subsection "GPRINT:vname:format"
298 .PP
299 This is the same as \f(CW\*(C`PRINT\*(C'\fR, but printed inside the graph.
300 .PP
301 \fI\f(BI\s-1GPRINT\s0\fI\f(BI:\fI\fIvname\fI\f(BI:\fI\fI\s-1CF\s0\fI\f(BI:\fI\fIformat\fI\fR
302 .IX Subsection "GPRINT:vname:CF:format"
303 .PP
304 \&\fIDeprecated. Use the new form of this command in new scripts.\fR
305 This is the same as \f(CW\*(C`PRINT\*(C'\fR, but printed inside the graph.
306 .PP
307 \fI\f(BI\s-1COMMENT\s0\fI\f(BI:\fI\fItext\fI\fR
308 .IX Subsection "COMMENT:text"
309 .PP
310 Text is printed literally in the legend section of the graph. Note that in
311 RRDtool 1.2 you have to escape colons in \s-1COMMENT\s0 text in the same way you
312 have to escape them in \fB*PRINT\fR commands by writing \fB'\e:'\fR.
313 .PP
314 \fI\f(BI\s-1VRULE\s0\fI\f(BI:\fI\fItime\fI\f(BI#\fI\fIcolor\fI[\f(BI:\fI\fIlegend\fI][\f(BI:dashes\fI[\f(BI=\fI\fIon_s\fI[,\fIoff_s\fI[,\fIon_s\fI,\fIoff_s\fI]...]][\f(BI:dash\-offset=\fI\fIoffset\fI]]\fR
315 .IX Subsection "VRULE:time#color[:legend][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]]"
316 .PP
317 Draw a vertical line at \fItime\fR.  Its color is composed from three
318 hexadecimal numbers specifying the rgb color components (00 is off, \s-1FF\s0 is
319 maximum) red, green and blue followed by an optional alpha. Optionally, a legend box and string is
320 printed in the legend section. \fItime\fR may be a number or a variable
321 from a \fB\s-1VDEF\s0\fR. It is an error to use \fIvname\fRs from \fB\s-1DEF\s0\fR or \fB\s-1CDEF\s0\fR here.
322 Dashed lines can be drawn using the \fBdashes\fR modifier. See \fB\s-1LINE\s0\fR for more
323 details.
324 .PP
325 \fI\f(BI\s-1HRULE\s0\fI\f(BI:\fI\fIvalue\fI\f(BI#\fI\fIcolor\fI[\f(BI:\fI\fIlegend\fI][\f(BI:dashes\fI[\f(BI=\fI\fIon_s\fI[,\fIoff_s\fI[,\fIon_s\fI,\fIoff_s\fI]...]][\f(BI:dash\-offset=\fI\fIoffset\fI]]\fR
326 .IX Subsection "HRULE:value#color[:legend][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]]"
327 .PP
328 Draw a horizontal line at \fIvalue\fR.  \s-1HRULE\s0 acts much like \s-1LINE\s0 except that
329 will have no effect on the scale of the graph. If a \s-1HRULE\s0 is outside the
330 graphing area it will just not be visible.
331 .PP
332 \fI\f(BI\s-1LINE\s0\fI[\fIwidth\fI]\f(BI:\fI\fIvalue\fI[\f(BI#\fI\fIcolor\fI][\f(BI:\fI[\fIlegend\fI][\f(BI:STACK\fI]][\f(BI:dashes\fI[\f(BI=\fI\fIon_s\fI[,\fIoff_s\fI[,\fIon_s\fI,\fIoff_s\fI]...]][\f(BI:dash\-offset=\fI\fIoffset\fI]]\fR
333 .IX Subsection "LINE[width]:value[#color][:[legend][:STACK]][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]]"
334 .PP
335 Draw a line of the specified width onto the graph. \fIwidth\fR can be a
336 floating point number. If the color is not specified, the drawing is done
337 \&'invisibly'. This is useful when stacking something else on top of this
338 line. Also optional is the legend box and string which will be printed in
339 the legend section if specified. The \fBvalue\fR can be generated by \fB\s-1DEF\s0\fR,
340 \&\fB\s-1VDEF\s0\fR, and \fB\s-1CDEF\s0\fR.  If the optional \fB\s-1STACK\s0\fR modifier is used, this line
341 is stacked on top of the previous element which can be a \fB\s-1LINE\s0\fR or an
342 \&\fB\s-1AREA\s0\fR.
343 .PP
344 The \fBdashes\fR modifier enables dashed line style. Without any further options
345 a symmetric dashed line with a segment length of 5 pixels will be drawn. The
346 dash pattern can be changed if the \fBdashes=\fR parameter is followed by either
347 one value or an even number (1, 2, 4, 6, ...) of positive values. Each value
348 provides the length of alternate \fIon_s\fR and \fIoff_s\fR portions of the
349 stroke. The \fBdash-offset\fR parameter specifies an \fIoffset\fR into the pattern
350 at which the stroke begins.
351 .PP
352 When you do not specify a color, you cannot specify a legend.  Should
353 you want to use \s-1STACK\s0, use the \*(L"LINEx:<value>::STACK\*(R" form.
354 .PP
355 \fI\f(BI\s-1AREA\s0\fI\f(BI:\fI\fIvalue\fI[\f(BI#\fI\fIcolor\fI][\f(BI:\fI[\fIlegend\fI][\f(BI:STACK\fI]]\fR
356 .IX Subsection "AREA:value[#color][:[legend][:STACK]]"
357 .PP
358 See \fB\s-1LINE\s0\fR, however the area between the x\-axis and the line will
359 be filled.
360 .PP
361 \fI\f(BI\s-1TICK\s0\fI\f(BI:\fI\fIvname\fI\f(BI#\fI\fIrrggbb\fI[\fIaa\fI][\f(BI:\fI\fIfraction\fI[\f(BI:\fI\fIlegend\fI]]\fR
362 .IX Subsection "TICK:vname#rrggbb[aa][:fraction[:legend]]"
363 .PP
364 Plot a tick mark (a vertical line) for each value of \fIvname\fR that is
365 non-zero and not *UNKNOWN*. The \fIfraction\fR argument specifies the length of
366 the tick mark as a fraction of the y\-axis; the default value is 0.1 (10% of
367 the axis). Note that the color specification is not optional. The \s-1TICK\s0 marks normally
368 start at the lower edge of the graphing area. If the fraction is negative they start
369 at the upper border of the graphing area.
370 .PP
371 \fI\f(BI\s-1SHIFT\s0\fI\f(BI:\fI\fIvname\fI\f(BI:\fI\fIoffset\fI\fR
372 .IX Subsection "SHIFT:vname:offset"
373 .PP
374 Using this command \fBRRDtool\fR will graph the following elements
375 with the specified offset.  For instance, you can specify an
376 offset of (\ 7*24*60*60\ =\ )\ 604'800\ seconds to \*(L"look back\*(R" one
377 week. Make sure to tell the viewer of your graph you did this ...
378 As with the other graphing elements, you can specify a number or
379 a variable here.
380 .PP
381 \fI\f(BI\s-1TEXTALIGN\s0\fI\f(BI:\fI{\f(BIleft\fI|\f(BIright\fI|\f(BIjustified\fI|\f(BIcenter\fI}\fR
382 .IX Subsection "TEXTALIGN:{left|right|justified|center}"
383 .PP
384 Labels are placed below the graph. When they overflow to the left, they wrap
385 to the next line. By default, lines are justified left and right. The
386 \&\fB\s-1TEXTALIGN\s0\fR function lets you change this default. This is a command and
387 not an option, so that you can change the default several times in your
388 argument list.
389 .PP
390 \fI\f(BI\s-1STACK\s0\fI\f(BI:\fI\fIvname\fI\f(BI#\fI\fIcolor\fI[\f(BI:\fI\fIlegend\fI]\fR
391 .IX Subsection "STACK:vname#color[:legend]"
392 .PP
393 \&\fIDeprecated.  Use the \f(BI\s-1STACK\s0\fI modifiers on the other commands instead!\fR
394 .PP
395 \&\fBSome notes on stacking\fR
396 .PP
397 When stacking, an element is not placed above the X\-axis but rather
398 on top of the previous element.  There must be something to stack
399 upon.
400 .PP
401 You can use an \fBinvisible\fR \s-1LINE\s0 or \s-1AREA\s0 to stacked upon.
402 .PP
403 An \fBunknown\fR value makes the entire stack unknown from that moment on.
404 You don't know where to begin (the unknown value) and therefore do
405 not know where to end.
406 .PP
407 If you want to make sure you will be displaying a certain variable,
408 make sure never to stack upon the unknown value.  Use a \s-1CDEF\s0 instruction
409 with \fB\s-1IF\s0\fR and \fB\s-1UN\s0\fR to do so.
410 .SH "NOTES on legend arguments"
411 .IX Header "NOTES on legend arguments"
412 .Sh "Escaping the colon"
413 .IX Subsection "Escaping the colon"
414 A colon ':' in a \fIlegend\fR argument will mark the end of the
415 legend. To enter a ':' as part of a legend, the colon must be escaped
416 with a backslash '\e:'.  Beware that many environments process
417 backslashes themselves, so it may be necessary to write two
418 backslashes in order to one being passed onto rrd_graph.
419 .Sh "String Formatting"
420 .IX Subsection "String Formatting"
421 The text printed below the actual graph can be formatted by appending special
422 escape characters at the end of a text. When ever such a character occurs,
423 all pending text is pushed onto the graph according to the character
424 specified.
425 .PP
426 Valid markers are: \fB\ej\fR for justified, \fB\el\fR for left aligned, \fB\er\fR for
427 right aligned, and \fB\ec\fR for centered. In the next section there is an
428 example showing how to use centered formatting.
429 .PP
430 \&\fB\en\fR is a valid alias for \fB\el\fR since incomplete parsing in earlier
431 versions of rrdtool lead to this behavior and a number of people has been using it.
432 .PP
433 Normally there are two space characters inserted between every two items
434 printed into the graph. The space following a string can be suppressed by
435 putting a \fB\eg\fR at the end of the string. The \fB\eg\fR also ignores any space
436 inside the string if it is at the very end of the string. This can be used
437 in connection with \fB%s\fR to suppress empty unit strings.
438 .PP
439 .Vb 1
440 \& GPRINT:a:MAX:%lf%s\eg
441 .Ve
442 .PP
443 A special case is \s-1COMMENT:\s0\fB\es\fR which inserts some additional vertical space
444 before placing the next row of legends.
445 .PP
446 If you are using the proportional font in your graph, you can use tab
447 characters or the sequence \fB\et\fR to line-up legend elements. Note that
448 the tabs inserted are relative to the start of the current legend
449 element!
450 .PP
451 Since RRDtool 1.3 is using Pango for rending text, you can use Pango markup.
452 Pango uses the xml \fBspan\fR tags for inline formatting instructions.:
453 .PP
454 A simple example of a marked-up string might be: 
455 .PP
456 .Vb 1
457 \& <span foreground="blue" size="x\-large">Blue text</span> is <i>cool</i>!
458 .Ve
459 .PP
460 The complete list of attributes for the span tag (taken from the pango documentation):
461 .IP "\fBfont_desc\fR" 4
462 .IX Item "font_desc"
463 A font description string, such as \*(L"Sans Italic 12\*(R"; note that any other span attributes will override this description. So if you have \*(L"Sans Italic\*(R" and also a style=\*(L"normal\*(R" attribute, you will get Sans normal, not italic.
464 .IP "\fBfont_family\fR" 4
465 .IX Item "font_family"
466 A font family name
467 .IP "\fBface\fR" 4
468 .IX Item "face"
469 Synonym for font_family
470 .IP "\fBsize\fR" 4
471 .IX Item "size"
472 Font size in 1024ths of a point, or one of the absolute sizes 'xx\-small', 'x\-small', 'small', 'medium', 'large', 'x\-large', 'xx\-large', or one of the relative sizes 'smaller' or 'larger'. If you want to specify a absolute size, it's usually easier to take advantage of the ability to specify a partial font description using 'font_desc'; you can use font_desc='12.5' rather than size='12800'.
473 .IP "\fBstyle\fR" 4
474 .IX Item "style"
475 One of 'normal', 'oblique', 'italic'
476 .IP "\fBweight\fR" 4
477 .IX Item "weight"
478 One of 'ultralight', 'light', 'normal', 'bold', 'ultrabold', 'heavy', or a numeric weight
479 .IP "\fBvariant\fR" 4
480 .IX Item "variant"
481 \&'normal' or 'smallcaps'
482 .IP "\fBstretch\fR" 4
483 .IX Item "stretch"
484 One of 'ultracondensed', 'extracondensed', 'condensed', 'semicondensed', 'normal', 'semiexpanded', 'expanded', 'extraexpanded', 'ultraexpanded'
485 .IP "\fBforeground\fR" 4
486 .IX Item "foreground"
487 An \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red'
488 .IP "\fBbackground\fR" 4
489 .IX Item "background"
490 An \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red'
491 .IP "\fBunderline\fR" 4
492 .IX Item "underline"
493 One of 'none', 'single', 'double', 'low', 'error'
494 .IP "\fBunderline_color\fR" 4
495 .IX Item "underline_color"
496 The color of underlines; an \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red'
497 .IP "\fBrise\fR" 4
498 .IX Item "rise"
499 Vertical displacement, in 10000ths of an em. Can be negative for subscript, positive for superscript.
500 .IP "\fBstrikethrough\fR" 4
501 .IX Item "strikethrough"
502 \&'true' or 'false' whether to strike through the text
503 .IP "\fBstrikethrough_color\fR" 4
504 .IX Item "strikethrough_color"
505 The color of strikethrough lines; an \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red'
506 .IP "\fBfallback\fR" 4
507 .IX Item "fallback"
508 \&'true' or 'false' whether to enable fallback. If disabled, then characters will only be used from the closest matching font on the system. No fallback will be done to other fonts on the system that might contain the characters in the text. Fallback is enabled by default. Most applications should not disable fallback.
509 .IP "\fBlang\fR" 4
510 .IX Item "lang"
511 A language code, indicating the text language
512 .IP "\fBletter_spacing\fR" 4
513 .IX Item "letter_spacing"
514 Inter-letter spacing in 1024ths of a point.
515 .IP "\fBgravity\fR" 4
516 .IX Item "gravity"
517 One of 'south', 'east', 'north', 'west', 'auto'.
518 .IP "\fBgravity_hint\fR" 4
519 .IX Item "gravity_hint"
520 One of 'natural', 'strong', 'line'.
521 .PP
522 To save you some typing, there are also some shortcuts:
523 .IP "\fBb\fR" 4
524 .IX Item "b"
525 Bold
526 .IP "\fBbig\fR" 4
527 .IX Item "big"
528 Makes font relatively larger, equivalent to <span size=\*(L"larger\*(R">
529 .IP "\fBi\fR" 4
530 .IX Item "i"
531 Italic
532 .IP "\fBs\fR" 4
533 .IX Item "s"
534 Strikethrough
535 .IP "\fBsub\fR" 4
536 .IX Item "sub"
537 Subscript
538 .IP "\fBsup\fR" 4
539 .IX Item "sup"
540 Superscript
541 .IP "\fBsmall\fR" 4
542 .IX Item "small"
543 Makes font relatively smaller, equivalent to <span size=\*(L"smaller\*(R">
544 .IP "\fBtt\fR" 4
545 .IX Item "tt"
546 Monospace font
547 .IP "\fBu\fR" 4
548 .IX Item "u"
549 Underline 
550 .SH "SEE ALSO"
551 .IX Header "SEE ALSO"
552 rrdgraph gives an overview of how \fBrrdtool graph\fR works.
553 rrdgraph_data describes \fB\s-1DEF\s0\fR,\fB\s-1CDEF\s0\fR and \fB\s-1VDEF\s0\fR in detail.
554 rrdgraph_rpn describes the \fB\s-1RPN\s0\fR language used in the \fB?DEF\fR statements.
555 rrdgraph_graph page describes all of the graph and print functions.
556 .PP
557 Make sure to read rrdgraph_examples for tips&tricks.
558 .SH "AUTHOR"
559 .IX Header "AUTHOR"
560 Program by Tobias Oetiker <tobi@oetiker.ch>
561 .PP
562 This manual page by Alex van den Bogaerdt <alex@vandenbogaerdt.nl>
563 with corrections and/or additions by several people