$graphimage = $graph->plot(\@data) or die $graph->error;