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

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1640 views
  • 0 likes
  • 2 in conversation