<?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: customizing x-axis label in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762414#M21881</link>
    <description>&lt;P&gt;X variables with "long names"? Limit on a variable name is 32 characters so that can not be the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are showing the Value of the variables then you can create custom format to show less text. Then in the SGrender apply the format to the variable. If you are showing the Label associated with the variable the assign a different label in the Sgrender call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't really see anything that really needs GTL though, looks like a basic Vbar chart with a data label. If you have 4 variables holding the response to a single question then you may have a poor data structure.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Aug 2021 01:04:25 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-08-19T01:04:25Z</dc:date>
    <item>
      <title>customizing x-axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762412#M21880</link>
      <description>&lt;P&gt;I have X variables with very long names. How can I customize the labels so that the text can wrap instead of long slanted words? I only have 5 types of variables for X and then frequency for Y, something like below. I'm using&amp;nbsp;&lt;SPAN&gt;PROC TEMPLATE + PROC SGRENDER to make the barchart because I have a large amount of data and it's much easier to get a total for each X variable than creating the frequency of each observation.&lt;/SPAN&gt;&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="katslau_0-1629334243406.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/62711iEBAEF77319BC0ECA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="katslau_0-1629334243406.png" alt="katslau_0-1629334243406.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 00:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762412#M21880</guid>
      <dc:creator>katslau</dc:creator>
      <dc:date>2021-08-19T00:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: customizing x-axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762414#M21881</link>
      <description>&lt;P&gt;X variables with "long names"? Limit on a variable name is 32 characters so that can not be the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are showing the Value of the variables then you can create custom format to show less text. Then in the SGrender apply the format to the variable. If you are showing the Label associated with the variable the assign a different label in the Sgrender call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Don't really see anything that really needs GTL though, looks like a basic Vbar chart with a data label. If you have 4 variables holding the response to a single question then you may have a poor data structure.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 01:04:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762414#M21881</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-08-19T01:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: customizing x-axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762500#M21882</link>
      <description>&lt;P&gt;Can you provide some example data, and the code you're currently using?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 11:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762500#M21882</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2021-08-19T11:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: customizing x-axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762599#M21883</link>
      <description>&lt;P&gt;First of all, this example should be simple to do with Proc SGplot. The code would look something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc SGplot data=symptom_data;
axis fitpolicy=split;
vbar symptoms / datalabel;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;In GTL, the option you want for your axis values is TICKVALUEFITPOLICY=SPLIT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 17:01:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762599#M21883</guid>
      <dc:creator>DanH_sas</dc:creator>
      <dc:date>2021-08-19T17:01:51Z</dc:date>
    </item>
    <item>
      <title>Re: customizing x-axis label</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762712#M21886</link>
      <description>&lt;P&gt;I got it figured out now, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 23:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/customizing-x-axis-label/m-p/762712#M21886</guid>
      <dc:creator>katslau</dc:creator>
      <dc:date>2021-08-19T23:11:44Z</dc:date>
    </item>
  </channel>
</rss>

