BookmarkSubscribeRSS Feed
Informatician
Calcite | Level 5

Help!

I am trying to add a tip label to a chart using sgplot in 9.4 in a similar fashion to gchart's html= option. The issue is that I don't want a tip label or the resulting equal sign to show up in the tip because I have the desired text in a variable called 'myhtml'. Please advise.

 

data _state_data; 
	set _state_data;
        length myhtml $ 250;
        myhtml=trim(left(unique_cases))||" Cases in "||trim(left(state));
run;

title1 justify=center h=1.5 font=swiss "eConsult Cases By State" lspace=0;

ods html;
ods graphics/imagemap=on;

proc sgplot data=_state_data nowall noborder DESCRIPTION="" ;
  styleattrs datacolors=(%rgbhex(140, 185, 202) %rgbhex(19, 85, 137));
  vbar state / response=unique_cases nostatlabel nooutline 
  dataskin=pressed filltype=gradient baselineattrs=(thickness=0) 
  name="plot2"  tip=(myhtml) tiplabel=("");

  keylegend / location=outside position=topright across=2 noborder 
  valueattrs=(size=8 color=black);
  
  xaxis fitpolicy=thin display=all valueattrs=(size=8 color=black) integer 
   minor ;

  yaxis grid display=(noline noticks nolabel noline) valueattrs=(size=6  
  color=black) discreteorder=data;
	
run;
1 REPLY 1
Jay54
Meteorite | Level 14

Unfortunately, there is no way to do that at this time.  Sorry.  Please feel free to file your requirement with Tech Support if you wish.

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

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.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 749 views
  • 0 likes
  • 2 in conversation