BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
OscarBoots2
Calcite | Level 5

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

1 ACCEPTED SOLUTION

Accepted Solutions
SASKiwi
PROC Star

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

4 REPLIES 4
OscarBoots2
Calcite | Level 5
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;
OscarBoots2
Calcite | Level 5
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-...
SASKiwi
PROC Star

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. 

OscarBoots2
Calcite | Level 5

Thanks SasKiwi,

 

That's what I wanted to know!  :  )

 

Cheers

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

Tips for filtering data sources in SAS Visual Analytics

See how to use one filter for multiple data sources by mapping your data from SAS’ Alexandria McCall.

Find more tutorials on the SAS Users YouTube channel.

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