The DISPLAY=(NOLINE) option might appear to be ignored when specified in an axis statement with PROC SGPLOT or PROC SGPANEL


The DISPLAY=(NOLINE) option might appear to be ignored when specified in an XAXIS or YAXIS statement with the SGPLOT procedure, or in a COLAXIS or ROWAXIS statement with the SGPANEL procedure. This problem is most likely to occur when generating a bar chart. The axis line is suppressed, but the baseline is always drawn for bar charts beginning in SAS® 9.4. This change was not included in the documentation.

With PROC SGPLOT and PROC SGPANEL, you can suppress the baseline by using a style template. See the Full Code tab for sample code that illustrates the syntax.

With the Graph Template Language (GTL), you can suppress the baseline by specifying the BASELINEATTRS=(THICKNESS=0) option in the plot statement.


Full Code

proc template;
   define style mystyle;
   parent=styles.htmlblue;
      class graphaxislines / contrastcolor=white;
   end;
run;

ods html style=mystyle;

proc sgplot data=sashelp.class;
   hbar name / response=height;
   xaxis display=(noline);
run;