This code:
options orientation = landscape ; ods graphics / height = 8in width = 10in ; %let out_folder = c:\deleteme ; ods html5 path = "&out_folder" (URL=NONE) body = "deleteme.html" (title = "deleteme output") style = magnify nogfootnote device = svg ; title1 "this is a title" ; proc sgplot data = sashelp.class ; hbox age / category = sex ; xaxis grid ; yaxis grid ; run ; run ; ods _all_ close ;
Results in a title that's cut-off:
This behavior is consistent across chrome and firefox.
I've seen e.g., this post, but I really do want SVG output with integrated titles.
Interestingly, if I take the contents of the <svg> element & save it off to an external .svg file, I can then insert that into a powerpoint slide & the title is not cut off.
This is a bug, isn't it?
I ran your program and viewed the html file in Chrome (87.0.4280.88), Firefox (81.0.2), and Edge ( 87.0.664.60), and could not reproduce your result. I'm running SAS 9.4 TS Level 1M6. "Title" completely appears in all of them.
Yep, looks like this was fixed in one of those maintenance releases. Compare:
to:
Huzzah!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
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.
Ready to level-up your skills? Choose your own adventure.