<?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: Bar Chart in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489645#M16838</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Could you please help me with the procedure which creates the desired output?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Could you please provide some example data in the form of a data step so we can actually test code with data?&lt;/P&gt;
&lt;P&gt;OR reference a SAS supplied data set in the SASHELP library that may be able to demonstrate similar data types and desired behavior for that data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You desired output picture makes me suspect SGPANEL might be possible but without data to test I'm afraid that's as far as I want to go.&lt;/P&gt;</description>
    <pubDate>Fri, 24 Aug 2018 15:35:08 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-08-24T15:35:08Z</dc:date>
    <item>
      <title>Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489544#M16826</link>
      <description>&lt;P&gt;I want to create a bar chart as follows with the following data. I knew that we can accomplish this using proc sgplot but I'm not certain to create a chart for each observation. Appreciate if someone of you help me here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Data preparation:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  length name average_talk_time_answered_calls Average_ACW_Time_Answered_Calls $200;
  name='Van der Haeghen, Wendye (E003983)';
  Average_Talk_Time_Answered_Calls='116,3953488';
 Average_ACW_Time_Answered_Calls='290,4883721';output; 
  name='Verhaeghe, Johny (E002902)';
  Average_Talk_Time_Answered_Calls='86,66666667';
  Average_ACW_Time_Answered_Calls='2,333333333';output;
;
run; 

data temp(drop=Average_Talk_Time_Answered_Calls Average_ACW_Time_Answered_Calls) ;
set test;
Avg_Talk_Time_Answered_Calls=input(tranwrd(Average_Talk_Time_Answered_Calls,',','.'),best.);
Avg_ACW_Time_Answered_Calls=input(tranwrd(Average_ACW_Time_Answered_Calls,',','.'),best.);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Dataset:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE width="627"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="224"&gt;name&lt;/TD&gt;
&lt;TD width="198"&gt;Avg_Talk_Time_Answered_Calls&lt;/TD&gt;
&lt;TD width="205"&gt;Avg_ACW_Time_Answered_Calls&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Van der Haeghen, Wendye (E003983)&lt;/TD&gt;
&lt;TD&gt;1.163.953.488&lt;/TD&gt;
&lt;TD&gt;2.904.883.721&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;Verhaeghe, Johny (E002902)&lt;/TD&gt;
&lt;TD&gt;8.666.666.667&lt;/TD&gt;
&lt;TD&gt;2.333.333.333&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&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>Tue, 28 Aug 2018 13:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489544#M16826</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-08-28T13:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489549#M16827</link>
      <description>&lt;P&gt;SGPLOT only allows clustered or stacked bar charts. Neither of those is what you show as the desired output where person #1 is on the left, and person #2 is on the right.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want clustered or stacked bar charts, then yes this is possible.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 11:07:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489549#M16827</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-08-24T11:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489550#M16828</link>
      <description>&lt;P&gt;Could you please help me with the procedure which creates the desired output?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 11:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489550#M16828</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-08-24T11:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489554#M16829</link>
      <description>&lt;P&gt;As I said, SGPLOT cannot produce the output you asked for.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 11:42:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489554#M16829</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-08-24T11:42:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489558#M16830</link>
      <description>&lt;P&gt;With a different data structure, proc gchart (as used by the bar chart wizard in EG) can produce something similar:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
infile cards dsd dlm=' ';
input person :$50. type :$20. value :commax20.;
cards;
"Van der Haeghen, Wendye (E003983)" avg_talk_time 116,3953488
"Van der Haeghen, Wendye (E003983)" avg_acw_time 290,4883721
"Verhaeghe, Johny (E002902)" avg_talk_time 86,66666667
"Verhaeghe, Johny (E002902)" avg_acw_time 2,333333333
;
run;

PROC GCHART DATA=have
;
  VBAR 
   person
 /
  SUMVAR=value
  GROUP=type
  CLIPREF
    SPACE=0
FRAME  TYPE=SUM
  COUTLINE=BLACK
  RAXIS=AXIS1
  MAXIS=AXIS2
PATTERNID=MIDPOINT
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In the wizard, the diagram column is person, bars are grouped by type, and value is used as "sum of".&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 11:59:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489558#M16830</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-24T11:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489562#M16831</link>
      <description>&lt;P&gt;Thank you for the code. Is there any way that we try with proc freq except the coloring part? I just noticed that I do not licensed for graphical procedures.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 12:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489562#M16831</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-08-24T12:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489565#M16832</link>
      <description>&lt;P&gt;I am afraid I would have to disagree with you there.&amp;nbsp; Whilst the base plot would not do what is required, there is nothing to say that you cannot overplot each.&amp;nbsp; So essentially you would create a four group formatted value:&lt;/P&gt;
