hi ... you can use an AXIS statement for the MIDPOINTS (MAXIS, horizontal) axis and specify the
ORDER to be used for all charts ... try this with/without the MAXIS=AXIS1 option
proc sort data=sashelp.class out=class;
axis1 order=10 to 16 by 1;
proc gchart data=class;
vbar age / sumvar=height maxis=axis1 discrete ;
by sex ;
U@Albany School of Public Health
One University Place
Rensselaer, New York 12144-3456
> I am plotting a histogram by town and my horizontal axis for each town is
> wtloss. I have 30 different towns with values of weight loss ranging from
> -44 to 36 kg. I want the horizontal axes to have equal
> distances/increments of say 0.25 or any convenient value.
> Could someone provide me with the SAS code to have uniform distances for
> the horizontal axis of each town,please? Shown below is the code I used to
> draw the histograms. It worked ok,but the distances of each horizontal
> axis of each town was different,but I need equal distances for all the
> horizontal axes.
> Any advice,please?
> proc gchart data=clindat;
> vbar wtloss;
> by town;