Data visualization with SAS programming

tooltip for BOXPLOT using GTL

Accepted Solution Solved
Reply
Contributor
Posts: 20
Accepted Solution

tooltip for BOXPLOT using GTL

[ Edited ]

Hello,

I am trying to create custom tooltip (other than used in imagemap=ON) using GTL .is it possible to show tool tip data using categories other than used in boxplot. 

Following is the code i am trying with:

 

ods graphics on/ border=off width = 1300PX HEIGHT = 650PX imagemap=on;

proc template;
define statgraph boxplot;
begingraph;
entrytitle "Boxplot";
layout overlay;
boxplot y=mnval x=Variant/spread=true ;
referenceline y=&bin_lsl/curvelabel="LSL=&bin_lsl" ;
referenceline y=&bin_usl/curvelabel="USL=&bin_usl";

endlayout;
endgraph;
end;

proc sgrender data=xyz template=boxplot;
where Plant="&Plant" and 'Shorttext'n = "&test_param"
;
label Variant="RM variant";
run;


Accepted Solutions
Solution
‎08-03-2016 07:48 AM
SAS Super FREQ
Posts: 676

Re: tooltip for sgplot using GTL

Hi

 

Have a look at the sample mentioned with BOXPLOTPARM statement, looks like it does what you need.

 

Bruno

View solution in original post


All Replies
Solution
‎08-03-2016 07:48 AM
SAS Super FREQ
Posts: 676

Re: tooltip for sgplot using GTL

Hi

 

Have a look at the sample mentioned with BOXPLOTPARM statement, looks like it does what you need.

 

Bruno

Contributor
Posts: 20

Re: tooltip for sgplot using GTL

[ Edited ]

thank you for suggesting this method Smiley Happy

but do we have to provide calculated stats like mean median to y axis while defining stat= option?

it is showing ths error for me:

The boxplotparm statement will not be drawn because one or more of the required arguments were not supplied.

I replaced boxplot with boxplotparm , added stat=stat and orient=vertical in above code.

SAS Super FREQ
Posts: 676

Re: tooltip for sgplot using GTL

Hi

 

Have a look at the doc for the BOXPLOTPARM, it states:

 

Requirements: The input data must be precomputed. See Input Data Requirements for the BOXPLOTPARM Statement.

 

So BOXPLOT and BOXPLOTPARM are not interchangeable.

 

Bruno

SAS Super FREQ
Posts: 676

Re: tooltip for BOXPLOT using GTL

Hi

 

Please also have a look at this recent Graphically Speaking blog entry http://blogs.sas.com/content/graphicallyspeaking/2016/07/25/unbox-your-box-plots-part-deux/ by @PrashantH_sas

 

Bruno

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 327 views
  • 1 like
  • 2 in conversation