For a rrdgraph doc/man page see:
https://docs.oracle.com/cd/E88353_01/html/E37839/rrdgraph-1.html
(PECL rrd >= 0.9.0)
rrd_graph — Crea la imagen de un conjunto de datos
$filename
, array $options
): arrayCrea la imagen de un conjunto de datos particulares desde el archivo de RRD.
filename
El nombre del archivo de salida del gráfico. Este generalmente tiene una terminación
.png
, .svg
o
.eps
, dependiendo del formato de salida que desee.
options
Las opciones para la generación de la imagen. Consulte la página del manual de gráficos rrd para conocer todas las posibles opciones. Todas las opciones (definiciones de datos, definiciones de variables, etc.) son permitidas.
Se devolverá un array con información acerca de la imagen generada, false
cuando se produzca
un error.
For a rrdgraph doc/man page see:
https://docs.oracle.com/cd/E88353_01/html/E37839/rrdgraph-1.html
This documentation page is useless ...
"See man page of rrd graph for all possible options"
I thought I am looking at the documentation, of not, why not provide a link ?
When using style features like: --font TITLE:13:Times
use in your code: --font=TITLE:13:Times
the "=" is missing in the documentation
When I add
--font AXIS:8:
into $options,
I receive the next error:
PNG creation error: unknown option '--font AXIS:8:'
According to docs from rrdtool site the right syntax is:
[-n|--font FONTTAG:size:[font]]
This lets you customize which font to use for the various text elements on the RRD graphs. DEFAULT sets the default value for all elements, TITLE for the title, AXIS for the axis labels, UNIT for the vertical unit label, LEGEND for the graph legend, WATERMARK for the watermark on the edge of the graph.
Use Times for the title: --font TITLE:13:Times
Note that you need to quote the argument to --font if the font-name contains whitespace: --font "TITLE:13:Some Font"
If you do not give a font string you can modify just the size of the default font: --font TITLE:13:.