<?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: JSL coloring single element of legend to a custom color in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/675521#M86244</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_0-1694120192861.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56361i7D4B0C9D9DBAE3C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_0-1694120192861.png" alt="neelsrejan_0-1694120192861.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_1-1694120213028.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56362i52FE523C85234BDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_1-1694120213028.png" alt="neelsrejan_1-1694120213028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 07 Sep 2023 20:57:01 GMT</pubDate>
    <dc:creator>neelsrejan</dc:creator>
    <dc:date>2023-09-07T20:57:01Z</dc:date>
    <item>
      <title>JSL coloring single element of legend to a custom color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/675096#M86217</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to fix the coloring of my variability chart. I create the variability chart and then use the row legend to create a legend for the column dose. I am trying to color the label "control" the color black through JSL code. How is this possible. I have tried many combinations but my JMP 16 doesn't seem to color anything differently. Any help would be appreciated to get it like the picture attached. Below is the code I have tried out. Thanks!&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;dt = Open("$SAMPLE_DATA/Blood Pressure.jmp");&lt;BR /&gt;vc = Variability Chart(
	Y( :BP 8M ),
	X( :Subject ),
	Show Range Bars( 0 ),
	Show Cell Means( 0 ),
	Std Dev Chart( 0 ),
	SendToReport(
		Dispatch(
			{"Variability Chart for BP 8M"},
			"Variability Chart",
			FrameBox,
			{Row Legend(
				Dose,
				Color( 1 ),
				Color Theme( "JMP Default" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
				/*Custom Colors(
					{{"Control", RGB Color(0,0,0)}}
				)*/
			)}
		)
	)
);
vc &amp;lt;&amp;lt; Legend(
	Color(1),
	Color Theme("JMP Default"),
	Customize(
		1,
		{Row Label("Control"), Text Color(RGB Color(0,0,0))}
	)
);&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 508px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56325iEE1691BA860D2846/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 508px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56326i321BA57BF4641760/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Sep 2023 03:19:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/675096#M86217</guid>
      <dc:creator>neelsrejan</dc:creator>
      <dc:date>2023-09-07T03:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: JSL coloring single element of legend to a custom color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/675521#M86244</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_0-1694120192861.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56361i7D4B0C9D9DBAE3C3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_0-1694120192861.png" alt="neelsrejan_0-1694120192861.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="neelsrejan_1-1694120213028.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56362i52FE523C85234BDA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="neelsrejan_1-1694120213028.png" alt="neelsrejan_1-1694120213028.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 20:57:01 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/675521#M86244</guid>
      <dc:creator>neelsrejan</dc:creator>
      <dc:date>2023-09-07T20:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: JSL coloring single element of legend to a custom color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/675554#M86248</link>
      <description>&lt;P&gt;I think row legends are very non-customizable. You could try using Value Colors Column Property and then use that with Row Legend&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_1-1694147632295.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56371i2BFA3D27044AF3C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_1-1694147632295.png" alt="jthi_1-1694147632295.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_0-1694147622910.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56370i041C7AE473BE8BE1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_0-1694147622910.png" alt="jthi_0-1694147622910.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jthi_2-1694147638070.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/56372i039EB6319C3CA349/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jthi_2-1694147638070.png" alt="jthi_2-1694147638070.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2023 04:34:25 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/675554#M86248</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-08T04:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: JSL coloring single element of legend to a custom color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/676602#M86324</link>
      <description>&lt;P&gt;I see thanks for pointing this feature out to me. Would you happen to know how to do this in JSL?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 21:23:51 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/676602#M86324</guid>
      <dc:creator>neelsrejan</dc:creator>
      <dc:date>2023-09-11T21:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: JSL coloring single element of legend to a custom color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/676680#M86328</link>
      <description>&lt;P&gt;I'm fairly sure JMP can script this for you BUT you might have to create mock-up data depending if you might have more categories in the future as the Value Colors property isn't set by theme but by colors.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here(1);

dt = Open("$SAMPLE_DATA/Blood Pressure.jmp");

Column(dt, "Dose") &amp;lt;&amp;lt; Set Property(
	"Value Colors",
	{"A" = -13912408, "B" = -4042310, "Control" = 0, "Placebo" = -13400361}
);

varchart = dt &amp;lt;&amp;lt; Variability Chart(
	Y(:BP 8M),
	Model("Main Effect"),
	X(:Subject),
	SendToReport(
		Dispatch(
			{"Variability Gauge Analysis for BP 8M", "Variability Chart for BP 8M"},
			"Variability Chart",
			FrameBox,
			{Row Legend(
				Dose,
				Color(1),
				Color Theme(""), // JMP seems to leave this "" when using Value Colors
				Marker(0),
				Marker Theme(""),
				Continuous Scale(0),
				Reverse Scale(0),
				Excluded Rows(0)
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Sep 2023 05:00:05 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-coloring-single-element-of-legend-to-a-custom-color/m-p/676680#M86328</guid>
      <dc:creator>jthi</dc:creator>
      <dc:date>2023-09-12T05:00:05Z</dc:date>
    </item>
  </channel>
</rss>

