Exploring, predicting and reporting with SAS Visual Analytics and SAS Visual Statistics

Where to add code for Custom Graphs in SAS VA

Accepted Solution Solved
Reply
Contributor
Posts: 60
Accepted Solution

Where to add code for Custom Graphs in SAS VA

Hi Forum,

 

I've been creating some custom graphs & want to enhance them further.

 

I've seen some great graphs that use SGPLOT code to change the properties etc.

 

What I haven't found is where in VA I should add that code so it can make those changes to the graph?

 

Can anyone help here?

 

Thanks


Accepted Solutions
Solution
‎02-19-2018 06:37 PM
Super User
Posts: 4,026

Re: Where to add code for Custom Graphs in SAS VA

Posted in reply to OscarBoots2

SAS code can't be used in SAS VA, except when called as part of a stored process. This link explains how these work:

http://support.sas.com/documentation/cdl/en/vaug/69957/HTML/default/viewer.htm#p08zq1v1bfz46an1frvdo...

 

Please note that the resultant graphs in VA will be static images and will not contain any of the dynamic interaction capabilities of graphs constructed in VA itself.

 

SAS VA has it's own "custom graph" objects that can only be created in the VA interface. 

View solution in original post


All Replies
Contributor
Posts: 60

Re: Where to add code for Custom Graphs in SAS VA

Posted in reply to OscarBoots2
Here's an example from the 'net to enhance a chart;
title "The Danger of High Price-Earnings Ratios";
footnote j=l "Source: Robert J. Shiller";
proc sgplot data=pe_data noautolegend nocycleattrs;
yaxis offsetmin=0;
band x=year upper=pe10 lower=0 / fillattrs=(color=red);
band x=year upper=20 lower=0;
refline 20 / label="PE=20";
refline 10 20 30 40 / lineattrs=GraphGridLines;
series x=year y=pe10 / lineattrs=GraphData1 datalabel=label;
run;
Contributor
Posts: 60

Re: Where to add code for Custom Graphs in SAS VA

Posted in reply to OscarBoots2
And just to put this in context here's a link to instructions on creating these graphs;

https://blogs.sas.com/content/graphicallyspeaking/2011/12/22/creating-graphs-can-be-a-multi-layered-...
Solution
‎02-19-2018 06:37 PM
Super User
Posts: 4,026

Re: Where to add code for Custom Graphs in SAS VA

Posted in reply to OscarBoots2

SAS code can't be used in SAS VA, except when called as part of a stored process. This link explains how these work:

http://support.sas.com/documentation/cdl/en/vaug/69957/HTML/default/viewer.htm#p08zq1v1bfz46an1frvdo...

 

Please note that the resultant graphs in VA will be static images and will not contain any of the dynamic interaction capabilities of graphs constructed in VA itself.

 

SAS VA has it's own "custom graph" objects that can only be created in the VA interface. 

Contributor
Posts: 60

Re: Where to add code for Custom Graphs in SAS VA

Thanks SasKiwi,

 

That's what I wanted to know!  :  )

 

Cheers

☑ This topic is solved.

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

Discussion stats
  • 4 replies
  • 362 views
  • 0 likes
  • 2 in conversation