<?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 proc gchart with blank vbars for zero frequency records in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191032#M7057</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to generate the vbar with proc gchart where i would like to display the blank vbar for those which are not there in data. For example, from the below data i will get the vbar char for india, japan, usa, china depending upon the number of records there are in the data, however i will need to display atleast in the label on maxis other countries but with no vbar as those countries records are not in the data. like i&amp;nbsp; need to display korea in maxis label but no vbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt; input countrycd country$;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; india&lt;/P&gt;&lt;P&gt;1 india&lt;/P&gt;&lt;P&gt;1 india&lt;/P&gt;&lt;P&gt;1 india&lt;/P&gt;&lt;P&gt;2 japan&lt;/P&gt;&lt;P&gt;2 japan&lt;/P&gt;&lt;P&gt;3 usa &lt;/P&gt;&lt;P&gt;4 china&lt;/P&gt;&lt;P&gt;4 china&lt;/P&gt;&lt;P&gt;4 china&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 value=('india' 'japan' 'usa' 'china' 'korea') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data=have;&lt;/P&gt;&lt;P&gt;vbar country / discrete maxis=axis1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/8083_pastedImage_0.png" style="width: 269px; height: 644px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 30 Nov 2014 13:28:10 GMT</pubDate>
    <dc:creator>Jagadishkatam</dc:creator>
    <dc:date>2014-11-30T13:28:10Z</dc:date>
    <item>
      <title>proc gchart with blank vbars for zero frequency records</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191032#M7057</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to generate the vbar with proc gchart where i would like to display the blank vbar for those which are not there in data. For example, from the below data i will get the vbar char for india, japan, usa, china depending upon the number of records there are in the data, however i will need to display atleast in the label on maxis other countries but with no vbar as those countries records are not in the data. like i&amp;nbsp; need to display korea in maxis label but no vbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt; input countrycd country$;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1&amp;nbsp; india&lt;/P&gt;&lt;P&gt;1 india&lt;/P&gt;&lt;P&gt;1 india&lt;/P&gt;&lt;P&gt;1 india&lt;/P&gt;&lt;P&gt;2 japan&lt;/P&gt;&lt;P&gt;2 japan&lt;/P&gt;&lt;P&gt;3 usa &lt;/P&gt;&lt;P&gt;4 china&lt;/P&gt;&lt;P&gt;4 china&lt;/P&gt;&lt;P&gt;4 china&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;axis1 value=('india' 'japan' 'usa' 'china' 'korea') ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data=have;&lt;/P&gt;&lt;P&gt;vbar country / discrete maxis=axis1;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" src="https://communities.sas.com/legacyfs/online/8083_pastedImage_0.png" style="width: 269px; height: 644px;" /&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 13:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191032#M7057</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-11-30T13:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart with blank vbars for zero frequency records</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191033#M7058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of putting those values on the AXIS statement, put them on the MIDPOINTS option of the VBAR statement:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;proc gchart data=have;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vbar country / discrete midpoints=(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;'india' 'japan' 'usa' 'china' 'korea'&lt;/SPAN&gt;);&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;quit;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hope this helps!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Dan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Nov 2014 21:05:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191033#M7058</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2014-11-30T21:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart with blank vbars for zero frequency records</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191034#M7059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan for your response and it helped me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In continuation to the above discussion, i would like to check with you , how we could create blank vbar for subgroup and group if the subgroup and group records are missing. To explain further, consider that we have category and sub-category as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;input subcat$ cat$;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;A india&lt;/P&gt;&lt;P&gt;A india&lt;/P&gt;&lt;P&gt;A india&lt;/P&gt;&lt;P&gt;A india&lt;/P&gt;&lt;P&gt;B japan&lt;/P&gt;&lt;P&gt;B japan&lt;/P&gt;&lt;P&gt;C usa&lt;/P&gt;&lt;P&gt;A china&lt;/P&gt;&lt;P&gt;A china&lt;/P&gt;&lt;P&gt;A china&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc gchart data=have;&lt;/P&gt;&lt;P&gt;vbar subcat&amp;nbsp; / discrete group=cat&amp;nbsp; subgroup=subcat ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8122_Capture.JPG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This generates a graph as above, however if would like to create a blank vbar for korea with same subgroups. For this , should i need to create dummy records for korea in the data&lt;/P&gt;&lt;P&gt;or is there anything similar to midpoints. Please suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 02:09:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191034#M7059</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-12-02T02:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart with blank vbars for zero frequency records</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191035#M7060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;I think this will work for you:&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;axis1 order=("china" "india" "japan" "korea" "usa"); &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc gchart data=have;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;vbar subcat&amp;nbsp; / discrete group=cat&amp;nbsp; subgroup=subcat gaxis=axis1;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 04:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191035#M7060</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2014-12-02T04:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: proc gchart with blank vbars for zero frequency records</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191036#M7061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dan it helped&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 09:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/proc-gchart-with-blank-vbars-for-zero-frequency-records/m-p/191036#M7061</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2014-12-02T09:00:01Z</dc:date>
    </item>
  </channel>
</rss>

