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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

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