<?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 can I give a very long label for one of the xaxistable groups? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488714#M16806</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a very long text for the label for one of the&amp;nbsp;xaxistable group and when I&amp;nbsp;try to generate the&amp;nbsp;graph with that text, that particular group do not show up.&amp;nbsp;However when I shorten the text to something which can fit on one line then it appears fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if it is possible give a very long text (which wraps over to multiple lines) for the label for the axistable group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Chirag.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 20:56:41 GMT</pubDate>
    <dc:creator>Chiru27</dc:creator>
    <dc:date>2018-08-21T20:56:41Z</dc:date>
    <item>
      <title>How can I give a very long label for one of the xaxistable groups?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488714#M16806</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a very long text for the label for one of the&amp;nbsp;xaxistable group and when I&amp;nbsp;try to generate the&amp;nbsp;graph with that text, that particular group do not show up.&amp;nbsp;However when I shorten the text to something which can fit on one line then it appears fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not sure if it is possible give a very long text (which wraps over to multiple lines) for the label for the axistable group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using&amp;nbsp;SAS 9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;BR /&gt;Chirag.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 20:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488714#M16806</guid>
      <dc:creator>Chiru27</dc:creator>
      <dc:date>2018-08-21T20:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I give a very long label for one of the xaxistable groups?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488749#M16808</link>
      <description>Could you please send us the code you are using to generate the graph. could you please also check your code to see if you are using the XAXIS option FITPOLICY, it controls how text for tickmarks displays.</description>
      <pubDate>Wed, 22 Aug 2018 01:17:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488749#M16808</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-08-22T01:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I give a very long label for one of the xaxistable groups?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488752#M16809</link>
      <description>Thanks for the response. I don't think fitpolicy is an option for xaxistable?&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Aug 2018 01:48:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488752#M16809</guid>
      <dc:creator>Chiru27</dc:creator>
      <dc:date>2018-08-22T01:48:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I give a very long label for one of the xaxistable groups?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488754#M16810</link>
      <description>if you could send the code you have it will help me to see where we could update the code. &lt;BR /&gt;&lt;BR /&gt;since you have not used the FITPOLICY, I would suggest you to try using it as shown in the example below, &lt;BR /&gt;&lt;BR /&gt;proc sgplot data=example&lt;BR /&gt;        noautolegend noborder;&lt;BR /&gt;  vbar name / response=height&lt;BR /&gt;        dataskin=pressed nostatlabel&lt;BR /&gt;        baselineattrs=(thickness=0)&lt;BR /&gt;        fillattrs=graphdata3&lt;BR /&gt;        filltype=gradient;&lt;BR /&gt;  xaxis display=(nolabel noline noticks)&lt;BR /&gt;         fitpolicy=SPLITALWAYS  SPLITCHAR=" ";&lt;BR /&gt;  yaxis display=(noline);&lt;BR /&gt;run;</description>
      <pubDate>Wed, 22 Aug 2018 02:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488754#M16810</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2018-08-22T02:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: How can I give a very long label for one of the xaxistable groups?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488917#M16814</link>
      <description>&lt;P&gt;How long is long?&lt;/P&gt;
