Sanjay, We are using SAS 9.4 1M4. proc sgplot data=test; vbar subject / response=tot group=rank categoryorder=respasc; xaxis label='Subject'; yaxis label='Total…