Hi all,
I am using sgpot in a stored proc to output a report on the IDP.
I can seem to figure out how to control the chart background color of my sgplot output. I an using the below template.
proc template;
define style mystyle;
parent=styles.STATISTICAL;
class body/
backgroundcolor=white
color=black
fontfamily="Verdana, Arial" ;
class systemtitle/
fontfamily="Verdana, Arial"
fontweight=bold
fontsize=14;
class table/
backgroundcolor=white
bordercolor=black
borderstyle=solid
borderwidth=1pt ;
class header, footer/
backgroundcolor=green
fontfamily="Verdana, Arial"
fontweight=bold ;
class data/
fontfamily="Verdana, Arial";
style graphcolors from graphcolors /
'gcdata1'=Darkseagreen
'gcdata2'=Khaki
'gcdata3'=Darkslateblue
'gdata1'=Darkseagreen
'gdata3'=Darkslateblue
'gdata4'=CXDC531F
'gdata2'=Khaki;
style GraphBackground
"Graph backgroundcolor attributes" /
backgroundcolor = colors("white")
textalign = L
verticalalign = B;
end;
run;
I then pass this to the %STPBEGIN macro. %let _ODSSTYLE=mystyle;
This section in my proc creates the plot:
ods graphics / reset width=500px height=333px noborder;
proc sgplot data=repo.No_Activity_018 ;
vbar Inactive_Days_Bin /group=Plan ;
run;
quit;
I can't find any reference to overridding the background color directly in SGPLOT in the SAS documentation.