.\" Automatically generated by Pod::Man 4.11 (Pod::Simple 3.35) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" Set up some character translations and predefined strings. \*(-- will .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left .\" double quote, and \*(R" will give a right double quote. \*(C+ will .\" give a nicer C++. Capital omega is used to do unbreakable dashes and .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff, .\" nothing in troff, for use with C<>. .tr \(*W- .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p' .ie n \{\ . ds -- \(*W- . ds PI pi . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch . ds L" "" . ds R" "" . ds C` "" . ds C' "" 'br\} .el\{\ . ds -- \|\(em\| . ds PI \(*p . ds L" `` . ds R" '' . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. . \" fudge factors for nroff and troff .if n \{\ . ds #H 0 . ds #V .8m . ds #F .3m . ds #[ \f1 . ds #] \fP .\} .if t \{\ . ds #H ((1u-(\\\\n(.fu%2u))*.13m) . ds #V .6m . ds #F 0 . ds #[ \& . ds #] \& .\} . \" simple accents for nroff and troff .if n \{\ . ds ' \& . ds ` \& . ds ^ \& . ds , \& . ds ~ ~ . ds / .\} .if t \{\ . ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u" . ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u' . ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u' . ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u' . ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u' . ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u' .\} . \" troff and (daisy-wheel) nroff accents .ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V' .ds 8 \h'\*(#H'\(*b\h'-\*(#H' .ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#] .ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H' .ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u' .ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#] .ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#] .ds ae a\h'-(\w'a'u*4/10)'e .ds Ae A\h'-(\w'A'u*4/10)'E . \" corrections for vroff .if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u' .if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u' . \" for low resolution devices (crt and lpr) .if \n(.H>23 .if \n(.V>19 \ \{\ . ds : e . ds 8 ss . ds o a . ds d- d\h'-1'\(ga . ds D- D\h'-1'\(hy . ds th \o'bp' . ds Th \o'LP' . ds ae ae . ds Ae AE .\} .rm #[ #] #H #V #F C .\" ======================================================================== .\" .IX Title "RRDGRAPH_GRAPH 1" .TH RRDGRAPH_GRAPH 1 "2022-03-14" "1.8.0" "rrdtool" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH "NAME" rrdgraph_graph \- rrdtool graph command reference .SH "SYNOPSIS" .IX Header "SYNOPSIS" \&\fB\s-1PRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fIformat\fR[\fB:strftime\fR|\fB:valstrftime\fR|\fB:valstrfduration\fR] .PP \&\fB\s-1GPRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fIformat\fR .PP \&\fB\s-1COMMENT\s0\fR\fB:\fR\fItext\fR .PP \&\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]]] .PP \&\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]]] .PP \&\fB\s-1LINE\s0\fR[\fIwidth\fR]\fB:\fR\fIvalue\fR[\fB#\fR\fIcolor\fR][\fB:\fR[\fIlegend\fR][\fB:STACK\fR][\fB:skipscale\fR][\fB:dashes\fR[\fB=\fR\fIon_s\fR[,\fIoff_s\fR[,\fIon_s\fR,\fIoff_s\fR]...]][\fB:dash\-offset=\fR\fIoffset\fR]]] .PP \&\fB\s-1AREA\s0\fR\fB:\fR\fIvalue\fR[\fB#\fR\fIcolor\fR][\fB:\fR[\fIlegend\fR][\fB:STACK\fR][\fB:skipscale\fR]] .PP \&\fB\s-1TICK\s0\fR\fB:\fR\fIvname\fR\fB#\fR\fIrrggbb\fR[\fIaa\fR][\fB:\fR\fIfraction\fR[\fB:\fR\fIlegend\fR]] .PP \&\fB\s-1SHIFT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fIoffset\fR .PP \&\fB\s-1TEXTALIGN\s0\fR\fB:\fR{\fBleft\fR|\fBright\fR|\fBjustified\fR|\fBcenter\fR} .PP \&\fB\s-1PRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fI\s-1CF\s0\fR\fB:\fR\fIformat\fR (deprecated) .PP \&\fB\s-1GPRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fI\s-1CF\s0\fR\fB:\fR\fIformat\fR (deprecated) .PP \&\fB\s-1STACK\s0\fR\fB:\fR\fIvname\fR\fB#\fR\fIcolor\fR[\fB:\fR\fIlegend\fR] (deprecated) .SH "DESCRIPTION" .IX Header "DESCRIPTION" These instructions allow you to generate your image or report. If you don't use any graph elements, no graph is generated. Similarly, no report is generated if you don't use print options. .SS "\s-1PRINT\s0" .IX Subsection "PRINT" \fI\f(BI\s-1PRINT:\s0\fI\fIvname\fI\f(BI:\fI\fIformat\fI[\f(BI:strftime\fI|\f(BI:valstrftime\fI|\f(BI:valstrfduration\fI]\fR .IX Subsection "PRINT:vname:format[:strftime|:valstrftime|:valstrfduration]" .PP Depending on the context, either the value component (no suffix, valstrftime or valstrfduration) or the time component (strftime) of a \fB\s-1VDEF\s0\fR is printed using \fIformat\fR. It is an error to specify a \fIvname\fR generated by a \fB\s-1DEF\s0\fR or \fB\s-1CDEF\s0\fR. .PP Any text in \fIformat\fR is printed literally with one exception: The percent character introduces a formatter string. This string can be: .PP For printing values: .IP "\fB%%\fR" 4 .IX Item "%%" just prints a literal '%' character .IP "\fB%#.#le\fR" 4 .IX Item "%#.#le" prints numbers like 1.2346e+04. The optional integers # denote field width and decimal precision. .IP "\fB%#.#lf\fR" 4 .IX Item "%#.#lf" prints numbers like 12345.6789 (%5.4lf), with optional field width and precision. .IP "\fB\f(CB%s\fB\fR" 4 .IX Item "%s" place this after \fB\f(CB%le\fB\fR, \fB\f(CB%lf\fB\fR or \fB\f(CB%lg\fB\fR. This will be replaced by the appropriate \s-1SI\s0 magnitude unit and the value will be scaled accordingly (123456 \-> 123.456 k). .IP "\fB\f(CB%S\fB\fR" 4 .IX Item "%S" is similar to \fB\f(CB%s\fB\fR. It does, however, use a previously defined magnitude unit. If there is no such unit yet, it tries to define one (just like \fB\f(CB%s\fB\fR) unless the value is zero, in which case the magnitude unit stays undefined. Thus, formatter strings using \fB\f(CB%S\fB\fR and no \fB\f(CB%s\fB\fR will all use the same magnitude unit except for zero values. .PP If you \s-1PRINT\s0 a \s-1VDEF\s0 value, you can also print the time associated with it by appending the string \&\fB:strftime\fR to the format. Note that RRDtool uses the strftime function of your OSs C library. This means that the conversion specifier may vary. Check the manual page if you are uncertain. The following is a list of conversion specifiers usually supported across the board. Formatting values interpreted as timestamps with \fB:valstrftime\fR is done likewise. .IP "\fB\f(CB%a\fB\fR" 4 .IX Item "%a" The abbreviated weekday name according to the current locale. .IP "\fB\f(CB%A\fB\fR" 4 .IX Item "%A" The full weekday name according to the current locale. .IP "\fB\f(CB%b\fB\fR" 4 .IX Item "%b" The abbreviated month name according to the current locale. .IP "\fB\f(CB%B\fB\fR" 4 .IX Item "%B" The full month name according to the current locale. .IP "\fB\f(CB%c\fB\fR" 4 .IX Item "%c" The preferred date and time representation for the current locale. .IP "\fB\f(CB%d\fB\fR" 4 .IX Item "%d" The day of the month as a decimal number (range 01 to 31). .IP "\fB\f(CB%H\fB\fR" 4 .IX Item "%H" The hour as a decimal number using a 24\-hour clock (range 00 to 23). .IP "\fB\f(CB%I\fB\fR" 4 .IX Item "%I" The hour as a decimal number using a 12\-hour clock (range 01 to 12). .IP "\fB\f(CB%j\fB\fR" 4 .IX Item "%j" The day of the year as a decimal number (range 001 to 366). .IP "\fB\f(CB%m\fB\fR" 4 .IX Item "%m" The month as a decimal number (range 01 to 12). .IP "\fB\f(CB%M\fB\fR" 4 .IX Item "%M" The minute as a decimal number (range 00 to 59). .IP "\fB\f(CB%p\fB\fR" 4 .IX Item "%p" Either `\s-1AM\s0' or `\s-1PM\s0' according to the given time value, or the corresponding strings for the current locale. Noon is treated as `pm' and midnight as `am'. Note that in many locales a `pm' notation is unsupported and in such cases \f(CW%p\fR will return an empty string. .IP "\fB\f(CB%s\fB\fR" 4 .IX Item "%s" The second as a decimal number (range 00 to 61). .IP "\fB\f(CB%S\fB\fR" 4 .IX Item "%S" The seconds since the epoch (1.1.1970) (libc dependent non standard!) .IP "\fB\f(CB%U\fB\fR" 4 .IX Item "%U" The week number of the current year as a decimal number, range 00 to 53, starting with the first Sunday as the first day of week 01. See also \f(CW%V\fR and \f(CW%W\fR. .IP "\fB\f(CB%V\fB\fR" 4 .IX Item "%V" The \s-1ISO 8601:1988\s0 week number of the current year as a decimal number, range 01 to 53, where week 1 is the first week that has at least 4 days in the current year, and with Monday as the first day of the week. See also \f(CW%U\fR and \f(CW%W\fR. .IP "\fB\f(CB%w\fB\fR" 4 .IX Item "%w" The day of the week as a decimal, range 0 to 6, Sunday being 0. See also \f(CW%u\fR. .IP "\fB\f(CB%W\fB\fR" 4 .IX Item "%W" The week number of the current year as a decimal number, range 00 to 53, starting with the first Monday as the first day of week 01. .IP "\fB\f(CB%x\fB\fR" 4 .IX Item "%x" The preferred date representation for the current locale without the time. .IP "\fB\f(CB%X\fB\fR" 4 .IX Item "%X" The preferred time representation for the current locale without the date. .IP "\fB\f(CB%y\fB\fR" 4 .IX Item "%y" The year as a decimal number without a century (range 00 to 99). .IP "\fB\f(CB%Y\fB\fR" 4 .IX Item "%Y" The year as a decimal number including the century. .IP "\fB\f(CB%Z\fB\fR" 4 .IX Item "%Z" The time zone or name or abbreviation. .IP "\fB%%\fR" 4 .IX Item "%%" A literal `%' character. .PP Formatting values as duration is done using printf like conversion specifications: .PP .Vb 2 \& \- All non\-conversion specification chars are copied unchanged \& \- A conversion specification has format \*(Aq%\*(Aq [ [\*(Aq0\*(Aq] minwidth ] [ \*(Aq.\*(Aq precision ] conversion\-specifier .Ve .PP With conversion-specifier being one of: .IP "\fB%\fR" 4 .IX Item "%" A raw '%' is output, width and precision are ignored .IP "\fBW\fR" 4 .IX Item "W" Number of weeks .IP "\fBd\fR" 4 .IX Item "d" Number of days, modulus number of weeks .IP "\fBD\fR" 4 .IX Item "D" Number of days .IP "\fBh\fR" 4 .IX Item "h" Number of hours, modulus number of days .IP "\fBH\fR" 4 .IX Item "H" Number of hours .IP "\fBm\fR" 4 .IX Item "m" Number of minutes, modulus number of hours .IP "\fBM\fR" 4 .IX Item "M" Number of minutes .IP "\fBs\fR" 4 .IX Item "s" Number of seconds, modulus number of minutes .IP "\fBS\fR" 4 .IX Item "S" Number of seconds .IP "\fBf\fR" 4 .IX Item "f" Number of milliseconds, modulus seconds .PP \fI\f(BI\s-1PRINT:\s0\fI\fIvname\fI\f(BI:\fI\fI\s-1CF\s0\fI\f(BI:\fI\fIformat\fI\fR .IX Subsection "PRINT:vname:CF:format" .PP \&\fIDeprecated. Use the new form of this command in new scripts.\fR The first form of this command is to be used with \fB\s-1CDEF\s0\fR \fIvname\fRs. .SS "\s-1GRAPH\s0" .IX Subsection "GRAPH" \fI\f(BI\s-1GPRINT\s0\fI\f(BI:\fI\fIvname\fI\f(BI:\fI\fIformat\fI\fR .IX Subsection "GPRINT:vname:format" .PP This is the same as \f(CW\*(C`PRINT\*(C'\fR, but printed inside the graph. .PP \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 .IX Subsection "GPRINT:vname:CF:format" .PP \&\fIDeprecated. Use the new form of this command in new scripts.\fR This is the same as \f(CW\*(C`PRINT\*(C'\fR, but printed inside the graph. .PP \fI\f(BI\s-1COMMENT\s0\fI\f(BI:\fI\fItext\fI\fR .IX Subsection "COMMENT:text" .PP Text is printed literally in the legend section of the graph. Note that in RRDtool 1.2 you have to escape colons in \s-1COMMENT\s0 text in the same way you have to escape them in \fB*PRINT\fR commands by writing \fB'\e:'\fR. .PP \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 .IX Subsection "VRULE:time#color[:[legend][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]]]" .PP Draw a vertical line at \fItime\fR. Its color is composed from three hexadecimal numbers specifying the rgb color components (00 is off, \s-1FF\s0 is maximum) red, green and blue followed by an optional alpha. Optionally, a legend box and string is printed in the legend section. \fItime\fR may be a number or a variable 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. Dashed lines can be drawn using the \fBdashes\fR modifier. See \fB\s-1LINE\s0\fR for more details. .PP \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 .IX Subsection "HRULE:value#color[:[legend][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]]]" .PP Draw a horizontal line at \fIvalue\fR. \s-1HRULE\s0 acts much like \s-1LINE\s0 except that will have no effect on the scale of the graph. If a \s-1HRULE\s0 is outside the graphing area it will just not be visible and it will not appear in the legend by default. .PP \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:skipscale\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 .IX Subsection "LINE[width]:value[#color][:[legend][:STACK][:skipscale][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]]]" .PP Draw a line of the specified width onto the graph. \fIwidth\fR can be a floating point number. If the color is not specified, the drawing is done \&'invisibly'. This is useful when stacking something else on top of this line. Also optional is the legend box and string which will be printed in the legend section if specified. The \fBvalue\fR can be generated by \fB\s-1DEF\s0\fR, \&\fB\s-1VDEF\s0\fR, and \fB\s-1CDEF\s0\fR. If the optional \fB\s-1STACK\s0\fR modifier is used, this line is stacked on top of the previous element which can be a \fB\s-1LINE\s0\fR or an \&\fB\s-1AREA\s0\fR. .PP Normally the graphing function makes sure that the entire \fB\s-1LINE\s0\fR or \fB\s-1AREA\s0\fR is visible in the chart. The scaling of the chart will be modified accordingly if necessary. Any \fB\s-1LINE\s0\fR or \fB\s-1AREA\s0\fR can be excluded from this process by adding the option \fBskipscale\fR. .PP The \fBdashes\fR modifier enables dashed line style. Without any further options a symmetric dashed line with a segment length of 5 pixels will be drawn. The dash pattern can be changed if the \fBdashes=\fR parameter is followed by either one value or an even number (1, 2, 4, 6, ...) of positive values. Each value provides the length of alternate \fIon_s\fR and \fIoff_s\fR portions of the stroke. The \fBdash-offset\fR parameter specifies an \fIoffset\fR into the pattern at which the stroke begins. .PP When you do not specify a color, you cannot specify a legend. Should you want to use \fB\s-1STACK\s0\fR, use the \*(L"LINEx:::STACK\*(R" form. .PP \fI\f(BI\s-1AREA\s0\fI\f(BI:\fI\fIvalue\fI[\f(BI#\fI\fIcolor\fI[\f(BI#\fI\fIcolor2\fI]][\f(BI:\fI[\fIlegend\fI][\f(BI:STACK\fI][\f(BI:skipscale\fI][\f(BI:gradheight=\fI\fIy\fI]\fR .IX Subsection "AREA:value[#color[#color2]][:[legend][:STACK][:skipscale][:gradheight=y]" .PP See \fB\s-1LINE\s0\fR, however the area between the x\-axis and the line will be filled. .PP If color2 is specified, the area will be filled with a gradient. .PP The \fIgradheight\fR parameter can create three different behaviors. If \&\fIgradheight\fR > 0, then the gradient is a fixed height, starting at the line going down. If \fIgradheight\fR < 0, then the gradient starts at a fixed height above the x\-axis, going down to the x\-axis. If \fIheight\fR == 0, then the gradient goes from the line to x\-axis. .PP The default value for \fIgradheight\fR is 50. .PP \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 .IX Subsection "TICK:vname#rrggbb[aa][:fraction[:legend]]" .PP Plot a tick mark (a vertical line) for each value of \fIvname\fR that is non-zero and not *UNKNOWN*. The \fIfraction\fR argument specifies the length of the tick mark as a fraction of the y\-axis; the default value is 0.1 (10% of the axis). Note that the color specification is not optional. The \s-1TICK\s0 marks normally start at the lower edge of the graphing area. If the fraction is negative they start at the upper border of the graphing area. .PP \fI\f(BI\s-1SHIFT\s0\fI\f(BI:\fI\fIvname\fI\f(BI:\fI\fIoffset\fI\fR .IX Subsection "SHIFT:vname:offset" .PP Using this command \fBRRDtool\fR will graph the following elements with the specified offset. For instance, you can specify an offset of (\ 7*24*60*60\ =\ )\ 604'800\ seconds to \*(L"look back\*(R" one week. Make sure to tell the viewer of your graph you did this ... As with the other graphing elements, you can specify a number or a variable here. .PP \fI\f(BI\s-1TEXTALIGN\s0\fI\f(BI:\fI{\f(BIleft\fI|\f(BIright\fI|\f(BIjustified\fI|\f(BIcenter\fI}\fR .IX Subsection "TEXTALIGN:{left|right|justified|center}" .PP Labels are placed below the graph. When they overflow to the left, they wrap to the next line. By default, lines are justified left and right. The \&\fB\s-1TEXTALIGN\s0\fR function lets you change this default. This is a command and not an option, so that you can change the default several times in your argument list. .PP \fI\f(BI\s-1STACK\s0\fI\f(BI:\fI\fIvname\fI\f(BI#\fI\fIcolor\fI[\f(BI:\fI\fIlegend\fI]\fR .IX Subsection "STACK:vname#color[:legend]" .PP \&\fIDeprecated. Use the \f(BI\s-1STACK\s0\fI modifiers on the other commands instead!\fR .PP \&\fBSome notes on stacking\fR .PP When stacking, an element is not placed above the X\-axis but rather on top of the previous element. There must be something to stack upon. .PP You can use an \fBinvisible\fR \s-1LINE\s0 or \s-1AREA\s0 to stacked upon. .PP An \fBunknown\fR value makes the entire stack unknown from that moment on. You don't know where to begin (the unknown value) and therefore do not know where to end. .PP If you want to make sure you will be displaying a certain variable, make sure never to stack upon the unknown value. Use a \s-1CDEF\s0 instruction with \fB\s-1IF\s0\fR and \fB\s-1UN\s0\fR to do so. .SH "NOTES on legend arguments" .IX Header "NOTES on legend arguments" .SS "Escaping the colon" .IX Subsection "Escaping the colon" A colon ':' in a \fIlegend\fR argument will mark the end of the legend. To enter a ':' as part of a legend, the colon must be escaped with a backslash '\e:'. Beware that many environments process backslashes themselves, so it may be necessary to write two backslashes in order to one being passed onto rrd_graph. .SS "String Formatting" .IX Subsection "String Formatting" The text printed below the actual graph can be formatted by appending special escape characters at the end of a text. Whenever such a character occurs, all pending text is pushed onto the graph according to the character specified. .PP Valid markers are: \fB\ej\fR for justified, \fB\el\fR for left aligned, \fB\er\fR for right aligned, and \fB\ec\fR for centered. In the next section there is an example showing how to use centered formatting. .PP \&\fB\en\fR is a valid alias for \fB\el\fR since incomplete parsing in earlier versions of RRDtool lead to this behavior and a number of people has been using it. .PP Normally there are two space characters inserted between every two items printed into the graph. The space following a string can be suppressed by putting a \fB\eg\fR at the end of the string. The \fB\eg\fR also ignores any space inside the string if it is at the very end of the string. This can be used in connection with \fB\f(CB%s\fB\fR to suppress empty unit strings. .PP .Vb 1 \& GPRINT:a:MAX:%lf%s\eg .Ve .PP A special case is \s-1COMMENT:\s0\fB\es\fR which inserts some additional vertical space before placing the next row of legends. .PP If you want to have left and right aligned legends on the same line use \s-1COMMENT:\s0\fB\eu\fR to go one line back like this: .PP .Vb 3 \& COMMENT:left\el \& COMMENT:\eu \& COMMENT:right\er .Ve .PP There is also a 'nop' control for situations where you want a string to actually end in a backslash character sequence \fB\e.\fR .PP .Vb 1 \& COMMENT:OS\e2\e. .Ve .PP When using a proportional font in your graph, the tab characters or the sequence \fB\et\fR will line-up legend elements. Note that the tabs inserted are relative to the start of the current legend element! .PP Since RRDtool 1.3 is using Pango for rending text, you can use Pango markup. Pango uses the xml \fBspan\fR tags for inline formatting instructions. .PP A simple example of a marked-up string might be: .PP .Vb 1 \& Blue text is cool! .Ve .PP The complete list of attributes for the span tag (taken from the pango documentation): .IP "\fBfont_desc\fR" 4 .IX Item "font_desc" 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. .IP "\fBfont_family\fR" 4 .IX Item "font_family" A font family name .IP "\fBface\fR" 4 .IX Item "face" Synonym for font_family .IP "\fBsize\fR" 4 .IX Item "size" 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 an 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'. .IP "\fBstyle\fR" 4 .IX Item "style" One of 'normal', 'oblique', 'italic' .IP "\fBweight\fR" 4 .IX Item "weight" One of 'ultralight', 'light', 'normal', 'bold', 'ultrabold', 'heavy', or a numeric weight .IP "\fBvariant\fR" 4 .IX Item "variant" \&'normal' or 'smallcaps' .IP "\fBstretch\fR" 4 .IX Item "stretch" One of 'ultracondensed', 'extracondensed', 'condensed', 'semicondensed', 'normal', 'semiexpanded', 'expanded', 'extraexpanded', 'ultraexpanded' .IP "\fBforeground\fR" 4 .IX Item "foreground" An \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red' .IP "\fBbackground\fR" 4 .IX Item "background" An \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red' .IP "\fBunderline\fR" 4 .IX Item "underline" One of 'none', 'single', 'double', 'low', 'error' .IP "\fBunderline_color\fR" 4 .IX Item "underline_color" The color of underlines; an \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red' .IP "\fBrise\fR" 4 .IX Item "rise" Vertical displacement, in 10000ths of an em. Can be negative for subscript, positive for superscript. .IP "\fBstrikethrough\fR" 4 .IX Item "strikethrough" \&'true' or 'false' whether to strike through the text .IP "\fBstrikethrough_color\fR" 4 .IX Item "strikethrough_color" The color of crossed out lines; an \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red' .IP "\fBfallback\fR" 4 .IX Item "fallback" \&'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. .IP "\fBlang\fR" 4 .IX Item "lang" A language code, indicating the text language .IP "\fBletter_spacing\fR" 4 .IX Item "letter_spacing" Inter-letter spacing in 1024ths of a point. .IP "\fBgravity\fR" 4 .IX Item "gravity" One of 'south', 'east', 'north', 'west', 'auto'. .IP "\fBgravity_hint\fR" 4 .IX Item "gravity_hint" One of 'natural', 'strong', 'line'. .PP To save you some typing, there are also some shortcuts: .IP "\fBb\fR" 4 .IX Item "b" Bold .IP "\fBbig\fR" 4 .IX Item "big" Makes font relatively larger, equivalent to .IP "\fBi\fR" 4 .IX Item "i" Italic .IP "\fBs\fR" 4 .IX Item "s" Strike through .IP "\fBsub\fR" 4 .IX Item "sub" Subscript .IP "\fBsup\fR" 4 .IX Item "sup" Superscript .IP "\fBsmall\fR" 4 .IX Item "small" Makes font relatively smaller, equivalent to .IP "\fBtt\fR" 4 .IX Item "tt" Monospace font .IP "\fBu\fR" 4 .IX Item "u" Underline .SH "SEE ALSO" .IX Header "SEE ALSO" rrdgraph gives an overview of how \fBrrdtool graph\fR works. rrdgraph_data describes \fB\s-1DEF\s0\fR,\fB\s-1CDEF\s0\fR and \fB\s-1VDEF\s0\fR in detail. rrdgraph_rpn describes the \fB\s-1RPN\s0\fR language used in the \fB?DEF\fR statements. rrdgraph_graph page describes all of the graph and print functions. .PP Make sure to read rrdgraph_examples for tips&tricks. .SH "AUTHOR" .IX Header "AUTHOR" Program by Tobias Oetiker .PP This manual page by Alex van den Bogaerdt with corrections and/or additions by several people