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.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

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
  • 1837 views
  • 0 likes
  • 3 in conversation