Good Morning,
I´m trying to make a HTMLPANEL with sgplot.
I dont know how to do for put ' panelborder color=black', just like my background color.
Can you help me please?
ods tagsets.htmlpanel nogtitle path = '/DIOGEN/sas/tmp/informes' (url=none) OPTIONS(embedded_titles='yes')style=style.commodities
body="prueba.html" headtext="<div style=""text-align:center;color:#ffffff;width:100%;
font-weight:bold; font-size:16pt"">Informe Commodities de Precios Medios &FC_EJECUCION</div><br/>" ;
ods tagsets.htmlpanel event=panel(start) options(panelborder='10');
title;
Thanks
One way to do this (and perhaps the only way?) would be to modify the 'bordercolor' in the ods style.
Here's a short example that demonstrates how to do this:
%let name=pan001;
filename odsout '.';
ods path work.template(update) sashelp.tmplmst;
proc template;
define style styles.bcolor;
parent = styles.htmlblue;
replace Output from Container / bordercolor = red;
end;
run;
%let panelcolumns=2;
ods tagsets.htmlpanel path=odsout file="&name..htm" style=bcolor;
ods tagsets.htmlpanel event = panel(start);
goptions device=png xpixels=400 ypixels=400 border;
proc sort data=sashelp.class out=plotdata;
by sex;
run;
axis1 label=none value=(justify=right);
axis2 label=('Height') minor=none;
pattern1 v=s color=dodgerblue;
proc gchart data=plotdata;
by sex;
hbar name / descending type=sum sumvar=height
nostats noframe space=0 maxis=axis1 raxis=axis2
des='' name="&name";
run;
ods tagsets.htmlpanel event = panel(finish);
quit;
ods _all_ close;
And here's what the output looks like (notice the red borders)...
Hmm ... my solution works with gplot, but I'm not sure if it works with sgplot.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.