<?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 JSL user defines row legend color in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/JSL-user-defines-row-legend-color/m-p/636200#M83428</link>
    <description>&lt;P&gt;appreciated if someone can share the knowledge to define and assign row legend color.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;take Cheese.jmp dataset example, if it is possible to assign row cheese A = pink color, cheese B= black color by using JMP 14.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CDW_0-1685150379548.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53176iC3AD509F7D7A7A99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CDW_0-1685150379548.png" alt="CDW_0-1685150379548.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Bivariate(
	Y( :Score ),
	X( :Count ),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Row Legend(
				Cheese,
				Color( 1 ),
				Color Theme( "JMP Default" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 09 Jun 2023 16:10:56 GMT</pubDate>
    <dc:creator>CDW</dc:creator>
    <dc:date>2023-06-09T16:10:56Z</dc:date>
    <item>
      <title>JSL user defines row legend color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-user-defines-row-legend-color/m-p/636200#M83428</link>
      <description>&lt;P&gt;appreciated if someone can share the knowledge to define and assign row legend color.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;take Cheese.jmp dataset example, if it is possible to assign row cheese A = pink color, cheese B= black color by using JMP 14.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CDW_0-1685150379548.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53176iC3AD509F7D7A7A99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CDW_0-1685150379548.png" alt="CDW_0-1685150379548.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Bivariate(
	Y( :Score ),
	X( :Count ),
	SendToReport(
		Dispatch(
			{},
			"Bivar Plot",
			FrameBox,
			{Row Legend(
				Cheese,
				Color( 1 ),
				Color Theme( "JMP Default" ),
				Marker( 0 ),
				Marker Theme( "" ),
				Continuous Scale( 0 ),
				Reverse Scale( 0 ),
				Excluded Rows( 0 )
			)}
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Jun 2023 16:10:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-user-defines-row-legend-color/m-p/636200#M83428</guid>
      <dc:creator>CDW</dc:creator>
      <dc:date>2023-06-09T16:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: JSL user defines row legend color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-user-defines-row-legend-color/m-p/636244#M83430</link>
      <description>&lt;P&gt;You can right click on the Legend grouping and select the color you want the row values to change to&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_0-1685184349876.png" style="width: 797px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53177i1C8CE72AE2A7DD86/image-dimensions/797x486?v=v2" width="797" height="486" role="button" title="txnelson_0-1685184349876.png" alt="txnelson_0-1685184349876.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the chart with the A Cheese set to pint, and the B Cheese set to black&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="txnelson_1-1685184398985.png" style="width: 666px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53178iBC1430C55D44777D/image-dimensions/666x558?v=v2" width="666" height="558" role="button" title="txnelson_1-1685184398985.png" alt="txnelson_1-1685184398985.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How I would do this in JSL would be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Names Default To Here( 1 );
dt = Current Data Table();

For Each Row(
	If(
		:cheese == "A", theColor = "light red",
		:cheese == "B", theColor = "Black",
		:cheese == "C", theColor = "Orange",
		theColor = "Green"
	);
	Row State( Row() ) = Color State( thecolor );
);

Bivariate(
	Y( :Score ),
	X( :Count )
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 May 2023 11:17:13 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-user-defines-row-legend-color/m-p/636244#M83430</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-05-27T11:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: JSL user defines row legend color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-user-defines-row-legend-color/m-p/636254#M83431</link>
      <description>&lt;P&gt;Another approach:&amp;nbsp;&lt;/P&gt;&lt;P&gt;via Value Colors property of the column.&lt;BR /&gt;&lt;BR /&gt;I hope it was available in Jmp14?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="hogi_0-1685189782274.png" style="width: 400px;"&gt;&lt;img src="https://community.jmp.com/t5/image/serverpage/image-id/53179i9ADCEF59F13FBAD0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="hogi_0-1685189782274.png" alt="hogi_0-1685189782274.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 12:18:14 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-user-defines-row-legend-color/m-p/636254#M83431</guid>
      <dc:creator>hogi</dc:creator>
      <dc:date>2023-05-27T12:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: JSL user defines row legend color</title>
      <link>https://community.jmp.com/t5/Discussions/JSL-user-defines-row-legend-color/m-p/636271#M83435</link>
      <description>&lt;P&gt;Yes, Value Colors are available in JMP 14.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2023 15:11:53 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/JSL-user-defines-row-legend-color/m-p/636271#M83435</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2023-05-27T15:11:53Z</dc:date>
    </item>
  </channel>
</rss>

