in reply to GD::Graph legend issues

I don't quite follow what you mean by 'the program returns the array location', but a mistake in the code snippet above is how you assign values to array elements. In this case, your array elements are scalars, so you assign values thusly:
$temp_legend[0]="name1"; $temp_legend[1]="name1"; $temp_legend[2]="name3";
BTW, you should put <code> tags around your code, that way the [] don't get eaten.

CU
Robartes-