SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 24880: Reorder the subgroups in a stacked bar chart produced with PROC GCHART

DetailsCodeResultsAboutRate It

The sample code on the Full Code tab uses PROC FORMAT to reorder the stacked bars of a vertical bar chart. By default, the order of the stacked bars is alphabetical order based on the values of the SUBGROUP variable going from bottom to top. The legend displays the formatted values.




These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.