Data visualization with SAS programming

Modify LINESTYLE and COLOR through style template

Accepted Solution Solved
Reply
Respected Advisor
Posts: 3,768
Accepted Solution

Modify LINESTYLE and COLOR through style template

I want to modify the line style and color by modifying a template.  I can get line-style to work but I can't figure out how to specify COLOR.  I either get the syntax wrong or it complies but doesn't work to change the color.

style GraphData1 from GraphData1 / linestyle = 2;


Accepted Solutions
Solution
‎03-04-2015 04:42 PM
SAS Super FREQ
Posts: 864

Re: Modify LINESTYLE and COLOR through style template

For lines and markers, use CONTRASTCOLOR instead of COLOR. COLOR is used for fills.

View solution in original post


All Replies
Solution
‎03-04-2015 04:42 PM
SAS Super FREQ
Posts: 864

Re: Modify LINESTYLE and COLOR through style template

For lines and markers, use CONTRASTCOLOR instead of COLOR. COLOR is used for fills.

Respected Advisor
Posts: 3,768

Re: Modify LINESTYLE and COLOR through style template

Thanks Dan.  Is there a way to know that?  I have the hardest time with style templates.  Maybe I just don't know where to look in the documentation.

SAS Super FREQ
Posts: 864

Re: Modify LINESTYLE and COLOR through style template

Look under the ODS doc -> User's guide. There is an ODS style reference. Under the reference, you will see Style Elements. Under there, you will see a doc specifically for template-based graphics.

Respected Advisor
Posts: 3,768

Re: Modify LINESTYLE and COLOR through style template

SAS Super FREQ
Posts: 864

Re: Modify LINESTYLE and COLOR through style template

Yes. The reference I gave was in relation to the doc in a DMS session, but this support page contains the same info.

Post a Question
Discussion Stats
  • 5 replies
  • 374 views
  • 0 likes
  • 2 in conversation