Example: | Producing Block Charts for BY Groups |
hbar x / axis=0 to 100 by 10;
For frequency charts, values must be integers.
If you use AXIS= and the BY statement, then PROC CHART produces uniform axes over BY groups.
vbar gender / group=dept;
vbar x / midpoints=10 20 30 40 50;
vbar x / midpoints='JAN' 'FEB' 'MAR';
vbar x / midpoints=10 to 100 by 5;
Producing Side-by-Side Bar Charts