BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
Bill3
Fluorite | Level 6

My question: How to make the vertical line pointed by the second red arrow from left to right disappear. (The line above the X axis of 0)

17295800648.png

Test Code: 

proc template;
define statgraph Fig_4_5_3;
begingraph;
entrytitle 'Spline Fit Plot Mileage by Horsepower';
layout overlay /cycleattrs=true walldisplay = none yaxisopts=(griddisplay=off) xaxisopts=(griddisplay=off linearopts=(viewmin=-0.5 viewmax=3 tickvaluesequence=(start=0 end=3 increment=1)));
barchartparm category=mpg_city response=horsepower /orient=horizontal barwidth=0.3

;
endlayout;
endgraph;
end;
run; 
proc sgrender data=sashelp.cars(where=(type='Sedan'))
template=Fig_4_5_3;
run;
1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
Try option DISPLAYBASELINE= .

barchartparm category=mpg_city response=horsepower /orient=horizontal barwidth=0.3 DISPLAYBASELINE=off

View solution in original post

2 REPLIES 2
Ksharp
Super User
Try option DISPLAYBASELINE= .

barchartparm category=mpg_city response=horsepower /orient=horizontal barwidth=0.3 DISPLAYBASELINE=off
Bill3
Fluorite | Level 6
good, it worked.

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 2 replies
  • 928 views
  • 1 like
  • 2 in conversation