The SAS Output Delivery System and reporting techniques

axis of the graph

Posts: 0

axis of the graph

Hi there,
I am using gbarline to draw some graphs.
I want the X axis of the bar chart to get all the possible values of the discrete character variable but in that specific order in the datasets. How can I do that?

Thank you so much. Appreciate it.
Posts: 0

Re: axis of the graph

I think you need to be a little more specific in your question. Your statement about the order in the data sets suggests you might want something like O R D E B Y. I suspect that the axis declarations don't allow sequencing other than collating sequence or reverse collating sequence.

I will look at that, and see whether it can be done. Meantime, please provide an example of the order required.

Kind regards

Super Contributor
Posts: 291

Re: axis of the graph

This may call for some exquisite SAS trickery!

Some possibilities include adding a new variable that allows explicit ordering and then:

Applying a format to that variable to get the appropriate label on the chart or, using an axis statement with tick mark labels e.g. value=(t=1 'ValueName1' t=2 'ValueName2') etc.

Ask a Question
Discussion stats
  • 2 replies
  • 2 in conversation