Graph Style
To customise the font/color/line thickness etc for a graph, define a new style and apply the style on ODS.
proc template;
define style mystyle;
parent = styles.default;
style GraphData1 from GraphData1 / color= lightblue;
style GraphData2 from GraphData2 / color= yellow;
style GraphData3 from GraphData3 / color= orange;
style GraphData4 from GraphData4 / color= tomato;
style GraphGridLines from GraphGridLines / LineThickness=1px;
style GraphBorderLines from GraphBorderLines / LineThickness=1px;
style GraphValueText from GraphValueText / font=('Arial', 4pt);
style GraphLabelText from GraphLabelText / font=('Arial', 4pt);
end;
run;
ods graphics on;
ods pdf style=mystyle;
ods pdf file='\\aubriprfil04\Common\BenChen\Travel_Claim_Feature.pdf';
... sgplot...
When there are multiple bars / lines in the graph, the GraphData1 applies to the first bar / line, the GraphData N applies to the Nth bar /line.
Note that, the style is reflected in the ods output, e.g. pdf / html. The output on SAS base is still with the default style. don't be confused.