<?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 display amount in a barchart in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/display-amount-in-a-barchart/m-p/297961#M60309</link>
    <description>&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to display the sum of the variables on a chart (&lt;SPAN&gt;inside=sum) but I do not get what I expect, attached the output and here the code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc gchart data=mydata_plot; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;vbar3d month / width=60&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WOUTLINE=1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;type=sum &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;sumvar=var_tot &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;inside=sum&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;subgroup=&amp;amp;var1. &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;legend=legend1 &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;maxis=axis1 &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;raxis=axis2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;space=.4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/*annotate=barlabel*/&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;frame; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;title "my data by &amp;amp;var1.";&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can plot the data but I get the following warning:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The VBAR/VBAR3D chart for month could not be labeled using INSIDE= because the labels are wider than the&lt;BR /&gt;bars.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is possible solution? Can I somehow display the value in the chart or could I at least print the table with the values under the table? In case yes... how? tahnks a lof in advance for your hints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BRs, SH&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12971i2B50E28016E397C3/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="plot.PNG" title="plot.PNG" /&gt;</description>
    <pubDate>Tue, 13 Sep 2016 10:17:42 GMT</pubDate>
    <dc:creator>Sir_Highbury</dc:creator>
    <dc:date>2016-09-13T10:17:42Z</dc:date>
    <item>
      <title>display amount in a barchart</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/display-amount-in-a-barchart/m-p/297961#M60309</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to display the sum of the variables on a chart (&lt;SPAN&gt;inside=sum) but I do not get what I expect, attached the output and here the code&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc gchart data=mydata_plot; &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;vbar3d month / width=60&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;WOUTLINE=1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;type=sum &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;sumvar=var_tot &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;inside=sum&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;subgroup=&amp;amp;var1. &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;legend=legend1 &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;maxis=axis1 &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;raxis=axis2&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;space=.4&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;/*annotate=barlabel*/&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;frame; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;title "my data by &amp;amp;var1.";&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can plot the data but I get the following warning:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The VBAR/VBAR3D chart for month could not be labeled using INSIDE= because the labels are wider than the&lt;BR /&gt;bars.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which is possible solution? Can I somehow display the value in the chart or could I at least print the table with the values under the table? In case yes... how? tahnks a lof in advance for your hints.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BRs, SH&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12971i2B50E28016E397C3/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="plot.PNG" title="plot.PNG" /&gt;</description>
      <pubDate>Tue, 13 Sep 2016 10:17:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/display-amount-in-a-barchart/m-p/297961#M60309</guid>
      <dc:creator>Sir_Highbury</dc:creator>
      <dc:date>2016-09-13T10:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: display amount in a barchart</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/display-amount-in-a-barchart/m-p/297989#M60310</link>
      <description>&lt;P&gt;Do you mean something like this:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/?s=datalabel+barchart" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/?s=datalabel+barchart&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Get your total into a variable, then use datalabel options on one of the newer procedures to display it. &amp;nbsp;However it sounds like the value your trying to display in each of the bars is too wide to fit (i.e. it would wrap over the other bars). &amp;nbsp;Either size your bars up, or reduce font/size of text might help.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2016 12:20:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/display-amount-in-a-barchart/m-p/297989#M60310</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-09-13T12:20:53Z</dc:date>
    </item>
  </channel>
</rss>

