BookmarkSubscribeRSS Feed
NataljaK
Obsidian | Level 7

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?

3 REPLIES 3
Ksharp
Super User

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;
NataljaK
Obsidian | Level 7

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

Reeza
Super User
The first portion of the code generates fake data. The code to make the graph is the last 3 lines.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1721 views
  • 0 likes
  • 3 in conversation