<?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: need help creating a customised bar chat? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235707#M8569</link>
    <description>&lt;P&gt;With SAS 9.4 you can use SEGLABEL to draw values in the bar and DATALABEL to draw values above the bar. &amp;nbsp;Or you can use AXISTABLE. &amp;nbsp;Compute the percent values as a new column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=customer2 nowall noborder;&lt;BR /&gt;&amp;nbsp; vbarparm category=city response=percent / datalabel=count seglabel;&lt;BR /&gt;&amp;nbsp; yaxis display=none grid;&lt;BR /&gt;run;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12086i7423C94A8CB396E2/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Customer.png" title="Customer.png" /&gt;</description>
    <pubDate>Fri, 20 Nov 2015 15:58:42 GMT</pubDate>
    <dc:creator>Jay54</dc:creator>
    <dc:date>2015-11-20T15:58:42Z</dc:date>
    <item>
      <title>need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/233644#M8458</link>
      <description>&lt;P&gt;How to and choose to add the color of my choice to the bar charts created using the sg plot procedure. Also, how to display the count figures and the same in percentages on top of each bars(outside on top of the bar) as a representation. For example, (2378, 44%) is a kind of representation that I am used to creating in excel on top of each of the bar charts. Can the same be done using sas graph ods graphics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code i am using creates simple bar charts that needs to be tweaked. Please advice&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgplot data=sample;
&amp;nbsp;vbar city /response=profit datalabel;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Nov 2015 17:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/233644#M8458</guid>
      <dc:creator>Allaluiah</dc:creator>
      <dc:date>2015-11-07T17:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/233653#M8459</link>
      <description>Create a variable that contains what you want in the datalabel and then refer to that in your code.&lt;BR /&gt;&lt;BR /&gt;datalabel=label_variable&lt;BR /&gt;&lt;BR /&gt;Setting a color choice is more difficult than it seems. &lt;BR /&gt;Here's an example from the SAS docs. Some of these options may only be valid in SAS 9.4. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#p18q268a3zxcl3n11lnnnq4cme8r.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/grstatproc/67909/HTML/default/viewer.htm#p18q268a3zxcl3n11lnnnq4cme8r.htm&lt;/A&gt;</description>
      <pubDate>Sun, 08 Nov 2015 00:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/233653#M8459</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-11-08T00:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/233673#M8460</link>
      <description>&lt;PRE&gt;Hi ,

Here you go, However i did not get how to show both numer and % .Hope this some what helps

proc sgplot data=newdata ;
 vbar city /response = profit  datalabel BARWIDTH = 0.2 
 fillattrs=(COLOR=RED)  STAT=percent;
run;&lt;/PRE&gt;</description>
      <pubDate>Sun, 08 Nov 2015 11:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/233673#M8460</guid>
      <dc:creator>pearsoninst</dc:creator>
      <dc:date>2015-11-08T11:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/233692#M8461</link>
      <description>&lt;P&gt;Setting bar color for a non-grouped bar chart is very easy as shown&amp;nbsp;by "Pearsoninst". &amp;nbsp;Use DATALABEL option to either show the response&amp;nbsp;value, or DATALABEL=column to display the value from another column (say Label). &amp;nbsp;Note, if there are more than one observations per category,&amp;nbsp;I believe the first value is shown. &amp;nbsp;You can generate a Label colum that includes the information you want to show. &amp;nbsp;If the Label column type is character, the label can&amp;nbsp;be split on white space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your graph has a GROUP role, the groups are colored by their order in the data using GraphData1 - 12 colors defined in the style. You can use the STYLEATTS statement to change the list of colors.&lt;/P&gt;</description>
      <pubDate>Sun, 08 Nov 2015 20:53:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/233692#M8461</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-11-08T20:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235684#M8567</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54﻿&lt;/a&gt;&amp;nbsp;Thank you, I have understood how to fill the color of my choice. However, my need is also to get the frequency statistics and percentages in the same graph report.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I mean is like inside= statistic and outside=statistics in the vbar. I'd prefer to represent frequency outside on top on the bars and the percentages inside the bars.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, let's say i have a data set&amp;nbsp;&lt;/P&gt;
