☑ This topic is solved.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 10-12-2023 08:49 AM
(1277 views)
Hello,
I am doing a homework which requires me to generate plots and tables in .html.
Below is my code, but the plot cannot be generated properly in webpage.
ods html path='path/Module07' (url=none) file='Q5_2.html' style= htmlblue; ods graphics; ODS PROCLABEL"Histogram plot"; title "Distribution of statistics knowledge"; proc sgplot data = homework.module00; vbar status / response= Statistics_Knowledge; run; ods graphics off; ods html close;
There is no error or warning in LOG. However the webpage shows as below:
Does anyone know what the problem could be?
Thank you!
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Use HTML5 instead of HTML.
HTML doesn't embed images it links to it, so the images need to be somewhere as well.
HTML5 embeds images in the files so you don't need to consider where the image files are stored.
HTML doesn't embed images it links to it, so the images need to be somewhere as well.
HTML5 embeds images in the files so you don't need to consider where the image files are stored.
4 REPLIES 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Show us the ENTIRE log for this code anyway. Please copy the log as text and paste it into the window that appears when you click on the </> icon.
--
Paige Miller
Paige Miller
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Hi:
I suspect you may also need a GPATH= option to direct ODS where the image will be stored. But a lot depends on your PATH= option too. You are using a relative path reference in the PATH= option.
I would normally expect to see a fully qualified path location in the path= option something like:
ods html gpath='c:\temp' (url=none)
path='c:\temp' (url=none)
file='myhistogram.html';
The way you have it coded now, the path will be relative to your working directory unless you have edited the actual code to remove the fully qualified path. Hard to tell.
Cynthia
I suspect you may also need a GPATH= option to direct ODS where the image will be stored. But a lot depends on your PATH= option too. You are using a relative path reference in the PATH= option.
I would normally expect to see a fully qualified path location in the path= option something like:
ods html gpath='c:\temp' (url=none)
path='c:\temp' (url=none)
file='myhistogram.html';
The way you have it coded now, the path will be relative to your working directory unless you have edited the actual code to remove the fully qualified path. Hard to tell.
Cynthia
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Use HTML5 instead of HTML.
HTML doesn't embed images it links to it, so the images need to be somewhere as well.
HTML5 embeds images in the files so you don't need to consider where the image files are stored.
HTML doesn't embed images it links to it, so the images need to be somewhere as well.
HTML5 embeds images in the files so you don't need to consider where the image files are stored.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Thanks @Reeza. I always forget to mention HTML5 and SVG as a possibility.
Cynthia
Cynthia