BookmarkSubscribeRSS Feed
SwapnaKumari
Fluorite | Level 6

Hi All,

I am having requirement to create spark table using base SAS. I am aware of creating spark line graph using sgplot, but I don need that as I have the requiremnt to create speakline in a table, as I need to show some varibales in the table with sparkline. Please find the screenshot of the expected output below:-

Spark Table Screenshot.jpg

Regards,

Swapna

2 REPLIES 2
Cynthia_sas
SAS Super FREQ

Hi:

  The general approach to this is to make the separate image files for each country or category. But then. you use a style override in PROC PRINT or PROC REPORT to insert the image into the table.

  See these papers by Paul Oldenkamp http://www2.sas.com/proceedings/forum2008/262-2008.pdf and

    Louise Hadden and her example http://support.sas.com/resources/papers/proceedings13/212-2013.pdf of a graph in a table on page 9.

  I recommend that you get the program working first before you turn this into a stored process.

.cynthia

GraphGuy
Meteorite | Level 14

I describe one way to do this in my book "SAS/Graph: Beyond the Basics" (Example 14).

Here is the code used in that example:

http://robslink.com/SAS/book/example14.sas

And here is an example of what the output looks like:

example14.png

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 956 views
  • 0 likes
  • 3 in conversation