<?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 Three dimensional data bar charts in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Three-dimensional-data-bar-charts/m-p/701076#M214638</link>
    <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a three dimensional data (year, source and mechanism) as in the example below and trying to display it via PROC SGPANEL but the code below stacks the source dimension on top of each other as opposed to what I want which is side by side. Lastly, I also would like to be able to show the labels for each three dimensions but could show only two (year and source). I was wondering if anyone can help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I'm not trying to create a 3-dimensional figure. Just trying to show my three-dimensional data in a usual 2-dimensional barchart by putting bars next to each other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA cars1;&lt;BR /&gt;length Mechanism $10. Year $9.;&lt;BR /&gt;INPUT source $ Mechanism $ Year $ Count;&lt;BR /&gt;CARDS;&lt;BR /&gt;BCTR Scooter 2016/2017 17&lt;BR /&gt;BCTR Scooter 2017/2018 13&lt;BR /&gt;BCTR Scooter 2018/2019 17&lt;BR /&gt;BCTR Car 2016/2017 119&lt;BR /&gt;BCTR Car 2017/2018 133&lt;BR /&gt;BCTR Car 2018/2019 118&lt;BR /&gt;BCTR Motorcycle 2016/2017 47&lt;BR /&gt;BCTR Motorcycle 2017/2018 62&lt;BR /&gt;BCTR Motorcycle 2018/2019 63&lt;BR /&gt;BCTR Bicycle 2016/2017 82&lt;BR /&gt;BCTR Bicycle 2017/2018 90&lt;BR /&gt;BCTR Bicycle 2018/2019 85&lt;BR /&gt;BCTR Pedestrian 2016/2017 72&lt;BR /&gt;BCTR Pedestrian 2017/2018 82&lt;BR /&gt;BCTR Pedestrian 2018/2019 83&lt;BR /&gt;DAD Scooter 2016/2017 26&lt;BR /&gt;DAD Scooter 2017/2018 21&lt;BR /&gt;DAD Scooter 2018/2019 20&lt;BR /&gt;DAD Car 2016/2017 264&lt;BR /&gt;DAD Car 2017/2018 292&lt;BR /&gt;DAD Car 2018/2019 262&lt;BR /&gt;DAD Motorcycle 2016/2017 105&lt;BR /&gt;DAD Motorcycle 2017/2018 115&lt;BR /&gt;DAD Motorcycle 2018/2019 117&lt;BR /&gt;DAD Bicycle 2016/2017 314&lt;BR /&gt;DAD Bicycle 2017/2018 293&lt;BR /&gt;DAD Bicycle 2018/2019 321&lt;BR /&gt;DAD Pedestrian 2016/2017 176&lt;BR /&gt;DAD Pedestrian 2017/2018 154&lt;BR /&gt;DAD Pedestrian 2018/2019 150&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgpanel data=cars1;&lt;BR /&gt;panelby year /layout=columnlattice&lt;BR /&gt;onepanel&lt;BR /&gt;colheaderpos=bottom&lt;BR /&gt;rows=1&lt;BR /&gt;novarname&lt;BR /&gt;noborder;&lt;BR /&gt;vbar mechanism /group=source&lt;BR /&gt;response=count;&lt;BR /&gt;colaxis display=none;&lt;BR /&gt;rowaxis grid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Nov 2020 21:35:47 GMT</pubDate>
    <dc:creator>Recep</dc:creator>
    <dc:date>2020-11-23T21:35:47Z</dc:date>
    <item>
      <title>Three dimensional data bar charts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Three-dimensional-data-bar-charts/m-p/701076#M214638</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a three dimensional data (year, source and mechanism) as in the example below and trying to display it via PROC SGPANEL but the code below stacks the source dimension on top of each other as opposed to what I want which is side by side. Lastly, I also would like to be able to show the labels for each three dimensions but could show only two (year and source). I was wondering if anyone can help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Recep&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: I'm not trying to create a 3-dimensional figure. Just trying to show my three-dimensional data in a usual 2-dimensional barchart by putting bars next to each other.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA cars1;&lt;BR /&gt;length Mechanism $10. Year $9.;&lt;BR /&gt;INPUT source $ Mechanism $ Year $ Count;&lt;BR /&gt;CARDS;&lt;BR /&gt;BCTR Scooter 2016/2017 17&lt;BR /&gt;BCTR Scooter 2017/2018 13&lt;BR /&gt;BCTR Scooter 2018/2019 17&lt;BR /&gt;BCTR Car 2016/2017 119&lt;BR /&gt;BCTR Car 2017/2018 133&lt;BR /&gt;BCTR Car 2018/2019 118&lt;BR /&gt;BCTR Motorcycle 2016/2017 47&lt;BR /&gt;BCTR Motorcycle 2017/2018 62&lt;BR /&gt;BCTR Motorcycle 2018/2019 63&lt;BR /&gt;BCTR Bicycle 2016/2017 82&lt;BR /&gt;BCTR Bicycle 2017/2018 90&lt;BR /&gt;BCTR Bicycle 2018/2019 85&lt;BR /&gt;BCTR Pedestrian 2016/2017 72&lt;BR /&gt;BCTR Pedestrian 2017/2018 82&lt;BR /&gt;BCTR Pedestrian 2018/2019 83&lt;BR /&gt;DAD Scooter 2016/2017 26&lt;BR /&gt;DAD Scooter 2017/2018 21&lt;BR /&gt;DAD Scooter 2018/2019 20&lt;BR /&gt;DAD Car 2016/2017 264&lt;BR /&gt;DAD Car 2017/2018 292&lt;BR /&gt;DAD Car 2018/2019 262&lt;BR /&gt;DAD Motorcycle 2016/2017 105&lt;BR /&gt;DAD Motorcycle 2017/2018 115&lt;BR /&gt;DAD Motorcycle 2018/2019 117&lt;BR /&gt;DAD Bicycle 2016/2017 314&lt;BR /&gt;DAD Bicycle 2017/2018 293&lt;BR /&gt;DAD Bicycle 2018/2019 321&lt;BR /&gt;DAD Pedestrian 2016/2017 176&lt;BR /&gt;DAD Pedestrian 2017/2018 154&lt;BR /&gt;DAD Pedestrian 2018/2019 150&lt;/P&gt;&lt;P&gt;;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sgpanel data=cars1;&lt;BR /&gt;panelby year /layout=columnlattice&lt;BR /&gt;onepanel&lt;BR /&gt;colheaderpos=bottom&lt;BR /&gt;rows=1&lt;BR /&gt;novarname&lt;BR /&gt;noborder;&lt;BR /&gt;vbar mechanism /group=source&lt;BR /&gt;response=count;&lt;BR /&gt;colaxis display=none;&lt;BR /&gt;rowaxis grid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 21:35:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Three-dimensional-data-bar-charts/m-p/701076#M214638</guid>
      <dc:creator>Recep</dc:creator>
      <dc:date>2020-11-23T21:35:47Z</dc:date>
    </item>
    <item>
      <title>Re: Three dimensional data bar charts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Three-dimensional-data-bar-charts/m-p/701083#M214645</link>
      <description>&lt;P&gt;Is this what you are looking for:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sgpanel data=cars1;
panelby year /layout=columnlattice
onepanel
colheaderpos=bottom
rows=1
novarname
noborder;
vbar mechanism /group=source &lt;FONT size="6" color="#800080"&gt;&lt;STRONG&gt;groupdisplay=cluster&lt;/STRONG&gt;&lt;/FONT&gt;
response=count;
colaxis display=none;
rowaxis grid;
run;&lt;/PRE&gt;
&lt;P&gt;I am not quite sure what you mean by "labels each of three dimensions". Can you describe what variable has the value you want and where it should appear?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 21:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Three-dimensional-data-bar-charts/m-p/701083#M214645</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-23T21:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Three dimensional data bar charts</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Three-dimensional-data-bar-charts/m-p/701089#M214649</link>
      <description>Thanks a lot! I was so stuck on including an additional VBAR or GROUP= statement that I did not even think about GROUPDISPLAY! Really appreciate your help!!!</description>
      <pubDate>Mon, 23 Nov 2020 22:14:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Three-dimensional-data-bar-charts/m-p/701089#M214649</guid>
      <dc:creator>Recep</dc:creator>
      <dc:date>2020-11-23T22:14:24Z</dc:date>
    </item>
  </channel>
</rss>

