BookmarkSubscribeRSS Feed
P5C768
Obsidian | Level 7

 

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;

 

1 REPLY 1
RichardDeVen
Barite | Level 11

when I open the HTML file

Which browser are you using when you open the file ?

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1 reply
  • 549 views
  • 0 likes
  • 2 in conversation