<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Proc Sgrender color statement in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302885#M10679</link>
    <description>&lt;P&gt;What do you mean "are not working"? &amp;nbsp;I ran that code you have posted and I see a graph with colors.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Oct 2016 09:35:19 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-10-06T09:35:19Z</dc:date>
    <item>
      <title>Proc Sgrender color statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302879#M10678</link>
      <description>&lt;P&gt;Hi SAS experts,&lt;/P&gt;&lt;P&gt;Am tryng to create a proc template to add colors, and refering this template in proc sgrender procedurs.&lt;/P&gt;&lt;P&gt;But the colors which i have defined in the template are not working in sgrender. Please help. below is my code;&lt;/P&gt;&lt;P&gt;Is there is any other way to add colors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data new;&lt;BR /&gt;input year name$ points;&lt;BR /&gt;datalines;&lt;BR /&gt;2006 a 900&lt;BR /&gt;2007 a 267&lt;BR /&gt;2008 a 290&lt;BR /&gt;2009 a 677&lt;BR /&gt;2006 b 1000&lt;BR /&gt;2007 b 2000&lt;BR /&gt;2008 b 2678&lt;BR /&gt;2009 b 677&lt;BR /&gt;2006 c 500&lt;BR /&gt;2007 c 400&lt;BR /&gt;2008 c 678&lt;BR /&gt;2009 c 877&lt;BR /&gt;2006 d 500&lt;BR /&gt;2007 d 600&lt;BR /&gt;2008 d 364&lt;BR /&gt;2009 d 466&lt;BR /&gt;2006 e 555&lt;BR /&gt;2007 e 654&lt;BR /&gt;2008 e 365&lt;BR /&gt;2009 e 645&lt;BR /&gt;2006 f&lt;BR /&gt;2007 f&lt;BR /&gt;2008 f&lt;BR /&gt;2009 f&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define statgraph abc;&lt;BR /&gt;begingraph / datacolors=(CXE5CCFF CXFFCC99 CX64BEEB CXC4DA5A CX404040 );&lt;BR /&gt;layout overlay/&lt;BR /&gt;xaxisopts=(linearopts=(tickvalueformat=4.0 tickvaluesequence=(start=2006 end=2009 increment=1)))&lt;BR /&gt;yaxisopts=(griddisplay=on gridattrs=(pattern=dot)&lt;BR /&gt;linearopts=(tickvalueformat=(extractscale=true)));&lt;BR /&gt;seriesplot x=year&lt;BR /&gt;y=points / name= "ST3" group=name LINEATTRS = (THICKNESS = 3) display=all ;&lt;BR /&gt;discretelegend "ST3" / title="name" exclude=("f") ;&lt;/P&gt;&lt;P&gt;endlayout;&lt;BR /&gt;endgraph;&lt;BR /&gt;end;&lt;/P&gt;&lt;P&gt;proc sgrender data=new template=abc;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:25:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302879#M10678</guid>
      <dc:creator>sanjay1</dc:creator>
      <dc:date>2016-10-06T09:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sgrender color statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302885#M10679</link>
      <description>&lt;P&gt;What do you mean "are not working"? &amp;nbsp;I ran that code you have posted and I see a graph with colors.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:35:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302885#M10679</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-06T09:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sgrender color statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302889#M10680</link>
      <description>&lt;P&gt;What I meant is the colors which i have declared in the template are not reffering in the graph, it is taking the by default colors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 09:45:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302889#M10680</guid>
      <dc:creator>sanjay1</dc:creator>
      <dc:date>2016-10-06T09:45:42Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sgrender color statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302894#M10681</link>
      <description>&lt;P&gt;Hmm, never used datacolors in my graphs. &amp;nbsp;From the docs it seems that only applies to fill colors - which would indicate to me bar charts and that type of thing rather than line color. &amp;nbsp;Generally speaking I setup my line information in a style template, then use that in geration of the output file - see below. &amp;nbsp;There are other methods to get color and such like, by adding lineattrs and linegroupattrs and such like. &amp;nbsp;Here is a site I sue a lot for graphs, have filtered for series&amp;nbsp;plot:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/?s=seriesplot" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/?s=seriesplot&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(worth looking at the whole site though).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data new;
input year name$ points;
datalines;
2006 a 900
2007 a 267
2008 a 290
2009 a 677
2006 b 1000
2007 b 2000
2008 b 2678
2009 b 677
2006 c 500
2007 c 400
2008 c 678
2009 c 877
2006 d 500
2007 d 600
2008 d 364
2009 d 466
2006 e 555
2007 e 654
2008 e 365
2009 e 645
2006 f
2007 f
2008 f
2009 f
run;
proc template;
  define style Styles.mystyle; 
    parent=styles.listing;
    style GraphData1 from GraphData1 /
      ContrastColor=red
      Color=red
      MarkerSymbol="CircleFilled"
      Linestyle=1;
    style GraphData2 from GraphData2 /
      ContrastColor=black
      Color=black
      MarkerSymbol="TriangleFilled"
      Linestyle=1;
    style GraphData3 from GraphData3 /
      ContrastColor=orange
      Color=orange
      MarkerSymbol="SquareFilled"
      Linestyle=1;
    style GraphData4 from GraphData5 /
      ContrastColor=green
      Color=green
      MarkerSymbol="SquareFilled"
      Linestyle=1;
    style GraphData5 from GraphData5 /
      ContrastColor=purple
      Color=purple
      MarkerSymbol="SquareFilled"
      Linestyle=1;

  end;
run;
proc template;
define statgraph abc;
begingraph;
layout overlay/
xaxisopts=(linearopts=(tickvalueformat=4.0 tickvaluesequence=(start=2006 end=2009 increment=1)))
yaxisopts=(griddisplay=on gridattrs=(pattern=dot)
linearopts=(tickvalueformat=(extractscale=true)));
seriesplot x=year
y=points / name= "ST3" group=name LINEATTRS = (THICKNESS = 3) display=all ;
discretelegend "ST3" / title="name" exclude=("f") ;
endlayout;
endgraph;
end;
ods rtf file="s:\t.rtf" style=mystyle;
proc sgrender data=new template=abc;
run; 
ods rtf close;

&lt;/PRE&gt;</description>
      <pubDate>Thu, 06 Oct 2016 10:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302894#M10681</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-06T10:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sgrender color statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302922#M10682</link>
      <description>&lt;P&gt;You need to use the DATACONTRASTCOLORS option instead of the DATACOLORS option. The DATACOLORS option is for FILL colors, but you are using a SERIESPLOT. Line and markers get their colors from DATACONTRASTCOLORS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 12:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302922#M10682</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-10-06T12:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Sgrender color statement</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302980#M10690</link>
      <description>&lt;P&gt;Thank you RW9 there is lot of information that helps me.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2016 16:03:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Sgrender-color-statement/m-p/302980#M10690</guid>
      <dc:creator>sanjay1</dc:creator>
      <dc:date>2016-10-06T16:03:53Z</dc:date>
    </item>
  </channel>
</rss>

