SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 41976: Create a bar chart in which the subgroups total 100% for each midpoint

DetailsCodeResultsAboutRate It

The sample code on the Full Code tab illustrates how to create a subgrouped vertical bar chart with the GCHART procedure in which the subgroups for each midpoint total 100%.

To accomplish this, the GROUP= option is specified with the chart variable. The G100 option is used to calculate the percentage statistics separately for each group (midpoint). The options on the AXIS1 statement suppress the label and values for the group axis.




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.