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

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

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

View all other training opportunities.

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