<?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: Colors and Data Label Position VBAR in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618264#M19328</link>
    <description>&lt;P&gt;Are you using PROC SGPANEL or SGPLOT ?&lt;/P&gt;
&lt;P&gt;I am not sure. But could #byval1 syntax for SGPLOT .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by age;
run;
options nobyline;
ods layout gridded columns=2 advance=table;
title 'Age is #byval1';
proc sgplot data=class;
by age;
scatter x=weight y=height;
run;
ods layout end;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 18 Jan 2020 15:56:17 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-01-18T15:56:17Z</dc:date>
    <item>
      <title>Colors and Data Label Position VBAR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618224#M19324</link>
      <description>&lt;P&gt;When I set up my bar chart, it renders as expected but I get no color differences by group. I tries using ATTRID with no success. In addition I need to place the data labels in the middle of the bars not the top or the bottom which appear to be the only standard options available.I also tried the style attribute datacontrastcolors also with no success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;data attrmap;&lt;/P&gt;&lt;P&gt;length value FillColor LineColor $8;&lt;/P&gt;&lt;P&gt;Id='A'; Value="XX N"; FillColor='Red'; LineColor='Black'; output;&lt;/P&gt;&lt;P&gt;Id='A'; Value="XX C"; FillColor='Yellow'; LineColor='Black'; output;&lt;/P&gt;&lt;P&gt;Id='A'; Value="XX R"; FillColor='Green'; LineColor='Black'; output;&lt;BR /&gt;Id='A'; Value="XX M"; FillColor='Blue'; LineColor='Black'; output;&lt;BR /&gt;Id='A'; Value="XX K"; FillColor='Orange'; LineColor='Black'; output;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgplot data = geography dattrmap=attrmap;&lt;BR /&gt;where index(put(businessunit,$f_bun.),"XX ");&lt;BR /&gt;vbar businessunit/response = requestedamount stat = sum datalabel attrid = A ;&lt;BR /&gt;xaxis display = (nolabel);&lt;BR /&gt;yaxis label = "Amount";&lt;BR /&gt;format requestedamount comma32.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2020 23:32:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618224#M19324</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2020-01-17T23:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Colors and Data Label Position VBAR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618244#M19325</link>
      <description>&lt;P&gt;Are you using the formatted or unformatted values of the variable in the data attribute map?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 08:33:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618244#M19325</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-01-18T08:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: Colors and Data Label Position VBAR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618248#M19326</link>
      <description>&lt;P&gt;Try SGLABEL and GROUP= option.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods graphics/noscale;
proc sgplot  data=sashelp.class;
vbar age/group=age response=weight seglabel;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 18 Jan 2020 11:33:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618248#M19326</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-01-18T11:33:36Z</dc:date>
    </item>
    <item>
      <title>Re: Colors and Data Label Position VBAR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618259#M19327</link>
      <description>&lt;P&gt;Got it thanks - added about 3 min after posting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One other question - with a gridded ods layout I've seen documentation of separate titles for the table and chart on the same page. Any tricks to make this work? I tried title statements in the different ods regions but all I get is one title (over the table) and that's it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 15:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618259#M19327</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2020-01-18T15:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Colors and Data Label Position VBAR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618264#M19328</link>
      <description>&lt;P&gt;Are you using PROC SGPANEL or SGPLOT ?&lt;/P&gt;
&lt;P&gt;I am not sure. But could #byval1 syntax for SGPLOT .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.class out=class;
by age;
run;
options nobyline;
ods layout gridded columns=2 advance=table;
title 'Age is #byval1';
proc sgplot data=class;
by age;
scatter x=weight y=height;
run;
ods layout end;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 18 Jan 2020 15:56:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618264#M19328</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-01-18T15:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: Colors and Data Label Position VBAR</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618873#M19341</link>
      <description>&lt;P&gt;I'm using SGPLOT&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 14:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Colors-and-Data-Label-Position-VBAR/m-p/618873#M19341</guid>
      <dc:creator>Doug____</dc:creator>
      <dc:date>2020-01-21T14:27:44Z</dc:date>
    </item>
  </channel>
</rss>

