Hi - no responses so far. Just to update you, I have gone down the route of option 2.
Seems to work so far except for one thing...I'm trying to dynamically provide the starting position for lines and if the values are too low then the lines start from completely the wrong position (see attached JPEG). The code is:
$responses = array(1=>'12', 2=>'9', 3=>'19', 4=>'44', 5=>'1');
krsort($responses);
$size_multiplier = 5;
foreach($responses as $key => $score) {
$score = $score*$size_multiplier;
$pdf->ezText("The array value is:" .$score,12,array= 'Justification'=>'left'));
$pdf->addText($startpos, $barpos,12,"$key");
$pdf->line($startpos+10,$barpos,$score,$barpos);
$barpos = $barpos+$gap;
}
This is driving me nuts - have I done something stupid?