&lt;P&gt;Wendy, Average talk time = 1&lt;/P&gt;
&lt;P&gt;Wendy, Average ACW = 2&lt;/P&gt;
&lt;P&gt;Johny, Average talk time = 4&lt;/P&gt;
&lt;P&gt;Johny, Average ACW = 5&lt;/P&gt;
&lt;P&gt;Then you would graph this based on a non displayed X Axis, with values = 0,1,2,3,4,5,6&lt;/P&gt;
&lt;P&gt;At position x=3 you would draw a refence line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You woul dneed to fiddle a bit with the legend, maybe just text draw the two bits.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;:&lt;/P&gt;
&lt;P&gt;Check here:&amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There are thousands of examples of all types of graphs - bookmark that page as its the best reference for graphing.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 12:22:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489565#M16832</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-24T12:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489568#M16833</link>
      <description>&lt;P&gt;For this, consult the &lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=procstat&amp;amp;docsetTarget=procstat_freq_overview.htm&amp;amp;locale=en" target="_blank"&gt;documentation of proc freq&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 12:48:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489568#M16833</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-24T12:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489582#M16834</link>
      <description>&lt;P&gt;Here's how I made it with SGPLOT.&amp;nbsp; Just had to change your dataset around a touch.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  length name average_talk_time_answered_calls Average_ACW_Time_Answered_Calls $200;
  name='Van der Haeghen, Wendye (E003983)';
  Average_Talk_Time_Answered_Calls='116,3953488';
 Average_ACW_Time_Answered_Calls='290,4883721';output; 
  name='Verhaeghe, Johny (E002902)';
  Average_Talk_Time_Answered_Calls='86,66666667';
  Average_ACW_Time_Answered_Calls='2,333333333';output;
;
run; 

data temp(drop=Average_Talk_Time_Answered_Calls Average_ACW_Time_Answered_Calls) ;
set test;
Avg_Talk_Time_Answered_Calls=input(tranwrd(Average_Talk_Time_Answered_Calls,',','.'),best.);
Avg_ACW_Time_Answered_Calls=input(tranwrd(Average_ACW_Time_Answered_Calls,',','.'),best.);
run;

data plot;
    set temp;
    length category $100.;
    category='Average Talk Time Answered Calls';time=Avg_Talk_Time_Answered_Calls;output;
    category='Average ACW Time Answered Calls';time=Avg_ACW_Time_Answered_Calls;output;
run;


ods graphics / reset width=10in;
title 'Avg Talk Time (sec), ACW Talk Time (sec) Calls Answered';
proc sgplot data=plot;
     vbar name / response=time group=category groupdisplay=cluster grouporder=descending;
     keylegend / position=topright location=inside down=2 title='';
     refline 'Van der Haeghen, Wendye (E003983)' / axis=x discreteoffset=0.5 lineattrs=(color=black pattern=1);
     yaxis min=0 max=350 values=(0 to 350 by 50) grid gridattrs=(color=black pattern=solid) display=(nolabel) offsetmin=0 offsetmax=0;
     xaxis display=(nolabel) offsetmin=0.3 offsetmax=0.3;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22738i62AE37D5028A920C/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot.png" alt="SGPlot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 13:48:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489582#M16834</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-08-24T13:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489627#M16837</link>
      <description>&lt;P&gt;SGPLOT does not require a SAS/GRAPH license and is more powerful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for the code. Is there any way that we try with proc freq except the coloring part? I just noticed that I do not licensed for graphical procedures.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 14:59:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489627#M16837</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-24T14:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489645#M16838</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Could you please help me with the procedure which creates the desired output?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Could you please provide some example data in the form of a data step so we can actually test code with data?&lt;/P&gt;
