Hi to all,
I'm having a problem...
Let's work with this table :
DATA test;
   DO x=1 TO 20;
      y+25X+250;
   OUTPUT;
  END;
RUN;
I'd like to build this graph using PROC SGPLOT :
PROC SGPLOT DATA=test;
INSET "text of my INSET part 1" "part 2" / position=topleft  ;
SERIES x=x y=y;
RUN;
but I would like to customize the text of my INSET : I would like to have a bold text, 13pt, using this color: CX800080
The TEXTATTRS option should be used here but you can only associate this option to a style element. So, I'm creating a new style using PROC TEMPLATE this way:
PROC TEMPLATE;
DEFINE STYLE modif4;
PARENT = styles.listing;
   CLASS insettext /
      FONT = (", ",13pt,bold)
      COLOR = CX800080;
END;
RUN;
(using STYLE instead of CLASS) won't solve my problem) 
If I'm now running this program:
ODS LISTING STYLE=modif4;
PROC SGPLOT DATA=test;
   INSET "text of my INSET part 1" "part 2" / POSITION=topleft TEXTATTRS=INSETTEXT ;
   SERIES X=x Y=y;
RUN;
I'm having this message in my log:
WARNING: The style reference 'insettext' is invalid. The reference will be ignored.
WARNING: The style reference 'insettext' is invalid. The reference will be ignored.
In fact, I can only associate TEXTATTRS to an existing style element as GraphTitleText, GraphFootnoteText,  GraphDataText, GraphLabelText,  GraphValueText (this latter one is the default style used by TEXTATTRS).
Well, I can modify one of the existing text style elements but those style elements are used by one text element of the graph. I would like to be sure that only my inset text will be formatted the way I want.
modifying GraphValueText will modify the values on the axis
modifying GraphDataText will modify the point label if I'm using the DATALABEL option,
etc. 
Is there a problem here or is there a solution ?
best regards
Sébastien