" I would also like to have textbox (legend) in the topleft if it can be done that looks like this".
This would be an INSET such as below:
proc sgplot data=sashelp.class;
scatter x=height y=height;
inset "Line 1 of inset text"
"Line 2 of inset text"
"Line 3 of inset text"
/title='This is title for inset box'
;
run;
You show a picture that I am too lazy to type. There are options to specify text appearance and location options. The default is upper left inside the graph area.
LEGENDS are something completely different and describe such things as line color/type or marker meanings.
... View more