Does anyone know if there is some kind of documentation that describes the connection between the different parts of a Style Template and the different parts of a Graph (Template). I'm trying to develop a Style Template in accordance with my organisation's colour scheme and graphical profile but has so far only worked on the basis of trial and error.
Below you can see what I have accomplished.
proc template;
define style styles.MyOrgProfile;
parent = styles.listing;
class GraphBoxMedian /
linethickness = 3px;
class GraphBoxWhisker /
linestyle = 2;
class GraphColors /
'gdata' = #1E00BE
'gcdata2' = #329B46
'gcdata3' = #91289B
'gcdata4' = #FFB309
'ggrid' = #8D90F5
'gaxis' = #8D90F5
'gtext' = #8D90F5
'glabel' = #8D90F5 ;
class GraphGridLines /
linethickness = 1px;
class GraphFonts /
'GraphValueFont'
= ("arial, <sans-serif>, <MTsans-serif>",8pt)
'GraphLabelFont'
= ("arial, <sans-serif>, <MTsans-serif>",8pt);
class GraphData1 /
linestyle = 1;
class GraphData2 /
linestyle = 1;
class GraphData3 /
linestyle = 1;
class GraphData4 /
linestyle = 1;
end;
run;
This paper I did in 2017 should help you a lot: https://support.sas.com/resources/papers/proceedings17/SAS0675-2017.pdf
Be sure to look at the diagram on page 2.
Hope this helps!
Dan
This paper I did in 2017 should help you a lot: https://support.sas.com/resources/papers/proceedings17/SAS0675-2017.pdf
Be sure to look at the diagram on page 2.
Hope this helps!
Dan
Very nice paper Dan. You are really diving deep into terminology of the templates!
Still I would like to find some more information.
When and where is e.g. the template style object GCDATA2 used? In what plots? For what graph style elements?
What are the preconditions for using this object instead of GDATA, GCDATA. GNDATA or GNCDATA?
I do not expect you to answer these questions, but would be very happy if you point me in the right direction where to find this information.
It will probably be easier to directly answer your question:
The color variables you listed below can be lumped into two categories: Fill Color (G) and Contrast Color (GC). Contrast colors are for coloring line, markers, and (sometimes) text (such as with grouped data labels). The GCDATA2 color is the "contrast color" in the GraphData2 data style element (see the section on data styles in my paper). The data style elements are used in a number of circumstances, such as grouped plots, autocycling of overlaid plots, and direct style references.
A simple example that would use the GCDATA2 color in GraphData2, would be the following:
proc sgplot data=sashelp.class;
scatter x=weight y=height / group=sex;
run;
The markers from the second group will get the GCDATA2 color.
Hope this helps!
Dan
Thank you, Dan, it definitely helps my understadning of this particular style templates elements. It's exactly this kind of information I'm looking for but in a broader, more comprehensive, way, including all possible style template elements.
There was definitely more informtion in your paper, Dan, than I first noted! Sorry for not understanding until now.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
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.
Ready to level-up your skills? Choose your own adventure.