Data visualization with SAS programming

Tooltip in SVGVIEW output

Reply
N/A
Posts: 0

Tooltip in SVGVIEW output

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
SAS Employee
Posts: 967

Re: Tooltip in SVGVIEW output

Could you post up your code, and also exactly which version of SAS you're using?
N/A
Posts: 0

Re: Tooltip in SVGVIEW output

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.
N/A
Posts: 0

Re: Tooltip in SVGVIEW output

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;
Ask a Question
Discussion stats
  • 3 replies
  • 222 views
  • 0 likes
  • 2 in conversation