<?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: How to use different labels for the same bar chart? in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/808132#M98761</link>
    <description>&lt;P&gt;Did you try the method in my earlier post and try creating extra columns?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;You just have to &lt;STRONG&gt;add new columns with the "heights" where you want to show the labels&lt;/STRONG&gt; and and use those to create the bar charts with label enabled&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Fri, 25 Oct 2024 08:24:20 GMT</pubDate>
    <dc:creator>jthi</dc:creator>
    <dc:date>2024-10-25T08:24:20Z</dc:date>
    <item>
      <title>How to use different labels for the same bar chart?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/807045#M98584</link>
      <description>&lt;P&gt;Positive and negative values like this use different cotton swabs&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
r = N Row( dt );ca = "weight";ar = dt &amp;lt;&amp;lt; GetAsMatrix( ca );
For( i = 1, i &amp;lt;= r, i++,	ar[i, 1] = -ar[i, 1]);dt[0, ca] = ar;
c1 = Quantile( 0.8, dt[0, "height"] );c2 = Quantile( 0.2, dt[0, "weight"] );
ca = "A";New Column( ca );Column( ca ) &amp;lt;&amp;lt; Formula( If( height &amp;gt; c1, height ) );dt &amp;lt;&amp;lt; run formulas;Column( ca ) &amp;lt;&amp;lt; deleteFormula;
ca = "B";New Column( ca );Column( ca ) &amp;lt;&amp;lt; Formula( If( weight &amp;lt; c2, weight ) );dt &amp;lt;&amp;lt; run formulas;Column( ca ) &amp;lt;&amp;lt; deleteFormula;
Column( "A" ) &amp;lt;&amp;lt; set labelled( 1 );
Column( "B" ) &amp;lt;&amp;lt; set labelled( 1 );
Column( "name" ) &amp;lt;&amp;lt; set labelled( 0 );
p1 = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 885, 607 ),
	Variables( X( Transform Column( "Row", Formula( Row() ) ) ), Y( :height ), Y( :weight, Position( 1 ) ) ),
	Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 5 ), Bar Style( "Stacked" ), Label( "Label by Row" ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				5,
				Properties( 0, {Transparency( 0.5 )}, Item ID( "height", 1 ) ),
				Properties( 1, {Transparency( 0.5 )}, Item ID( "weight", 1 ) )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-19_21-46-00.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69340iB4BB927C6943F3CC/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-19_21-46-00.png" alt="2024-10-19_21-46-00.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 13:55:15 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/807045#M98584</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-10-19T13:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to use different labels for the same bar chart?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/807057#M98585</link>
      <description>&lt;P&gt;You could for example add extra bar charts for A and B columns and set labels for those (disable columns from variables accordingly and set transparency of second bar charts to 0)&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1729347436917.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69342iD2803F47C7442BDD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1729347436917.png" alt="jthi_1-1729347436917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think you can also use Points instead of bars in JMP18 if you want to&lt;/P&gt;</description>
      <pubDate>Sat, 19 Oct 2024 14:18:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/807057#M98585</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-19T14:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to use different labels for the same bar chart?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/808102#M98751</link>
      <description>&lt;P&gt;I changed the label form, and I do not know how to set the label in this case.&lt;BR /&gt;I bother the expert to instruct again.&lt;/P&gt;&lt;P&gt;Thanks Experts!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
r = N Row( dt );ca = "weight";ar = dt &amp;lt;&amp;lt; GetAsMatrix( ca );
For( i = 1, i &amp;lt;= r, i++,	ar[i, 1] = -ar[i, 1]);dt[0, ca] = ar;
c1 = Quantile( 0.8, dt[0, "height"] );c2 = Quantile( 0.2, dt[0, "weight"] );
ca = "A";New Column( ca, Character,"Nominal");Column( ca ) &amp;lt;&amp;lt; Formula( If( height &amp;gt; c1, "A"||char(row()) ) );dt &amp;lt;&amp;lt; run formulas;Column( ca ) &amp;lt;&amp;lt; deleteFormula;
ca = "B";New Column( ca,Character,"Nominal" );Column( ca ) &amp;lt;&amp;lt; Formula( If( weight &amp;lt; c2, "B"||char(row()) ) );dt &amp;lt;&amp;lt; run formulas;Column( ca ) &amp;lt;&amp;lt; deleteFormula;
Column( "A" ) &amp;lt;&amp;lt; set labelled( 1 );Column( "B" ) &amp;lt;&amp;lt; set labelled( 1 );Column( "name" ) &amp;lt;&amp;lt; set labelled( 0 );
p1 = dt &amp;lt;&amp;lt; Graph Builder(
	Size( 885, 607 ),
	Variables( X( Transform Column( "Row", Formula( Row() ) ) ), Y( :height ), Y( :weight, Position( 1 ) ) ),
	Elements( Bar( X, Y( 1 ), Y( 2 ), Legend( 5 ), Bar Style( "Stacked" ), Label( "Label by Row" ) ) ),
	SendToReport(
		Dispatch(
			{},
			"400",
			ScaleBox,
			{Legend Model(
				5,
				Properties( 0, {Transparency( 0.5 )}, Item ID( "height", 1 ) ),
				Properties( 1, {Transparency( 0.5 )}, Item ID( "weight", 1 ) )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-10-25_10-15-57.png" style="width: 999px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69504iC2A28D4468423851/image-size/large?v=v2&amp;amp;px=999" role="button" title="2024-10-25_10-15-57.png" alt="2024-10-25_10-15-57.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 02:19:18 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/808102#M98751</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-10-25T02:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use different labels for the same bar chart?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/808108#M98753</link>
      <description>&lt;P&gt;Did you try with the same method I did provide earlier? You just have to add new columns with the "heights" where you want to show the labels and and use those to create the bar charts with label enabled&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1729828768541.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/69507i4B3F7B5E2A4B3978/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1729828768541.png" alt="jthi_1-1729828768541.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 03:59:39 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/808108#M98753</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-25T03:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to use different labels for the same bar chart?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/808128#M98759</link>
      <description>&lt;P class=""&gt;&lt;SPAN class=""&gt;Yes, the original "A" column is positive and the "B" column is negative.&lt;/SPAN&gt;&lt;SPAN class=""&gt;So they can be shown above and below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Now "A" and "B" are text.&lt;/SPAN&gt;&lt;SPAN class=""&gt;You cannot have the "A" column label displayed above and the "B" column label displayed below.&lt;/SPAN&gt;&lt;SPAN class=""&gt;This is the key.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2024 07:50:35 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/808128#M98759</guid>
      <dc:creator>lala</dc:creator>
      <dc:date>2024-10-25T07:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to use different labels for the same bar chart?</title>
      <link>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/808132#M98761</link>
      <description>&lt;P&gt;Did you try the method in my earlier post and try creating extra columns?&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;SPAN&gt;You just have to &lt;STRONG&gt;add new columns with the "heights" where you want to show the labels&lt;/STRONG&gt; and and use those to create the bar charts with label enabled&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 25 Oct 2024 08:24:20 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/How-to-use-different-labels-for-the-same-bar-chart/m-p/808132#M98761</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2024-10-25T08:24:20Z</dc:date>
    </item>
  </channel>
</rss>

