Type : MIXTE
Data 'one' internally generated via DATALINES and usage of the standard example table 'sashelp.class'.
| 1 | DATA one; |
| 2 | INPUT x y z; |
| 3 | CARDS; |
| 4 | 1 10 1 |
| 5 | 2 20 1 |
| 6 | 3 30 1 |
| 7 | 1 40 2 |
| 8 | 2 50 2 |
| 9 | 3 60 2 |
| 10 | 1 10 3 |
| 11 | 2 20 3 |
| 12 | 3 30 3 |
| 13 | 1 40 4 |
| 14 | 2 50 4 |
| 15 | 3 60 4 |
| 16 | ; |
| 17 | RUN; |
| 1 | ods tagsets.htmlpanel path="." (url=none) file="gbypanel.html"; |
| 2 | goptions dev=javaimg xpixels=480 ypixels=320; |
| 3 | |
| 4 | title1 "A by-group test"; |
| 5 | title2 "with a second title"; |
| 6 | footnote1 "A Footnote"; |
| 7 | footnote2 "A Second Footnote"; |
| 8 | |
| 9 | PROC GCHART DATA=one; |
| 10 | BY z; |
| 11 | vbar x / sumvar=y pattid=midpoint discrete; |
| 12 | RUN; |
| 13 | QUIT; |
| 1 | /* table stops the paneling */ |
| 2 | PROC PRINT |
| 3 | DATA=sashelp.class; |
| 4 | RUN; |
| 5 |
| 1 | PROC GCHART DATA=one; |
| 2 | BY z; |
| 3 | hbar x / sumvar=y pattid=midpoint discrete; |
| 4 | RUN; |
| 5 | QUIT; |
| 1 | /* This graph stops the paneling */ |
| 2 | goptions dev=javaimg xpixels=640 ypixels=480; |
| 3 | title1 "A Gchart Output"; |
| 4 | footnote1 "with a footnote"; |
| 5 | PROC GCHART DATA=sashelp.class; |
| 6 | hbar age / sumvar=height; |
| 7 | RUN; |
| 8 | QUIT; |
| 1 | title1 "A PROC PRINT Table"; |
| 2 | PROC PRINT DATA=sashelp.class; |
| 3 | RUN; |
| 4 | |
| 5 | ods _all_ close; |