SAS OnlineTutorback||next

Try It! Specify pattern and color for charts using Clinic.Stress2 and Clinic.Insure.

Creating HTML output? Read this first.

  1. Copy the program below and paste it into the Program Editor window (or issue the command copy sashelp.oltutor.m7h2p1.source).
    proc gchart data=clinic.stress2;
       vbar tolerance / sumvar=resthr
            type=mean;
       hbar tolerance / sumvar=timemin;
    run;
    proc gchart data=clinic.insure;
       pie pctinsured / sumvar=total
           type=sum;
    run;
    

  2. Specify a different color and pattern for each bar in the the bar charts.

  3. Specify a cross-hatch pattern for all slices in the pie chart.

  4. Submit the program and view the output.

    Return here and select Next.

Solution

back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA.
All rights reserved.

Terms of Use & Legal Information | Privacy Statement