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 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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