gabjones has asked for the wisdom of the Perl Monks concerning the following question:
23/10/2003 0.26 1.18 65.42
23/10/2003 0.92 1.92 28.2
23/10/2003 2.12 1.23 21.4
23/10/2003 0.67 0.86 3.56
I can only achieve this by splitting the colums into differnt file then call chart graph. Im sure there is a way I can graphing the selected columns without splitting the data.
This is how I can currently use it at the mommentregards,#!/usr/bin/perl -w use Chart::Graph::Gnuplot qw(gnuplot); #Debugging aid - save the temporary files if desired #$Chart::Graph::save_tmpfiles = 1; #Debugging aid - turn on extra debugging messages #$Chart::Graph::debug = 1 # Call and "usual" global parameters gnuplot({"title" => "Bradford-A-router Bandwidth-1MB Util% In/Out", "x-axis label" => "Last 4 Weeks", "y-axis label" => "Utilization %", "output type" => "png", "output file" => "Bradford-A.png", # Setting date/time specific options. "xdata" => "time", "timefmt" => "%d/%m/%Y\t%H:%M", "format" => ["x", "%d/%m/%Y"], # Set output range - note quoting of date string "xrange" => "[\"07/11/2003\":\"04/12/2003\"]", "extra_opts" => join("\n", "set grid"), }, # Data for when stock opened [{"title" => "Bytes In", "style" => "lines", "type" => "file"}, "/root/bytes-in"], # Data for when stock opened [{"title" => "Bytes Out", "style" => "lines", "type" => "file"}, "/root/bytes-out"],);
janitored by ybiC: Balanced <code> tags around example code as per Monastery convention, formatting tweaks for legibility
|
|---|