Table 12.7Using a Hardcoded Value with a Style Element, Default Style
ods graphics / width=4in
noautolegend;
proc sgplot data=sashelp.class;
histogram height;
density height / lineattrs=graphfit2
(pattern=dashdashdot);
run;
If you change the overall style to Journal, the color for this curve changes as well.
However, the pattern remains DashDashDot because it was hardcoded.
Table 12.8Using a Hardcoded Value with a Style Element, Journal Style
ods html style=journal
noautolegend;
proc sgplot data=sashelp.class;
histogram height;
density height / lineattrs=graphfit2
(pattern=dashdashdot);
run;
ods html style=htmlblue;
Always be careful when you hardcode ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.