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;
Hi
Have a look at the sample mentioned with BOXPLOTPARM statement, looks like it does what you need.
Bruno
Hi
Have a look at the sample mentioned with BOXPLOTPARM statement, looks like it does what you need.
Bruno
thank you for suggesting this method 🙂
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.
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
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
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.
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.