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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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