Data visualization with SAS programming

HTMLPANEL bordercolor

Reply
Occasional Contributor
Posts: 13

HTMLPANEL bordercolor

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

SAS Employee
Posts: 963

Re: HTMLPANEL bordercolor

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

SAS Employee
Posts: 963

Re: HTMLPANEL bordercolor

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

 

Post a Question
Discussion Stats
  • 2 replies
  • 266 views
  • 0 likes
  • 2 in conversation