BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,
the SVGVIEW device does not put tooltips into output SVG file - created by HTML option in CHORO statement in my case. The tooltips for SVG device are O.K.
Do you know any way how to pass this restriction ?
Thanks for help.
Karel Beber
3 REPLIES 3
GraphGuy
Meteorite | Level 14
Could you post up your code, and also exactly which version of SAS you're using?
deleted_user
Not applicable
If you are using the SVGVIEW device with ods listing output, you will need to add the IMAGEMAP= option to the proc gmap statement. This could be a reason the tooltips are not showing up.
Support for tooltips with ODS PRINTER output is not currently available and is being worked on for a future release. You will need to be using the SVGVIEW device with ODS LISTING to see the tooltips.
deleted_user
Not applicable
Thank you very much - the IMAGEMAP option was the solution of my problem !!!
This was my test program ...
Karel Beber

*** Tooltips in SVGVIEW ;
dm 'odsresults;clear;log;clear;' continue;
%let adr = D:\svg ;

ods _all_ close;
ods listing;

data xxx;
merge maps.europe maps.europe2(obs=3 in=q keep=ID IDNAME);
by ID;
if q;
run;

data yyy;
length myhtml $ 1024;
set xxx;
test=1;
myhtml='title='|| quote( trim(IDNAME));
run;

ods html path="&adr." gpath = "&adr." (url=none) file="Tooltips_SVGVIEW.html";
filename mysvg "&adr.\Tooltips_SVGVIEW.svg";
goptions reset=all device=svgview gsfmode=replace gsfname=mysvg;

proc gmap map=maps.europe all data=yyy imagemap=zzz;
id id;
choro Test / nolegend name="svgview" html=myhtml;
title1 f="Arial/bold" h=14pt "Tooltips in SVGVIEW";
by id;
run;quit;

ods _all_ close;
ods listing;
dm 'odsresults;expand all;log;' continue;
*';*";run cancel;quit;

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
  • 3 replies
  • 1079 views
  • 0 likes
  • 2 in conversation