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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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