The code attached runs on my data without errors and produces an HTML file. However, I have noticed an unusual quirk that I can only use the embedded HTML tooltips with the SAS EG results viewed, when I open the HTML file that is produced, there is no "mouse-over" tooltip for each data point as there is when I use the results viewer in EG. I thought that the options (bitmap_mode='inline') was supposed to take care of that. Any insight is greatly appreciated.
%let name=.;
%let odsout=.;
data Trend1;
set abc;
length Trend1_html $200;
Trend1_html=
'title='||quote(trim(put(<date variable>,date7.))||': '||strip(put(Metric,comma9.0)));
run;
/******************/
/* Output to HTML */
/******************/
/************************************************************************************************/
proc template;
define style styles.mystyle;
parent=styles.htmlblue;
class pagebreak /
display=none;
end;
run;
/*ODS LISTING CLOSE;*/
ODS HTML5
style=styles.mystyle
options (bitmap_mode='inline')
(url=none)
file="&name..html"
path="&odsout.";
goptions gunit=pct htitle=4 htext=4 ftitle=&ftitle ftext=&ftext;
axis1 c=gray44 label=(angle=90 "Title") minor=none;
symbol1 v=dot h=4 interpol=spline w=1 color=blue;
symbol2 v=dot h=4 interpol=spline w=1 color=orange;
legend1 label=none mode=reserve position=(bottom center outside) across=2
cframe=white cborder=gray33 ;
title ls=3 c=black height=28pt "Title";
proc gplot data=Trend1;
plot Metric*Trend=Group /
vaxis=axis1
haxis=axis2
autovref cvref=graycc
autohref chref=graycc
legend=legend1
noframe
html=Trend1_html
des='' name='Trend1';
run;
title;
proc report data = Table center;
column ("Time Period" Group) stat, Metric ;
define "group"n / group ' ';
define stat / across ' ' order=data;
define Metric / analysis sum f=comma6. ' ';
run;
ODS HTML5 CLOSE;
ODS LISTING;
when I open the HTML file
Which browser are you using when you open the file ?
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.