Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^2: help with rrdtool::oo and dinamic draw

by guacamayo (Acolyte)
on Apr 21, 2011 at 13:18 UTC ( #900604=note: print w/replies, xml ) Need Help??

in reply to Re: help with rrdtool::oo and dinamic draw
in thread help with rrdtool::oo and dinamic draw

Hi! Thanks, a step further :-) and now ..
foreach my $row (@sensor_h) { push(@draw, { file => "../data/$row.rrd", legend => "Source 1", thic +kness => 2, color => '00FF00' }); }
$rrd->graph( #image => '-', image => "../images/" . $sensor . ".png", vertical_label => 'Sensors', width => $width, height => $height, start => time() - $period, draw => { file => "../data/sensor1.rrd", legend => "Source + 1", thickness => 2, color => '00FF00' }, draw => $draw[0], draw => $draw[1], ... and so on ... );
yes, so works but i need to pass or join a hash with more draw occurrences thanks

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://900604]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (13)
As of 2016-10-25 11:42 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (317 votes). Check out past polls.