&lt;P&gt;city &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; custumer_Count&lt;/P&gt;
&lt;P&gt;LA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;35&lt;/P&gt;
&lt;P&gt;New york &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 49&lt;/P&gt;
&lt;P&gt;Dallas &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 29&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want &amp;nbsp;the customer_count figues in the dataset to be represented on top of the graphs(outside) and it's percentages inside the graph. Can yor or anybody reading this thread help? &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 14:53:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235684#M8567</guid>
      <dc:creator>Allaluiah</dc:creator>
      <dc:date>2015-11-20T14:53:24Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235696#M8568</link>
      <description>&lt;P&gt;What version of SAS are you using?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:13:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235696#M8568</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2015-11-20T15:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235707#M8569</link>
      <description>&lt;P&gt;With SAS 9.4 you can use SEGLABEL to draw values in the bar and DATALABEL to draw values above the bar. &amp;nbsp;Or you can use AXISTABLE. &amp;nbsp;Compute the percent values as a new column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=customer2 nowall noborder;&lt;BR /&gt;&amp;nbsp; vbarparm category=city response=percent / datalabel=count seglabel;&lt;BR /&gt;&amp;nbsp; yaxis display=none grid;&lt;BR /&gt;run;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12086i7423C94A8CB396E2/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Customer.png" title="Customer.png" /&gt;</description>
      <pubDate>Fri, 20 Nov 2015 15:58:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235707#M8569</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-11-20T15:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235754#M8571</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas﻿&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54﻿&lt;/a&gt;&amp;nbsp;I am using &lt;STRONG&gt;SAS enterprise guide 5.1&lt;/STRONG&gt; and I don't think i have 9.4. I believe it is 9.3 or 9.2, honestly not sure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 18:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235754#M8571</guid>
      <dc:creator>Allaluiah</dc:creator>
      <dc:date>2015-11-20T18:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235766#M8572</link>
      <description>&lt;P&gt;With VBARPARM (without stacked groups), you can still use the SCATTER plot with MARKERCHAR to overlay the segment values in the middle of the bar.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Nov 2015 19:52:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235766#M8572</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-11-20T19:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235919#M8573</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54﻿&lt;/a&gt;&amp;nbsp;and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15130"&gt;@DanH_sas﻿&lt;/a&gt;Thank you for your responses. I'm afraid&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;the VBARPARM doesn't seem to be functional in my SAS enterprise guide 5.1. I researched quite a bit on SAS online documentation, and I found proc ghcart is the only one that comes close to my requirement with inside= &amp;nbsp;and outside=statistics to display the frequency and percentages in the vertical bars.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although, i am close i am stuck in reshaping the bar sizes coz when bar is too small, it misses to display the percentages inside. Also, I am unable to find out ways to remove the default frequency label on the left side of the y axis. The names of the category variable is veritcally displayed while it should actually be diagonal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any further suggestions plz&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2015 19:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235919#M8573</guid>
      <dc:creator>Allaluiah</dc:creator>
      <dc:date>2015-11-22T19:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235933#M8574</link>
      <description>&lt;P&gt;Please attach a picture of what you want and sample data. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Nov 2015 23:13:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/235933#M8574</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-11-22T23:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/236016#M8575</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13856"&gt;@Jay54﻿&lt;/a&gt;&amp;nbsp;I appreciate your response. I have attached a pic of the excel graph that I would like.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The sample data is as follows:(Salary_range is a character variable and Customer count is numeric and there are no duplicates whatsoever and the attached graph is merely a representation in numbers as percentages and as simple as it looks in excel and I have been struggling to achieve the same in SAS. Please help if you can. Thanks once again&lt;/P&gt;
&lt;TABLE width="237"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="127"&gt;Salary_range&lt;/TD&gt;
&lt;TD width="110"&gt;Customer_count&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;0-5000&lt;/TD&gt;
&lt;TD&gt;1264&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;5001-10000&lt;/TD&gt;
&lt;TD&gt;8077&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;10001-20000&lt;/TD&gt;
&lt;TD&gt;3607&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;20001-35000&lt;/TD&gt;
&lt;TD&gt;1431&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;35001-50000&lt;/TD&gt;
&lt;TD&gt;354&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;50001 and above&lt;/TD&gt;
&lt;TD&gt;278&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Salary not declared&lt;/TD&gt;
&lt;TD&gt;340&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12089iB45460340A2ACC71/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="samplechart_fromexcel.jpg" title="samplechart_fromexcel.jpg" /&gt;</description>
      <pubDate>Mon, 23 Nov 2015 16:33:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/236016#M8575</guid>
      <dc:creator>Allaluiah</dc:creator>
      <dc:date>2015-11-23T16:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/237203#M8607</link>
      <description>&lt;P&gt;Here's one way to create the bar chart you attached, using SAS/Graph gchart ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_data;&lt;BR /&gt;input customer_count salary_range $ 6-80;&lt;BR /&gt;bar_order+1;&lt;BR /&gt;datalines;&lt;BR /&gt;1264 0-5000&lt;BR /&gt;8077 5,001-10,000&lt;BR /&gt;3607 10,001-20,000&lt;BR /&gt;1431 20,001-35,000&lt;BR /&gt;354 35,001-50,000&lt;BR /&gt;278 50,001 and\above&lt;BR /&gt;340 Salary not\declared&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;select sum(customer_count) into :total from my_data;&lt;BR /&gt;quit; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_data; set my_data;&lt;BR /&gt;percent_customers=customer_count/&amp;amp;total;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data anno_labels; set my_data;&lt;BR /&gt;xsys='2'; ysys='2'; hsys='3'; when='a';&lt;BR /&gt;x=bar_order; y=percent_customers;&lt;BR /&gt;function='label'; position='2'; &lt;BR /&gt;text=trim(left(put(customer_count,comma8.0)))||', '||trim(left(put(percent_customers,percentn7.1)));&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/* Create a user-defined-format to print the numeric bar_order as the salary_range */&lt;BR /&gt;proc sql noprint;&lt;BR /&gt;create table foo as select unique bar_order as start, salary_range as label from my_data;&lt;BR /&gt;quit; run;&lt;BR /&gt;data control; set foo;&lt;BR /&gt;fmtname = 'barfmt';&lt;BR /&gt;type = 'N';&lt;BR /&gt;end = START;&lt;BR /&gt;run;&lt;BR /&gt;proc format lib=work cntlin=control;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;axis1 label=none style=0 major=none minor=none;&lt;BR /&gt;axis2 label=none split='\';&lt;/P&gt;
