BookmarkSubscribeRSS Feed
PFAN
Calcite | Level 5

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

2 REPLIES 2
GraphGuy
Meteorite | Level 14

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)...

 

htmlpanel_border_color.png

GraphGuy
Meteorite | Level 14

Hmm ... my solution works with gplot, but I'm not sure if it works with sgplot.

 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1358 views
  • 0 likes
  • 2 in conversation