RRDGraph::setOptions
(PECL rrd >= 0.9.0)
RRDGraph::setOptions — Sets the options for rrd graph export
説明
public void RRDGraph::setOptions
( array
$options
)
パラメータ
-
options -
List of options for the image generation from the RRD database file. It can be list of strings or list of strings with keys for better readability. Read the rrd graph man pages for list of available options.
返り値
値を返しません。
例
例1 RRDGraph::setOptions() examples
<?php
$graphObj->setOptions(array(
"--start" => "920804400",
"--end" => 920808000,
"--vertical-label" => "m/s",
"DEF:myspeed=$rrdFile:speed:AVERAGE",
"CDEF:realspeed=myspeed,1000,*",
"LINE2:realspeed#FF0000"
));
?>