&lt;P&gt;OR reference a SAS supplied data set in the SASHELP library that may be able to demonstrate similar data types and desired behavior for that data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You desired output picture makes me suspect SGPANEL might be possible but without data to test I'm afraid that's as far as I want to go.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 15:35:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489645#M16838</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-24T15:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489652#M16839</link>
      <description>The data is in their code in the original post.  I made the graph in SGPLOT in another reply if you want to see it.</description>
      <pubDate>Fri, 24 Aug 2018 15:43:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489652#M16839</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2018-08-24T15:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489682#M16841</link>
      <description>Thank you for the code. Is there any way that you can produce a similar&lt;BR /&gt;chart in Proc report or proc tabulate?&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Aug 2018 16:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489682#M16841</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-08-24T16:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489684#M16842</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt;&amp;nbsp;SGPLOT is included in SAS BASE, you should be able to run&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2153"&gt;@JeffMeyers&lt;/a&gt;&amp;nbsp;code without issues.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 16:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489684#M16842</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-24T16:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489806#M16847</link>
      <description>&lt;P&gt;I received the following error message after executing the proc sgplot code. Is that not a license issue?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;53         proc sgplot data=plot;
ERROR: The SAS/GRAPH product with which SGPLOT (2) is associated is either not licensed for your system or the product license has 
       expired. Please contact your SAS installation representative.
ERROR: Bad product ID for procedure SGPLOT.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Aug 2018 05:11:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489806#M16847</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-08-25T05:11:40Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489809#M16848</link>
      <description>&lt;P&gt;Could you please guide me to create a similar chart in proc report or proc tabulate or proc freq?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 06:56:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489809#M16848</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-08-25T06:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489838#M16849</link>
      <description>&lt;P&gt;PROC REPORT or TABULATE do not generate charts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC FREQ can, but I don't think it does the chart you want so without a SAS/GRAPH or SGPLOT license you're possibly out of luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm assuming you're on a SAS version less than 9.3 though, which is about a decade old at this point. I'll also assume you're recommending that your company upgrade to SAS 9.4.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you must have a graph, I would recommend using Excel and DDE and then output to PDF or whatever you needed but its obviously a workaround and a lot more work. Or a different language you have access to, such as R or Python.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Aug 2018 18:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489838#M16849</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-25T18:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489844#M16850</link>
      <description>&lt;P&gt;This is what I got with PROC FREQ - you can customize variables using labels. I believe any more changes to styes would need to happen via a template modification which is more time that I have to spend on this issue. It could likely be done. I'm not sure this works on SAS 9.1 but should work on 9.2+.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose data=temp out=temp2;
by name;
var Avg_Talk_Time_Answered_Calls Avg_ACW_Time_Answered_Calls;
run;

proc freq data=temp2;
table _name_*name / plots=freqplot( twoway=grouphorizontal);
weight col1;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Aug 2018 20:14:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/489844#M16850</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-08-25T20:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Bar Chart</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/490094#M16856</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/2153"&gt;@JeffMeyers&lt;/a&gt;&amp;nbsp;gave a great solution for using SGPLOT. I thought I would take his program and show another variation using SGPANEL:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  length name average_talk_time_answered_calls Average_ACW_Time_Answered_Calls $200;
  name='Van der Haeghen, Wendye (E003983)';
  Average_Talk_Time_Answered_Calls='116,3953488';
 Average_ACW_Time_Answered_Calls='290,4883721';output;
  name='Verhaeghe, Johny (E002902)';
  Average_Talk_Time_Answered_Calls='86,66666667';
  Average_ACW_Time_Answered_Calls='2,333333333';output;
;
run;

data temp(drop=Average_Talk_Time_Answered_Calls Average_ACW_Time_Answered_Calls) ;
set test;
Avg_Talk_Time_Answered_Calls=input(tranwrd(Average_Talk_Time_Answered_Calls,',','.'),best.);
Avg_ACW_Time_Answered_Calls=input(tranwrd(Average_ACW_Time_Answered_Calls,',','.'),best.);
run;

data plot;
    set temp;
    length category $100.;
    category='Average Talk Time Answered Calls';time=Avg_Talk_Time_Answered_Calls;output;
    category='Average ACW Time Answered Calls';time=Avg_ACW_Time_Answered_Calls;output;
run;

ods graphics / reset width=10in;
title 'Avg Talk Time (sec), ACW Talk Time (sec) Calls Answered';
proc sgpanel data=plot;
     panelby name / onepanel layout=columnlattice colheaderpos=bottom novarname;
     vbar name / response=time group=category groupdisplay=cluster grouporder=descending;
     keylegend / title='';
     rowaxis min=0 max=350 values=(0 to 350 by 50) offsetmin=0 offsetmax=0
             grid gridattrs=(color=black pattern=solid) display=(nolabel);
     colaxis display=none offsetmin=0.3 offsetmax=0.3;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Aug 2018 14:23:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/Bar-Chart/m-p/490094#M16856</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2018-08-27T14:23:11Z</dc:date>
    </item>
  </channel>
</rss>

