<?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: SGPlot highlow to wrap y values in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684047#M20468</link>
    <description>&lt;P&gt;Thanks a lot for help! It works great. I tried fitpolicy=split and split='/' but it did not work.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2020 19:50:21 GMT</pubDate>
    <dc:creator>jsbyxws</dc:creator>
    <dc:date>2020-09-15T19:50:21Z</dc:date>
    <item>
      <title>SGPlot highlow to wrap y values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684023#M20466</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I created a simple AE example to show my problems. In SGPlot for highlow, y=AEDECOD. When y axis option of display "novalues" is commented, it does show AEDECOD on the left. But some AEDECOD is long, I want to wrap it for example "Influenza" (wrap) "like illness". Is there any way to do it? Below is my code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for reading and help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data AE;
	length AEDECOD $200;
	AEDECOD='Influenza like illness';AESTDY=1;AEENDY=10;output;
	AEDECOD='Haemarthrosis';AESTDY=3;AEENDY=14;output;
run;
&lt;BR /&gt;proc sgplot data=AE;		
	highlow y=AEDECOD low=AESTDY high=AEENDY 
		/ type=bar lineattrs=(color=black pattern=solid) barwidth=0.8;		
	xaxis grid display=(nolabel) values=(0 to 15);
	yaxis grid display=(noticks /*novalues*/ nolabel);		
run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 19:06:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684023#M20466</guid>
      <dc:creator>jsbyxws</dc:creator>
      <dc:date>2020-09-15T19:06:18Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot highlow to wrap y values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684044#M20467</link>
      <description>&lt;P&gt;1. Choose a "split character". I will use '/'.&lt;/P&gt;
&lt;P&gt;2. Insert the split character where you want the string to split.&lt;/P&gt;
&lt;P&gt;3. Add FITPOLICY=SPLITALWAYS SplitChar='/' to the YAXIS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data AE;
	length AEDECOD $200;
	AEDECOD='Influenza/like illness';AESTDY=1;AEENDY=10;output;
	AEDECOD='Haemarthrosis';AESTDY=3;AEENDY=14;output;
run;

proc sgplot data=AE;		
	highlow y=AEDECOD low=AESTDY high=AEENDY 
		/ type=bar lineattrs=(color=black pattern=solid) barwidth=0.8;		
	xaxis grid display=(nolabel) values=(0 to 15);
	yaxis grid display=(noticks /*novalues*/ nolabel) 
              fitpolicy=SplitAlways splitchar='/';		
run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 15 Sep 2020 19:47:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684044#M20467</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2020-09-15T19:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot highlow to wrap y values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684047#M20468</link>
      <description>&lt;P&gt;Thanks a lot for help! It works great. I tried fitpolicy=split and split='/' but it did not work.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 19:50:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684047#M20468</guid>
      <dc:creator>jsbyxws</dc:creator>
      <dc:date>2020-09-15T19:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot highlow to wrap y values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684050#M20469</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/229101"&gt;@jsbyxws&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thanks a lot for help! It works great. I tried fitpolicy=split and split='/' but it did not work.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If the fitpolicy=split is used the split only takes place when the text is "long", meaning that the current space used for the tick value is not long enough to hold the value on a single line. So when "Influenza / like illness" fits on a line it isn't split. But "Influenze like / longer text" might.&lt;/P&gt;
&lt;P&gt;This is dependent on size of graph and other options like font size so is a bit problematic for reliable splitting of "short" values.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 19:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684050#M20469</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-09-15T19:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot highlow to wrap y values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684051#M20470</link>
      <description>&lt;P&gt;Oh. That's why! Thanks for the explanation.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2020 19:58:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684051#M20470</guid>
      <dc:creator>jsbyxws</dc:creator>
      <dc:date>2020-09-15T19:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: SGPlot highlow to wrap y values</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684060#M20471</link>
      <description>The SPLITALWAYS only works when the axis type is discrete.  Try adding type=discrete to your YAXIS statement.  If you're using numeric coded values it might be using a linear one instead.&lt;BR /&gt;&lt;BR /&gt;SPLITALWAYS&lt;BR /&gt;&lt;BR /&gt;always splits the values at the character or characters specified in the SPLITCHAR= option. If the value does not contain any of the specified split characters, a split does not occur.&lt;BR /&gt;Default 	The default split character is a space.&lt;BR /&gt;Restriction 	This option has no effect unless the axis is discrete.&lt;BR /&gt;Tip 	You can specify the split character using the SPLITCHAR= option.&lt;BR /&gt;Example 	Fit Policies for Axes</description>
      <pubDate>Tue, 15 Sep 2020 20:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/SGPlot-highlow-to-wrap-y-values/m-p/684060#M20471</guid>
      <dc:creator>JeffMeyers</dc:creator>
      <dc:date>2020-09-15T20:10:01Z</dc:date>
    </item>
  </channel>
</rss>

