BookmarkSubscribeRSS Feed
SachinRuk
Calcite | Level 5
Hi all,

I have about 15 graphs in one html file. What I want to do is have a list of names of those graphs and be able to instantly scroll down to those graphs. Rob allison had done something similar with linking to other websites:
http://robslink.com/SAS/democd23/overlib.htm
http://robslink.com/SAS/democd23/overlib_info.htm

but what about linking to graphs within the same file?

Thanks in advance,
Sachin
2 REPLIES 2
Cynthia_sas
SAS Super FREQ
Hi:
Have you looked at FRAME=, BODY= and CONTENTS= options with ODS HTML -- that would make links that pointed to ALL the output created within 1 ODS HTML step. Something similar to this:
[pre]
ods html path='' (url=none)
body='body.html'
contents='toc.html'
frame='frm.html' style=sasweb;
... one step or more than one step ...

ods html close;
[/pre]

Then, if you open the FRM.HTML file, you should see links to all the output that was created, so whether you had 1 step or 20 steps in your ODS HTML "sandwich" there would be a navigation link on the left side that would contain a clickable link to a named anchor that would display on the right-hand side of the frame when you clicked on the link. Even if you use the NEWFILE= option, the FRAME= and CONTENTS= links will contain the correct pointers.

cynthia
GraphGuy
Meteorite | Level 14
To link to graphs in the same html file/webpage, you can use html 'anchors'.

Here is an example...

http://robslink.com/SAS/democd23/anchor.htm
http://robslink.com/SAS/democd23/anchor_info.htm

In this case, each bar in the bar chart drills-down to an html anchor for that state-map lower in the same webpage. Similarly, you could use a table/list instead of a bar chart.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 609 views
  • 0 likes
  • 3 in conversation