Hi, I have result values as 424, 56, 33, 26, 20, 14, 13, 4, 2, 1, -7, -10, -13, -15, -20, -24, -35, -37, -38, -54, -69, -72, -84. I am plotting a bar chart using the following code. proc sgplot data=test; vbar n/response=result datalabel; xaxis label = 'N=xx' display=(novalues noticks); yaxis label= 'Results' ; run; After running the above code am getting result like this, but the I need to restrict y-axis values as -100 to 140 by 20 and 100&above to display within 140. For that I harcoded the value above 100 to 120 like (if result > 100 then result_ = 120; else result_ = result;) with that update I have run the same code changing ressponse = result_ (new variable created0 but the data label show the new hardcoded value as 120 for the observations above 100. But I wanted to show the actual result value 424 in the place of 120, is that possible. Thank you for your help in advance.
... View more