title: Stalk bar chart in controlled order in SAS
body: <p>I want to create stlak bar charts, The column WORKSCOPE having HSB,OHS,RES. but I want to reorder the WORKSCOPE in the order of OHS,HSB,RES in the stalk bar. Usually default its taking in alphabetical order. how can I achieve it.    </p>
  
  <pre><code>goptions reset=all;
      goptions colors=(red blue green);
      legend1   label=none
       order=('OHS' 'HSB' 'RES');
  
      proc gchart data=FINALREPV3;
      vbar year / discrete type=sum sumvar=VALUE
  
      subgroup=WORKSCOPE legend=legend1 ;
      run;
  </code></pre>