Data visualization with SAS programming

Creating animated charts in SAS 9.3

Accepted Solution Solved
Reply
Grand Advisor
Posts: 17,313
Accepted Solution

Creating animated charts in SAS 9.3

Does anyone know if there's a way to create an animated chart in SAS 9.3?

 

I see examples for SAS 9.4 but I'm stuck on 9.3 for a few more months Smiley Sad

https://communities.sas.com/t5/SAS-Communities-Library/How-to-Create-an-Animated-BarChart-using-SGPl...

 

 


Accepted Solutions
Solution
‎04-05-2016 12:03 PM
SAS Employee
Posts: 967

Re: Creating animated charts in SAS 9.3

Yes old (and new) versions of SAS can indeed 'stitch' the graphs together into a gif animation! Smiley Happy

 

Actually, I have updated many of the examples in democd27 to use the 'new' gif animation syntax.

But I do still have some of the code around that can create gif animations using the 'old' syntax.

For example, if you go to democd27, and click the text/link ('crime rate animation') under the first image thumbnail,

you'll see that it has a code link with '(old style syntax)' beside of it - this was code I originally used in SAS 9.2.

 

Hope this helps!

Robert

 

View solution in original post


All Replies
SAS Super FREQ
Posts: 3,390

Re: Creating animated charts in SAS 9.3

I might be able to help. In general, animation requires that you create a series of plots (as GIF or PNG) with sequential names such as

Anim1.png thru Anim100.png. 

 

I don't think SAS 9.3 had the capabillity to stitch the images together, but you can do that step outside of SAS.I recommend an animation utility called GiftedMotion, which is a  free Java program. That utility enables you to create an animated GIF from the individual images.

Grand Advisor
Posts: 10,196

Re: Creating animated charts in SAS 9.3

Solution
‎04-05-2016 12:03 PM
SAS Employee
Posts: 967

Re: Creating animated charts in SAS 9.3

Yes old (and new) versions of SAS can indeed 'stitch' the graphs together into a gif animation! Smiley Happy

 

Actually, I have updated many of the examples in democd27 to use the 'new' gif animation syntax.

But I do still have some of the code around that can create gif animations using the 'old' syntax.

For example, if you go to democd27, and click the text/link ('crime rate animation') under the first image thumbnail,

you'll see that it has a code link with '(old style syntax)' beside of it - this was code I originally used in SAS 9.2.

 

Hope this helps!

Robert

 

Grand Advisor
Posts: 17,313

Re: Creating animated charts in SAS 9.3

Thanks everyone. I get 9.4 in a month so it can wait. It looks like a really cool feature. 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 409 views
  • 5 likes
  • 4 in conversation