&lt;P&gt;What are the dimensions of your display?&lt;/P&gt;
&lt;P&gt;If you are attempting to write 200+ characters and only have 2 inches there could be an issue with default font sizes for instance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code would really help answer questions or point up alternatives.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you need to investigate labelattrs to change font size?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 15:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488917#M16814</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-22T15:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I give a very long label for one of the xaxistable groups?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488946#M16815</link>
      <description>HI,&lt;BR /&gt;&lt;BR /&gt;Below is the code that I am trying to use.&lt;BR /&gt;&lt;BR /&gt;and format trtf is:&lt;BR /&gt;&lt;BR /&gt;1 ='this is a very long text that can not fit on one line';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC SGPLOT data=atrisk;&lt;BR /&gt;&lt;BR /&gt;styleattrs datacontrastcolors=(blue red);&lt;BR /&gt;&lt;BR /&gt;step x=week y=_y / group=trt01pn_ lineattrs=(pattern=solid) name='s';&lt;BR /&gt;&lt;BR /&gt;scatter x=week y=censor_ / markerattrs=(symbol=plus) GROUP=trt01pn_;&lt;BR /&gt;&lt;BR /&gt;xaxistable risk / x=week class=trt01pn_ location=outside&lt;BR /&gt;&lt;BR /&gt;colorgroup=trt01pn_ separator LABELATTRS=(size=*7.8*);;&lt;BR /&gt;&lt;BR /&gt;keylegend 's' / location=inside position=bottomright down=*3*&lt;BR /&gt;valueattrs=(size=*8*);&lt;BR /&gt;&lt;BR /&gt;yaxis min=*0.0* label = 'Probability of ventilation free survival';&lt;BR /&gt;&lt;BR /&gt;xaxis values = (*0*,*13*,*26*,*39*,*52*,*65*,*78*,*91*,*104*,*117*,*130*,&lt;BR /&gt;*143*) label = 'Time (weeks)' offsetmax=*0.05*;&lt;BR /&gt;&lt;BR /&gt;format trt01pn_ trtf.;&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;Thanks!&lt;BR /&gt;Chirag.&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Aug 2018 15:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/488946#M16815</guid>
      <dc:creator>Chiru27</dc:creator>
      <dc:date>2018-08-22T15:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: How can I give a very long label for one of the xaxistable groups?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/489075#M16816</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/227566"&gt;@Chiru27&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;HI,&lt;BR /&gt;&lt;BR /&gt;Below is the code that I am trying to use.&lt;BR /&gt;&lt;BR /&gt;and format trtf is:&lt;BR /&gt;&lt;BR /&gt;1 ='this is a very long text that can not fit on one line';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC SGPLOT data=atrisk;&lt;BR /&gt;&lt;BR /&gt;styleattrs datacontrastcolors=(blue red);&lt;BR /&gt;&lt;BR /&gt;step x=week y=_y / group=trt01pn_ lineattrs=(pattern=solid) name='s';&lt;BR /&gt;&lt;BR /&gt;scatter x=week y=censor_ / markerattrs=(symbol=plus) GROUP=trt01pn_;&lt;BR /&gt;&lt;BR /&gt;xaxistable risk / x=week class=trt01pn_ location=outside&lt;BR /&gt;&lt;BR /&gt;colorgroup=trt01pn_ separator LABELATTRS=(size=*7.8*);;&lt;BR /&gt;&lt;BR /&gt;keylegend 's' / location=inside position=bottomright down=*3*&lt;BR /&gt;valueattrs=(size=*8*);&lt;BR /&gt;&lt;BR /&gt;yaxis min=*0.0* label = 'Probability of ventilation free survival';&lt;BR /&gt;&lt;BR /&gt;xaxis values = (*0*,*13*,*26*,*39*,*52*,*65*,*78*,*91*,*104*,*117*,*130*,&lt;BR /&gt;*143*) label = 'Time (weeks)' offsetmax=*0.05*;&lt;BR /&gt;&lt;BR /&gt;format trt01pn_ trtf.;&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;Thanks!&lt;BR /&gt;Chirag.&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If I use simpler step plot with a SAS supplied data set, SASHELP.STOCKS, I can generate an xaxistable with longer text than that where the label displays. This shows the xaxistable label but the LEGEND is not displayed. The xaxistable label wraps to three lines in my default graph area. How many formatted values of your variable do you have? Perhaps the issue is that for the number of rows it is attempting to display there is no room to wrap the label text. You are using options I do not have with SAS 9.4M4,&amp;nbsp;such as separator,&amp;nbsp;so I have no idea what impact those may have on this issue. A smaller size for LABELATTRS does allow the legend to appear but I still have the axis row label wrap to three lines and smaller values that wrap to 2 lines may or may not have the legend appear.&lt;/P&gt;
&lt;PRE&gt;proc format library=work;
value $trtf
'IBM'= "This is a very very very very really really really long test label"
;
run;

proc sgplot data=sashelp.stocks
  (where=(year(date)=2001 ));
  step x=date y=close/ group=stock;
  xaxistable low/x=date class=stock;
  format stock $trtf.;&lt;BR /&gt;  format low dollar4.0 ;
run;
&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Aug 2018 22:18:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/489075#M16816</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-08-22T22:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: How can I give a very long label for one of the xaxistable groups?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/489099#M16817</link>
      <description>Thanks Ballardw. Yes, trt01pn_ had 2 values and both had very long text&lt;BR /&gt;that wrapped over to multiple lines. Did you try multiple rows? did it&lt;BR /&gt;work?&lt;BR /&gt;</description>
      <pubDate>Thu, 23 Aug 2018 00:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-can-I-give-a-very-long-label-for-one-of-the-xaxistable/m-p/489099#M16817</guid>
      <dc:creator>Chiru27</dc:creator>
      <dc:date>2018-08-23T00:19:16Z</dc:date>
    </item>
  </channel>
</rss>

