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