<?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 How to change values on the axis line in a bar chart? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-the-axis-line-in-a-bar-chart/m-p/507131#M17268</link>
    <description>&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I need to change values of the 'cause' from the axis values from 1,2,3,4,5 to 1=Trauma, 2= Vascular with Diabetes, 3= Vascular without diabetes', 4=Oncologic. Ideally, I would like to also assign the right gender to the columns (1=male, 2=female, for the Gender variable).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code that I have so far:&lt;/P&gt;&lt;P&gt;ods graphics / reset width=6.4in height=4.8in imagemap;&lt;/P&gt;&lt;P&gt;proc sgplot data=MEDSTUD.STRIDE_T;&lt;BR /&gt;vbar Cause / group=Gender groupdisplay=cluster fillattrs=(transparency=0.75)&lt;BR /&gt;datalabel stat=percent;&lt;BR /&gt;yaxis grid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics / reset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, could you highlight in your answer the changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach the data set in the attachments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you keep the same code to rename of the values in the same way, if you were to produce the table of frequencies? if not, please, could you post an example as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for everyone's support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Agnieszka (a complete newbie to SAS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Oct 2018 13:33:57 GMT</pubDate>
    <dc:creator>aczech2001</dc:creator>
    <dc:date>2018-10-24T13:33:57Z</dc:date>
    <item>
      <title>How to change values on the axis line in a bar chart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-the-axis-line-in-a-bar-chart/m-p/507131#M17268</link>
      <description>&lt;P&gt;Hi to all,&lt;/P&gt;&lt;P&gt;I need to change values of the 'cause' from the axis values from 1,2,3,4,5 to 1=Trauma, 2= Vascular with Diabetes, 3= Vascular without diabetes', 4=Oncologic. Ideally, I would like to also assign the right gender to the columns (1=male, 2=female, for the Gender variable).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code that I have so far:&lt;/P&gt;&lt;P&gt;ods graphics / reset width=6.4in height=4.8in imagemap;&lt;/P&gt;&lt;P&gt;proc sgplot data=MEDSTUD.STRIDE_T;&lt;BR /&gt;vbar Cause / group=Gender groupdisplay=cluster fillattrs=(transparency=0.75)&lt;BR /&gt;datalabel stat=percent;&lt;BR /&gt;yaxis grid;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods graphics / reset;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please, could you highlight in your answer the changes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I attach the data set in the attachments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you keep the same code to rename of the values in the same way, if you were to produce the table of frequencies? if not, please, could you post an example as well?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again for everyone's support!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Agnieszka (a complete newbie to SAS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 13:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-the-axis-line-in-a-bar-chart/m-p/507131#M17268</guid>
      <dc:creator>aczech2001</dc:creator>
      <dc:date>2018-10-24T13:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to change values on the axis line in a bar chart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-the-axis-line-in-a-bar-chart/m-p/507134#M17269</link>
      <description>&lt;P&gt;1) make a format and format it :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc format;&lt;/P&gt;
&lt;P&gt;value fmt&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1='Trauma'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2=' Vascular'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;.........;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc sgplot.......&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;.......&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;format&amp;nbsp;Cause fmt.;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2) using values=()&amp;nbsp; option:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc sgplot data=MEDSTUD.STRIDE_T;&lt;BR /&gt;vbar Cause / group=Gender groupdisplay=cluster fillattrs=(transparency=0.75)&lt;BR /&gt;datalabel stat=percent;&lt;BR /&gt;xaxis values=('Trauma'&amp;nbsp; 'Vascular&amp;nbsp;' ..............);&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Oct 2018 13:42:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-the-axis-line-in-a-bar-chart/m-p/507134#M17269</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-10-24T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to change values on the axis line in a bar chart?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-the-axis-line-in-a-bar-chart/m-p/512175#M17410</link>
      <description>&lt;P&gt;Here's a little more complete code, in case you need it, followed by the sample output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc import out=stride_t datafile='u:\Socket18Data.xlsx' dbms=xlsx;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc format;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;value gen_fmt&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1="Male"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2="Female"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;value causefmt&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1="Trauma"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2="Vascular with Diabetes"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3="Vascular without Diabetes"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;4="Oncologic"&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;ods graphics / reset width=6.4in height=4.8in imagemap;&lt;/P&gt;
&lt;P&gt;proc sgplot data=STRIDE_T;&lt;BR /&gt;&lt;STRONG&gt;format gender gen_fmt.;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;format cause causefmt.;&lt;/STRONG&gt;&lt;BR /&gt;vbar Cause / group=Gender groupdisplay=cluster fillattrs=(transparency=0.75)&lt;BR /&gt;datalabel stat=percent;&lt;BR /&gt;yaxis grid;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;ods graphics / reset;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="onc.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/24818i12F2B2693839AD7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="onc.png" alt="onc.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2018 13:16:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-change-values-on-the-axis-line-in-a-bar-chart/m-p/512175#M17410</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2018-11-12T13:16:48Z</dc:date>
    </item>
  </channel>
</rss>

