<?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: Graph Builder, stack bar with N as summary and % of factor as label in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Graph-Builder-stack-bar-with-N-as-summary-and-of-factor-as-label/m-p/883042#M104734</link>
    <description>&lt;P&gt;Moving Age from the X-Axis role to the Group X role, with Label set to Label by Percent, will label the bars with the percentage within each age group without scripting. However this seems to lose the Y-Axis title and labeling.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to get the Y-Axis back by adding a dummy variable (in this case, Weight) to the Y-Axis role. Maybe someone else can chime in with a more proper way to retain the Y-Axis "Counts" labeling when there is nothing in the X-Axis role.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_2-1751531987625.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77759i574B202458C48AFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_2-1751531987625.png" alt="christianz_2-1751531987625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Jul 2025 08:40:26 GMT</pubDate>
    <dc:creator>christian-z</dc:creator>
    <dc:date>2025-07-03T08:40:26Z</dc:date>
    <item>
      <title>Graph Builder, stack bar with N as summary and % of factor as label</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-stack-bar-with-N-as-summary-and-of-factor-as-label/m-p/882936#M104713</link>
      <description>&lt;P&gt;Hi y'all.&amp;nbsp;&lt;BR /&gt;Is there a way to have the labels be different from the summary statistic in a stacked bar chart?&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I basically want the bar chart to look like this script but instead of the labels being the raw count, I want it to be percentages of M/F per age.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;Without drawing myself via scripting, (I can do it if that's the only way).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1 );
dt = open("$SAMPLE_DATA\Big Class.jmp");
dt &amp;lt;&amp;lt; Graph Builder(
	Variables( X( :age ), Overlay( :sex ) ),
	Elements(
		Bar(
			X,
			Legend( 4 ),
			Bar Style( "Stacked" ),
			Summary Statistic( "N" ),
			Label( "Label by Value" )
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 16:31:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-stack-bar-with-N-as-summary-and-of-factor-as-label/m-p/882936#M104713</guid>
      <dc:creator>vince_faller</dc:creator>
      <dc:date>2025-07-02T16:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder, stack bar with N as summary and % of factor as label</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-stack-bar-with-N-as-summary-and-of-factor-as-label/m-p/883042#M104734</link>
      <description>&lt;P&gt;Moving Age from the X-Axis role to the Group X role, with Label set to Label by Percent, will label the bars with the percentage within each age group without scripting. However this seems to lose the Y-Axis title and labeling.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was able to get the Y-Axis back by adding a dummy variable (in this case, Weight) to the Y-Axis role. Maybe someone else can chime in with a more proper way to retain the Y-Axis "Counts" labeling when there is nothing in the X-Axis role.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="christianz_2-1751531987625.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/77759i574B202458C48AFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="christianz_2-1751531987625.png" alt="christianz_2-1751531987625.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 08:40:26 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-stack-bar-with-N-as-summary-and-of-factor-as-label/m-p/883042#M104734</guid>
      <dc:creator>christian-z</dc:creator>
      <dc:date>2025-07-03T08:40:26Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder, stack bar with N as summary and % of factor as label</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-stack-bar-with-N-as-summary-and-of-factor-as-label/m-p/883179#M104744</link>
      <description>&lt;P&gt;As an alternative, you can use Label by row - and calculate the percentages manually.&lt;BR /&gt;&lt;BR /&gt;OK to generate the graph - but doesn't feel like JMP, more like Photoshop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The big disadvantage:&lt;BR /&gt;In Graph Builder there is not command to specify which column should be used as label.&lt;BR /&gt;If you activate the Label to make this Graph show the right information, you will destroy all the other graphs : (&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names default to here( 1 );
dt = open("$SAMPLE_DATA\Big Class.jmp");
dt:name &amp;lt;&amp;lt; Label( 0 );
percent = dt &amp;lt;&amp;lt; New Column( "percent",
	Format( "Percent", 12, 0 ),
	Formula( Col Number( :height, :age, :sex ) / Col Number( :height, :age ) ),
	
);
percent &amp;lt;&amp;lt; label(1);

Graph Builder(
	Variables( X( :age ), Overlay( :sex ) ),
	Elements(
		Bar(
			X,
			Bar Style( "Stacked" ),
			Summary Statistic( "N" ),
			Label( "Label by Row" )
		)
	)
);&lt;/CODE&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 Jul 2025 14:47:10 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-stack-bar-with-N-as-summary-and-of-factor-as-label/m-p/883179#M104744</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-03T14:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: Graph Builder, stack bar with N as summary and % of factor as label</title>
      <link>https://community.jmp.com/t5/Discussions/Graph-Builder-stack-bar-with-N-as-summary-and-of-factor-as-label/m-p/883182#M104745</link>
      <description>&lt;P&gt;In 2020&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/16391"&gt;@shampton82&lt;/a&gt;&amp;nbsp; submitted this wish to optimize the&amp;nbsp;&lt;LI-MESSAGE title="Graph builder bar chart data label control" uid="343142" url="https://community.jmp.com/t5/JMP-Wish-List/Graph-builder-bar-chart-data-label-control/m-p/343142#U343142" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-idea-thread lia-fa-icon lia-fa-idea lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;.&lt;BR /&gt;It is still collecting Kudos - and additional ideas.&lt;BR /&gt;I just added a comment to add a functionality to specify the &lt;EM&gt;&lt;STRONG&gt;columns used as row label &lt;/STRONG&gt;&lt;/EM&gt;(via GraphBuilder GUI and via JSL)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the moment, it's very dangerous to use such row labels - enabling them for one graph will destroy all the other graphs.&lt;BR /&gt;The proposed label control will fix this issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;nice side effect: It will be possible to use Transform columns as row Labels&amp;nbsp; - no need to "pollute" the data table.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 15:18:42 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Graph-Builder-stack-bar-with-N-as-summary-and-of-factor-as-label/m-p/883182#M104745</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2025-07-03T15:18:42Z</dc:date>
    </item>
  </channel>
</rss>

