<?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 Show/Hide Labels due to number of bars in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278211#M54045</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What is the way in JSL to know how many bars a Graph Builder Bar chart has?&lt;/P&gt;&lt;P&gt;If there are many bars (&amp;gt;20), I would like to hide bar labels.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jun 2023 23:31:48 GMT</pubDate>
    <dc:creator>tom_abramov</dc:creator>
    <dc:date>2023-06-09T23:31:48Z</dc:date>
    <item>
      <title>Show/Hide Labels due to number of bars</title>
      <link>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278211#M54045</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;What is the way in JSL to know how many bars a Graph Builder Bar chart has?&lt;/P&gt;&lt;P&gt;If there are many bars (&amp;gt;20), I would like to hide bar labels.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:31:48 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278211#M54045</guid>
      <dc:creator>tom_abramov</dc:creator>
      <dc:date>2023-06-09T23:31:48Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide Labels due to number of bars</title>
      <link>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278225#M54047</link>
      <description>&lt;P&gt;You can check to see what the Min, Max and Inc for the axis of interest is, determine the number of bars from that, an then set the labeling as desired.&lt;/P&gt;</description>
      <pubDate>Sun, 12 Jul 2020 18:17:02 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278225#M54047</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-12T18:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide Labels due to number of bars</title>
      <link>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278249#M54055</link>
      <description>&lt;P&gt;The Bar element depends on the levels of the grouping variable. So you could also use the Summarize() function to determine the number of bars.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 09:59:03 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278249#M54055</guid>
      <dc:creator>Mark_Bailey</dc:creator>
      <dc:date>2020-07-13T09:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide Labels due to number of bars</title>
      <link>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278312#M54056</link>
      <description>&lt;P&gt;Thank you Jim.&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687"&gt;@txnelson&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another question: What is the syntax of adding labels after creating the chart.&lt;/P&gt;&lt;P&gt;The following doesn't work&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;gb = Graph Builder(
	Variables( X( :age ), Y( :height ), Group Y( :sex ) ),
	Elements( Bar( X, Y, Legend( 1 )  ) )
);

gb &amp;lt;&amp;lt;  Label( "Label by Value" );&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 13:23:21 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278312#M54056</guid>
      <dc:creator>tom_abramov</dc:creator>
      <dc:date>2020-07-13T13:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide Labels due to number of bars</title>
      <link>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278316#M54057</link>
      <description>&lt;P&gt;The various labels are all accessible via the Tree Structure of the Output Report.&amp;nbsp; To learn about the them, read the sections in the Scripting Guide on Display Trees.&amp;nbsp; The Scripting Guide can be found in the JMP Documentation Library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Help==&amp;gt;JMP Documentation Library&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="treestr.PNG" style="width: 757px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/25298i293DB956B47C1503/image-size/large?v=v2&amp;amp;px=999" role="button" title="treestr.PNG" alt="treestr.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is a little script that changes the various Labels on this style of graph&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/big class.jmp" );

gb = Graph Builder(
	Variables( X( :age ), Y( :height ), Group Y( :sex ) ),
	Elements( Bar( X, Y, Legend( 1 ) ) )
);

gbr = gb &amp;lt;&amp;lt; report;

gbr[Text Edit Box( 1 )] &amp;lt;&amp;lt; set text( " This is the Header" );
gbr[Text Edit Box( 4 )] &amp;lt;&amp;lt; set text( " This is the Y Axis Label" );
gbr[Text Edit Box( 3 )] &amp;lt;&amp;lt; set text( " This is the X Axis Label" );&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jul 2020 13:51:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278316#M54057</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2020-07-13T13:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: Show/Hide Labels due to number of bars</title>
      <link>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278352#M54060</link>
      <description>&lt;P&gt;Thanks Jim and sorry for&amp;nbsp;unclarity.&lt;/P&gt;&lt;P&gt;I ment labels of bars (Label by value), not axises.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.jmp.com/t5/user/viewprofilepage/user-id/2687" target="_blank"&gt;@txnelson&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jul 2020 16:04:41 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Show-Hide-Labels-due-to-number-of-bars/m-p/278352#M54060</guid>
      <dc:creator>tom_abramov</dc:creator>
      <dc:date>2020-07-13T16:04:41Z</dc:date>
    </item>
  </channel>
</rss>

