my $chart = Chart::Gnuplot->new( output => "/home/hmadhi/workspace/CommsNet/www/Plots/$kpi.png", title => {text=>"$kpi Success Rate on $node/$ran ($interface) $date", }, xlabel => {text=>"Time",}, ylabel => "$kpi Succ_Rate", timeaxis => "x", ); # Create dataset object and specify the properties of the dataset my $dataSet1 = Chart::Gnuplot::DataSet->new( xdata => \@time, ydata => \@succ_rate, timefmt => '%H:%M', );