<?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: Changing Vbar yaxis label in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Changing-Vbar-yaxis-label/m-p/915959#M360851</link>
    <description>I'm even fine with throwing the text over on the y2 axis. but I wasn't able to figure out the yaxistable statement. I'm assuming it has to do with the numerical value issue I'm having anyway.</description>
    <pubDate>Tue, 13 Feb 2024 23:59:49 GMT</pubDate>
    <dc:creator>uopsouthpaw</dc:creator>
    <dc:date>2024-02-13T23:59:49Z</dc:date>
    <item>
      <title>Changing Vbar yaxis label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-Vbar-yaxis-label/m-p/915957#M360849</link>
      <description>&lt;P&gt;Is there a way to change the yaxis labeling instead of a numerical range (in this case 0-1) into showing a text label (see picture below.&amp;nbsp; I manually pasted the output I wanted on top of the yaxis as an example.&amp;nbsp; Aka, remove number value and replace with text equivalent)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to create an overlaid vbar chart that tracks the progress of corrective actions.&amp;nbsp; I'm taking 2 date cuts to see what progression toward closure has been made.&amp;nbsp; I assigned each progression "state" a numerical value (completeness).&amp;nbsp; However, through searching here and on the web, I haven't found a good way to graph it.&amp;nbsp; I can't assign a format to a numerical response (needed for vbar and vbarparm).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;***Example Data set and output&lt;/P&gt;&lt;P&gt;Data A1;&lt;BR /&gt;input ID X1_Pct X2_Pct;&lt;BR /&gt;datalines;&lt;BR /&gt;1 0.1 0.1&lt;BR /&gt;2 0.95 1.0&lt;BR /&gt;3 0.75 0.5&lt;BR /&gt;4 0.1 0.25&lt;BR /&gt;5 0.5 0.5&lt;BR /&gt;6 0.5 0.75&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value A1_fmt&lt;BR /&gt;0.1 = "Opened"&lt;BR /&gt;0.25 = "Investigation"&lt;BR /&gt;0.5 = "Stage 3"&lt;BR /&gt;0.75 = "Stage 4"&lt;BR /&gt;0.95 = "Pending Review"&lt;BR /&gt;1.00 = "Closed";&lt;BR /&gt;run;&lt;BR /&gt;Proc sgplot data=A1;&lt;BR /&gt;Title "Action Item: C1 C2 Overlay";&lt;BR /&gt;styleattrs datacolors=(Gray BIOY);&lt;BR /&gt;vbar ID / response=X2_PCT;&lt;BR /&gt;vbar ID / response=X1_PCT barwidth=.4 transparency=.5 nooutline ;&lt;BR /&gt;xaxis fitpolicy=rotatethin;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uopsouthpaw_1-1707867046700.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93672i3B17E1BCE20FBBDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="uopsouthpaw_1-1707867046700.png" alt="uopsouthpaw_1-1707867046700.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I swear the answer is probably so simple, but I'm not sure how to properly phrase the question on the internet to get the right answer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wes&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 23:37:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-Vbar-yaxis-label/m-p/915957#M360849</guid>
      <dc:creator>uopsouthpaw</dc:creator>
      <dc:date>2024-02-13T23:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Vbar yaxis label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-Vbar-yaxis-label/m-p/915959#M360851</link>
      <description>I'm even fine with throwing the text over on the y2 axis. but I wasn't able to figure out the yaxistable statement. I'm assuming it has to do with the numerical value issue I'm having anyway.</description>
      <pubDate>Tue, 13 Feb 2024 23:59:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-Vbar-yaxis-label/m-p/915959#M360851</guid>
      <dc:creator>uopsouthpaw</dc:creator>
      <dc:date>2024-02-13T23:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Vbar yaxis label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-Vbar-yaxis-label/m-p/915964#M360855</link>
      <description>&lt;P&gt;Is this what you want?&lt;/P&gt;
