BookmarkSubscribeRSS Feed
liuliugu
Calcite | Level 5

codes as below:

data a;

input year gdp cost;

cards;

1985   9016     192

1990   18668   290

1995   60794   637

2000   99215   1208

2005   183868  2475

2010   401512  5321

2014   636463  8082

2015   681015  8890

;

run;

proc sgplot data=a ;

vbar year/response=gdp ;

vline year/response=cost y2axis;

keylegend / location=inside;

run;

but I don't know how to display the number like  this.捕获.PNG

who can help me ? thanks.

1 REPLY 1
Doc_Duke
Rhodochrosite | Level 12

Although you may want to do that, it is generally considered poor form for a graphic.  The numbers on the top distort the visual image (and impact) of the graphic.  Better to put the numbers below or in a separate table.  If you must do it (sometimes the boss insists!), this Google search will provide examples

bar chart numbers above site:sas.com

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 1 reply
  • 844 views
  • 0 likes
  • 2 in conversation