<?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 Template colors in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-colors/m-p/304761#M10728</link>
    <description>&lt;P&gt;Hi DanH_sas,&lt;/P&gt;&lt;P&gt;Your suggetion helps me alot.&lt;/P&gt;&lt;P&gt;in my below code am creating three gmaps for 3 response data sets, and am using the same colorramp template for all the three gmaps. When I have multiple response levels in the response data set the colorramp is working fine am getting the expected colors in the output.&lt;/P&gt;&lt;P&gt;But when I have only one response level value or two response level values(both the values are same.) then am not getting the colors which i have mentioned in the "colorramp" instead am getting blue color in the output.&lt;/P&gt;&lt;P&gt;I think the issue is with the startcolor and endcolor in the colorramp.&lt;/P&gt;&lt;P&gt;Is there is anyway to get the colorramp colors in my output. Please help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data response_data;&lt;BR /&gt;input idname$ X Y age;&lt;BR /&gt;cards;&lt;BR /&gt;Cuba -20722.00205 4678.3461646 20&lt;BR /&gt;Guatemala -21079.71903 4444.6666525 26&lt;BR /&gt;Haiti -20480.41176 4569.4493199 28&lt;BR /&gt;Honduras -20942.88097 4419.9807239 32&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data anno;&lt;BR /&gt;length function style color $ 10 position $ 1 text $5;&lt;BR /&gt;retain flag 0 function 'label' xsys ysys '2' hsys '3' when 'a' ;&lt;BR /&gt;set response_data ;&lt;BR /&gt;color= 'black';&lt;BR /&gt;text=put(age,comma5.);&lt;BR /&gt;position = '5' ;&lt;BR /&gt;size = 2.5;&lt;BR /&gt;style = "cumberland AMT";&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;define style styles.colorramp;&lt;BR /&gt;parent=styles.default;&lt;BR /&gt;style twocolorramp / startcolor=CXF9A11A endcolor=CXFFD923;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf file="path" startpage=no;&lt;/P&gt;&lt;P&gt;ods pdf style=styles.colorramp;&lt;/P&gt;&lt;P&gt;proc gmap data=response_data map=mapsgfk.world;&lt;BR /&gt;id IDNAME;&lt;BR /&gt;choro age/annotate=anno coutline=grayaa xsize = 2 in ysize = 2 in;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods pdf startpage=now;&lt;BR /&gt;/*second response data which have only one response level value*/&lt;BR /&gt;data response_data1;&lt;BR /&gt;input idname$ X Y age;&lt;BR /&gt;cards;&lt;BR /&gt;Cuba -20722.00205 4678.3461646 20&amp;nbsp;&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc gmap data=response_data1 map=mapsgfk.world;&lt;BR /&gt;id IDNAME;&lt;BR /&gt;choro age/annotate=anno coutline=grayaa xsize = 2 in ysize = 2 in;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods pdf startpage=now;&lt;BR /&gt;/*third response data which have two response levels but with same values*/&lt;BR /&gt;data response_data2;&lt;BR /&gt;input idname$ X Y age;&lt;BR /&gt;cards;&lt;BR /&gt;Cuba -20722.00205 4678.3461646 20&lt;BR /&gt;Guatemala -21079.71903 4444.6666525 20&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc gmap data=response_data2 map=mapsgfk.world;&lt;BR /&gt;id IDNAME;&lt;BR /&gt;choro age/annotate=anno coutline=grayaa xsize = 2 in ysize = 2 in;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Regards,&lt;/P&gt;&lt;P&gt;Sanjay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 14 Oct 2016 18:39:31 GMT</pubDate>
    <dc:creator>sanjay1</dc:creator>
    <dc:date>2016-10-14T18:39:31Z</dc:date>
    <item>
      <title>Proc Template colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-colors/m-p/303516#M10711</link>
      <description>&lt;P&gt;Hi SAS Experts,&lt;BR /&gt;I am defining two colors in the proc template styles.colorramp and am using it in the annotate dataset.&lt;BR /&gt;the startcolor=cxF3F7FE(light blue) and endcolor=cx6497EB(blue). it is working fine with the colors cxF3F7FE,cx6497EB.&lt;BR /&gt;But when am changing the startcolor=CXF9A11A(orange) and endcolor=CXFFD923(light orange) and using this in my annotate dataset,it is not&lt;BR /&gt;reffering to the newly defined colors it is still taking the blue and light blue colors.&lt;BR /&gt;Please help.&lt;/P&gt;&lt;P&gt;Below is my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data response_data;&lt;BR /&gt;input idname$ X Y age;&lt;BR /&gt;cards;&lt;BR /&gt;Cuba -20722.00205 4678.3461646 20 24&lt;BR /&gt;Guatemala -21079.71903 4444.6666525 26&lt;BR /&gt;Haiti -20480.41176 4569.4493199 28&lt;BR /&gt;Honduras -20942.88097 4419.9807239 32&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define style styles.colorramp;&lt;BR /&gt;parent=styles.default;&lt;BR /&gt;style twocolorramp / startcolor=cxF3F7FE endcolor=&lt;SPAN&gt;cx6497EB&lt;/SPAN&gt;;&lt;BR /&gt;class body / backgroundcolor=white;&lt;BR /&gt;class table / backgroundcolor=white;&lt;BR /&gt;class header, footer / backgroundcolor=white;&lt;BR /&gt;class data / backgroundcolor=white;&lt;BR /&gt;class systemtitle / backgroundcolor=white;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data anno;&lt;BR /&gt;length function style color $ 10 position $ 1 text $5;&lt;BR /&gt;retain flag 0 function 'label' xsys ysys '2' hsys '3' when 'a' ;&lt;BR /&gt;set response_data ;&lt;BR /&gt;color= 'black';&lt;BR /&gt;text=put(age,comma5.);&lt;BR /&gt;position = '5' ;&lt;BR /&gt;size = 2.5;&lt;BR /&gt;style = "colorramp";&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc gmap data=response_data map=mapsgfk.world;&lt;BR /&gt;id IDNAME;&lt;BR /&gt;choro age/annotate=anno coutline=grayaa xsize = 2 in ysize = 2 in;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sanjay&lt;/P&gt;</description>
      <pubDate>Mon, 10 Oct 2016 08:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-colors/m-p/303516#M10711</guid>
      <dc:creator>sanjay1</dc:creator>
      <dc:date>2016-10-10T08:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-colors/m-p/303551#M10714</link>
      <description>&lt;P&gt;The STYLE in annotate has to do with fonts and line patterns. To use your new style, add this statement before the PROC GMAP:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods html style=colorramp;&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>Mon, 10 Oct 2016 13:46:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-colors/m-p/303551#M10714</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-10-10T13:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-colors/m-p/304761#M10728</link>
      <description>&lt;P&gt;Hi DanH_sas,&lt;/P&gt;&lt;P&gt;Your suggetion helps me alot.&lt;/P&gt;&lt;P&gt;in my below code am creating three gmaps for 3 response data sets, and am using the same colorramp template for all the three gmaps. When I have multiple response levels in the response data set the colorramp is working fine am getting the expected colors in the output.&lt;/P&gt;&lt;P&gt;But when I have only one response level value or two response level values(both the values are same.) then am not getting the colors which i have mentioned in the "colorramp" instead am getting blue color in the output.&lt;/P&gt;&lt;P&gt;I think the issue is with the startcolor and endcolor in the colorramp.&lt;/P&gt;&lt;P&gt;Is there is anyway to get the colorramp colors in my output. Please help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data response_data;&lt;BR /&gt;input idname$ X Y age;&lt;BR /&gt;cards;&lt;BR /&gt;Cuba -20722.00205 4678.3461646 20&lt;BR /&gt;Guatemala -21079.71903 4444.6666525 26&lt;BR /&gt;Haiti -20480.41176 4569.4493199 28&lt;BR /&gt;Honduras -20942.88097 4419.9807239 32&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;data anno;&lt;BR /&gt;length function style color $ 10 position $ 1 text $5;&lt;BR /&gt;retain flag 0 function 'label' xsys ysys '2' hsys '3' when 'a' ;&lt;BR /&gt;set response_data ;&lt;BR /&gt;color= 'black';&lt;BR /&gt;text=put(age,comma5.);&lt;BR /&gt;position = '5' ;&lt;BR /&gt;size = 2.5;&lt;BR /&gt;style = "cumberland AMT";&lt;BR /&gt;output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc template;&lt;BR /&gt;define style styles.colorramp;&lt;BR /&gt;parent=styles.default;&lt;BR /&gt;style twocolorramp / startcolor=CXF9A11A endcolor=CXFFD923;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods pdf file="path" startpage=no;&lt;/P&gt;&lt;P&gt;ods pdf style=styles.colorramp;&lt;/P&gt;&lt;P&gt;proc gmap data=response_data map=mapsgfk.world;&lt;BR /&gt;id IDNAME;&lt;BR /&gt;choro age/annotate=anno coutline=grayaa xsize = 2 in ysize = 2 in;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods pdf startpage=now;&lt;BR /&gt;/*second response data which have only one response level value*/&lt;BR /&gt;data response_data1;&lt;BR /&gt;input idname$ X Y age;&lt;BR /&gt;cards;&lt;BR /&gt;Cuba -20722.00205 4678.3461646 20&amp;nbsp;&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc gmap data=response_data1 map=mapsgfk.world;&lt;BR /&gt;id IDNAME;&lt;BR /&gt;choro age/annotate=anno coutline=grayaa xsize = 2 in ysize = 2 in;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods pdf startpage=now;&lt;BR /&gt;/*third response data which have two response levels but with same values*/&lt;BR /&gt;data response_data2;&lt;BR /&gt;input idname$ X Y age;&lt;BR /&gt;cards;&lt;BR /&gt;Cuba -20722.00205 4678.3461646 20&lt;BR /&gt;Guatemala -21079.71903 4444.6666525 20&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc gmap data=response_data2 map=mapsgfk.world;&lt;BR /&gt;id IDNAME;&lt;BR /&gt;choro age/annotate=anno coutline=grayaa xsize = 2 in ysize = 2 in;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Regards,&lt;/P&gt;&lt;P&gt;Sanjay.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 18:39:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-colors/m-p/304761#M10728</guid>
      <dc:creator>sanjay1</dc:creator>
      <dc:date>2016-10-14T18:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Template colors</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-colors/m-p/304764#M10729</link>
      <description>&lt;P&gt;When the same levels are the same value, they will always be mapped to the same color. Otherwise, you would get a data-integrity issue, not knowing which color belongs to which value. If the two values are not exactly the same, you should get the two colors.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 19:05:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Proc-Template-colors/m-p/304764#M10729</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2016-10-14T19:05:50Z</dc:date>
    </item>
  </channel>
</rss>

