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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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