&lt;P&gt;pattern1 v=s c=gray88;&lt;/P&gt;
&lt;P&gt;goptions htext=2.0 pct;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc gchart data=my_data anno=anno_labels;&lt;BR /&gt;format percent_customers percentn6.0;&lt;BR /&gt;format bar_order barfmt.;&lt;BR /&gt; vbar bar_order / discrete type=sum sumvar=percent_customers&lt;BR /&gt; raxis=axis1 maxis=axis2 noframe coutline=gray44;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/994i5C802CA2B1A31822/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="custom_bar.png" title="custom_bar.png" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12105i4F7E8A0724959E84/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="custom_bar.png" title="custom_bar.png" /&gt;</description>
      <pubDate>Tue, 01 Dec 2015 16:40:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/237203#M8607</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2015-12-01T16:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/237223#M8608</link>
      <description>&lt;P&gt;And if you are a SAS 9.4 SGPLOT user, here is the code you need. &amp;nbsp;I used&amp;nbsp;Robert code with some modifications. &amp;nbsp;Thanks, Robert.&lt;/P&gt;
&lt;P&gt;Note the "space" after the "-" in the salary_range values used as the&amp;nbsp;split character.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_data;&lt;BR /&gt;input customer_count salary_range $ 6-80;&lt;BR /&gt;bar_order+1;&lt;BR /&gt;datalines;&lt;BR /&gt;1264 0-5000&lt;BR /&gt;8077 5,001- 10,000&lt;BR /&gt;3607 10,001- 20,000&lt;BR /&gt;1431 20,001- 35,000&lt;BR /&gt;354 35,001- 50,000&lt;BR /&gt;278 50,001 and\above&lt;BR /&gt;340 Salary not\declared&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt; &lt;BR /&gt;proc sql;&lt;BR /&gt;select sum(customer_count) into :total from my_data;&lt;BR /&gt;quit; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_data; set my_data;&lt;BR /&gt;&amp;nbsp; format percent_customers percent5.0;&lt;BR /&gt;&amp;nbsp; percent_customers=customer_count/&amp;amp;total;&lt;BR /&gt;&amp;nbsp; label=put(customer_count, 4.0) || ', ' || put(percent_customers, percent5.0);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sgplot data=my_data nowall noborder;&lt;BR /&gt;&amp;nbsp; vbarparm category=salary_range response=percent_customers / datalabelattrs=(size=8) &lt;BR /&gt;&amp;nbsp; barwidth=0.6 datalabel=label fillattrs=(color=gray) nooutline;&lt;BR /&gt;&amp;nbsp; xaxis display=(nolabel noline noticks);&lt;BR /&gt;&amp;nbsp; yaxis display=(nolabel noline noticks) grid;&lt;BR /&gt; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/996i710DFD81C26EB836/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="BarPercent.png" title="BarPercent.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2015 17:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/237223#M8608</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2015-12-01T17:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/240930#M8764</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy﻿&lt;/a&gt;&amp;nbsp;you are a star!, how did you gain this level of expertise and how long did it take? simple awesome!!!!!!!!!!!!!!!!!!!! Thank you so much&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2015 21:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/240930#M8764</guid>
      <dc:creator>Allaluiah</dc:creator>
      <dc:date>2015-12-27T21:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: need help creating a customised bar chat?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/243324#M8826</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13585"&gt;@GraphGuy﻿&lt;/a&gt;&amp;nbsp;Sir, I ran your super succesful code and i'm happy. However, I noticed the values on top of the bar are so small and it's not clearly visible. Can you please suggest to make the font bigger of the values bigger to make it visible. Thank you&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/need-help-creating-a-customised-bar-chat/m-p/243324#M8826</guid>
      <dc:creator>Allaluiah</dc:creator>
      <dc:date>2016-01-13T20:37:24Z</dc:date>
    </item>
  </channel>
</rss>

