Data visualization with SAS programming

Issues/ Queries in Creating Bar-Line Charts.

Reply
Occasional Contributor
Posts: 15

Issues/ Queries in Creating Bar-Line Charts.

Hi,

I am trying to create a bar-line chart with totally 4 variables..
i.e I am trying to create 2 horizontal bars and one line graph.
the 2 variables for vertical bars belong to 2 different categorial variables.

Right now, I am able to create only 1 vertical bar and a line graph.

Kindly advise if there are any ways?

The code I use is:
Proc gbarline data = x_data;
bar period / sumvar=basevalue
plot / sumvar = spread;
where date >= startdate and date <= enddate;
run;


period, basevalue, spread are the variables and I need to use another variable comparevalue in the bar statement to create another vertical bar.

Thanks,
Chandramohan D.
SAS Super FREQ
Posts: 925

Re: Issues/ Queries in Creating Bar-Line Charts.

What version of SAS are you running?
Occasional Contributor
Posts: 15

Re: Issues/ Queries in Creating Bar-Line Charts.

Hi,

SAS 9.1.3
EG 4.1

Thanks,
Chandramohan D.
SAS Employee
Posts: 977

Re: Issues/ Queries in Creating Bar-Line Charts.

If you could post up some sample data, that would help!
Ask a Question
Discussion stats
  • 3 replies
  • 174 views
  • 0 likes
  • 3 in conversation