Data visualization with SAS programming

Ascending Order of my Graph

Reply
Contributor
Posts: 40

Ascending Order of my Graph

Hi,

I plotted a chart which is attached. But I'd like to know is there any way that I can plot in an ascending order of the BLUE portion of the graph. I want my chart to be in ascending order (blue color).

Help me.

Naresh

Attachment
SAS Super FREQ
Posts: 862

Re: Ascending Order of my Graph

Is the graph part of the code available for posting? And, what version of SAS are you using?

Contributor
Posts: 40

Re: Ascending Order of my Graph

proc gchart data=Multiplot;

vbar Client / sumvar = percent discrete inside = subpct

subgroup = cross;

run;

quit;

9.3 Version

SAS Employee
Posts: 963

Re: Ascending Order of my Graph

Here is an example where I sort the bars by 1 of the colored bar segments (in this case, the number of gold Olympic medals)...

   http://robslink.com/SAS/democd70/sochi_olympics_2014.htm

   http://robslink.com/SAS/democd70/sochi_olympics_2014_info.htm

I sort the data in the desired order, and then assign a 'bar_order' variable, and plot the bars by those numeric bar_order values.  I then create a user-defined-format so the numeric bar-order values show up on the axis as the desired text (rather than their numeric value).

sochi_olympics_2014.png

Post a Question
Discussion Stats
  • 3 replies
  • 358 views
  • 0 likes
  • 3 in conversation