&lt;PRE&gt;Proc sgplot data=A1;
Title "Action Item: C1 C2 Overlay";
styleattrs datacolors=(Gray BIOY);
vbar ID / response=X2_PCT;
vbar ID / response=X1_PCT barwidth=.4 transparency=.5 nooutline ;
xaxis fitpolicy=rotatethin;
&lt;FONT color="#800080"&gt;&lt;STRONG&gt;yaxis values=(0.1 0.25 0.5 0.75 0.95 1.0)  valuesformat=A1_fmt.;&lt;/STRONG&gt;&lt;/FONT&gt;
run;

&lt;/PRE&gt;
&lt;P&gt;You didn't provide anything that would change the default tick mark generation of equal spaced ticks and nothing to apply the format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that using actual character values gets you into a some more complex approaches to managing your data and getting the order on the axis correct and character values have NO natural spacing interval. They would have the same spacing between ticks pretty much regardless what you try.&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/229881"&gt;@uopsouthpaw&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Is there a way to change the yaxis labeling instead of a numerical range (in this case 0-1) into showing a text label (see picture below.&amp;nbsp; I manually pasted the output I wanted on top of the yaxis as an example.&amp;nbsp; Aka, remove number value and replace with text equivalent)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to create an overlaid vbar chart that tracks the progress of corrective actions.&amp;nbsp; I'm taking 2 date cuts to see what progression toward closure has been made.&amp;nbsp; I assigned each progression "state" a numerical value (completeness).&amp;nbsp; However, through searching here and on the web, I haven't found a good way to graph it.&amp;nbsp; I can't assign a format to a numerical response (needed for vbar and vbarparm).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;***Example Data set and output&lt;/P&gt;
&lt;P&gt;Data A1;&lt;BR /&gt;input ID X1_Pct X2_Pct;&lt;BR /&gt;datalines;&lt;BR /&gt;1 0.1 0.1&lt;BR /&gt;2 0.95 1.0&lt;BR /&gt;3 0.75 0.5&lt;BR /&gt;4 0.1 0.25&lt;BR /&gt;5 0.5 0.5&lt;BR /&gt;6 0.5 0.75&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc format;&lt;BR /&gt;value A1_fmt&lt;BR /&gt;0.1 = "Opened"&lt;BR /&gt;0.25 = "Investigation"&lt;BR /&gt;0.5 = "Stage 3"&lt;BR /&gt;0.75 = "Stage 4"&lt;BR /&gt;0.95 = "Pending Review"&lt;BR /&gt;1.00 = "Closed";&lt;BR /&gt;run;&lt;BR /&gt;Proc sgplot data=A1;&lt;BR /&gt;Title "Action Item: C1 C2 Overlay";&lt;BR /&gt;styleattrs datacolors=(Gray BIOY);&lt;BR /&gt;vbar ID / response=X2_PCT;&lt;BR /&gt;vbar ID / response=X1_PCT barwidth=.4 transparency=.5 nooutline ;&lt;BR /&gt;xaxis fitpolicy=rotatethin;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="uopsouthpaw_1-1707867046700.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/93672i3B17E1BCE20FBBDC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="uopsouthpaw_1-1707867046700.png" alt="uopsouthpaw_1-1707867046700.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I swear the answer is probably so simple, but I'm not sure how to properly phrase the question on the internet to get the right answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Wes&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 00:12:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-Vbar-yaxis-label/m-p/915964#M360855</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-02-14T00:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Vbar yaxis label</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Changing-Vbar-yaxis-label/m-p/915970#M360860</link>
      <description>&lt;P&gt;That is perfect.&amp;nbsp; I knew it was just a slight alteration to the axis but couldn't for the life of me find the right set of commands.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wes&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 00:19:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Changing-Vbar-yaxis-label/m-p/915970#M360860</guid>
      <dc:creator>uopsouthpaw</dc:creator>
      <dc:date>2024-02-14T00:19:02Z</dc:date>
    </item>
  </channel>
</rss>

