Desktop productivity for business analysts and programmers

Barchart with overlapped bars in SAS EG

Reply
Occasional Contributor
Posts: 11

Barchart with overlapped bars in SAS EG

Hello,

 

I work with SAS Enterprise Guide 7.1 .

I would like to get a barchart  where x-axis is presented by  the ovelapped intervals.

The example is attached. 

 

Is it possible?

Grand Advisor
Posts: 9,567

Re: Barchart with overlapped bars in SAS EG

You'd better post it at SAS/GRAPH and ODS Graphics

Since it is about Graphic problem.

 

 

data x;
do x=1 to 100;
 y=ceil(10*ranuni(0));
 output;
end;
run;
proc sgplot data=x;
needle x=x y=y/ lineattrs=(THICKNESS=10 color=lightblue ) dataskin=pressed  ;
run;
Occasional Contributor
Posts: 11

Re: Barchart with overlapped bars in SAS EG

Thank you for your prompt reply, Mr. Xia.

 

The fact  is that I work with SAS EG  which  means I use the functionalities that SAS EG  and ODS Graphics Designer offer.

 

To use the presented solution I have to sudy how it might be used in my case. 

 

At the moment I am not ready to take  the advantage of this solution  , it takes  time.

 

Natalja

Grand Advisor
Posts: 17,294

Re: Barchart with overlapped bars in SAS EG

The first portion of the code generates fake data. The code to make the graph is the last 3 lines.
Ask a Question
Discussion stats
  • 3 replies
  • 332 views
  • 0 likes
  • 3 in conversation