Proc sgplot hbar datalabel problem

Reply
Contributor
Posts: 59

Proc sgplot hbar datalabel problem

I have an issue with hbar and its datalabel. If there is no occurancies of the category variable in the data then the datalabel is output as "dot" and I would need to get rid of this and replace it my just blank " ". Here is an example

hbar_sgplot_datalabel.jpg

Grand Advisor
Posts: 10,251

Re: Proc sgplot hbar datalabel problem

Without more details I would be tempted to look at the format assigned the variable that generates the datalabels.

You might try a custom format such as

proc format;

value mymissing

. = ' ';

run;

and assign that format to the datalabel variable for the proc sgplot.

Super Contributor
Posts: 644

Re: Proc sgplot hbar datalabel problem

Did you try

     options missing = ' ' ;

?

Richard

Contributor
Posts: 59

Re: Proc sgplot hbar datalabel problem


Thanks for the replies and sorry for not giving enough information. However I solved this by inputting the missing classes into the left side of the graph and initialized it to 0 so it works now.

Ask a Question
Discussion stats
  • 3 replies
  • 257 views
  • 0 likes
  • 3 in conversation