<?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: Label by Value: add / remove individual labels in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/642877#M83958</link>
    <description>&lt;P&gt;I have half an answer to your third question: you can change the color of the labels in the property editor. This change doesn't seem to be captured in the script for the graph, though.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_0-1686838203593.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53885i4374108FFE3895DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_0-1686838203593.png" alt="Jed_Campbell_0-1686838203593.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 14:10:38 GMT</pubDate>
    <dc:creator>Jed_Campbell</dc:creator>
    <dc:date>2023-06-15T14:10:38Z</dc:date>
    <item>
      <title>Label by Value: add / remove individual labels</title>
      <link>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/642743#M83941</link>
      <description>&lt;P&gt;For Heatmap and Bar Graphs, one can add &lt;STRONG&gt;Labels by value&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;- How can I remove values for a specific subset?&lt;BR /&gt;e.g. just show the labels for &lt;STRONG&gt;pass&lt;/STRONG&gt;, but don't show the labels for &lt;STRONG&gt;fail&lt;/STRONG&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1686814436132.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53877iF429B4FE3DAECBD8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1686814436132.png" alt="hogi_1-1686814436132.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How can I define that a label must be shown - even if the area is small&lt;BR /&gt;(M, 16y)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1686814246069.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53876i7C6016777EF44972/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1686814246069.png" alt="hogi_0-1686814246069.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Additional question:&lt;BR /&gt;How can I change the color of the labels via JSL?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 07:45:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/642743#M83941</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-15T07:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Label by Value: add / remove individual labels</title>
      <link>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/642877#M83958</link>
      <description>&lt;P&gt;I have half an answer to your third question: you can change the color of the labels in the property editor. This change doesn't seem to be captured in the script for the graph, though.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jed_Campbell_0-1686838203593.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53885i4374108FFE3895DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jed_Campbell_0-1686838203593.png" alt="Jed_Campbell_0-1686838203593.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 14:10:38 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/642877#M83958</guid>
      <dc:creator>Jed_Campbell</dc:creator>
      <dc:date>2023-06-15T14:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Label by Value: add / remove individual labels</title>
      <link>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/642960#M83963</link>
      <description>&lt;P&gt;I would think that using "&amp;lt;&amp;lt; Add Graphics Script" capability would be the easiest way control the color and visibility of a label for a graph.&amp;nbsp; One would actually not use the built in labels, but rather, use the text displaying capabilities of the graph primitives in JMP to solve the problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 15:57:36 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/642960#M83963</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-06-15T15:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Label by Value: add / remove individual labels</title>
      <link>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/643121#M83979</link>
      <description>&lt;P&gt;Hm, with cool Jmp features like a hierarchical X axis, stacked plot&amp;nbsp; and Label by % of Factor ...&amp;nbsp;&lt;BR /&gt;to recalculate the label values and positions ...&lt;BR /&gt;I think I will live with the unnecessary values :)&lt;/img&gt;&lt;BR /&gt;&lt;BR /&gt;Or wait, cheating a bit, using&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/610"&gt;@Jed_Campbell&lt;/a&gt;'s reply to the third question :)&lt;/img&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_1-1686852112048.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53909i49997509973AD121/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_1-1686852112048.png" alt="hogi_1-1686852112048.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Open( "$SAMPLE_DATA/Titanic Passengers.jmp" );
Graph Builder(
	Variables(
		X( :Passenger Class ),X( :Sex, Position( 1 ) ),
		Overlay( :Survived )
	),
	Elements(
		Bar(
			X( 1 ),	X( 2 ),
			Legend( 12 ),
			Bar Style( "Stacked" ),
			Summary Statistic( "% of Factor" ),
			Label( "Label by Value" )
		)
	),
	SendToReport(
		Dispatch({},"400",ScaleBox,{Legend Model(12,
				Properties( 0, {Fill Color( 36 )}, Item ID( "Yes", 1 ) ),
				Properties( 1, {Fill Color( 19 )}, Item ID( "No", 1 ) )
			)}
		)
	)
);

(Current Report() &amp;lt;&amp;lt; xpath("//FrameBox")) &amp;lt;&amp;lt; {Text Color( "Medium Dark Red" )}&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 18:03:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/643121#M83979</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-15T18:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: Label by Value: add / remove individual labels</title>
      <link>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/650475#M84175</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.jmp.com/t5/user/viewprofilepage/user-id/610"&gt;@Jed_Campbell&lt;/a&gt;&amp;nbsp;for the suggestion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just noticed a disadvantage of the approach:&lt;BR /&gt;the colors of the labels are reset with every change of the data filter:&lt;/P&gt;&lt;P&gt;(the color of the axis stays as it is - even if the axis scale is changed)&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" );
gb = Graph Builder(
	Summary Statistic( "Median" ),
	Graph Spacing( 4 ),
	Variables( X( :age ), Y( :height ), Overlay( :sex ) ),
	Elements( Bar( X, Y, Legend( 8 ), Label( "Label by Value" ) ) ),
);

ldf = gb &amp;lt;&amp;lt; 	Local Data Filter(
		Conditional,
		Add Filter( columns( :weight ), Where( :weight &amp;gt;= 102.57 ))
	);
	
(report(gb) &amp;lt;&amp;lt; Xpath("//FrameBox")) &amp;lt;&amp;lt; {Text Color( "Green" )};
(report(gb) &amp;lt;&amp;lt; Xpath("//AxisBox")) &amp;lt;&amp;lt; {Text Color( "Green" )};

	wait(1);
	
ldf &amp;lt;&amp;lt; clear();&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 18:56:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/Label-by-Value-add-remove-individual-labels/m-p/650475#M84175</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-06-22T18:56:51Z</dc:date>
    </item>
  </channel>
</rss>

