<?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 looking for an example using seglabelfitpolicy=noclip in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/looking-for-an-example-using-seglabelfitpolicy-noclip/m-p/848049#M335290</link>
    <description>&lt;P&gt;Do you know when seglabelfitpolicy=noclip is useful while using vbarbasic/hbarbasic of proc sgplot?&lt;/P&gt;
&lt;P&gt;Would you have an example?&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Tue, 06 Dec 2022 09:51:18 GMT</pubDate>
    <dc:creator>xxformat_com</dc:creator>
    <dc:date>2022-12-06T09:51:18Z</dc:date>
    <item>
      <title>looking for an example using seglabelfitpolicy=noclip</title>
      <link>https://communities.sas.com/t5/SAS-Programming/looking-for-an-example-using-seglabelfitpolicy-noclip/m-p/848049#M335290</link>
      <description>&lt;P&gt;Do you know when seglabelfitpolicy=noclip is useful while using vbarbasic/hbarbasic of proc sgplot?&lt;/P&gt;
&lt;P&gt;Would you have an example?&lt;/P&gt;
&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 09:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/looking-for-an-example-using-seglabelfitpolicy-noclip/m-p/848049#M335290</guid>
      <dc:creator>xxformat_com</dc:creator>
      <dc:date>2022-12-06T09:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: looking for an example using seglabelfitpolicy=noclip</title>
      <link>https://communities.sas.com/t5/SAS-Programming/looking-for-an-example-using-seglabelfitpolicy-noclip/m-p/848144#M335328</link>
      <description>&lt;P&gt;Don't have an actual code example to hand.&lt;/P&gt;
&lt;P&gt;The use would be when your boss wants to see the entire label he has assigned to segments and the text would normally not fit within the basic graphing area but would slightly extend into the axis areas. This might be of need when a standard display area for a report does not have enough room to allow use of more graph area to fit longer labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Think labels like "Division A" "Division B" "My Very Important Justification for a Bonus" (or a paraphrase)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 16:08:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/looking-for-an-example-using-seglabelfitpolicy-noclip/m-p/848144#M335328</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-12-06T16:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: looking for an example using seglabelfitpolicy=noclip</title>
      <link>https://communities.sas.com/t5/SAS-Programming/looking-for-an-example-using-seglabelfitpolicy-noclip/m-p/848250#M335361</link>
      <description>&lt;P&gt;The seglabelfitpolicy=noclip option in proc sgplot is useful when you want to prevent the labels for the segments in a bar chart from being "clipped" or cut off. This can happen when the labels are too long to fit within the space allocated for the bars in the chart.&lt;/P&gt;
&lt;P&gt;To use the seglabelfitpolicy=noclip option, you will need to include it in the vbarbasic or hbarbasic statement in proc sgplot. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=mydata;
vbar y=value / category=category response=response group=group
seglabelfitpolicy=noclip;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;In this example, the seglabelfitpolicy=noclip option is applied to the vbar chart. This will prevent the labels for the segments in the chart from being cut off if they are too long to fit within the space allocated for the bars.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alternatively, you can use the labelmaxlen option in the vbarbasic or hbarbasic statement to specify the maximum length for the labels in the chart. This will prevent the labels from being cut off even if they are longer than the space allocated for the bars. For example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sgplot data=mydata;
vbar y=value / category=category response=response group=group
labelmaxlen=30;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;In this example, the labelmaxlen option is set to 30, which means that the labels in the chart will be truncated to 30 characters if they are longer than that. This will prevent the labels from being cut off and ensure that they fit within the space allocated for the bars in the chart.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Dec 2022 01:10:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/looking-for-an-example-using-seglabelfitpolicy-noclip/m-p/848250#M335361</guid>
      <dc:creator>webart999ARM</dc:creator>
      <dc:date>2022-12-07T01:10:46Z</dc:date>
    </item>
  </channel>
</rss>

