Hello,
I’m doing a dashboard with some tables and dials to print in pdf output with greplay.
To date everything with greplay is ok and also the template works great.
The tables are printed as images.
The very bad thing is that the dials and the text, fitting images in their box, are with something similar to aliasing.
Is there a way to make everything smooth?
This happens when the template resize the image.
The original images are very smooth png with dpi=300.
Any helps/suggestions with the options or settings?
It is a problem because the customer needs a very personalized pdf exported by a stored process and the greplay works well, but the quality of the resulting image is poor.
thank you very much.
First I would consider whether Greplay is desirable. The device based graphics greplay was designed for have many issues with different displays and this is one of them. The original graphs should be made with the idea that they will be used with replay. Which may mean changes in font sizes. line widths and resolutions and graph display area resolution.
Example: If your original graph is made in a square, hsize = vsize, and the display area within greplay does not have x and y differential the same then the graph will be rescaled. Meaning all lines, letters or symbols get stretched or compressed relative to the other dimension. The same thing happens if the original graph is some form of rectangle and gets displayed in a square.
As a minimum then height/width ratio should match the display area to be used in Greplay.
Depending on why you are using Greplay you might consider moving to either SGPanel to create graphs based on a by values or to Graph Template Language and SGrender.
You might find this article helpful: https://blogs.sas.com/content/graphicallyspeaking/2016/05/13/dial-kpi-using-sgplot/
The options with sgplot, such as XAXISTABLE or YAXISTABLE may make the association of a data table easier.
Or provide data and the code you are currently using to duplicate the behavior including the gdevice you are using.
Provide data in the form of a datastep and paste all code in one or more codeboxes opened using the forum's {I} menu icon.
It might not hurt to provide the output of Proc Options so that we can see all graphics options in effect.
Unfortunately it is a private network/business and I cannot provide any data.
I will make a demo to understand if there is something to do.
When I worked on making this gkpi dashboard (outputting the gkpi images, and then placing them in a greplay dashboard) look better, I found that I had to create the gkpi images in the *exact* size and proportions that they would appear in the dashboard. If I did not get them exact, and greplay had to 'stretch' them at all, then they did not look good.
http://robslink.com/SAS/democd26/kpidash.htm
http://robslink.com/SAS/democd26/kpidash_info.htm
Hello!
This is the documentation that I used.
I noticed that also changing the size of the output in the gkpi and using the exact size doesn’t give good results.
Probably I will replace the tables png with a tabulate and use the greplay for the dials only...but it’s very very tricky.
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: